/* Poner esto AL INICIO de los estilos del Modal */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Esto asegura que se vea nítido y moderno como el HTML 2 */
body, .modal-content-neon {
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}

/* Crucial: obliga a los inputs y botones a heredar la fuente bonita */
input, button, textarea, select {
    font: inherit; 
}

@font-face {
  font-family: 'Regency Script'; /* Dale un nombre amigable */
  src: url('/static/fonts/RegencyScriptFLF.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Muestra un texto temporal mientras carga */
}

/* ======================================= */
/* === 🚩 VARIABLES GLOBALES Y TEMAS 🚩 === */
/* ======================================= */
:root {
  /* MARCA PRINCIPAL Y ACCENTOS CONSOLIDADOS (Tus colores de control) */
  --color-accent-brand: #0553c3;
  --color-accent-hover: color-mix(in srgb, var(--color-accent-brand) 60%, black);
  
  /* RGB para sombras/transparencias (corresponde a #f7a22b -> 247, 162, 43) */
  --accent-rgb: 5, 83, 195; 
  --color-shadow-glow: var(--accent-rgb);

  --accent: var(--color-accent-brand);
  --accent-600: var(--color-accent-hover); 
  --accent-700: var(--color-accent-hover);
  --cta-accent: var(--color-accent-brand); 

/* TEMAS BASE */
--color-bg-primary: #000000;

/* === CONSOLIDACIÓN DE COLORES DE TEXTO (Dark Theme) === */
/* Color base para generar todo (Blanco puro) */
--color-text-base: #ffffff; 

/* Textos principales (cercanos al blanco) */
--color-text-primary: color-mix(in srgb, var(--color-text-base) 90%, black); /* Ej: #e8e8f6 */

/* Textos secundarios (gris) */
--color-text-secondary: color-mix(in srgb, var(--color-text-base) 60%, black); /* Ej: #a3a7bd */

/* Nuevas variables para fondos de UI */
  --bg-input: rgba(255, 255, 255, 0.05);
  --bg-panel: rgba(17, 20, 34, 0.85);
  
  /* ANTES: black 60% (Muy oscuro) */
  /* AHORA: black 30% (Solo un poco más oscuro que el panel, mantiene el tono azulado) */
  --bg-wrapper: color-mix(in srgb, var(--bg-panel), black 30%);
  --border-ui: rgba(255, 255, 255, 0.1);
  --placeholder-color: rgba(255, 255, 255, 0.4);

  --bg-section: rgba(255, 255, 255, 0.03);

  --bg-solid: rgba(0, 0, 0, 0.7);
/* ======================================================== */
  
  /* Uso de variables consolidadas en componentes */
  --color-bg-theme-toggle: var(--color-accent-hover);
  --color-bg-cta-action: var(--color-accent-brand); 
  --color-bg-cta-hover: var(--color-accent-hover); 

  /* LÍNEAS y BORDES */
  --line: rgba(255, 255, 255, 0.08);
  
  /* GLASSMORPHISM */
  --glass-bg: rgba(31, 31, 31, 0.8);
  --glass-border: rgba(255, 255, 255, 0.125);
  --glass-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.2); 
  --glass-backdrop: blur(16px) saturate(180%);
  --hover-transform: translateY(2px);
  --hover-border: rgba(var(--accent-rgb), 0.5); 
  --dropdown-bg: rgba(20, 20, 20, 0.9);

  --modal-backdrop: rgba(0, 0, 0, 0.7);

  
  /* DISEÑO DE LAYOUT Y MOCKUP (Mantener) */
  --container-max: 1100px;
  /* ... resto de variables de layout y mockup ... */
  --iframe-w: 420px;
  --iframe-h: 829px;
  --img-w: 2663;
  --img-h: 4016;
  --hole-w: 1330;
  --hole-x: 0;
  --hole-y: 0;
  --screen-rx: 0px;
  --screen-ry: 0px;
  --img-nudge-x: -127px;
  --img-nudge-y: -108px;
  --k: 1;
  --zoom: 0.6;
  --stage-shift-x: 75px;
  --stage-shift-y: 80px;

  /* Variables de Mockup Customizer (Mantener) */
  --cz-sub: rgba(233, 232, 243, 0.72);
  --content-scale: 0.9;
  --cz-iframe-w: 420px;
  --cz-iframe-h: 843px;
  --cz-img-w: 1307;
  --cz-img-h: 1998;
  --cz-hole-w: 826;
  --cz-k: 1;
  --cz-zoom: 0.6;
  --cz-hole-x: 0;
  --cz-hole-y: 0;
  --cz-screen-rx: 0px;
  --cz-screen-ry: 0px;
  --cz-img-nudge-x: 0px;
  --cz-img-nudge-y: 0px;
  --cz-stage-shift-x: 0px;
  --cz-stage-shift-y: 0px;
}

/* --- Cálculos de Mockup Hero (Manteniendo la estructura) --- */
:root {
  --scale: calc(var(--k) * (var(--iframe-w) / var(--hole-w)));
  --stage-w: calc(var(--img-w) * var(--scale));
  --stage-h: calc(var(--img-h) * var(--scale));
  --iframe-left: calc(var(--hole-x) * var(--scale));
  --iframe-top: calc(var(--hole-y) * var(--scale));
}

