/* =====================
   Ranquel Tech Lab - Estilos Globales
   Archivo: styles.css
   Tema: inspirado en Shadcn / Shadcnblocks
   ===================== */

/* Tokens (Shadcn-like) */
:root{
  /* Base (inspirado en el look corporativo de referencia) */
  --background: #f7f8fb;
  --foreground: #182236;
  --card: #ffffff;
  --card-foreground: #182236;
  --popover: #ffffff;
  --popover-foreground: #182236;
  --primary: #005f8f;
  --primary-foreground: #ffffff;
  --secondary: #eef2f6;
  --secondary-foreground: #1a273d;
  --muted: #f2f4f8;
  --muted-foreground: #5b6472;
  --accent: #dfe7ef;
  --accent-foreground: #1a273d;
  --destructive: oklch(57.7% 0.245 27.325);
  --destructive-foreground: oklch(98.5% 0 0);
  --border: #d6dbe4;
  --input: #d6dbe4;
  --ring: #005f8f;

  --radius: 8px;

  /* Sombras (suaves) */
  --shadow-xs: 0 1px 2px rgba(14, 30, 58, 0.06);
  --shadow-sm: 0 10px 22px rgba(14, 30, 58, 0.08);
  --shadow-md: 0 16px 32px rgba(14, 30, 58, 0.12);
  --shadow-lg: 0 26px 50px rgba(14, 30, 58, 0.18);

  /* Mapeo a variables existentes del sitio */
  --bg: var(--background);
  --bg-2: var(--secondary);
  --surface: var(--card);
  --text: var(--foreground);
  --text-muted: var(--muted-foreground);

  /* CTA principal */
  --accent: var(--primary);
  --accent-600: #004f78;
  --accent-700: #003a58;
  --ink-on-accent: var(--primary-foreground);

  /* Compat (rgb) */
  --accent-rgb: 0,95,143;
  --bg-rgb: 247,248,251;
  --text-rgb: 24,34,54;
}
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body{
  height: 100%;
  scroll-behavior: smooth;
}

body{
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  line-height: 1.65;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
}

