/* =============================
   Variables de diseño principales
   Edita estos colores y tipografías para modificar la identidad visual
   ============================= */
:root {
  --color-rose: #f7dfe7;      /* Rosa empolvado principal */
  --color-blush: #e9b8c5;     /* Rosa más intenso para acentos */
  --color-cream: #fff8f0;     /* Fondo suave */
  --color-gold: #b58f5f;      /* Detalles elegantes */
  --color-charcoal: #2f2a2b;  /* Texto principal */
  --color-muted: #6f5f63;     /* Texto secundario */
  --font-serif: 'Playfair Display', 'Times New Roman', serif;
  --font-sans: 'Poppins', 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --radius-soft: 18px;
  --shadow-soft: 0 18px 35px rgba(47, 42, 43, 0.08);
}

/* =============================
   Reglas base y utilidades
   ============================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background: 
    /* Manchas orgánicas blancas */
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(255, 255, 255, 0.7) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(255, 255, 255, 0.5) 0%, transparent 45%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
    /* Manchas orgánicas blancas */
    radial-gradient(ellipse 70% 70% at 85% 15%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse 90% 60% at 5% 85%, rgba(255, 255, 255, 0.7) 0%, transparent 50%),
    radial-gradient(ellipse 40% 60% at 70% 60%, rgba(255, 255, 255, 0.4) 0%, transparent 45%),
    /* Degradado diagonal base */
    linear-gradient(135deg, #E3F2FD 0%, #E8E0D5 35%, #D4C5B0 65%, #C9B8A3 100%);
  background-size: 150% 150%;
  background-attachment: fixed;
  animation: moveBackground 20s ease-in-out infinite;
  line-height: 1.6;
  min-height: 100vh;
}