/* --- Cálculos de Mockup Customizer (Manteniendo la estructura) --- */
:root {
  --cz-scale: calc(var(--cz-k) * (var(--cz-iframe-w) / var(--cz-hole-w)));
  --cz-stage-w: calc(var(--cz-img-w) * var(--cz-scale));
  --cz-stage-h: calc(var(--cz-img-h) * var(--cz-scale));
  --cz-iframe-left: calc(var(--cz-hole-x) * var(--cz-scale));
  --cz-iframe-top: calc(var(--cz-hole-y) * var(--cz-scale));
}

/* ======================================= */
/* === LIGHT THEME VARIABLES (ANULACIÓN) === */
/* ======================================= */
.light-theme {
    /* Background */
    --color-bg-primary: #ffffff;

    /* === CONSOLIDACIÓN DE COLORES DE TEXTO (Light Theme) === */
    --color-text-base: #000000; 

    /* Textos principales (cercanos al negro) */
    --color-text-primary: color-mix(in srgb, var(--color-text-base) 90%, white);

    /* Textos secundarios (gris) */
    --color-text-secondary: color-mix(in srgb, var(--color-text-base) 80%, white);

    /* Inversión para modo claro */
    --bg-input: rgba(0, 0, 0, 0.05); /* Gris clarito */
    --bg-panel: rgba(255, 255, 255, 0.95); /* Blanco translúcido */
    --bg-wrapper: color-mix(in srgb, var(--bg-panel), black 5%);
    --border-ui: rgba(0, 0, 0, 0.2);
    --placeholder-color: rgba(0, 0, 0, 0.4);

    --bg-section: rgba(0, 0, 0, 0.06);
    --bg-solid: rgba(255, 255, 255, 0.7);;

    /* GLASSMORPHISM CLARO (Sobrescribe las oscuras) */
    --glass-bg: rgba(255, 255, 255, 0.75); /* Blanco translúcido */
    --dropdown-bg: rgba(245, 245, 250, 0.9); /* Casi blanco sólido */
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); 
    
    /* Variable para el "backdrop" (el fondo oscuro detrás de los modales) */
    --modal-backdrop: rgba(255, 255, 255, 0.6); /* En light theme, quizas quieras desenfoque blanco o gris tenue */
    /* ======================================================== */

    /* Accents (Mantenemos los mismos colores de acento para acción) */
    --color-bg-cta-action: var(--color-accent-brand); 
    --color-bg-cta-hover: var(--color-accent-hover);
    --color-bg-theme-toggle: #cccccc; 

    /* Líneas/Bordes (SE MANTIENE) */
    /* Aumentamos la opacidad de 0.08 a 0.2 para que se vea la línea gris */
    --line: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(0, 0, 0, 0.125);

    /* NUEVA REGLA: Forzar LOGIN/SIGNUP a usar color de acento en tema claro */
    & header nav a#login-link,
    & header nav a#signup-link {
        color: var(--color-accent-brand) !important; 
    }

    /* NUEVA REGLA: Forzar el título "Features" a usar el color de acento en tema claro */
    & .features__title { 
        color: var(--color-accent-brand) !important; 
    }

    & .cz-title {
        color: var(--color-accent-brand) !important;
    }
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  /* Aplica la variable del tema */
  background: var(--color-bg-primary); 
  background-attachment: fixed;
  background-size: cover;
  color: var(--color-text-primary); /* Aplica el color del texto del tema */
  font-family: "Inter", "ui-sans-serif", "system-ui", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on;
}

/* ======================================= */
/* === ESTILOS GLASSMORPHISM (NAV, DROPDOWNS) === */
/* ======================================= */

/* Clase base unificada para todos los elementos glass */
.glass-component {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Efectos glossy para todos los componentes glass */
.glass-component::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  z-index: 1;
}

.glass-component::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.glass-component:hover::after {
  left: 100%;
}

/* Variante con hover effects */
.glass-component-hover:hover {
  transform: var(--hover-transform);
  border-color: var(--hover-border);
  box-shadow: var(--glass-shadow);
}

/* Variante para modales (sin hover effects) */
.glass-modal {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.glass-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  z-index: 1;
}

.text-glow {
  /* CORRECCIÓN 2: Usar RGB de la marca para el glow (sombra) */
  text-shadow: 0 0 24px rgba(var(--color-shadow-glow), 0.45);
}

/* NAV LINK STYLES */
header nav a {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent);
  transition: width 0.3s ease;
  border-radius: 2px;
}

header nav a:not(#login-link):not(#signup-link):hover {
  /* Aplicar el color de hover solo a los enlaces normales */
  color: var(--color-text-base); /* Color base (blanco en oscuro, negro en claro) */
}

header nav a:not(#login-link):not(#signup-link):hover::after {
  width: 100%;
}