.wrap{
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.panel{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

.panel::before{
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0b78a8 0%, #6cc24a 100%);
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 6px;
  padding: .8rem 1.35rem;
  font-weight: 700;
  min-height: 46px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.btn-accent{
  background: var(--accent);
  color: var(--ink-on-accent);
  box-shadow: var(--shadow-sm);
  text-transform: none;
}

.btn-accent:hover{
  background: rgba(242, 164, 155, 0.26);
  transform: translateY(-2px);
}

.btn-accent:active{
  background: var(--accent-700);
  transform: translateY(0);
}

.btn-ghost{
  color: var(--text);
  border: 1px solid var(--border);
  background: #fff;
}

.btn-ghost:hover{
  background: var(--secondary);
  border-color: var(--border);
}


.neon{
  text-shadow: 0 2px 18px oklch(0% 0 0 / 0.18);
}


.glow{
  box-shadow: var(--shadow-lg);
}


.badge{
  display: inline-block;
  border: 1px solid #cfd7e2;
  background: #eef3f8;
  color: #3a4b63;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;
}


.grid{
  display: grid;
  gap: 1rem;
}

/* Utility helpers (remove inline styles) */
.mt-4{ margin-top: 4px; }
.mt-6{ margin-top: 6px; }
.mt-8{ margin-top: 8px; }
.mt-16{ margin-top: 16px; }
.mt-20{ margin-top: 20px; }
.mt-24{ margin-top: 24px; }

.text-muted{ color: var(--text-muted); }
.text-dark{ color: #111111; }

.section-pad-lg{ padding-top: 80px; padding-bottom: 80px; }
.section-pad-sm{ padding: 24px 0; }
.panel-pad{ padding: 20px; }
.title-xl{ font-size: clamp(26px, 4vw, 40px); font-weight: 800; }

.no-border{ border: 0; }
.noscript-hidden{ display: none; visibility: hidden; }

#leadForm{ display: none; }
#mobileMenu{ display: none; }
#vistaReservas{ display: none; }
#vistaOpciones{ display: none; }

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

@media (min-width: 768px){
  .grid-3{
    grid-template-columns: repeat(3, 1fr);
  }
}

header.backdrop{
  background: #ffffff;
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #d6dbe4;
  box-shadow: 0 12px 32px rgba(16, 28, 48, 0.08);
}

header nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

.nav-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select{
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px 8px 40px;
  font-weight: 600;
  cursor: pointer;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: 12px center;
}

.lang-select[data-flag="es"]{
  background-image: url('./images/flag-es.svg');
}

.lang-select[data-flag="en"]{
  background-image: url('./images/flag-en.svg');
}

.nav-whatsapp{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #25D366; /* WhatsApp brand green */
  text-decoration: none;
  background: transparent;
}

.nav-whatsapp img.icon,
.nav-whatsapp svg{
  width: 18px;
  height: 18px;
  display:block;
}

.visually-hidden{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

header .logo{
  font-weight: 700;
  letter-spacing: .6px;
  color: #0b1b33;
  text-decoration: none;
}

.mobile-menu{
  border-top: 1px solid var(--border);
}

.mobile-menu ul{
  padding: 8px 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.mobile-menu a{
  display: block;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease;
}

.mobile-menu a:hover{
  background: #eef3f8;
}

a:focus, button:focus{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

.thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #f2f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb svg{
  width: 70%;
  height: 70%;
  color: var(--text);
}

.thumb-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.section-padding{
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-title{
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  text-align: center;
  color: #0f1f36;
  letter-spacing: 0.2px;
}

.text-center{
  text-align: center;
}

.about-grid{
  display: grid;
  gap: 1rem;
  margin-top: 16px;
}

/* ===== ABOUT (hacerlo más “premium”, mismo tono que el footer) ===== */
#about{
  background: radial-gradient(1200px 600px at 20% -10%, rgba(70, 150, 255, .22), transparent 60%),
              linear-gradient(180deg, #071a33 0%, #061226 100%);
  color: rgba(255,255,255,.88);
}

#about .section-title{
  color: #ffffff;
}

#about p{
  color: rgba(255,255,255,.86);
}

#about .about-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}

#about .about-card .btn{
  border-color: rgba(255,255,255,.22);
}

#about .about-points{
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

#about .about-points li{
  color: rgba(255,255,255,.88);
}

#about .about-points strong{
  color: #ffffff;
}

#about .about-metrics{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#about .metric{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

#about .metric-num{
  display: block;
  font-weight: 900;
  font-size: 20px;
  color: #ffffff;
}

#about .metric-label{
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
}

@media (max-width: 720px){
  #about .about-metrics{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#about .about-media .img-splash{
  box-shadow: 0 26px 80px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.12);
}

@media (min-width: 768px){
  .about-grid{
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.about-grid p{
  margin-top: 12px;
  color: inherit;
}

/* Desde IA Aplicada hacia abajo: fondo azul como "Sobre nosotros" */
#ia,
#marketing,
#metodo,
#videollamada,
#mapa,
#contacto,
footer{
  background: linear-gradient(135deg, #0b2a4a, #0d3b66);
  color: #ffffff;
}

#ia .section-title,
#marketing .section-title,
#metodo .section-title,
#videollamada .section-title,
#mapa .section-title,
#contacto .section-title{
  color: #ffffff;
}

#ia p,
#marketing p,
#metodo p,
#videollamada p,
#mapa p,
#contacto p{
  color: rgba(255,255,255,.78);
}

#ia .panel p,
#marketing .panel p,
#metodo .panel p{
  color: rgba(255,255,255,.78);
}

#services .panel h3{
  font-size: 18px;
  font-weight: 700;
}

#services .panel p{
  margin-top: 4px;
  color: var(--text-muted);
}

#ia p{
  margin-top: 12px;
  color: rgba(255,255,255,.78);
  max-width: 960px;
  margin-inline: auto;
}

#ia .panel h3{
  font-size: 18px;
  font-weight: 700;
}

