/* ===== VARIABLES Y RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary-color: #F69724;
  --secondary-color: #F33E06;
  --accent-color: #F7EFC5;
  --bg-dark: #03121F;
  --bg-medium: #1a232d;
  --bg-light: #2a3542;
  --text-primary: #F7EFC5;
  --text-secondary: #858068;
  --text-muted: #5a5545;
  --border-color: rgba(247, 239, 197, 0.15);
  --glass-bg: rgba(3, 18, 31, 0.7);
  --glass-border: rgba(247, 239, 197, 0.12);
}
body, html { overflow-x: hidden; width: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--accent-color) 50%, var(--bg-dark) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== BACKGROUND ANIMADO ===== */
.background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.gradient-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at center, transparent 0%, var(--primary-color) 10%, transparent 20%); animation: gradientShift 8s ease-in-out infinite; opacity: 0.15; }
@keyframes gradientShift { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.2; } }
.pattern-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM0 34v-4H4v4h2v-4h4v-2H4V0H2v4H0v30zm36 0v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); opacity: 0.2; }
.floating-elements { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.floating-element { position: absolute; border-radius: 50%; filter: blur(40px); animation: float 6s ease-in-out infinite; }
.element-1 { top: 20%; left: 10%; width: 80px; height: 80px; background: var(--primary-color); opacity: 0.2; }
.element-2 { top: 60%; right: 10%; width: 120px; height: 120px; background: var(--secondary-color); opacity: 0.2; animation-delay: 2s; }
.element-3 { bottom: 20%; left: 20%; width: 100px; height: 100px; background: var(--accent-color); opacity: 0.15; animation-delay: 4s; }
.element-4 { top: 30%; right: 30%; width: 60px; height: 60px; background: var(--primary-color); opacity: 0.1; animation-delay: 1s; }
@keyframes float { 0%,100%{transform:translateY(0) translateX(0);} 33%{transform:translateY(-20px) translateX(10px);} 66%{transform:translateY(20px) translateX(-10px);} }

/* ===== NAVEGACIÓN ===== */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; background: var(--glass-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border); }
.nav-content { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-weight: bold; }
.logo img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.nav-menu { display: flex; gap: 2rem; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: all 0.3s; position: relative; padding: 0.75rem 1rem; border-radius: 0.5rem; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); transition: width 0.3s; border-radius: 2px; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 4px; }
.hamburger span { width: 25px; height: 3px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--primary-color); }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--secondary-color); }

/* ===== HERO / SLIDER ===== */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-slider {
  position: relative;
  width: 100%;
  height: 90vh;
  max-width: 100vw;
  overflow: hidden;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .hero-slider { height: 70vh; }
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active { opacity: 1; }
.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(3, 18, 31, 0.8), rgba(246, 151, 36, 0.3), rgba(3, 18, 31, 0.8));
}
.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 10;
}
.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(3, 18, 31, 0.7);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.slider-btn:hover { background: var(--primary-color); transform: scale(1.1); }
.slider-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}
.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(247, 239, 197, 0.4);
  border: 2px solid rgba(247, 239, 197, 0.6);
  cursor: pointer;
  transition: all 0.3s;
}
.indicator.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  width: 14px;
  height: 14px;
}
.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  padding: 2rem;
  color: var(--text-primary);
}
.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: bold;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 151, 36, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* ===== SECCIONES ===== */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: bold;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.portfolio, .skills, .contact { padding: 5rem 0; }

/* ===== PORTAFOLIO ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.portfolio-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s;
}
.portfolio-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(246, 151, 36, 0.2);
}
.card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-content { padding: 1.5rem; }
.card-content h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.card-content p { color: var(--text-secondary); margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  background: rgba(246, 151, 36, 0.2);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== HABILIDADES ===== */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 800px; margin: 0 auto; }
.skill-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.skill-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.skill-header i { font-size: 1.5rem; color: var(--primary-color); }
.skill-header h3 { font-size: 1.125rem; color: var(--text-primary); }
.progress-info { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); }
.percentage { font-weight: 600; color: var(--primary-color); }
.progress-bar { width: 100%; height: 8px; background: var(--bg-light); border-radius: 4px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease-out;
}