@keyframes moveBackground {
  0%, 100% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.layout-wide {
  width: min(90%, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
  position: relative;
  z-index: 10;
}

/* Efecto glassmorphism para secciones sobre video */
.section-glass {
  margin: 2rem auto;
  padding: 3rem 2rem;
  background: rgba(255, 248, 240, 0.75);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-glass-white {
  margin: 2rem auto;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
  color: #6B4E3D;
}

.section-subtitle {
  color: var(--color-muted);
  max-width: 700px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-blush), var(--color-rose));
  color: var(--color-charcoal);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.card {
  background-color: #fff;
  border-radius: var(--radius-soft);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* =============================
   Encabezado y navegación
   ============================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* CORRECCIÓN: permitir que el contenido sea visible sin recortes */
  overflow: visible;
  transition: background-color 0.3s ease;
}

/* Header transparente para la página de inicio */
header.header-transparent {
  background-color: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

/* Capa de fondo con gradiente que hace fade */
header.header-transparent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f5e6d3 0%, #d4b896 100%);
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: -1;
  pointer-events: none;
}

/* Header con fondo degradado al hacer scroll - fade del fondo */
header.header-transparent.header-scrolled::before {
  opacity: 1;
}

header.header-transparent.header-scrolled {
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: backdrop-filter 0.6s ease-in-out, border-bottom 0.6s ease-in-out;
}

/* Ajustar colores de los enlaces cuando hay scroll */
header.header-transparent.header-scrolled .nav-links a:not(.btn) {
  color: var(--color-charcoal);
  text-shadow: none;
}

header.header-transparent.header-scrolled .nav-links a:not(.btn):hover,
header.header-transparent.header-scrolled .nav-links a:not(.btn)[aria-current='page'] {
  border-color: var(--color-gold);
}

header.header-transparent.header-scrolled .nav-links .btn-ghost {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

header.header-transparent.header-scrolled .nav-links .btn-ghost:hover {
  background-color: rgba(181, 143, 95, 0.1);
}

header.header-transparent.header-scrolled .nav-toggle {
  color: var(--color-charcoal);
  text-shadow: none;
}

/* Estilos para los enlaces cuando el header es transparente */
header.header-transparent .nav-links a:not(.btn) {
  color: #6B4E3D;
  text-shadow: none;
  transition: color 0.5s ease-in-out, border-color 0.5s ease-in-out;
}

header.header-transparent .nav-links a:not(.btn):hover,
header.header-transparent .nav-links a:not(.btn)[aria-current='page'] {
  border-color: #6B4E3D;
}

/* Botón ghost en header transparente */
header.header-transparent .nav-links .btn-ghost {
  border-color: #6B4E3D;
  color: #6B4E3D;
  text-shadow: none;
  transition: color 0.5s ease-in-out, border-color 0.5s ease-in-out, background-color 0.5s ease-in-out;
}

header.header-transparent .nav-links .btn-ghost:hover {
  background-color: rgba(107, 78, 61, 0.1);
}

/* Toggle button en header transparente */
header.header-transparent .nav-toggle {
  color: #6B4E3D;
  text-shadow: none;
  transition: color 0.5s ease-in-out;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* CORRECCIÓN: aumentado padding vertical para que el botón con borde quepa */
  padding: 1.2rem 0;
  /* CORRECCIÓN: altura mínima para asegurar espacio suficiente */
  min-height: 64px;
}

.nav-logo {
  /* Logo como imagen en lugar de texto */
  display: flex;
  align-items: center;
}

.nav-logo img {
  /* Altura del logo ajustada para el navbar */
  height: 50px;
  width: auto;
  display: block;
  transition: opacity 0.5s ease-in-out;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  font-weight: 500;
  /* CORRECCIÓN: centrar verticalmente todos los elementos */
  align-items: center;
}

/* CORRECCIÓN: aplicar estilos solo a enlaces normales, no a botones */
.nav-links a:not(.btn) {
  padding: 0.3rem 0.5rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn)[aria-current='page'] {
  border-color: var(--color-gold);
}

/* CORRECCIÓN: asegurar que el botón en el nav tenga espacio vertical */
.nav-links .btn {
  /* Pequeño margen para que el borde no se corte */
  margin: 0.25rem 0;
  /* Asegurar que el borde sea visible desde el inicio */
  border: 1px solid var(--color-gold);
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.4rem;
}

/* =============================
   Hero principal con video de fondo
   ============================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Video de fondo que cubre toda la pantalla - PEGADO AL TOP ABSOLUTO */
.hero-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

/* Contenido del hero centrado */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  padding-top: 0;
  padding-bottom: 4rem;
  margin-top: -4rem;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-gold);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 1.5rem 0;
  color: #ffffff;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5),
               0 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 600;
}

.hero-text {
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5),
               0 1px 3px rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

/* Botón ghost en hero - color negro */
.hero .btn-ghost {
  border-color: #000000;
  color: #000000;
  background-color: transparent;
}

.hero .btn-ghost:hover {
  background-color: rgba(0, 0, 0, 0.1);
  border-color: #000000;
  color: #000000;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================
   Listado de servicios
   ============================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 140px;
}

.service-card h3 {
  font-family: var(--font-serif);
  margin-top: 0;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.service-card .service-name {
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.service-card .service-price {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-weight: 600;
  color: var(--color-gold);
  font-size: 0.95rem;
}

.service-card p {
  color: var(--color-muted);
  margin: 0;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

/* Imágenes de casos de antes/después */
.case-image {
  width: 100%;
  border-radius: var(--radius-soft);
  margin-bottom: 1rem;
  object-fit: cover;
  max-height: 280px;
}

/* =============================
   Sección de problemas que tratamos
   ============================= */
.problems-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.problem-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-soft);
  background: linear-gradient(135deg, rgba(247, 223, 231, 0.3), rgba(233, 184, 197, 0.2));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(181, 143, 95, 0.1);
  width: 100%;
  max-width: 180px;
}

.problem-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.problem-badge {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.problem-item h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 0;
}


/* =============================
   Contacto y formulario
   ============================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 600;
}

input,
textarea {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font: inherit;
  background-color: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* =============================
   Footer
   ============================= */
footer {
  background-color: #fff;
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-title {
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

.footer-links a {
  display: block;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
  text-align: center;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.footer-legal-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal-links a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-legal-links a:hover {
  color: var(--color-gold);
}

.footer-legal-links span {
  color: var(--color-muted);
  opacity: 0.5;
}

/* =============================
   Responsividad
   ============================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #fff;
    padding: 1rem;
    position: absolute;
    top: 100%;
    right: 0;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.is-open {
    display: flex;
  }

  /* Fondo marrón y texto blanco para navbar en inicio y contacto (header-transparent) */
  header.header-transparent .nav-links {
    background-color: #6B4E3D; /* Marrón oscuro */
  }

  header.header-transparent .nav-links.is-open {
    background-color: #6B4E3D; /* Marrón oscuro cuando está abierto */
  }

  /* Texto blanco para todos los enlaces en header-transparent */
  header.header-transparent .nav-links a:not(.btn) {
    color: #ffffff !important;
    text-shadow: none;
  }

  header.header-transparent .nav-links a:not(.btn):hover,
  header.header-transparent .nav-links a:not(.btn)[aria-current='page'] {
    color: #ffffff !important;
    border-color: #ffffff;
  }

  /* Botón ghost en header-transparent */
  header.header-transparent .nav-links .btn-ghost {
    border-color: #ffffff;
    color: #ffffff !important;
  }

  header.header-transparent .nav-links .btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
  }

  /* Botón toggle en header-transparent */
  header.header-transparent .nav-toggle {
    color: #ffffff;
  }

  /* Logo blanco en responsive cuando el navbar es marrón (header-transparent) */
  header.header-transparent .nav-logo img[src*="maia-logo-negro.png"] {
    filter: brightness(0) invert(1);
  }
  
  /* EXCEPCIÓN: En contacto, mantener logo negro siempre */
  body.contact-page header.header-transparent .nav-logo img[src*="maia-logo-negro.png"] {
    filter: none !important;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 500px;
    height: 100vh;
    margin-top: -80px; /* Ajuste para móviles */
    padding-top: 80px;
  }

  .hero-content {
    padding: 1.5rem;
    padding-top: 0;
    padding-bottom: 3rem;
    margin-top: -3rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Problemas que tratamos - Lista en móvil */
  .problems-grid {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .problem-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 0.8rem 1rem;
    max-width: 100%;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.5);
  }

  .problem-badge {
    font-size: 1.2rem;
    margin-bottom: 0;
  }

  .problem-item h4 {
    margin: 0;
  }

  .problem-item:hover {
    transform: none;
  }
}

/* =============================
   Modal / Pop-up para casos
   ============================= */
/* Overlay oscuro de fondo */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(47, 42, 43, 0.85);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  /* Oculto por defecto */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Cuando el modal está abierto */
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Contenedor del modal - MÁS ANCHO para layout de dos columnas */
.modal-content {
  background-color: var(--color-cream);
  border-radius: var(--radius-soft);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  /* Sin scroll en el contenedor principal */
  overflow: hidden;
  position: relative;
  /* Animación de entrada */
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.is-open .modal-content {
  transform: scale(1) translateY(0);
}

/* Botón de cerrar */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-charcoal);
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background-color: var(--color-rose);
  transform: rotate(90deg);
}

/* Contenido interno del modal - LAYOUT DE DOS COLUMNAS */
.modal-body {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 0;
  height: 90vh;
  max-height: 90vh;
}

/* Columna izquierda: FIJA, sin scroll */
.modal-image-column {
  padding: 2rem;
  padding-right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Sin scroll */
  overflow: hidden;
}

/* Imagen grande en el modal - FIJA A LA IZQUIERDA */
.modal-body img {
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: var(--radius-soft);
  object-fit: contain;
  box-shadow: var(--shadow-soft);
}

/* Columna derecha: SOLO esta columna hace scroll */
.modal-text-column {
  padding: 2rem;
  padding-left: 1.25rem;
  overflow-y: auto;
  overflow-x: hidden;
  /* Altura máxima para permitir scroll interno */
  max-height: 90vh;
}

.modal-body h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #6B4E3D;
}

.modal-body .modal-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.modal-body .modal-meta span {
  background-color: rgba(181, 143, 95, 0.15);
  color: var(--color-gold);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.modal-body p {
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.modal-body strong {
  color: var(--color-charcoal);
}

/* Hacer las tarjetas clickeables */
.case-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(47, 42, 43, 0.12);
}

/* =============================
   Cookie Banner
   ============================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #f5e6d3 0%, #e9b8c5 50%, #d4b896 100%);
  padding: 1.5rem 2rem;
  box-shadow: 0 -4px 20px rgba(47, 42, 43, 0.15);
  z-index: 10000;
  display: none;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.cookie-banner.cookie-banner-visible {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
  color: var(--color-charcoal);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-banner-text strong {
  color: #6B4E3D;
  font-weight: 600;
}

.cookie-banner-text a {
  color: var(--color-gold);
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-soft);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.cookie-btn-accept {
  background-color: var(--color-gold);
  color: white;
}

.cookie-btn-accept:hover {
  background-color: #9a7449;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(181, 143, 95, 0.3);
}

.cookie-btn-reject {
  background-color: transparent;
  color: var(--color-charcoal);
  border: 2px solid var(--color-charcoal);
}

.cookie-btn-reject:hover {
  background-color: rgba(47, 42, 43, 0.05);
}

.cookie-btn-settings {
  background-color: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.cookie-btn-settings:hover {
  background-color: rgba(181, 143, 95, 0.1);
}

/* Modal de configuración de cookies */
.cookie-settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(47, 42, 43, 0.7);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(5px);
}

.cookie-settings-content {
  background: white;
  border-radius: var(--radius-soft);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(47, 42, 43, 0.3);
  position: relative;
}

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

.cookie-settings-header h2 {
  color: var(--color-charcoal);
  margin: 0;
  font-size: 1.8rem;
}

.cookie-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookie-close-btn:hover {
  background-color: rgba(47, 42, 43, 0.1);
  color: var(--color-charcoal);
}

.cookie-setting-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(245, 230, 211, 0.3) 0%, rgba(233, 184, 197, 0.2) 100%);
  border-radius: var(--radius-soft);
  border: 1px solid rgba(181, 143, 95, 0.2);
}