#ia .panel p{
  color: rgba(255,255,255,.78);
}

.marketing-subtitle{
  margin-top: 12px;
  color: rgba(255,255,255,.78);
  max-width: 960px;
  margin-inline: auto;
}

.marketing-icons{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 22px;
}

.marketing-icon{
  height: 48px;
  width: auto;
}

.metodo-grid{
  display: grid;
  gap: 1rem;
  margin-top: 24px;
  align-items: start;
}

@media (min-width: 768px){
  .metodo-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  
  .step{
    max-width: none;
    width: 100%;
  }
  
  .step-left{
    justify-self: stretch;
    transform: none;
  }
  
  .step-right{
    justify-self: stretch;
    transform: none;
  }
}

.step .thumb{
  margin-top: 8px;
}

.step h3{
  font-weight: 700;
}

.step p{
  white-space: pre-wrap;
  margin-top: 2px;
  color: var(--text-muted);
  font-family: inherit;
}

#vistaOpciones ul{
  margin-top: 8px;
  display: grid;
  gap: 8px;
  list-style: none;
}

#vistaOpciones li{
  color: var(--text-muted);
}

#vistaOpciones h3{
  font-weight: 700;
}

.cta-rail{
  border: 1px solid #d6dbe4;
  border-radius: 12px;
  background: #f5f8fc;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.cta-rail > div{
  display: grid;
  gap: 6px;
}

.cta-title{
  font-size: clamp(18px, 2.5vw, 22px);
}

footer{
  border-top: none;
  margin-top: 48px;
  background: #0f1f36;
  color: #f7f9fb;
}

.footer-content{
  padding: 48px 0 96px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: center;
}

.footer-icons{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-phone{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f7f9fb;
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  transition: all 0.2s ease;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
}

.footer-phone:hover{
  border-color: var(--accent);
  background: rgba(0,0,0,.04);
  transform: translateY(-1px);
}

.footer-icon{
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  color: #f7f9fb;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-icon:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-2px);
}

[data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  transition: transform .6s ease, opacity .6s ease;
}

.reveal-in{
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.mapa-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mapa-embed{
  margin-top: 12px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(12, 25, 48, 0.2);
}

@media (max-width: 640px){
  #hero .hero-buttons{
    flex-direction: column;
    align-items: stretch;
  }
  
  #hero .btn{
    justify-content: center;
  }
}

img{
  background: linear-gradient(90deg, var(--surface), var(--border), var(--surface));
}
/* Chatbot Ranquel Tech Lab */

#chatbot-container{
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  font-family: inherit;
}

/* Botón flotante */
.chatbot-toggle{
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--ink-on-accent);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  font-weight: 700;
}

.chatbot-toggle:hover{ filter: brightness(0.96); }
.chatbot-toggle:active{ transform: translateY(1px); }

.chatbot-badge{
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--secondary);
  border: 1px solid var(--border);
  color: #ffffff; /* texto en blanco */
  font-size: 11px;
}

/* Panel */
.chatbot-panel{
  width: min(380px, calc(100vw - 32px));
  max-height: min(75vh, 540px);
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 640px), (max-height: 600px){
  .chatbot-panel{
    max-height: calc(100vh - 120px);
  }
}

/* Inputs */
.chatbot-input,
.chatbot-textarea,
.chatbot-select{
  width: 100%;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 10px;
  outline: none;
}

.chatbot-textarea{ min-height: 76px; resize: vertical; }

.chatbot-input:focus,
.chatbot-textarea:focus,
.chatbot-select:focus{
  box-shadow: 0 0 0 4px oklch(70.5% 0.015 286.067 / 0.18);
  border-color: var(--ring);
}

.chatbot-btn-primary{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: var(--accent);
  color: var(--ink-on-accent);
  cursor: pointer;
  font-weight: 700;
}

.chatbot-btn-primary:hover{ filter: brightness(0.96); }
.chatbot-btn-primary:active{ transform: translateY(1px); }

.chatbot-btn-link{
  background: transparent;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  text-decoration: underline;
}