/* ===== PRECIOS ===== */
.pricing { padding: 5rem 0; }
.currency-selector { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.currency-options { display: flex; gap: 0.5rem; }
.currency-btn {
  background: rgba(247, 239, 197, 0.1);
  border: 1px solid rgba(247, 239, 197, 0.2);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
}
.currency-btn.active { background: var(--primary-color); color: white; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.pricing-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}
.pricing-card.animate { opacity: 1; transform: translateY(0); }
.pricing-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.pricing-card.featured {
  background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
               linear-gradient(45deg, var(--primary-color), var(--secondary-color)) border-box;
  transform: scale(1.05);
  z-index: 1;
}
.pricing-card.featured:hover { transform: scale(1.05) translateY(-15px); }
.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  z-index: 2;
}
.pricing-header {
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}
.pricing-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.pricing-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.pricing-price { display: flex; align-items: baseline; justify-content: center; gap: 0.25rem; flex-wrap: wrap; }
.currency { font-size: 1.25rem; color: var(--text-secondary); }
.amount { font-size: 2.5rem; font-weight: 700; color: var(--text-primary); }
.period { font-size: 1rem; color: var(--text-secondary); }
.pricing-features { padding: 1.5rem; flex-grow: 1; }
.features-list { list-style: none; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
.feature-item i { color: var(--primary-color); }
.feature-item.disabled { opacity: 0.5; }
.feature-item.disabled i { color: var(--text-muted); }
.pricing-action { padding: 0 1.5rem 1.5rem; text-align: center; margin-top: auto; }
.pricing-action .btn { width: 100%; justify-content: center; padding: 0.875rem 1.5rem; }

/* Comparador de planes */
.plan-comparison {
  margin-top: 3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  overflow: hidden;
}
.plan-comparison h3 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.comparison-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.comparison-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table { min-width: 500px; width: 100%; }
.comparison-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 2px solid var(--glass-border);
  background: rgba(246, 151, 36, 0.1);
}
.comparison-header .feature-name { text-align: left; }
.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--glass-border);
}
.comparison-row:last-child { border-bottom: none; }
.feature-name { font-weight: 500; color: var(--text-secondary); }
.plan-feature {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  text-align: center;
}
.plan-feature span {
  color: var(--text-primary);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-feature span i { color: var(--primary-color); }
.plan-feature span i.fa-times { color: var(--text-muted); }

/* ===== CONTACTO ===== */
.contact-iframe-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  overflow: hidden;
  padding: 1rem;
}
.contact-iframe-container iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  border-radius: 0.5rem;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}
.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(247, 239, 197, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s;
}
.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
}

/* ===== SCROLL TOP ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(246, 151, 36, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(246, 151, 36, 0.4);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary-color); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    gap: 1rem;
  }
  .nav-menu.active { left: 0; }
  .hamburger { display: flex; }
  .pricing-card.featured { transform: scale(1); order: -1; }
  .portfolio-grid, .skills-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 2rem; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { min-height: 450px; max-width: 350px; width: 100%; }
  .pricing-card.featured { transform: none; border: 2px solid var(--primary-color); }
  .comparison-header { display: none; }
  .comparison-row {
    display: block;
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
  }
  .plan-feature { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
}

/* === BURBUJAS ASCENDENTES - CONTINUAS === */
.bubbles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.bubble {
  position: absolute;
  bottom: -15vh;
  left: var(--left-pos);
  width: var(--size);
  height: var(--size);
  background: linear-gradient(135deg, rgba(246, 151, 36, 0.45), rgba(243, 62, 6, 0.38));
  border-radius: 50%;
  box-shadow:
    0 0 20px rgba(246, 151, 36, 0.7),
    inset 0 0 15px rgba(247, 239, 197, 0.3);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  animation:
    rise var(--duration) linear infinite,
    fade-in 1.5s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes rise {
  0% {
    transform: translateY(0) scale(0.5) translateX(0);
    opacity: 0;
  }
  5% { opacity: 0.7; }
  90% { opacity: 0.95; }
  100% {
    transform: translateY(-130vh) scale(1.15) translateX(var(--drift));
    opacity: 0;
  }
}
@keyframes fade-in { to { opacity: 1; } }
.bubble.small  { --size: clamp(6px, 1.2vw, 18px); }
.bubble.medium { --size: clamp(10px, 1.8vw, 28px); }
.bubble.large  { --size: clamp(14px, 2.5vw, 42px); }












/* ===== BANNER DE COOKIES FUTURISTA ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - 40px);
    max-width: 900px;
    background: rgba(3, 18, 31, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(246, 151, 36, 0.3);
    border-radius: 1.25rem;
    padding: 1.5rem;
    z-index: 9999;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(246, 151, 36, 0.15),
        inset 0 1px 0 rgba(247, 239, 197, 0.1);
    overflow: hidden;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-banner.hide {
    transform: translateX(-50%) translateY(150%);
    opacity: 0;
}

/* Efecto de brillo animado en el borde */
.cookie-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--accent-color), 
        var(--primary-color));
    background-size: 400% 400%;
    border-radius: 1.25rem;
    z-index: -1;
    opacity: 0.5;
    animation: cookieGlow 8s ease infinite;
    filter: blur(8px);
}

