/* =========================================
   1. VARIABLES Y FUENTES
   ========================================= */
:root {
  --blue: #0b1620; --blue-2: #0e1f2b; --light: #fff; --text: #131313;
  --muted: var(--blue); --gold: #a06f1c; --gold-2: #8a5c14; --on-gold: #0a0a0a;
  --accent: var(--gold); --hover-dur: 200ms;
}

@font-face { 
  font-family: 'InterLocal'; 
  src: url('/assets/fonts/inter-400.woff2') format('woff2'); 
  font-weight: 400; 
  font-display: swap; 
  size-adjust: 107%; /* Nivela el tamaño con la fuente de reserva */
  ascent-override: 90%; /* Evita que el texto empuje el contenido hacia abajo */
}

@font-face { 
  font-family: 'InterLocal'; 
  src: url('/assets/fonts/inter-700.woff2') format('woff2'); 
  font-weight: 700; 
  font-display: swap; 
}

@font-face { 
  font-family: 'PlayfairLocal'; 
  src: url('/assets/fonts/playfair-600.woff2') format('woff2'); 
  font-weight: 600; 
  font-display: swap; 
}

@font-face { 
  font-family: 'PlayfairLocal'; 
  src: url('/assets/fonts/playfair-700.woff2') format('woff2'); 
  font-weight: 700; 
  font-display: swap; 
}

/* =========================================
   2. BASE Y TIPOGRAFÍA
   ========================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--blue); overflow-y: auto !important; overscroll-behavior-y: auto !important; }
body { margin: 0; padding: 0; overflow-x: hidden; background: var(--light); font-family: InterLocal, system-ui, sans-serif; color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { font-family: PlayfairLocal, Georgia, serif; margin: 0 0 1.6rem; color: var(--blue); line-height: 1.2; }
h1 { font-size: clamp(28px, 4.5vw, 40px); text-transform: uppercase; }
h2 { font-size: clamp(32px, 4.5vw, 42px); }
h3 { font-size: clamp(22px, 3.5vw, 30px); }
h4 { font-size: clamp(18px, 2.8vw, 24px); }
.section-title { font-size: clamp(28px, 4.5vw, 44px); font-weight: 700; }

p { font-size: 1.3rem; line-height: 1.2; margin-bottom: 1.2rem; }
a { color: inherit; text-decoration: none; transition: color 0.25s; }
img, video { max-width: 100%; height: auto; display: block; }

.container { width: min(1120px, 100%); padding: 0 20px; margin-inline: auto; }
.section { padding: 68px 0; }
.center-text { text-align: center; } 
.mt-24 { margin-top: 24px; } 
.mb-60 { margin-bottom: 60px; } 
.mt-60 { margin-top: 60px; }

/* =========================================
   3. HEADER Y NAV
   ========================================= */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--blue); color: var(--light); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.header-wrap { height: 74px; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--light); }
.brand img { height: 48px; width: auto; }
.brand-name { font-weight: 700; letter-spacing: .2px; }