.chatbot-legal{
  margin-top: 8px;
  color: var(--muted-foreground);
  font-size: 11px;
  line-height: 1.35;
}

.chatbot-hidden{ display: none; }


/* ===== Reservas + Videollamada ===== */
.thumb-contain .thumb-img{ object-fit: contain; background: #ffffff; }
.option-card{ padding-top: 14px; }
.option-thumb{ margin-bottom: 8px; }

.booking-step-header{ display: flex; align-items: center; gap: 10px; }
.booking-step-header h3{ margin: 0; }

.booking-embed{ margin-top: 10px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #fff; }

.small-label{ font-weight: 700; font-size: 0.92rem; color: var(--text); }

.input{
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
}

.input:focus{ outline: 2px solid var(--accent); outline-offset: 2px; }

.booking-join{ margin-top: 10px; display: grid; gap: 8px; }
.booking-join-row{ display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }

.help{ color: var(--text-muted); font-size: 0.95rem; }

.daily-container{ margin-top: 12px; min-height: 240px; border-radius: 12px; border: 1px dashed #c7d1de; background: #f8fafc; display: grid; place-items: center; padding: 18px; }
.daily-placeholder{ text-align: center; max-width: 42ch; }
.daily-placeholder strong{ font-size: 1.05rem; }
.daily-placeholder p{ margin-top: 6px; color: var(--text-muted); }

@media (max-width: 768px){
  .booking-join-row{ grid-template-columns: 1fr; }
}


/* Metodo alignment fix */
.metodo-grid .step-left,
.metodo-grid .step-right{ transform:none !important; }

/* ============================
   V6 Stage 2 - UI tweaks
   ============================ */

/* HERO: Desktop -> texto a la derecha y botones abajo a la izquierda */
@media (min-width: 980px){
  #hero::before{
    /* oscurecer un poco el lado derecho para leer mejor el texto */
    background: linear-gradient(270deg,
      rgba(0,0,0,.55) 0%,
      rgba(0,0,0,.30) 45%,
      rgba(0,0,0,.05) 100%);
  }
  
  
  

  /* CTA: centrado debajo del contenido en flujo normal */
  
  

  /* Disponer las imágenes apiladas a la derecha */
  
  
  
  
} 

/* HERO: Mobile -> aseguramos que el carrusel se vea */
@media (max-width: 768px){
  #hero{ min-height: 82vh; }
  #hero::before{ background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.15) 100%); }
}

/* CTA del header: texto diferente en móvil */

@media (max-width: 768px){
  
  
  /* en móvil ocultamos WhatsApp del header */
  .nav-whatsapp{ display:none !important; }
}

/* WhatsApp flotante (visible en móvil y desktop en hero) */



/* Mostrar también en desktop y posicionarlo relativo al hero */
@media (min-width: 980px){
  #hero{ position: relative; }
  
}

/* Servicios: en móvil scroll horizontal + barra "linda" */
@media (max-width: 768px){
  #services .grid-3{
    display:flex;
    overflow-x:auto;
    gap: 14px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }
  #services .grid-3 > *{
    min-width: 78vw;
    scroll-snap-align: start;
  }
  #services .grid-3::-webkit-scrollbar{ height: 10px; }
  #services .grid-3::-webkit-scrollbar-track{ background: rgba(0,0,0,.08); border-radius: 999px; }
  #services .grid-3::-webkit-scrollbar-thumb{ background: rgba(0,168,255,.55); border-radius: 999px; }
}