/* Dropdown Containers */
.dropdown-background {
  background: var(--dropdown-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

/* Efecto glossy para el fondo del dropdown */
.dropdown-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  z-index: 1;
}

/* Asegurar que el contenido esté por encima de los efectos de fondo */
.dropdown-background > * {
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .container-wrapper {
    padding: 2.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .container-wrapper {
    padding: 2.5rem 4rem;
  }
}

.dropdown-spacing {
  margin-top: 2rem;
}

.full-width-dropdown {
  left: 0;
  right: 0;
  width: 100%;
}

/* Centrado fino del ícono del select en el modal de contacto */
#contact-form .relative .pointer-events-none {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-15%);
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* Dropdown Select Options */
select option {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}

select:focus option {
  background-color: rgba(0, 0, 0, 0.8);
}
/* Selecciona ese wrapper concreto (tiene ambas clases) */
body > .glass.max-w-6xl {
  margin-top: 0rem !important;
}

/* ======================================= */
/* === TESTIMONIALS & FAQ DROP DOWN STYLES === */
/* ======================================= */

/* Testimonials Carousel */
.testimonials-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding: 0 0.5rem;
}

@media (max-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767px) {
  .testimonial-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* FAQ Dropdown Styles */
.faq-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
  min-height: 150px;
}

.user-question {
  background: var(--bg-input);       /* <--- CAMBIO: Gris en Light / Blanco Transp. en Dark */
  border: 1px solid var(--border-ui);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: auto;
  transition: height 0.3s ease;
}

.chatbot-response {
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--color-accent-brand);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  transition: height 0.3s ease;
}

.user-question-content,
.chatbot-response-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.user-question p,
.chatbot-response p {
  flex: 1;
  margin: 0;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  margin-top: 1rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.fade-in-smooth {
  animation: fadeInSmooth 0.8s ease-in-out;
}

.content-fade {
  animation: contentFade 0.6s ease-in-out;
}

@keyframes fadeInSmooth {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* ======================================= */
/* === SECTIONS & FEATURES (styles.css original) === */
/* ======================================= */

/* ===== Layout unificado de secciones ===== */
.section-container {
  width: min(var(--container-max), 100% - 2 * var(--container-pad));
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Quitar cualquier espacio extra del header */
header,
header.section-container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Hero sin relleno superior grande */
#hero.site-section {
  padding-top: 0 !important;
}

/* Si el primer elemento del hero (h1, grid, div) trae margen, lo anulamos */
#hero .section-container > *:first-child {
  margin-top: 0 !important;
}

/* 1) Anula el padding grande de .site-section SOLO en el footer */
footer.site-section {
  padding-block: 0 !important;
}

footer.site-section {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Features (nuevo) ===== */
.features {
  padding: clamp(3rem, 8vw, 6rem) 1.25rem;
}

.features__container {
  max-width: 1120px;
  margin-inline: auto;
}

.features__title {
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 3.25rem;
  /* ≈52px */
  margin: 0 0 clamp(2.25rem, 6vw, 4rem);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem) clamp(2rem, 5vw, 3.5rem);
  justify-items: start;
}

@media (min-width: 900px) {
  .features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 560px;
}

.feature__icon {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35),
    0 0 28px rgba(var(--accent-rgb), 0.25);
  overflow: hidden;
}

.feature__icon::after {
  content: "";
  position: absolute;
  inset: -14px;
  background: radial-gradient(
    35% 35% at 50% 50%,
    rgba(var(--accent-rgb), 0.4),
    transparent 70%
  );
  filter: blur(10px);
  z-index: -1;
}

.feature svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature__heading {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1.5rem;
  /* ≈24px */
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.feature__text {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  line-height: 1.7;
}

/* Salto de línea solo en desktop (útil si lo necesitas en títulos largos) */
.br-md {
  display: inline;
}

@media (min-width: 800px) {
  .br-md {
    display: block;
  }
}

/* micro-interacción */
@media (prefers-reduced-motion: no-preference) {
  .feature {
    transform: translateY(8px);
    opacity: 0.96;
    transition: 0.5s ease;
  }

  .feature:hover {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========= Final CTA (centered, brand blue) ========= */

.cta-center {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 1rem clamp(2rem, 5vw, 3.5rem);
  display: grid;
  place-items: center;
}

.cta-shell {
  text-align: center;
  max-width: 780px;
}

.cta-heading {
  font-weight: 750;
  line-height: 0.85;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  letter-spacing: 0.2px;
  margin: 0 0 1.15rem;
  text-shadow: 0 0 24px rgba(var(--color-shadow-glow), 0.25);
}

.cta-lead {
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.75;
  margin: 0 auto 2.2rem;
  max-width: 640px;
}

/* Añade esta nueva clase junto a las reglas de .cta-heading y .cta-lead */
.cta-heading__light {
    font-weight: 400; /* Hace que la fuente sea mucho más ligera */
    opacity: 0.9; /* Opcional: la hace ligeramente menos brillante */
    color: var(--color-text-primary); /* <--- CORRECCIÓN CLAVE: Usa la variable de tema */
    letter-spacing: -0.75px;
}

/* AJUSTE: Final CTA Button */
.cta-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 2.4rem;
  border-radius: 1.75rem;
  font-weight: 700;
  color: #fff;
  /* USAR VARIABLES CONSOLIDADAS */
  background: var(--color-bg-cta-action); 
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.38); /* Usar el RGB del accento */
  transition: transform 0.22s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.cta-action:hover {
  transform: translateY(-1px); /* Estandarizar solo la traslación -1px */
  background: var(--color-bg-cta-hover); 
  /* Aplicar la sombra fuerte de hover */
  box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.5); 
}

/* util */
.sm-hidden {
  display: none;
}

@media (min-width: 640px) {
  .sm-hidden {
    display: inline;
  }
}

#cta .section-container {
  display: flex;
  justify-content: center;
}

