/* Legibilidad: tamaños mínimos de texto sobre el diseño aprobado.
   Se carga al final de cada página para prevalecer sobre los ajustes V9–V50. */

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html body{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}

/* Encabezado */
html body header .navlinks,
html body header .navlinks a,
html body header .nav-dropdown__trigger{font-size:14px!important}
html body header .nav > .navcta{font-size:14px!important}
html body .nav-dropdown__menu a{font-size:14px!important;line-height:1.35}
@media(max-width:1180px){
  html body header .navlinks{gap:16px!important}
  html body header .navlinks,
  html body header .navlinks a,
  html body header .nav-dropdown__trigger{font-size:13px!important}
  html body header .nav > .navcta{font-size:13px!important;padding-left:14px!important;padding-right:14px!important}
}
@media(min-width:1360px){
  html body header .navlinks,
  html body header .navlinks a,
  html body header .nav-dropdown__trigger{font-size:15px!important}
}

/* Etiquetas pequeñas en mayúsculas */
html body .eyebrow,
html body .hero .eyebrow,
html body .kicker,
html body .form-kicker,
html body .step-tag{font-size:13px!important;letter-spacing:.08em}

/* Hero de inicio */
html body .hero p{font-size:18px!important;line-height:1.6}
html body .hero .eyebrow,
html body .hero h1,
html body .hero p{text-shadow:0 1px 14px rgba(1,19,44,.45)}
html body .btn,
html body .hero .primary,
html body .cta .btn,
html body .soft-band .btn{font-size:15px!important}
html body .trust-item strong{font-size:16px!important}
html body .trust-item span{font-size:14px!important;line-height:1.45}

/* Textos de apoyo y tarjetas */
html body .copy{font-size:16px!important}
html body .service p,
html body .service-overlay p{font-size:15px!important}
html body .check strong{font-size:16px!important}
html body .check span{font-size:15px!important}
html body .benefit-panel p{font-size:16px!important}
html body .metric span{font-size:14px!important}
html body .success-metric dd{font-size:15px!important}
html body .soft-band strong{font-size:19px!important}
html body .soft-band span{font-size:16px!important}
html body .about-card h3{font-size:19px!important}
html body .about-card p{font-size:16px!important;line-height:1.65}
html body .lema,
html body .about-card-lemas .lema,
html body .lema span{font-size:15px!important}
html body .step p,
html body .method .step p{font-size:15px!important;line-height:1.55}
html body .cta-text p{font-size:17px!important;line-height:1.6}

/* «¿Hablamos de tu empresa?»: la caja tenía 164 px fijos y el botón quedaba
   pegado al borde inferior. Ahora crece con su contenido y respira. */
html body section.cta .cta-box{height:auto!important;min-height:220px!important;align-items:stretch}
html body .cta-text{padding:34px 40px 38px!important;align-self:center}
html body .cta-text h2{margin:0 0 10px!important}
html body .cta-text p{margin:0 0 22px!important}
html body .cta .btn{min-height:48px!important;padding:0 24px!important}
html body .cta-img{height:auto!important;min-height:220px!important}
html body .cta-img img{position:static;height:100%!important;min-height:220px}

/* Soluciones (assets/solutions.css) */
html body .erh-solutions__intro .kicker{font-size:13px!important}
html body .erh-solutions__features h4{font-size:16px!important}
html body .erh-solutions__features p{font-size:15px!important;line-height:1.55}

/* Consultores y casos */
html body .stat span{font-size:14px!important}
html body .case-card p{font-size:15px!important}
html body .story-card p{font-size:15px!important}
html body .cta-box p{font-size:16px!important}
html body .consultant-role{font-size:13px!important}
html body .consultant-photo span{font-size:13px!important}
html body .consultant-experience li{font-size:15px!important;line-height:1.55}
html body .cases-activity__company{font-size:13px!important}
html body .note{font-size:14px!important}

/* Atención a candidatos: toda la fila de cada cuestionario abre su enlace */
html body .candidate-resource{position:relative}
html body .candidate-resource h2 a::after,
html body .candidate-resource h3 a::after{content:"";position:absolute;inset:0;border-radius:10px}
html body .candidate-resource:hover{background:rgba(5,195,245,.05)}

/* Formulario (modal) */
html body .form-head h2,
html body #modal .form-head h2{font-size:23px!important}
html body .form-head p,
html body #modal .form-head p{font-size:14px!important}
html body form label,
html body #modal label{font-size:13px!important}
html body form input,
html body form select,
html body form textarea,
html body #modal input,
html body #modal select,
html body #modal textarea{font-size:16px!important;padding:10px 12px!important}
html body .submit,
html body #modal .submit{font-size:16px!important;min-height:48px!important}
html body .privacy,
html body #modal .privacy{font-size:12px!important}
html body .form-note,
html body #modal .form-note{font-size:14px!important}
html body #modal form{gap:10px!important}
html body .mobile-form-btn{font-size:15px!important}