/* Servicios: título que se expande al hover/touch */
.panel h3{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  transition: line-clamp .2s ease, -webkit-line-clamp .2s ease, opacity .2s ease;
}
.panel:hover h3,
.panel:focus-within h3,
.panel:active h3{
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Método: cards iguales */
.metodo-grid{ align-items: stretch; }
.step{ display:flex; flex-direction:column; height:100%; }
.step .thumb{ height: 240px; overflow:hidden; }
.step .thumb img{ width:100%; height:100%; object-fit: cover; }

/* Footer: un poquito de color en los iconos */
.social{ border-radius: 999px; padding: 10px; }
.social svg{ display:block; }


/* Servicios: título plegado y se expande al hover/touch */
.service-item h3{
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all .2s ease;
}
.service-item:hover h3,
.service-item:focus-within h3,
.service-item:active h3{
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Método: todas las tarjetas del mismo tamaño */
.metodo-grid{align-items: stretch;}
.metodo-grid .step{display:flex; flex-direction:column; height:100%;}
.metodo-grid .step .thumb{height:240px;}
.metodo-grid .step .thumb-img{width:100%; height:100%; object-fit:cover;}
.metodo-grid .step p{margin-top:auto;}

/* =====================
   V6 Stage 4 ajustes
   ===================== */

/* Desde IA Aplicada hacia abajo, fondo azul como las secciones superiores */
#ia,
#marketing,
#metodo,
#agenda,
#contacto{
  background: var(--blue-deep);
}

/* Subtítulo "Te mostramos..." legible */
.method-subtitle{
  color: rgba(255,255,255,0.9);
  font-weight: 700;
}

/* Descripciones en las cards del método (evitar blanco sobre blanco) */
.steps-grid .step p{
  color: #2a3440;
}

/* Quitamos el botón flotante de WhatsApp (pedido del usuario) */


/* =====================
   V6 Stage 4 ajustes
   ===================== */

/* Desktop: carrusel a la izquierda, texto a la derecha (evita tapar la imagen) */
@media (min-width: 768px){
  
  
  #hero .hero-eyebrow{ margin-left: auto; }
  
  
}

/* Fondo azul desde "IA aplicada" en adelante */
#ia, #marketing, #metodo, #agenda, #contacto{
  background: var(--bg-deep, #071b33);
}
#ia .section-title, #marketing .section-title, #metodo .section-title, #agenda .section-title, #contacto .section-title,
#ia p, #marketing p, #metodo p, #agenda p, #contacto p{
  color: #ffffff;
}

/* Subtítulo del método: más visible */
.method-subtitle{
  color: rgba(255,255,255,0.92);
  font-weight: 700;
}

/* En tarjetas blancas dentro del método, el texto vuelve a oscuro para que se lea */
#metodo .step p{ color: #1c2a3a; }

/* Quitamos el WhatsApp flotante (usuario pidió sacarlo) */


/* =====================
   V6 Stage 4 ajustes
   ===================== */

/* Desktop: carrusel a la izquierda, texto a la derecha (evita tapar la imagen) */
@media (min-width: 768px){
  
  
  #hero .hero-eyebrow{ margin-left: auto; }
  
}

/* Desde IA Aplicada en adelante: fondo azul */
#ia, #marketing, #metodo, #contacto, footer{
  background: var(--blue-deep);
}

/* Subtítulo del método: más visible */
.method-subtitle{
  color: rgba(255,255,255,0.92);
  font-weight: 700;
}