.font-regency {
    /* Llama al nombre de la fuente que definiste en @font-face */
    font-family: 'Regency Script', cursive !important;
    
    /* Ajusta el tamaño para que una fuente cursiva (que suele ser más pequeña) se vea bien */
    font-size: 1.75em; /* Aumentado ligeramente para mejor visibilidad */
    
    /* Asegura que el texto no se muestre con la negrita de .cta-heading */
    font-weight: normal !important;
    
    /* Aumenta el espaciado entre letras si lo deseas, para que la tipografía se aprecie más */
    letter-spacing: 1px;
}

/* ======================================= */
/* === CHATBOT FLOTANTE === */
/* ======================================= */

/* CONTENEDOR DEL CHATBOT */
.chat-container {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 273px; /* Mismo ancho visual del hero */
  height: 468px; /* Mismo alto visual del hero (829px * 0.6) */
  background: transparent;
  border-radius: 1rem;
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.3);
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 10000;
}

/* estado visible */
.chat-container.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* IFRAME - Escalado igual que el hero */
.chat-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 420px; /* Tamaño real del iframe */
  height: 720px; /* Tamaño real del iframe */
  transform: scale(0.65); /* Mismo scale que el hero */
  transform-origin: top left; /* Mismo origin que el hero */
  background: #000;
  border-radius: 1rem;
  box-shadow: none;
  overflow: hidden;
  outline: 0;
}

/* Botón flotante (igual que ya tenías) */
.chatbot-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-brand), var(--color-accent-hover));
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.08);
}

.chatbot-toggle svg {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 480px) {
  .chat-container {
    right: 16px;
    bottom: 90px;
    width: calc(100vw - 32px);
    height: calc(100vh - 120px);
  }

  .chat-iframe {
    width: calc(100vw - 32px - 24px);
    height: calc(100vh - 120px - 24px);
  }

  .chatbot-toggle {
    right: 16px;
    bottom: 16px;
  }
}
/* ======================================= */
/* === MOCKUP HERO (MOCKUP + IFRAME) === */
/* ======================================= */

/* --- Wrapper: reporta dimensiones ya escaladas (SECCION HERO) --- */
#hero-mockup-container .mockup-wrap {
  position: relative;
  display: inline-block;
  width: calc(var(--stage-w) * var(--zoom));
  height: calc(var(--stage-h) * var(--zoom));
  margin-left: var(--stage-shift-x);
  margin-top: var(--stage-shift-y);
  overflow: visible;
}

/* --- Base (igual que tenías) --- */
.stage {
  position: relative;
  width: var(--stage-w);
  height: var(--stage-h);
}

.stage iframe {
  position: absolute;
  left: var(--iframe-left);
  top: var(--iframe-top);
  width: var(--iframe-w);
  height: var(--iframe-h);
  border: 0;
  border-radius: var(--screen-rx) / var(--screen-ry);
  background: #000;
}

/* styles.css (Línea ~733) - RESTAURADO Y MEJORADO PARA ANIMACIÓN */
.stage img.overlay {
  position: absolute;
  inset: 0;
  width: var(--stage-w);
  height: var(--stage-h);
  object-fit: cover;
  
  /* Mantenemos el nudge original */
  transform: translate(var(--img-nudge-x), var(--img-nudge-y));
  
  /* AGREGADO: Transición suave para cuando la imagen rote independientemente */
  transition: transform 0.8s ease-in-out;
  
  pointer-events: none; 
  user-select: none;
  -webkit-user-drag: none;
}

/* ======================================= */
/* === 🚩 NUEVOS ESTILOS PARA LA ANIMACIÓN (LANDSCAPE) 🚩 === */
/* ======================================= */

/* 1. Añade transiciones al stage para un movimiento suave */
.mockup-wrap > .stage {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--stage-w);
    height: var(--stage-h);
    transform: scale(var(--zoom));
    transform-origin: top left;
    transition: transform 0.8s ease-in-out, width 0.8s ease-in-out, height 0.8s ease-in-out; 
}

/* styles.css (Línea ~744) - MODIFICADO para dimensiones y centrado del contenedor final */
.mockup-wrap.rotated {
    width: 700px;
    height: 400px;
    /* Centrado Físico */
    margin-left: calc(50% - 350px); 
    margin-top: calc(50vh - 200px); 
}

/* styles.css (Línea ~751) - MODIFICADO: Solo Escala + Tus Coordenadas */
.mockup-wrap.rotated .stage {
    /* YA NO ROTA (-90deg eliminado). Solo escala. */
    /* Restauramos tus valores -47%, -58% */
    transform: 
        scale(calc(var(--zoom) * 1)) 
        translate(-10%, -20%); /* <<<--- RESTAURADO A TU PETICIÓN */
    
    transform-origin: top left; 
}