.cookie-setting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cookie-setting-header h3 {
  color: var(--color-charcoal);
  margin: 0;
  font-size: 1.2rem;
}

.cookie-setting-toggle {
  position: relative;
  width: 50px;
  height: 26px;
}

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

.cookie-setting-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 26px;
}

.cookie-setting-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.cookie-setting-toggle input:checked + .cookie-setting-slider {
  background-color: var(--color-gold);
}

.cookie-setting-toggle input:checked + .cookie-setting-slider:before {
  transform: translateX(24px);
}

.cookie-setting-toggle input:disabled + .cookie-setting-slider {
  background-color: var(--color-gold);
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-setting-description {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.cookie-settings-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive para cookie banner */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 1.25rem 1.5rem;
  }
  
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  
  .cookie-banner-text {
    min-width: 100%;
    font-size: 0.9rem;
  }
  
  .cookie-banner-buttons {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
    text-align: center;
  }
  
  .cookie-settings-content {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .cookie-settings-header h2 {
    font-size: 1.5rem;
  }
  
  .cookie-settings-footer {
    flex-direction: column;
  }
  
  .cookie-settings-footer .cookie-btn {
    width: 100%;
  }
}

/* Responsive para modales */
@media (max-width: 768px) {
  /* En móviles, volver a una columna vertical */
  .modal-body {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 90vh;
  }
  
  .modal-image-column {
    padding: 1.5rem;
    padding-bottom: 0.75rem;
    max-height: 40vh;
  }
  
  .modal-text-column {
    padding: 1.5rem;
    padding-top: 0.75rem;
    max-height: 50vh;
  }
  
  .modal-body h2 {
    font-size: 1.5rem;
  }
}