/* En cards de pasos, aseguramos contraste */
.steps-grid .step p{ color: #334155; }

/* Quitamos el WhatsApp flotante (pedido usuario) */


/* =====================
   FORCED HERO LAYOUT (USER REQUEST)
   - Texto a la IZQUIERDA
   - Dos cajas de imagen apiladas a la DERECHA
   - Botones centrados debajo del hero
   - Botón flotante WA visible abajo-derecha
   ===================== */
@media (min-width: 980px){
  /* columnas: 50% texto | 50% imagenes */
  

  /* texto a la izquierda y ocupa la mitad */
  

  /* visuales apiladas a la derecha e iguales */
  
  

  /* aseguramos que las imágenes/vídeo llenen la caja */
  

  /* botones centrados en su propia fila */
  

  /* forzamos visibilidad del FAB de WhatsApp */
  
} 

/* =====================
   Template visual integration (Agency style)
   No text/logic changes
   ===================== */
:root{
  --background: #0f1116;
  --foreground: #f5f7fb;
  --card: #151924;
  --card-foreground: #f5f7fb;
  --popover: #151924;
  --popover-foreground: #f5f7fb;
  --primary: #f2a49b;
  --primary-foreground: #0b0f16;
  --secondary: #1c2230;
  --secondary-foreground: #f5f7fb;
  --muted: #252b3a;
  --muted-foreground: #a6b2c8;
  --accent: #f2a49b;
  --accent-600: #e59389;
  --accent-700: #d37e73;
  --ink-on-accent: #0b0f16;
  --border: #2a3142;
  --input: #2a3142;
  --ring: #f2a49b;
  --accent-rgb: 242, 164, 155;
  --bg-rgb: 15, 17, 22;
  --text-rgb: 245, 247, 251;
}

.chatbot-panel p,
.chatbot-panel span,
.chatbot-panel strong{
  color: #111111;
}

body{
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: radial-gradient(1200px 800px at 20% -20%, rgba(242, 164, 155, 0.16), transparent 55%),
              radial-gradient(900px 700px at 120% 10%, rgba(255, 178, 77, 0.18), transparent 60%),
              var(--background);
  color: var(--foreground);
}

h1, h2, h3, .logo, .nav-booking-cta{
  font-family: "Space Mono", "Inter", system-ui, sans-serif;
  letter-spacing: 0.4px;
}

.wrap{
  max-width: 78rem;
}

header.backdrop.header{
  background: rgba(15, 17, 22, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

header.backdrop.header .navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header.backdrop.header .nav-actions{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

header.backdrop.header .logo{
  color: #f5f7fb;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.nav-whatsapp{
  color: #ffffff;
}

.nav-whatsapp img{
  filter: brightness(0) invert(1);
  display: inline-block;
  width: 18px;
  height: 18px;
}

.nav-whatsapp-icon{
  width: 18px;
  height: 18px;
  display: inline-block;
  color: #ffffff;
}

.nav-booking-cta{
  background: rgba(242, 164, 155, 0.18);
  color: #ffe6ec;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  border: 1px solid rgba(242, 164, 155, 0.42);
  box-shadow: 0 12px 28px rgba(5, 8, 15, 0.25);
}

.nav-booking-cta:hover{
  background: rgba(242, 164, 155, 0.26);
}

.btn{
  border-radius: 999px;
  font-weight: 600;
}

.btn-accent{
  background: rgba(242, 164, 155, 0.18);
  color: #ffe6ec;
  border: 1px solid rgba(242, 164, 155, 0.42);
  box-shadow: 0 12px 28px rgba(5, 8, 15, 0.25);
}

.btn-ghost{
  background: rgba(255, 255, 255, 0.06);
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(5, 8, 15, 0.45);
}

.section-title{
  font-weight: 700;
  letter-spacing: 0.6px;
}

.badge{
  background: rgba(242, 164, 155, 0.18);
  border: 1px solid rgba(242, 164, 155, 0.42);
  color: #ffe6ec;
}

/* Hero layout from new template */
.hero{
  position: relative;
  padding: 6rem 0 2.5rem;
  overflow: hidden;
}

.hero-bg{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg .gradient-overlay{
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 500px at 20% 0%, rgba(242, 164, 155, 0.22), transparent 60%),
              radial-gradient(700px 600px at 100% 20%, rgba(255, 178, 77, 0.18), transparent 55%);
}

.hero-bg .noise-overlay{
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}



















.hero-carousel{
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active{
  opacity: 1;
}

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

.hero-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(9, 12, 18, 0.55);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.hero-arrow.prev{ left: 10px; }
.hero-arrow.next{ right: 10px; }







#services .section-title{
  color: #ffffff;
}

#metodo .step p{
  color: #ffffff;
}

#metodo p,
#metodo .method-subtitle{
  color: #ffffff;
}

#mapa-title{
  color: #ffffff;
}

.cta-title{
  color: #111111;
}

.btn-marketing{
  background: rgba(242, 164, 155, 0.18);
  color: #ffe6ec;
  border: 1px solid rgba(242, 164, 155, 0.42);
  box-shadow: 0 12px 28px rgba(5, 8, 15, 0.25);
}

.btn-marketing:hover{
  background: rgba(242, 164, 155, 0.26);
}

.btn-wsp{
  background: #25d366;
  color: #0b1b12;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}

.btn-wsp img{
  filter: brightness(0) invert(1);
}

/* ===== HERO LAYOUT LOCK v2 ===== */
#hero{
  position: relative !important;
  min-height: 100svh !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate;
}

#hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(9, 14, 24, 0.30) 0%, rgba(9, 14, 24, 0.18) 45%, rgba(9, 14, 24, 0.55) 100%),
    radial-gradient(700px 420px at 82% 35%, rgba(0, 0, 0, 0.14), transparent 68%);
  pointer-events: none;
}