/* NUEVA REGLA: Rotar solo la imagen del teléfono dentro del stage quieto */
.mockup-wrap.rotated .stage img.overlay {
    /* Mantenemos el nudge original y AGREGAMOS la rotación */
    transform: 
        translate(var(--img-nudge-x), var(--img-nudge-y)) 
        rotate(-90deg);
    
    /* Aseguramos que rote sobre su propio centro para no salir volando */
    transform-origin: center center; 
}

/* 1. Cambiamos la forma de la "caja" de contenido cuando está activado */
.mockup-wrap.rotated #mockup-content {
    /* INVERTIMOS DIMENSIONES: Ahora es ancho (829px) y bajo (420px) */
    width: var(--iframe-h) !important; 
    height: var(--iframe-w) !important; 
    
    /* AJUSTAR POSICIÓN DE LA CAJA DE VIDEO AL TANTEO */
    /* Como el video NO rota, solo muevelo X/Y para centrarlo sobre el teléfono acostado */
    transform: translate(-233px, 400px); 
}

/* 2. El video simplemente llena esa caja horizontal (SIN ROTACIONES RARAS) */
.ted #mockup-content video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* O 'contain' si prefieres ver todo el video sin recortes */
    border: none;
    transform: none; /* Limpio, sin rotaciones */
}

/* 3. Estilos del contenido dinámico (iframe/video) - Mantiene las dimensiones originales */
/* styles.css - MODIFICA ESTAS REGLAS */

/* Estado normal: Cuando aparece el video, lo hace suave (0.5s) */
#mockup-content {
    position: absolute;
    left: var(--iframe-left);
    top: var(--iframe-top);
    width: var(--iframe-w);
    height: var(--iframe-h);
    border-radius: var(--screen-rx) / var(--screen-ry);
    background: #000;
    overflow: hidden;
    
    /* Fade IN suave */
    transition: opacity 0.5s ease-in-out; 
    opacity: 1;
}

/* Estado oculto: DESAPARECE INSTANTÁNEAMENTE */
#mockup-content.video-active {
    opacity: 0 !important;
    
    /* Esto es lo que elimina el glitch: */
    transition: none !important; 
}

#mockup-content iframe,
#mockup-content video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    object-fit: cover;
}
/* ======================================= */
/* === FOOTER (mf-*) === */
/* ======================================= */

/* ====== Dummy page content para ver el footer en contexto (Se mantienen) ====== */
.page-dummy {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 56px 20px;
}

.page-dummy .wrap {
  text-align: center;
  max-width: 900px;
}

.page-dummy h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.2px;
}

.page-dummy p {
  margin: 0 auto;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ====== Footer compacto ====== */
.mf-footer {
  border-top: 1px solid var(--line);
}

.mf-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 24px;
}

/* --- fila superior: marca + CTA (compacto) --- */
.mf-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

@media (max-width: 820px) {
  .mf-top {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.mf-brand {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
}

.mf-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.mf-logo .logo-mark {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--color-text-primary);
}

.mf-brand h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.mf-brand p {
  margin: 4px 0 0;
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 0.98rem;
}

.mf-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .mf-cta {
    justify-content: flex-start;
  }
}

.mf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
  font-size: 0.98rem;
}

/* Estado Normal */
.mf-btn--primary {
  background: var(--color-accent-brand);
  color: #fff;
  /* Aplicar sombra de GLOW en estado normal (simulando shadow-glow) */
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.35); /* Sombra inicial */
}

/* Estado Hover */
.mf-btn--primary:hover {
  transform: translateY(-1px); /* <-- Animación de traslado sutil */
  background: var(--color-accent-hover);
  /* Aumentar la sombra en hover */
  box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.5); 
}

.mf-btn--ghost {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--line);
}

.mf-btn--ghost:hover {
  /* CAMBIO: Usamos la variable de borde estándar en lugar de la marca */
  border-color: var(--border-ui);
  
  /* Fondo dinámico (gris claro / transparente) */
  background: var(--bg-input);
  
  /* Texto dinámico */
  color: var(--color-text-primary);
}
/* --- separador fino --- */
.mf-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 14px 0 24px;
}

/* --- columnas de enlaces --- */
.mf-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 26px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .mf-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .mf-links {
    grid-template-columns: 1fr;
  }
}

.mf-col h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  color: var(--color-text-primary); /* <--- CORRECCIÓN CLAVE: Usa la variable de tema */
}