@keyframes cookieGlow {
    0%, 100% { background-position: 0% 50%; opacity: 0.3; }
    50% { background-position: 100% 50%; opacity: 0.6; }
}

.cookie-content {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Icono de cookie animado */
.cookie-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    grid-row: span 2;
}

.cookie-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
    box-shadow: 
        0 0 30px rgba(246, 151, 36, 0.5),
        inset 0 0 20px rgba(247, 239, 197, 0.2);
    animation: cookieFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes cookieFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

/* Partículas alrededor del icono */
.cookie-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cookie-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: particleOrbit 4s linear infinite;
}

.cookie-particles span:nth-child(1) { animation-delay: 0s; }
.cookie-particles span:nth-child(2) { animation-delay: 1s; }
.cookie-particles span:nth-child(3) { animation-delay: 2s; }
.cookie-particles span:nth-child(4) { animation-delay: 3s; }

@keyframes particleOrbit {
    0% { 
        transform: rotate(0deg) translateX(50px) rotate(0deg);
        opacity: 0;
    }
    50% { opacity: 1; }
    100% { 
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
        opacity: 0;
    }
}

/* Texto */
.cookie-text h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.cookie-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-policy-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--primary-color);
    transition: all 0.3s;
}

.cookie-policy-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Botones */
.cookie-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cookie-btn:hover::before {
    left: 100%;
}

.cookie-btn-reject {
    background: rgba(247, 239, 197, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.cookie-btn-reject:hover {
    background: rgba(247, 239, 197, 0.15);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background: rgba(246, 151, 36, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(246, 151, 36, 0.3);
}

.cookie-btn-settings:hover {
    background: rgba(246, 151, 36, 0.25);
    transform: translateY(-2px);
}

.cookie-btn-accept {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(246, 151, 36, 0.4);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 151, 36, 0.6);
}

.cookie-btn-save {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 100%;
    justify-content: center;
    padding: 0.85rem;
    box-shadow: 0 4px 15px rgba(246, 151, 36, 0.4);
}

.cookie-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 151, 36, 0.6);
}

/* Panel de configuración */
.cookie-settings-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                margin-top 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s;
    opacity: 0;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.cookie-settings-panel.open {
    max-height: 600px;
    opacity: 1;
    margin-top: 1.25rem;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

.settings-header h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-settings {
    background: rgba(247, 239, 197, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-settings:hover {
    background: var(--secondary-color);
    color: white;
    transform: rotate(90deg);
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(247, 239, 197, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.setting-item:hover {
    border-color: rgba(246, 151, 36, 0.3);
    background: rgba(246, 151, 36, 0.05);
}

.setting-info h5 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
}

.setting-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* Toggle Switch futurista */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(247, 239, 197, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    transition: 0.4s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(246, 151, 36, 0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
    background: white;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 1.25rem;
    }
    
    .cookie-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-icon-wrapper {
        grid-row: auto;
        margin: 0 auto;
        width: 60px;
        height: 60px;
    }
    
    .cookie-icon {
        font-size: 1.75rem;
    }
    
    .cookie-text h3 {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .cookie-actions {
        justify-content: center;
    }
    
    .cookie-btn {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }
    
    .cookie-btn span {
        display: none;
    }
    
    .cookie-btn i {
        font-size: 1rem;
    }
    
    .setting-item {
        flex-direction: column;
        text-align: center;
    }
    
    .setting-info h5, .setting-info p {
        text-align: center;
    }
}












/* ===== PREGUNTAS FRECUENTES (FAQ) ===== */
.faq-section {
    padding: 5rem 0;
    position: relative;
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(25px);
    position: relative;
}

.faq-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s;
}

.faq-item:hover,
.faq-item.active {
    border-color: rgba(246, 151, 36, 0.35);
    box-shadow: 0 8px 30px rgba(246, 151, 36, 0.1);
}

.faq-item:hover::before,
.faq-item.active::before {
    opacity: 1;
}

/* Botón de pregunta */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.faq-question:hover {
    background: rgba(246, 151, 36, 0.04);
}

.faq-q-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.faq-number {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-color);
    background: rgba(246, 151, 36, 0.12);
    border: 1px solid rgba(246, 151, 36, 0.25);
    padding: 0.3rem 0.6rem;
    border-radius: 0.4rem;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.faq-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(246, 151, 36, 0.15), rgba(243, 62, 6, 0.1));
    border-radius: 0.6rem;
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s;
}

.faq-item.active .faq-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(246, 151, 36, 0.3);
}

.faq-q-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color 0.3s;
}

.faq-item.active .faq-q-text {
    color: var(--primary-color);
}

/* Toggle arrow */
.faq-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(247, 239, 197, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-toggle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: rotate(180deg);
    box-shadow: 0 4px 12px rgba(246, 151, 36, 0.4);
}