#hero .hero-carousel.hero-carousel-bg{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  overflow: hidden !important;
}

#hero .hero-carousel.hero-carousel-bg .hero-slide{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  transition: opacity 0.8s ease !important;
}

#hero .hero-carousel.hero-carousel-bg .hero-slide.active{
  opacity: 1 !important;
}

#hero .hero-carousel.hero-carousel-bg .hero-img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  filter: brightness(0.66) contrast(1.05);
}

#hero .hero-v2-content{
  position: relative !important;
  z-index: 3 !important;
  min-height: 100svh !important;
  width: min(1360px, calc(100vw - 48px)) !important;
  max-width: min(1360px, calc(100vw - 48px)) !important;
  margin: 0 auto !important;
  padding-top: clamp(120px, 14vh, 170px) !important;
  padding-bottom: clamp(210px, 26vh, 280px) !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

#hero .hero-overlay{
  width: min(46vw, 620px) !important;
  max-width: 620px !important;
  padding: clamp(22px, 2.4vw, 34px) !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(0, 0, 0, 0.35) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32) !important;
}

#hero .hero-overlay .badge{
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.30) !important;
  color: #f4f7ff !important;
}

#hero .hero-overlay h1,
#hero .hero-overlay .hero-subtitle{
  color: #ffffff !important;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42) !important;
}

#hero .hero-bottom-actions{
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: clamp(110px, 14vh, 150px) !important;
  z-index: 4 !important;
  width: min(1360px, calc(100vw - 48px)) !important;
  max-width: min(1360px, calc(100vw - 48px)) !important;
  display: flex !important;
  justify-content: center !important;
}

#hero .hero-bottom-actions .hero-buttons{
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

#hero .hero-bottom-actions .btn-ghost{
  background: rgba(10, 14, 23, 0.36) !important;
  color: #f4f7ff !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
}

#hero .hero-bottom-actions .btn-ghost:hover{
  background: rgba(10, 14, 23, 0.52) !important;
}

#hero .hero-bottom-actions .btn-marketing{
  background: #ff9800 !important;
  color: #241300 !important;
  border: 1px solid #ffbd59 !important;
  box-shadow: 0 14px 30px rgba(255, 152, 0, 0.45) !important;
}

#hero .hero-bottom-actions .btn-marketing:hover{
  background: #ffad1f !important;
}



#chatbot-container{
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  left: auto !important;
  z-index: 90 !important;
}

@media (max-width: 899px){
  #hero{
    min-height: 92svh !important;
  }

  #hero .hero-v2-content{
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    padding-top: 106px !important;
    padding-bottom: 230px !important;
    justify-content: center !important;
    align-items: flex-start !important;
  }

  #hero .hero-overlay{
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  #hero .hero-bottom-actions{
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    bottom: 130px !important;
  }
}

/* ===== UI FIX PACK (header + hero + chatbot + marketing) ===== */
header.backdrop.header .nav-actions{
  gap: 10px !important;
}

.nav-whatsapp{
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  border: 1px solid #1faa51 !important;
  background: #25d366 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35) !important;
}

.nav-whatsapp:hover{
  filter: brightness(1.04);
}

.nav-whatsapp img,
.nav-whatsapp .nav-whatsapp-icon,
.nav-whatsapp img.icon{
  width: 18px !important;
  height: 18px !important;
  filter: none !important;
}