.mf-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.mf-col a {
  color: var(--color-text-secondary);
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.mf-col a:hover {
  color: #fff;
  transform: translateX(2px);
}

/* Newsletter compacto */
.mf-news {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.mf-news p {
  margin: 0 0 8px;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* DESPUÉS */
.mf-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mf-form .mf-btn {
  width: 100%;
  justify-self: stretch;
  /* botón ocupa todo el ancho */
}

.mf-input {
  background: var(--bg-input);
  border: 1px solid var(--border-ui);
  color: var(--color-text-primary);
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.mf-input::placeholder {
  color: #8086a6;
}

.mf-btn--full {
  width: 100%;
  justify-content: center;
}

/* --- tira inferior --- */
.mf-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .mf-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.mf-social {
  display: flex;
  gap: 10px;
}

.mf-social a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-solid);
  border: 1px solid var(--border-ui);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mf-social a:hover {
  border-color: var(--accent-600);
  transform: translateY(-1px);
}

.mf-social svg {
  width: 18px;
  height: 18px;
}

.caret {
  display: inline-block;
  width: 0.6ch;
  height: 1em;
  margin-left: 0.1ch;
  background: currentColor;
  vertical-align: -0.1em;
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ======================================= */
/* === BOTÓN SIMPLE DE CAMBIO DE TEMA (floating-theme-button) === */
/* ======================================= */

.floating-theme-button {
  position: fixed;
  right: 30px;
  bottom: 120px; /* Posición solicitada */
  z-index: 1000;
  width: 60px; /* Anchura solicitada */
  height: 60px; 
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Redondeado */
  background: linear-gradient(135deg, var(--color-accent-brand), var(--color-accent-hover));
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.floating-theme-button:hover {
  transform: scale(1.08);
}

.floating-theme-button i {
  font-size: 24px;
}

/* 2. Responsive Adjustment para que coincida con el chatbot en móvil */
@media (max-width: 480px) {
  .floating-theme-button {
    right: 16px;
    bottom: 96px; 
  }
}

/* Estilos del Contenedor Principal */
.ai-design-wrapper {
  width: 90vw;
  max-width: 1050px;
  position: relative;
  padding-inline: 1.5rem; /* Mantiene el padding lateral */
  padding-block: 2.5rem; /* Aumenta el padding vertical a 2.5rem (~40px) */
  border-radius: 1.75rem;
  background: var(--bg-wrapper);
  border: 2px solid var(--color-accent-brand);
  display: grid;
  grid-template-rows: auto 1fr;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px; /* Opcional: para darle espacio de respiro con la sección Features */
  overflow: visible;
}

/* Cabecera */
.cz-header {
  margin-bottom: 1.5rem;
}

.cz-title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.cz-subtitle {
  margin-top: 0.25rem;
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* Botón de flecha (Next) */
.cz-next-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-accent-brand), var(--color-accent-hover));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 24px rgba(var(--accent-rgb), 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  backdrop-filter: blur(4px);
}

.cz-next-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 32px rgba(67, 97, 238, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  filter: saturate(1.08);
}

.cz-next-btn svg {
  width: 24px;
  height: 24px;
}
/* Área de Contenido: Usamos GRID para los 3 paneles (1fr para los lados, 1.5fr para el centro) */
.cz-content-area {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 300px 1fr 300px; /* Anchos fijos para los paneles laterales */
  gap: 1.5rem;
  background: transparent;
  border: none;
}

/* Base del panel de control */
.control-panel {
  position: relative;
  min-height: min-content; /* Asegura que la altura se ajuste al contenido mínimo */
  background: var(--bg-panel);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  color: var(--color-text-primary);
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  min-width: 0;
}

/* Ajuste de anchos/posiciones que ya no son necesarios en grid */
.left-panel,
.right-panel,
#control-panel {
  width: auto;
  left: auto;
  border: none;
}

.left-panel,
.right-panel {
  min-width: 300px;
}

.left-panel {
  border: 2px solid var(--color-accent-brand);
}

.right-panel {
  border: 2px solid var(--color-accent-brand);
}

#control-panel {
  border: 2px solid var(--color-accent-brand);
}

/* Cabecera de los paneles */
.panel-header {
  padding: 12px 20px;
  background: var(--glass-bg);
  border-bottom: 2px solid var(--color-accent-brand);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  text-align: center;
  width: 100%;
  font-size: 1rem;
  font-weight: 700;
  background: none;
  color: var(--color-text-primary); /* Ahora usará el color correcto */
  margin: 0;
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  /* Estilos de scrollbar copiados */
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-brand);
}

.panel-content::-webkit-scrollbar {
  width: 8px;
}
.panel-content::-webkit-scrollbar-thumb {
  background: var(--color-accent-brand);
  border-radius: 8px;
}
.panel-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-hover);
}
.panel-content::-webkit-scrollbar-track {
  background: transparent;
}

/* Secciones y Controles */
.panel-section {
  margin-bottom: 25px;
  background: var(--bg-section);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid var(--border-ui);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  cursor: pointer;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text-primary);
}
.section-toggle {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}
.section-toggle.collapsed {
  transform: rotate(-90deg);
}
.section-content {
  display: grid;
  gap: 15px;
}
.cz-colors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-top: 10px;
}
.cz-color-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.9rem;
  background: var(--bg-input);      /* <--- CAMBIO: Usa fondo dinámico */
  border: 1px solid var(--border-ui);
}
.cz-color-caption {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}
.cz-swatch-round {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border-ui);
  cursor: pointer;
  padding: 0;
  background: none;
}
.cz-swatch-round::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 999px;
}
.cz-swatch-round::-webkit-color-swatch {
  border: none;
  border-radius: 999px;
}
.cz-swatch-round::-moz-color-swatch {
  border: none;
  border-radius: 999px;
}
.sliders-grid {
  display: grid;
  gap: 15px;
  margin-bottom: 10px;
}
.slider-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  align-items: start;
}
.control-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.control-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
}
.control-value {
  font-size: 0.8rem;
  opacity: 0.8;
}
.empty-slot {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}