/* Pie de página */
html body .footer-v12 h4{font-size:15px!important}
html body .footer-v12 p,
html body .footer-v12 a,
html body .footer-v12 span{font-size:14px!important;line-height:1.65}
html body .footer-v12 a{padding:2px 0}
html body .footer-bottom-v12,
html body .copyright,
html body .copyr{font-size:13px!important}

/* Celular */
@media(max-width:720px){
  html body .hero p{font-size:16px!important}
  html body .hero::before{background:linear-gradient(180deg,rgba(6,20,44,.74) 0%,rgba(6,20,44,.5) 100%)!important}
  html body .copy,
  html body .about-card p,
  html body .cta-text p{font-size:16px!important}
  html body .footer-v12 a{padding:6px 0}
  html body section.cta .cta-box{min-height:0!important}
  html body .cta-text{padding:28px 22px 30px!important}
  html body .cta .btn{width:100%;justify-content:center}
  /* Que el botón fijo "Solicitar asesoría" no tape el final del pie */
  html body footer{padding-bottom:104px!important}
}

/* Logotipo oficial de WhatsApp (relleno) en el botón flotante */
html body .whatsapp svg{width:30px!important;height:30px!important;overflow:visible}

/* ===== Correcciones del 25 de octubre de 2026 ===== */