.nav-booking-cta{
  white-space: nowrap !important;
  line-height: 1.2 !important;
  padding: 10px 16px !important;
  letter-spacing: 0.2px !important;
}

#hero .hero-v2-content{
  padding-bottom: clamp(260px, 33vh, 340px) !important;
}

#hero .hero-bottom-actions{
  bottom: clamp(170px, 22vh, 230px) !important;
}

#hero .hero-bottom-actions .hero-buttons{
  gap: 14px !important;
}

#hero .hero-bottom-actions .btn{
  min-height: 48px !important;
  padding: 0.78rem 1.2rem !important;
}

#hero .hero-bottom-actions .btn-marketing{
  min-height: 56px !important;
  padding: 0.95rem 1.85rem !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  background: #ff8a00 !important;
  border-color: #ffc266 !important;
  color: #1f1200 !important;
  animation: marketing-glow-pulse 1.55s ease-in-out infinite !important;
}

@keyframes marketing-glow-pulse {
  0% {
    box-shadow: 0 0 0 rgba(255, 138, 0, 0.32), 0 0 24px rgba(255, 138, 0, 0.44);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 0 rgba(255, 138, 0, 0.12), 0 0 42px rgba(255, 138, 0, 0.78);
    filter: brightness(1.14);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 138, 0, 0.32), 0 0 24px rgba(255, 138, 0, 0.44);
    filter: brightness(1);
  }
}

.chatbot-badge{
  background: rgba(17, 24, 39, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.cta-rail{
  background: rgba(15, 23, 42, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24) !important;
}

.cta-rail .cta-title,
.cta-rail span{
  color: #f8fbff !important;
}

.marketing-cta-wrap{
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.btn-marketing-xl{
  min-height: 60px !important;
  padding: 0.95rem 2.4rem !important;
  font-size: 1.14rem !important;
  font-weight: 900 !important;
  animation: marketing-glow-pulse 1.55s ease-in-out infinite !important;
}

@media (max-width: 899px){
  #hero .hero-v2-content{
    padding-bottom: 290px !important;
  }

  #hero .hero-bottom-actions{
    bottom: 190px !important;
  }

  #hero .hero-bottom-actions .hero-buttons{
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .nav-whatsapp{
    padding: 8px 10px !important;
    font-size: 0.88rem !important;
  }

  .nav-booking-cta{
    padding: 8px 12px !important;
    font-size: 0.88rem !important;
  }
}

/* ===== Correcciones puntuales (home) ===== */
.about-cta{
  display: flex;
  justify-content: center;
}

.about-section .btn-opciones{
  animation: opciones-glow 1.8s ease-in-out infinite;
  box-shadow: 0 12px 26px rgba(242, 164, 155, 0.28);
}

@keyframes opciones-glow{
  0%{
    box-shadow: 0 8px 18px rgba(242, 164, 155, 0.2);
    filter: brightness(1);
  }
  50%{
    box-shadow: 0 12px 28px rgba(242, 164, 155, 0.42);
    filter: brightness(1.08);
  }
  100%{
    box-shadow: 0 8px 18px rgba(242, 164, 155, 0.2);
    filter: brightness(1);
  }
}

#chatbot-container .chatbot-panel{
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* MOBILE HERO BG TUNING */
@media (max-width: 520px){
  #hero .hero-carousel.hero-carousel-bg .hero-img,
  #hero .hero-carousel.hero-carousel-bg img,
  #hero .hero-carousel.hero-carousel-bg video{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* MOBILE HEADER TUNING */
@media (max-width: 520px){
  header.backdrop.header .nav-actions{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }

  header.backdrop.header .nav-booking-cta{
    order: 1;
    flex: 1 1 100%;
    text-align: center;
  }

  header.backdrop.header .lang-select{
    order: 2;
  }

  header.backdrop.header .header-whatsapp{
    order: 3;
    padding: 8px 10px !important;
    width: auto !important;
    min-width: auto !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  header.backdrop.header .header-whatsapp .label-text{
    display: none !important;
  }

  header.backdrop.header #menuToggle{
    order: 4;
  }
}