input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  /* CORREGIDO: Usa el color principal */
  background: var(--color-accent-brand); 
  cursor: pointer;
  /* CORREGIDO: Usa el RGB de la marca para la sombra */
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6);
}

.action-button {
  /* CORREGIDO: Usa el color principal */
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.35); /* Sombra inicial */
  background: var(--color-accent-brand); 
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.action-button:hover {
  transform: translateY(-1px); /* Estandarizar la traslación -1px */
  background: var(--color-accent-hover); 
  /* Aplicar la sombra fuerte de hover */
  box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.5); 
}

/* Estilos del Mockup (solo para visualización en el panel derecho) */
/* USAMOS LAS VARIABLES Y CLASES CZ- CORREGIDAS */
.cz-mockup-wrap {
  position: relative;
  display: inline-block;
  /* Usamos las variables cz-stage-w/h y cz-zoom */
  width: calc(var(--cz-stage-w) * var(--cz-zoom) * var(--content-scale));
  height: calc(var(--cz-stage-h) * var(--cz-zoom) * var(--content-scale));
  margin: 0;
  overflow: hidden;
}
.cz-mockup-wrap > .cz-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--cz-stage-w); /* Usamos cz-stage-w */
  height: var(--cz-stage-h); /* Usamos cz-stage-h */
  transform: scale(var(--content-scale)) scale(var(--cz-zoom)); /* Usamos cz-zoom */
  transform-origin: top left;
}
.cz-stage {
  position: relative;
  width: var(--cz-stage-w); /* Usamos cz-stage-w */
  height: var(--cz-stage-h); /* Usamos cz-stage-h */
}
.cz-stage iframe {
  position: absolute;
  left: var(--cz-iframe-left); /* Usamos cz-iframe-left */
  top: var(--cz-iframe-top); /* Usamos cz-iframe-top */
  width: var(--cz-iframe-w); /* Usamos cz-iframe-w */
  height: var(--cz-iframe-h); /* Usamos cz-iframe-h */
  border: 0;
  border-radius: var(--cz-screen-rx) / var(--cz-screen-ry); /* USAMOS cz-screen-rx/ry */
  background: #000;

  /* Centrado con control de posición vertical */
  transform: translate(
    calc((var(--cz-stage-w) - var(--cz-iframe-w)) / 2 - var(--cz-iframe-left)),
    calc(
      (var(--cz-stage-h) - var(--cz-iframe-h)) / 2 - var(--cz-iframe-top) + 31px
    )
  );
}
.cz-stage img.cz-overlay {
  position: absolute;
  inset: 0;
  width: var(--cz-stage-w); /* Usamos cz-stage-w */
  height: var(--cz-stage-h); /* Usamos cz-stage-h */
  object-fit: fill;
  transform: translate(
    var(--cz-img-nudge-x),
    /* USAMOS cz-img-nudge-x/y */ var(--cz-img-nudge-y)
  );
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
#right-panel-content {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Responsive para móvil */
@media (max-width: 1200px) {
  /* En pantallas más pequeñas, apilamos los paneles en una columna */
  .cz-content-area {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ai-design-wrapper {
    min-height: 95vh;
    overflow-y: auto;
  }
  /* Ajustar el tamaño del mockup para que quepa en un panel de ancho completo */
  .cz-mockup-wrap {
    /* Usamos la clase CZ- para aislar */
    transform: scale(0.8); /* Reducir aún más la vista previa del móvil */
  }
  .cz-next-btn {
    top: 16px;
    right: 16px;
  }
}

/* ==================== Estilos del Botón BETA (Nuevo) ==================== */

.cz-beta-btn {
  position: absolute;
  top: 24px;
  right: 90px; /* Ajustar 'right' para que esté a la izquierda de .cz-next-btn (52px + 14px de separación) */
  height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.05);
  border: 2px solid var(--accent); /* Borde de color de marca */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.18s ease;
  backdrop-filter: blur(4px);
  z-index: 10; /* Asegurar que está sobre el wrapper */
}

.cz-beta-btn:hover {
  transform: translateY(-1px) scale(1.01);
  /* Fondo: Ya está usando color-mix, se mantiene */
  background: color-mix(in srgb, var(--color-accent-brand) 10%, transparent); 
  /* CORRECCIÓN: Usar ACCENT-RGB para el glow (sombra) */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), 0 0 18px rgba(var(--accent-rgb), 0.3);
}

/* Responsive para móvil (Ajustar la posición de ambos botones) */
@media (max-width: 1200px) {
  .cz-beta-btn {
    /* Mover el botón BETA más arriba en móvil para que no colisione o se vea raro */
    top: 60px;
    right: 16px;
    height: 40px;
    font-size: 0.85rem;
    padding: 0 14px;
  }

  .cz-next-btn {
    top: 16px; /* Mantener la posición original en móvil */
    right: 16px;
  }
}

.cz-content-area {
  margin-top: 1rem !important;
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 1.5rem;
  background: transparent;
  border: none;
}

/* Aplica a todos los inputs y textareas */
::placeholder {
  color: var(--placeholder-color) !important;
  opacity: 1;
}