/* 1. Campos y selectores del formulario */
html body form label,
html body #modal label{display:block;font-size:13px!important;font-weight:800;color:#24384c;margin-bottom:6px!important;letter-spacing:.01em}
html body form input:not([type="hidden"]),
html body form select,
html body form textarea,
html body #modal input:not([type="hidden"]),
html body #modal select,
html body #modal textarea{
  width:100%;min-height:50px;padding:12px 15px!important;
  font-size:16px!important;font-weight:600;color:#11263a;line-height:1.3;
  background:#f7fafc!important;border:1.5px solid #d5e0e9!important;border-radius:12px!important;
  box-shadow:inset 0 1px 2px rgba(1,32,86,.04);
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
  -webkit-appearance:none;appearance:none;outline:none
}
html body form input::placeholder,
html body #modal input::placeholder{color:#8d9aa6;font-weight:500;opacity:1}
html body form input:not([type="hidden"]):hover,
html body form select:hover,
html body #modal input:not([type="hidden"]):hover,
html body #modal select:hover{border-color:#a9bfd1!important;background-color:#fff!important}
html body form input:not([type="hidden"]):focus,
html body form select:focus,
html body form textarea:focus,
html body #modal input:not([type="hidden"]):focus,
html body #modal select:focus,
html body #modal textarea:focus{border-color:#05C3F5!important;background-color:#fff!important;box-shadow:0 0 0 4px rgba(5,195,245,.18)!important}
/* Selector con flecha propia */
html body form select,
html body #modal select{
  cursor:pointer;padding-right:52px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23e6f6fd'/%3E%3Cpath d='M10.5 13.5 16 19l5.5-5.5' fill='none' stroke='%2302569F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:28px 28px!important
}
html body form select:focus,
html body #modal select:focus{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%2305C3F5'/%3E%3Cpath d='M10.5 13.5 16 19l5.5-5.5' fill='none' stroke='%23012056' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important}
/* Mientras no se elige servicio, «Selecciona una opción» se ve como guía (no como respuesta) */
html body form select:invalid,
html body #modal select:invalid{color:#8d9aa6;font-weight:500}
html body form select option,
html body #modal select option{color:#11263a;font-weight:600}
/* Error solo después de que la persona interactúa con el campo */
html body form input:user-invalid,
html body form select:user-invalid,
html body #modal input:user-invalid,
html body #modal select:user-invalid{border-color:#e5484d!important;background-color:#fff8f8!important;box-shadow:0 0 0 4px rgba(229,72,77,.12)!important}
html body #modal .submit,
html body form .submit{border-radius:12px!important;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease}
html body #modal .submit:hover,
html body form .submit:hover{background:#2fd0f8!important;box-shadow:0 10px 22px rgba(5,195,245,.3)}
html body #modal .submit:active,
html body form .submit:active{transform:translateY(1px)}

/* 2. Hero de inicio en celular: imagen arriba, difuminado azul y textos debajo */
@media(max-width:720px){
  html body .hero{height:auto!important;min-height:0!important;padding:0!important;background:#041a3b!important;display:block!important}
  html body .hero::before{display:none!important}
  html body .hero-bg{position:relative!important;inset:auto!important;height:auto!important;z-index:0}
  html body .hero-bg picture{display:block}
  html body .hero-bg img{position:static!important;width:100%!important;height:auto!important;aspect-ratio:900/741;object-fit:cover!important;object-position:center top!important;display:block}
  html body .hero-bg::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:42%;pointer-events:none;
    background:linear-gradient(180deg,rgba(4,26,59,0) 0%,rgba(4,26,59,.45) 40%,rgba(4,26,59,.88) 75%,#041a3b 100%)}
  html body .hero-grid{position:relative!important;z-index:2;margin:-56px 0 0!important;padding:0 22px 40px!important;width:auto!important;min-height:0!important}
  html body .hero .eyebrow{color:#7fdcfb!important}
  html body .hero h1{margin:10px 0 14px!important;font-size:clamp(34px,10vw,42px)!important;line-height:1.05!important}
  html body .hero p{margin:0 0 24px!important;color:rgba(255,255,255,.9)!important}
  html body .hero .actions .btn{width:100%;justify-content:center;min-height:52px}
}

/* 3. Botón flotante inferior en celular: solo WhatsApp, alargado, con «CONTACTO» y pulso */
.whatsapp__label{display:none}
@media(max-width:940px){
  html body .mobile-form-btn{display:none!important}
  html body .whatsapp{
    left:0!important;right:0!important;bottom:18px!important;margin:0 auto!important;
    width:max-content!important;height:54px!important;padding:0 26px 0 22px!important;
    display:inline-flex!important;align-items:center;justify-content:center;gap:10px;
    border:0!important;border-radius:999px!important;background:#25D366!important;color:#fff!important;
    font-family:Tenorite,"Segoe UI",Arial,sans-serif;text-decoration:none;
    box-shadow:0 10px 26px rgba(37,211,102,.45),0 2px 6px rgba(0,0,0,.12)!important;
    animation:erhWaShake 4s ease-in-out infinite
  }
  html body .whatsapp::before{content:"";position:absolute;inset:0;border-radius:inherit;background:#25D366;z-index:-1;animation:erhWaGlow 2s ease-out infinite}
  html body .whatsapp svg{width:24px!important;height:24px!important}
  html body .whatsapp__label{display:block;font-size:15px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;line-height:1}
  html body footer{padding-bottom:110px!important}
}
@keyframes erhWaGlow{0%{opacity:.55;transform:scale(1)}100%{opacity:0;transform:scale(1.25,1.6)}}
@keyframes erhWaShake{0%,82%,100%{rotate:0deg}85%{rotate:-4deg}88%{rotate:4deg}91%{rotate:-3deg}94%{rotate:2deg}97%{rotate:-1deg}}
@media(prefers-reduced-motion:reduce){html body .whatsapp,html body .whatsapp::before{animation:none!important}}

/* 4. Pie de página centrado en celular */
@media(max-width:720px){
  html body .footer-v12{text-align:center!important;justify-items:center}
  html body .footer-v12 > div{width:100%}
  html body .footer-v12 .footer-brand img{margin:0 auto 12px!important}
  html body .footer-v12 p{margin-left:auto;margin-right:auto;max-width:340px}
  html body .footer-v12 a{text-align:center}
  html body .footer-bottom-v12{text-align:center!important}
}
@media(max-width:940px){
  html body .whatsapp{transition:opacity .22s ease,translate .22s ease}
  html body .whatsapp.is-tucked{opacity:0!important;translate:0 16px;pointer-events:none!important}
}

/* Con el formulario abierto, el botón flotante no estorba */
html body:has(#modal.open) .whatsapp{opacity:0!important;pointer-events:none!important}

/* Consultores: «Experiencia para acompañar a tu empresa» con botón a su tamaño */
html body .consultants-cta .cta-box{align-items:center!important;min-height:0!important;gap:28px!important}
html body .consultants-cta .cta-box > div{flex:1 1 auto;max-width:640px}
html body .consultants-cta .cta-box h2{margin:0 0 10px!important}
html body .consultants-cta .btn{flex:0 0 auto;align-self:center;display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 26px!important;border-radius:12px;white-space:nowrap}
@media(max-width:640px){
  html body .consultants-cta .cta-box{align-items:stretch!important;gap:20px!important}
  html body .consultants-cta .cta-box h2{font-size:27px!important;line-height:1.12}
  html body .consultants-cta .btn{width:100%}
}

/* Consultores: fotografías reales */
html body .consultant-photo.has-photo{padding:0!important;display:block!important;min-height:0!important;aspect-ratio:4/5;background:#eef2f5!important;overflow:hidden;position:relative}
html body .consultant-photo.has-photo img{display:block;width:100%!important;height:100%!important;max-width:none;object-fit:cover;transition:transform .5s ease}
html body .consultant-photo.has-photo::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:linear-gradient(90deg,#05C3F5,#02569F,#012056)}
html body .consultant-card:hover .consultant-photo.has-photo img{transform:scale(1.03)}
@media(max-width:1040px) and (min-width:641px){
  html body .consultant-photo.has-photo{aspect-ratio:auto;height:100%;min-height:340px!important}
}
@media(max-width:640px){
  html body .consultant-photo.has-photo{aspect-ratio:1/1}
}

/* Enlace al Aviso de Privacidad debajo del formulario */
html body .privacy a,
html body #modal .privacy a{color:#02569F;font-weight:800;text-decoration:underline;text-underline-offset:2px}
html body .privacy a:hover,
html body #modal .privacy a:hover{color:#012056}
html body .footer-v12 a[aria-current="page"]{color:#05C3F5}