.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a { color: #e7edf3; padding: 8px 10px; border-radius: 10px; transition: background .25s; }
.main-nav a:hover { background: rgba(255, 255, 255, .08); }
.nav-highlight { color: #FFD700; font-weight: bold; }
.nav-cta { background: transparent !important; border: 1px solid rgba(255,255,255,0.3) !important; }

/* Hamburguesa */
.m-nav-btn { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; }
.m-nav-btn svg { width: 22px; height: 22px; }

/* Menú Móvil */
.m-nav-sheet { position: fixed; top: 0; left: 0; width: 100%; max-height: 85vh; background-color: #0b1620; color: #fff; z-index: 10000; transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); border-radius: 0 0 20px 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); border-bottom: 2px solid var(--gold); display: flex; flex-direction: column; padding: 20px 0 30px; }
.m-nav-sheet.open { transform: translateY(0); }

.m-nav-head { display: flex; align-items: center; justify-content: center; gap: 12px; padding-bottom: 20px; margin-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); position: relative; z-index: 10005; }
.m-nav-head img { height: 45px; width: auto; }
#mNavTitle { font-family: 'PlayfairLocal', serif; font-size: 1.3rem; color: var(--gold); letter-spacing: 0.5px; }

.m-nav-close { position: absolute; top: 20px; right: 20px; background: rgba(255, 255, 255, 0.1); border: none; width: 36px; height: 36px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10006; }
.m-nav-list { display: flex; flex-direction: column; align-items: center; padding: 0 20px; width: 100%; position: relative; z-index: 10005; }
.m-nav-list a { display: block; width: 100%; text-align: center; padding: 16px 0; font-size: 1.15rem; color: #ffffff !important; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: 0.3s; }
.m-nav-list a:hover { color: var(--gold) !important; background: rgba(255, 255, 255, 0.03); }

.mobile-backdrop { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.8); opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: 9990; }
.mobile-backdrop.show { opacity: 1; pointer-events: auto; }
body.menu-open, html.no-scroll { overflow: auto !important; position: static !important; height: auto !important; touch-action: auto !important; }

/* =========================================
   4. HERO Y BOTONES
   ========================================= */
.hero { background: var(--light); position: relative; }
.curve-bottom { padding-bottom: 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; }
.hero-copy { text-align: center; max-width: 840px; margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; justify-content: center; }

.btn { display: inline-block; border-radius: 12px; background: var(--gold); color: var(--on-gold); padding: 12px 18px; font-weight: 700; border: none; transition: transform .03s, background .25s; cursor: pointer; text-align: center; }
.btn:hover { background: var(--gold-2); transform: translateY(-2px); }

.btn--wa { background-color: #128c7e !important; color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.2); font-weight: 800; padding: 16px; font-size: 1.1rem; text-transform: uppercase; box-shadow: 0 10px 20px rgba(18, 140, 126, 0.3); width: 100%; display: flex; justify-content: center; align-items: center; }
.btn--wa:hover { background-color: #0e6b5e !important; transform: scale(1.02); }

.btn-formal-blue { background-color: #006064 !important; color: #ffffff !important; box-shadow: 0 6px 15px rgba(0, 96, 100, 0.25); border: none; font-weight: 700; padding: 16px 24px; font-size: 1.1rem; border-radius: 12px; transition: transform .03s, background .25s; min-width: 250px; display: inline-block; }
.btn-formal-blue:hover { background-color: #004d50 !important; transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 20px rgba(0, 96, 100, 0.35); color: #fff; }

.btn-outline { background: transparent; border: 2px solid #000; color: #000; font-weight: 700; width: 100%; padding: 12px; border-radius: 8px; }
.btn-outline:hover { background: #000; color: #fff; }

/* =========================================
   5. SECCIÓN CÓMO FUNCIONA (PC - NÚMEROS BLANCOS)
   ========================================= */
.section--steps { background-color: #0b1620; padding: 60px 0; overflow: hidden; position: relative; }
.section--steps .section-title { color: #ffffff !important; }
.section--steps .muted { color: #a0aab5; }

.steps-container { max-width: 1100px; margin: 0 auto; }
.step-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 80px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; }
.step-row:last-of-type { margin-bottom: 0; border-bottom: none; }
.step-reverse { flex-direction: row-reverse; }

.step-content { flex: 1; padding: 3px 0; } 
.step-number { 
  font-family: 'Playfair Display', serif; 
  font-size: 3.5rem; 
  font-weight: 700; 
  color: #000000; /* Color Blanco */
  opacity: 1;     /* <--- CAMBIO IMPORTANTE: Antes era 0.3 (gris), ahora es 1 (blanco sólido) */
  line-height: 1; 
  margin-bottom: 20px; 
}
.step-content h3 { font-size: 1.8rem; margin-bottom: 15px; color: #000000; font-family: 'Playfair Display', serif; }
.step-content p { color: #000000; line-height: 1.7; font-size: 1.1rem; font-weight: 300; }

/* IMAGEN PC (Tu configuración preferida de 100px) */
.step-image-small {
  flex: 0 0 175px;       /* Ancho fijo de 100px */
  max-width: 175px;      /* Asegura que no crezca más */
  
  display: flex; 
  justify-content: center; 
  align-items: center;
}

.step-image-small img {
  width: 100%;           /* Llena el hueco de 100px */
  height: auto;          
  
  filter: drop-shadow(0 8px 15px rgba(0,0,0,0.5));
  transition: transform 0.4s ease;
}

.step-image-small img:hover { transform: scale(1.03); }
.step-image-small img:hover { transform: scale(1.03); }
/* =========================================
   6. SERVICIOS Y TESTIMONIOS
   ========================================= */
.section--blue { background: var(--blue) !important; color: #e9f0f6 !important; }
.section--blue h2, .section--blue h3 { color: var(--gold) !important; text-align: center; }
.section--blue p { color: #dfe7ef !important; text-align: center; max-width: 800px; margin: 0 auto; }
.section--blue a { color: #e8c387; text-decoration: underline; }
.servicios-grid { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 1080px; margin: 0 auto; padding-top: 30px; }
.info-block { text-align: center; }

.testi-heading { text-align: center; max-width: 980px; margin: 0 auto 26px; }
.testi-sub { color: #ffffff; font-size: 1rem; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); justify-items: center; gap: 28px; max-width: 1100px; margin: 20px auto 0; }
.testi-card { width: 100%; max-width: 240px; padding: 8px; border-radius: 14px; background: #f5f5f5; box-shadow: 0 10px 26px rgba(0,0,0,0.1); transition: transform 0.2s; }
.testi-card:hover { transform: translateY(-3px); }
.testi-card h3 { text-align: center; margin-top: 10px; color: var(--text); font-size: 1.2rem; }

.video-wrap { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #000; }
.video-wrap video, .video-wrap img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.video-wrap video { opacity: 0; pointer-events: none; transition: opacity 0.4s; display: block; }
.video-poster-fallback { z-index: 2; transition: opacity 0.4s; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; border: none; background: rgba(0,0,0,0.6); color: #fff; font-size: 30px; cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center; }

/* =========================================
   7. CONTACTO Y FOOTER
   ========================================= */
.contact-grid { display: flex; flex-direction: column; gap: 30px; margin-top: 40px; }
.wa-hero-card { background: #ffffff; border: 2px solid #128c7e; border-radius: 20px; padding: 40px 30px; text-align: center; box-shadow: 0 10px 30px rgba(18, 140, 126, 0.15); display: flex; flex-direction: column; justify-content: center; height: 100%; }
.wa-card-header { display: inline-flex; align-items: center; gap: 8px; background: #e6fffa; color: #047857; padding: 6px 16px; border-radius: 50px; font-size: 0.9rem; margin: 0 auto 20px; font-weight: 800; }
.wa-features { list-style: none; padding: 0; text-align: left; display: inline-block; margin: 20px 0; }
.wa-features li { margin-bottom: 8px; color: #111; font-weight: 600; font-size: 1rem; }
.mobile-separator { text-align: center; color: #333; font-weight: 900; margin: 15px 0; display: block; }

.contact-card { background: #f9f9fa; border: 1px solid #d1d1d1; border-radius: 20px; padding: 30px; height: 100%; color: var(--text); }
.form-title { font-size: 1.4rem; color: #000; font-weight: 700; margin-bottom: 5px; text-align: left; }
.form-subtitle { font-size: 0.95rem; color: #333; margin-bottom: 20px; font-weight: 500; text-align: left;}
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #999; border-radius: 8px; font-family: inherit; font-size: 1rem; color: #000; background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }
.consent { display: flex; gap: 10px; align-items: start; font-size: 0.8rem; text-align: left; margin-bottom: 20px; color: #222; line-height: 1.4; }
.pulse-dot { width: 8px; height: 8px; background-color: #047857; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(4, 120, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0); } }

.site-footer { background: var(--blue); color: var(--light); padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-top .legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.footer-top a { color: #ccc; font-size: 0.95rem; } .footer-top a:hover { color: var(--gold); }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.footer-bottom { border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 20px; margin-top: 20px; text-align: center; color: #888; }

/* =========================================
   8. FLOTANTES Y MODALES (DISEÑO PREMIUM RESTAURADO)
   ========================================= */

/* Botón flotante de WhatsApp */
.whatsapp-float { 
    position: fixed; 
    right: 18px; 
    bottom: 18px; 
    width: 64px; 
    height: 64px; 
    background: #128c7e; 
    border-radius: 50%; 
    display: grid; 
    place-items: center; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); 
    z-index: 999; 
    opacity: 0; 
    pointer-events: none; 
    transform: scale(0.8); 
    transition: transform 0.3s, opacity 0.3s;
}

/* Activación por JS */
.whatsapp-float.whatsapp-float--visible { 
    opacity: 1 !important; 
    pointer-events: auto !important; 
    transform: scale(1) !important; 
}

.whatsapp-float svg { width: 58%; height: 58%; fill: #fff; }

/* El Globo de texto (Hint) con tu diseño original */
.whatsapp-hint { 
    position: fixed; 
    right: 90px; 
    bottom: 30px; 
    background: #fff; 
    color: #000; 
    padding: 10px 18px; 
    border-radius: 20px; 
    font-size: 0.9rem; 
    font-weight: 700; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
    z-index: 998; 
    border: 1px solid rgba(160, 111, 28, 0.2); /* Borde dorado sutil */
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
    transform: translateX(15px); 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* Activación por JS tras 6 segundos */
.whatsapp-hint.hint-visible { 
    opacity: 1 !important; 
    visibility: visible !important; 
    transform: translateX(0) !important; 
}

/* --- BANNER DE CONFIRMACIÓN (MODAL) --- */
.wa-modal { 
    position: fixed; 
    inset: 0; 
    z-index: 10000; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
    transition: opacity 0.3s; 
}

.wa-modal.is-open { 
    opacity: 1; 
    visibility: visible; 
    pointer-events: auto; 
}

.wa-modal-backdrop { 
    position: absolute; 
    inset: 0; 
    background: rgba(11, 22, 32, 0.75); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(3px); 
}

.wa-modal-content { 
    position: relative; 
    background: #fff; 
    width: 90%; 
    max-width: 400px; 
    border-radius: 18px; 
    padding: 28px; 
    text-align: center; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.4); 
    transform: translateY(30px); 
    transition: transform 0.4s ease; 
    border: 1px solid rgba(160, 111, 28, 0.25); /* Borde dorado */
}

.wa-modal.is-open .wa-modal-content { 
    transform: translateY(0); 
}

/* Estilo del Título del Banner */
.wa-modal-header h3 { 
    font-family: 'PlayfairLocal', serif; 
    font-size: 1.4rem;
    margin-bottom: 15px; 
    color: #0b1620; 
    letter-spacing: 0.5px;
}

.wa-modal-close { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    border: none; 
    background: #f0f0f0; 
    width: 30px; 
    height: 30px; 
    border-radius: 50%; 
    font-size: 20px; 
    cursor: pointer; 
    color: #666; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

/* Botones del Modal */
.wa-modal-footer { 
    display: flex; 
    gap: 12px; 
    justify-content: center; 
    margin-top: 25px; 
}

/* Aseguramos que se vean como tus botones originales */
.wa-modal-footer .btn { 
    flex: 1; 
    margin: 0; 
    padding: 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* --- ANIMACIÓN DE SALUDO PARA EL EMOJI --- */
@keyframes wave {
    0% { transform: rotate( 0.0deg) }
    10% { transform: rotate(14.0deg) }
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate( 0.0deg) }
    100% { transform: rotate( 0.0deg) }
}

.wave-emoji {
    display: inline-block;
    font-size: 1.35rem; /* Tamaño un poco más grande que el texto ¡Hola! */
    animation-name: wave;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    transform-origin: 70% 70%;
    margin-right: 5px;
    vertical-align: middle; /* Alineación perfecta con el texto */
}

/* =========================================
   9. RESPONSIVE MEDIA QUERIES (Números Blancos)
   ========================================= */
@media (min-width: 900px) {
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
  .mobile-separator { display: none; }
  .hero-grid { grid-template-columns: 1fr; justify-items: center; } 
  .m-nav-btn { display: none; } .main-nav { display: flex; }
  .section-title { text-align: left; }
  .testi-heading .section-title, .section--blue .section-title { text-align: center; } 
  .services-grid { grid-template-columns: repeat(3, minmax(260px, 340px)); }
}

@media (max-width: 991px) { 
  .section--steps { padding: 40px 0; }

  .step-row { 
    flex-direction: column-reverse; 
    gap: 20px; 
    text-align: center; 
    border-bottom: none; 
    margin-bottom: 30px; 
  }
  
  .step-reverse { flex-direction: column-reverse; } 
  
  .step-content { 
    text-align: center; 
    padding-top: 0px; 
    padding-bottom: 0px; 
    margin: 0; 
  }

  /* IMAGEN MÓVIL: La regresé a 300px para que no se vea diminuta en el celular */
  .step-image-small { flex: auto; width: 100%; max-width: 100px; margin: 0 auto; }
  
  /* NÚMEROS: Ahora son totalmente BLANCOS */
  .step-number { 
    font-size: 3rem; 
    margin-bottom: 10px; 
    color: #000000 !important; /* <--- Color Blanco Puro */
    opacity: 1 !important;     /* <--- Quita la transparencia grisácea */
  }
}

@media (max-width: 900px) {
  .m-nav-btn { display: flex; } .main-nav { display: none; }
  .hero-copy { max-width: 100%; }
  .whatsapp-float { width: 55px; height: 55px; right: 15px; bottom: 15px; }
  .section-title { font-size: 2rem; }
  .services-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; align-items: start; }
  .testi-card { padding: 6px; width: 100%; }
  .testi-card h3 { font-size: 1rem; margin-top: 5px; }
  .video-play { width: 45px; height: 45px; font-size: 20px; }
}
#whatsappHint {
    transition: all 0.4s ease-in-out;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    /* Asegúrate de que tenga un z-index alto para que no lo tape nada */
    z-index: 999; 
}