/* Forzar inputs de Tailwind a usar variables CSS si tienen la clase .bg-white/5 */
input, textarea, select {
    color: var(--color-text-primary) !important;
}

/* Estilos para el botón de Google */
.btn-google {
    background-color: #ffffff;
    color: #000000;
    transition: background-color 0.3s, color 0.3s;
}
.btn-google:hover {
    background-color: #e5e7eb; /* Gris claro al hover */
}

/* En Light Mode: Fondo negro, Texto blanco */
.light-theme .btn-google {
    background-color: #000000;
    color: #ffffff;
}
.light-theme .btn-google:hover {
    background-color: #333333; /* Gris oscuro al hover */
}

#ai-prompt {
  width: 100%;
  height: 80px;
  /* Aquí usamos las variables para que cambien con el tema */
  background: var(--bg-input);
  border: 1px solid var(--border-ui); 
  color: var(--color-text-primary);
  
  /* Resto de estilos estéticos */
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 15px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

#ai-prompt:focus {
  outline: none;
  border-color: var(--color-accent-brand); /* Color de acento al escribir */
}

/* CAMBIO DE LOGO EN MODO CLARO */

/* Cuando se active .light-theme, busca la clase .theme-logo y cambia la imagen */
.light-theme .theme-logo {
  /* La ruta ../img/ sale de la carpeta css y entra a la carpeta img */
  content: url('../img/Business_logo_black.png');
}

/* ======================================= */
/* === CORRECCIÓN DE INPUTS EN MODALES === */
/* ======================================= */

/* Aplica estilos automáticos a los inputs dentro de modales glass */
.glass-modal input,
.glass-modal textarea,
.glass-modal select {
    background-color: var(--bg-input) !important;    /* Gris en Light / Transparente en Dark */
    border: 1px solid var(--border-ui) !important;   /* Gris visible en Light / Blanco tenue en Dark */
    color: var(--color-text-primary) !important;     /* Texto correcto según el tema */
    transition: all 0.3s ease;
}

/* Efecto al hacer clic (Focus) */
.glass-modal input:focus,
.glass-modal textarea:focus,
.glass-modal select:focus {
    border-color: var(--color-accent-brand) !important; /* Borde azul de tu marca */
    outline: none;
    background-color: var(--bg-input) !important;
}

/* =========================================
   AÑADIR AL FINAL DE STYLES.CSS
   Estilos EXACTOS del Modal Neon "Llegaste Temprano"
   ========================================= */

/* 1. Fondo Oscuro (Overlay) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    
    /* Flexbox para centrar */
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* 2. La Caja del Modal (Estilo Neon idéntico a tu referencia) */
.modal-content-neon {
    /* Definimos variables locales para aislar los colores exactos */
    --lime-bg: #CCEB48;
    --dark-green: #1A3215;
    --blue-title: #0553c3;
    --alert-bg: #DEE8F9; 
    --white: #FFFFFF;

    position: relative;
    background-color: var(--lime-bg);
    color: var(--dark-green);
    
    width: 90%;
    max-width: 450px;
    padding: 40px 30px;
    
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    border: 3px solid rgba(255,255,255,0.25);
    
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    
    /* Fuente específica para todo el modal */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Animación de entrada suave */
    transform: translateY(20px) scale(0.5);
    animation: floatIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes floatIn {
    to { opacity: 1; transform: translateY(0) scale(0.8); }
}

/* 3. Botón Cerrar */
.close-btn-neon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-green);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
}
.close-btn-neon:hover { opacity: 1; }

/* 4. Icono con Animación de Rebote */
.modal-icon-neon {
    font-size: 3.5rem;
    margin-bottom: -10px;
    animation: bounce 2s infinite;
    display: block; /* Asegura que ocupe su linea */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* 5. Títulos y Textos */
h2.modal-title-neon {
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 900;
    color: var(--blue-title);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.5px;
    font-family: 'Segoe UI', sans-serif;
}

p.modal-body-neon {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #333;
    margin: 0;
    font-weight: 400;
}

/* 6. Contador Estilizado */
.countdown-container-neon {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
    padding: 15px;
    background: rgba(255,255,255,0.4);
    border-radius: 15px;
    border: 1px solid rgba(26, 50, 21, 0.1);
}

.count-box-neon {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.count-number-neon {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-green);
    line-height: 1;
}

.count-label-neon {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-green);
    margin-top: 5px;
    opacity: 0.8;
}

/* 7. Caja de Oferta */
.offer-box-neon {
    background: var(--alert-bg);
    border-radius: 12px;
    padding: 15px;
    text-align: left;
    font-size: 0.95rem;
    color: #000;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.highlight-text-neon {
    color: var(--dark-green);
    font-weight: 800;
}

/* 8. Formulario e Inputs */
form.modal-form-neon {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.modal-input-neon {
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    border: 2px solid var(--blue-title);
    background: #fff;
    color: #333 !important; /* Forzar color oscuro */
    font-size: 1rem;
    text-align: center;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

/* Placeholder específico */
.modal-input-neon::placeholder { 
    color: #A0A0A0 !important; 
    opacity: 1;
}

.modal-btn-neon {
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    border: none;
    background: var(--dark-green);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(26, 50, 21, 0.2);
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}