/* Respuesta */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin-left: calc(36px + 40px + 2rem);
}

.faq-answer-inner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.faq-answer-inner p strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== RESPONSIVE FAQ ===== */
@media (max-width: 768px) {
    .faq-section {
        padding: 3.5rem 0;
    }

    .faq-container {
        gap: 0.75rem;
    }

    .faq-question {
        padding: 1rem 1.15rem;
    }

    .faq-q-left {
        gap: 0.75rem;
    }

    .faq-number {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        min-width: 30px;
    }

    .faq-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .faq-q-text {
        font-size: 0.9rem;
    }

    .faq-toggle {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .faq-answer-inner {
        margin-left: 0;
        padding: 0 1.15rem 1.25rem 1.15rem;
    }

    .faq-answer-inner p {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .faq-q-left {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .faq-number {
        order: -1;
    }

    .faq-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        border-radius: 0.4rem;
    }

    .faq-q-text {
        font-size: 0.85rem;
        width: 100%;
        margin-top: 0.25rem;
    }
}
.foto-miembro {
  width: 70px;
  height: 70px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
}
















/* ===== CONTROLES DEL BLOG ===== */
.blog-controls {
    display: flex;
    gap: 1rem;
    margin: 0 auto 3rem auto;
    max-width: 900px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-controls:hover {
    border-color: rgba(246, 151, 36, 0.25);
    box-shadow: 0 8px 30px rgba(246, 151, 36, 0.05);
}

.blog-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
}

.blog-input-wrapper i {
    position: absolute;
    left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s;
    pointer-events: none;
}

.blog-search, .blog-select {
    width: 100%;
    background: rgba(247, 239, 197, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.blog-select {
    padding-left: 1.25rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23858068' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 2.5rem;
}

.blog-search:focus, .blog-select:focus {
    border-color: var(--primary-color);
    background: rgba(246, 151, 36, 0.05);
    box-shadow: 0 0 15px rgba(246, 151, 36, 0.15);
}

.blog-input-wrapper:focus-within i {
    color: var(--primary-color);
}

.blog-search::placeholder {
    color: var(--text-muted);
}



/* ===== ESTILO DEL DROPDOWN - OPCIONES ===== */
.blog-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 0.75rem;
}

.blog-select option:hover {
    background: var(--primary-color);
    color: white;
}

.blog-select option:checked {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Para navegadores que soportan appearance */
.blog-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Estilo para el dropdown en Safari/Chrome */
.blog-select::-ms-expand {
    display: none;
}

/* Mejorar el foco */
.blog-select:focus option {
    background: var(--bg-dark);
}

.blog-select:focus option:hover {
    background: rgba(246, 151, 36, 0.3);
}

/* Contenedor del blog - ajuste */
.blog-controls {
    position: relative;
    z-index: 100;
}


/* ===== BLOG GRID - 4 COLUMNAS ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.blog-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card-content { 
    padding: 1rem; 
}

.blog-card-category {
    display: inline-block;
    background: rgba(246, 151, 36, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.blog-card-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-card-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Slider de imágenes en noticias */
.blog-slider {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.blog-slider-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.blog-slide {
    min-width: 100%;
    height: 100%;
}

.blog-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-slider-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.blog-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(247, 239, 197, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.blog-slider-dot.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 4px;
}

.blog-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(3, 18, 31, 0.7);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
}

.blog-card:hover .blog-slider-btn {
    opacity: 1;
}

.blog-slider-btn.prev { left: 10px; }
.blog-slider-btn.next { right: 10px; }

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Admin - Lista de noticias */
.admin-news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.admin-news-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
    transition: all 0.3s;
}

.admin-news-item:hover {
    border-color: var(--primary-color);
}

.admin-news-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.admin-news-info h4 {
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.admin-news-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.admin-news-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-news-actions button {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.btn-edit {
    background: rgba(246, 151, 36, 0.2);
    color: var(--primary-color);
}

.btn-edit:hover {
    background: var(--primary-color);
    color: white;
}

.btn-delete {
    background: rgba(243, 62, 6, 0.2);
    color: var(--secondary-color);
}

.btn-delete:hover {
    background: var(--secondary-color);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-news-item {
        grid-template-columns: 1fr;
    }
    .admin-news-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}



/* ===== COMENTARIOS ESTILO WORDPRESS ===== */
.comments-section {
    margin-top: 3rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(246, 151, 36, 0.05);
}

.comment-item:hover {
    border-color: rgba(246, 151, 36, 0.3);
    transform: translateX(5px);
}

@media (max-width: 600px) {
    .comment-form > div {
        grid-template-columns: 1fr;
    }
}