/* Hover azul de los botones indicados en todos los dispositivos. */
body .header .ua-free-trial:hover,body #inicio .hero-actions .ua-free-trial:hover{background:#3e5489!important;background-color:#3e5489!important;border-color:#3e5489!important;color:#fff!important}
body .ua-free-trial:hover svg{color:inherit;stroke:currentColor}

body #como-funciona>.btn:hover,
body #contacto #contact-form.ua-contact-form .btn-primary:hover{background:#3e5489!important;background-color:#3e5489!important;border-color:#3e5489!important;color:#fff!important}
body #como-funciona>.btn:hover svg,
body #contacto #contact-form.ua-contact-form .btn-primary:hover svg{color:inherit;stroke:currentColor}
/* Prioridad sobre los estilos anteriores del menú de escritorio y móvil. */
body #header.header .nav-actions>a.nav-cta.ua-free-trial:is(:hover,:focus-visible,:active),
body #header.header #main-nav.nav-links>a.mobile-demo-cta.ua-free-trial:is(:hover,:focus-visible,:active){background:#3e5489!important;background-color:#3e5489!important;background-image:none!important;border-color:#3e5489!important;color:#fff!important}
body #header.header a.ua-free-trial:is(:hover,:focus-visible,:active) span,
body #header.header a.ua-free-trial:is(:hover,:focus-visible,:active) svg{color:#fff!important;stroke:currentColor}
/* Prueba gratis visible en la barra móvil, junto a la hamburguesa. */
@media(max-width:920px){
 body #header.header>.container.nav{gap:8px!important;padding-inline:12px!important;box-sizing:border-box}
 body #header.header .brand.brand-image{width:clamp(74px,20vw,120px)!important;min-width:0;flex-shrink:1}
 body #header.header .nav-actions{display:flex!important;align-items:center;gap:8px!important;flex-shrink:0;position:relative;z-index:4}
 body #header.header .nav-actions>a.nav-cta.ua-free-trial{display:inline-flex!important;visibility:visible!important;opacity:1!important;align-items:center;justify-content:center;min-height:42px;padding:0 12px!important;gap:8px!important;font-size:12px!important;white-space:nowrap;border-radius:5px}
 body #header.header .nav-actions>a.nav-cta.ua-free-trial svg{display:block!important;width:16px;height:16px;flex:none}
 body #header.header #menu-toggle{flex:none;min-width:40px;min-height:44px;padding:8px!important}
 body #header.header #main-nav.nav-links>a.mobile-demo-cta{display:none!important}
}
@media(max-width:360px){
 body #header.header .nav-actions{gap:4px!important}
 body #header.header .nav-actions>a.nav-cta.ua-free-trial{font-size:11px!important;padding-inline:9px!important;gap:6px!important}
}
/* Color base del botón junto a la hamburguesa; hover azul conservado. */
@media(max-width:920px){
 body #header.header .nav-actions>a.nav-cta.ua-free-trial{background:#1c1f29!important;background-color:#1c1f29!important;border-color:#1c1f29!important;color:#fff!important}
 body #header.header .nav-actions>a.nav-cta.ua-free-trial:is(:hover,:focus-visible,:active){background:#3e5489!important;background-color:#3e5489!important;border-color:#3e5489!important;color:#fff!important}
}

/* Hover unificado #3e5489 para todos los botones (no aplica a los enlaces del menú). */
body .btn:not(.ua-plan-cta):hover,body a.btn-primary:hover,body button.btn-primary:hover,
body #contacto #contact-form.ua-contact-form .btn-primary:hover,body #contacto .btn-primary:hover,
body #como-funciona>.btn:hover,body #ua-registro-btn:hover,
html body #planes .ua-plan .ua-plan-cta:hover,html #planes .ua-plan[data-pricing] .ua-plan-cta:hover,
body #header.header #main-nav.nav-links>a.mobile-demo-cta:hover,body #header.header .nav-actions>a.ua-account-btn:hover{background:#3e5489!important;background-color:#3e5489!important;background-image:none!important;border-color:#3e5489!important;color:#fff!important;filter:none!important}
html body #planes .ua-plan .ua-plan-cta:hover *{color:#fff!important}
body .btn:hover svg,body #planes .ua-plan-cta:hover svg{color:#fff;stroke:currentColor}
/* Refuerzo de especificidad: el hover #3e5489 gana sobre reglas anteriores de cada sección. */
html body a.btn:not(#_a):not(#_b):not(#_c):hover,html body button.btn:not(#_a):not(#_b):not(#_c):hover,html body .btn-primary:not(#_a):not(#_b):not(#_c):hover,html body .ua-plan-cta:not(#_a):not(#_b):not(#_c):hover,html body .screen-cta:not(#_a):not(#_b):not(#_c):hover,html body .motion-cta:not(#_a):not(#_b):not(#_c):hover{background:#3e5489!important;background-color:#3e5489!important;background-image:none!important;border-color:#3e5489!important;color:#fff!important;filter:none!important}

/* Sección crear cuenta: color sólido #7686a8 (sin degradado). */
html body #contacto.contact-section,html body section#contacto{background:#8d9ab1!important;background-image:none!important}
/* Redes sociales del pie: icono blanco al pasar el cursor. */
html body .footer-main .footer-social-links a:hover,html body .footer-main .footer-social-links a:focus-visible{color:#fff!important}
html body .footer-main .footer-social-links a:hover svg,html body .footer-main .footer-social-links a:focus-visible svg,html body .footer-main .footer-social-links a:hover svg *,html body .footer-main .footer-social-links a:focus-visible svg *{color:#fff!important;opacity:1!important;filter:none!important}
html body .footer-main .footer-social-links a:hover svg [stroke],html body .footer-main .footer-social-links a:focus-visible svg [stroke],html body .footer-main .footer-social-links a:hover svg,html body .footer-main .footer-social-links a:focus-visible svg{stroke:#fff!important}
html body .footer-main .footer-social-links a:hover svg [fill="currentColor"],html body .footer-main .footer-social-links a:focus-visible svg [fill="currentColor"]{fill:#fff!important}

/* Al abrir el menú móvil, logo, "Prueba gratis" y botón de menú no deben moverse. */
@media(max-width:920px){
 html body #header.header:has(.nav.menu-open) .nav.container{padding-left:36px!important;padding-right:36px!important}
}
@media(max-width:700px){
 html body #header.header:has(.nav.menu-open) .nav.container{padding-left:28px!important;padding-right:28px!important}
}

/* Sin zoom por doble toque; el zoom con pellizco sigue disponible. */
html,body{touch-action:manipulation}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:-2px}

/* Encabezado en celular y tableta: el logo y la hamburguesa quedan a la misma distancia (20 px) de los bordes de la barra. */
@media(max-width:920px){
 body #header.header>.container.nav{width:100%!important;max-width:none!important;margin-inline:0!important;padding-inline:20px!important}
 body #header.header .menu-toggle{margin-right:-8px!important}
}
/* Con el menú abierto, el logo y la X se quedan donde estaban (mismo margen que con el menú cerrado). */
@media(max-width:920px){
 html body #header.header:has(.nav.menu-open) .nav.container{padding-left:20px!important;padding-right:20px!important}
}
/* Menú desplegable: líneas y botón «Mi cuenta» ocupan todo el ancho de la barra; el texto queda alineado con el logo. */
@media(max-width:920px){
 html body #header.header #main-nav.nav-links{left:0!important;right:0!important;width:100%!important;padding-left:12px!important;padding-right:12px!important;box-sizing:border-box!important}
 html body #header.header #main-nav.nav-links>a:not(.btn){padding-left:21px!important;padding-right:21px!important}
}

/* Encabezado móvil: menos aire entre título y texto, botones al ancho del contenido y control de slides más cerca de los botones. */
@media(max-width:600px){
 html body .hero-editorial .hero-info h1,html body .hero-editorial .hero-info h2.slide-heading{margin-bottom:10px!important}
 html body .hero-editorial .hero-info p{margin-top:0!important}
 html body .hero-editorial .hero-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:10px;width:100%;margin-top:20px!important}
 html body .hero-editorial .hero-actions>.btn{width:100%;min-width:0;justify-content:center;box-sizing:border-box}
 html body .hero-editorial .hero-editorial-inner{padding-bottom:30px!important}
}
@media(max-width:600px){
 html body .hero-editorial .hero-info-kicker{margin-bottom:12px!important}
 html body .hero-editorial .hero-info h1,html body .hero-editorial .hero-info h2.slide-heading{margin-bottom:4px!important}
 html body .hero-editorial .hero-actions{margin-top:12px!important}
 html body .hero-editorial .hero-editorial-inner{padding-bottom:24px!important}
}
@media(max-width:600px){
 html body .hero.hero-editorial{padding-bottom:2px!important}
}

/* Ventana de cotización personalizada: cubre toda la pantalla. */
html.ua-quote-open{overflow:hidden}
#ua-quote-dialog{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:#f6f6f6;color:#181a22;overflow:auto;overscroll-behavior:contain}
#ua-quote-dialog::backdrop{background:#161b26}
#ua-quote-dialog[open]{animation:uaQuoteIn .22s ease-out}
@keyframes uaQuoteIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#ua-quote-dialog[open]{animation:none}}
.ua-quote-shell{position:relative;width:min(100%,560px);margin:0 auto;box-sizing:border-box;padding:max(28px,env(safe-area-inset-top,0px)) max(20px,env(safe-area-inset-right,0px)) max(32px,env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px))}
.ua-quote-close{position:absolute;top:73px;right:max(14px,env(safe-area-inset-right,0px));width:44px;height:44px;border:1px solid #7787a970;border-radius:5px;background:#fff;color:#30394a;font-size:18px;cursor:pointer}
.ua-quote-head{padding:46px 0 18px}
.ua-quote-kicker{font:700 11px Arial;letter-spacing:.19em;color:#525e73}
.ua-quote-head h2{margin:10px 0 8px;font-size:clamp(26px,7vw,34px);line-height:1.12;color:#181a22}
.ua-quote-head p{margin:0;color:#485267;font-size:15px;line-height:1.55}
#ua-quote-dialog form{display:grid;gap:14px}
#ua-quote-dialog label{display:grid;gap:6px;font:600 13px Arial;color:#30394a;min-width:0}
#ua-quote-dialog input:not([type=hidden]),#ua-quote-dialog select,#ua-quote-dialog textarea{width:100%;box-sizing:border-box;min-height:48px;padding:12px 14px;border:1px solid #7787a99a;border-radius:5px;background:#fff;color:#181a22;font:400 16px Arial;appearance:none;-webkit-appearance:none}
#ua-quote-dialog select{background-image:linear-gradient(45deg,transparent 50%,#525e73 50%),linear-gradient(135deg,#525e73 50%,transparent 50%);background-position:calc(100% - 20px) 21px,calc(100% - 15px) 21px;background-size:5px 5px;background-repeat:no-repeat;padding-right:36px}
#ua-quote-dialog textarea{resize:vertical;min-height:110px}
#ua-quote-dialog input:focus-visible,#ua-quote-dialog select:focus-visible,#ua-quote-dialog textarea:focus-visible{outline:3px solid #525e7380;outline-offset:1px;border-color:#525e73}
.ua-quote-phone{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px}
.ua-quote-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0}
#ua-quote-dialog .ua-quote-send{width:100%;min-height:52px;justify-content:center;margin-top:4px;background:#181a22;color:#fff;border:1.5px solid #181a22;transition:background-color .15s,color .15s;border-radius:5px;font:700 15px Arial;cursor:pointer}
#ua-quote-dialog .ua-quote-send:hover:not(:disabled),#ua-quote-dialog .ua-quote-send:focus-visible:not(:disabled){background:#fff!important;color:#181a22!important;border-color:#181a22!important}
#ua-quote-dialog .ua-quote-send:disabled{opacity:.6;cursor:wait}
.ua-quote-feedback{margin:0;min-height:20px;font-size:14px;color:#485267;text-align:center}

/* Footer móvil: la línea bajo «Explora» abarca las dos columnas del grid. */
@media(max-width:700px){
 html body .footer-main > .footer-accordion:first-child .footer-accordion-toggle{overflow:visible!important;border-bottom-color:transparent!important}
 html body .footer-main > .footer-accordion:first-child .footer-accordion-toggle::after{display:block!important;content:'';position:absolute;left:0;bottom:-1px;width:calc(200% + 24px)!important;height:1px;background:rgba(72,82,103,.5)!important}
}

/* Iconos + / − de todos los acordeones: misma distancia al borde derecho de la tarjeta (24 px + borde), como «Preguntas y respuestas». */
html body main > #preguntas summary .faq-plus-icon{right:0}
html body main > #preguntas .faq-group > summary .faq-plus-icon{right:24px}
html body #planes .ua-custom-details>summary{padding-right:24px!important;gap:12px}

/* «A tu medida» con el mismo diseño del acordeón de preguntas frecuentes. */
html body #planes .ua-custom-details{border:1px solid #cbd3df!important;border-radius:5px!important;background:#fff!important;padding:0!important;color:#181a22}
html body #planes .ua-custom-details>summary{min-height:78px;box-sizing:border-box;padding:24px!important;font-size:20px!important;font-weight:600!important;color:#485267!important;gap:12px}
html body #planes .ua-custom-details>summary .ua-custom-heading{font-size:20px!important;font-weight:600!important;color:#485267!important}

/* Aceptación de términos en la cotización */
#ua-quote-dialog label.ua-quote-terms{display:flex;align-items:flex-start;gap:10px;font:400 13px/1.5 Arial;color:#30394a;margin:2px 0 4px}
#ua-quote-dialog .ua-quote-terms input[type=checkbox]{width:20px;min-width:20px;height:20px;min-height:0;padding:0;margin:1px 0 0;flex:0 0 auto;accent-color:#181a22;border-radius:4px}
#ua-quote-dialog .ua-quote-terms input[type=checkbox]{-webkit-appearance:none;appearance:none;border:1.5px solid #7b8497;background:#fff center/14px no-repeat;cursor:pointer;transition:background-color .12s,border-color .12s}
#ua-quote-dialog .ua-quote-terms input[type=checkbox]:checked{background-color:#181a22;border-color:#181a22;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.6l3 3 6.6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
#ua-quote-dialog .ua-quote-terms input[type=checkbox]:focus-visible{outline:2px solid #7787a9;outline-offset:2px}
#ua-quote-dialog .ua-quote-terms input.ua-touched:invalid{border-color:#b3261e}
#ua-quote-dialog .ua-quote-terms a{color:#181a22;text-decoration:underline}
#ua-quote-dialog .ua-quote-terms input.ua-touched:invalid + span{color:#b3261e}

/* Páginas legales */
.ua-legal{background:var(--surface,#fff);color:var(--body-text,#212631);padding:136px 0 90px;min-height:70vh}
.ua-legal[hidden]{display:none}
.ua-legal-inner{width:min(100% - 40px,780px);margin:0 auto}
.ua-legal-kicker{font:700 11px Arial,sans-serif;letter-spacing:.19em;opacity:.7;margin:0 0 10px}
.ua-legal h1{font-size:clamp(30px,6vw,44px);line-height:1.1;margin:0 0 8px}
.ua-legal-meta{font-size:13px;opacity:.7;margin:0 0 30px}
.ua-legal h2{font-size:19px;margin:34px 0 10px;letter-spacing:-.02em}
.ua-legal p,.ua-legal li{font-size:15.5px;line-height:1.7}
.ua-legal ul{padding-left:22px;margin:0 0 14px}
.ua-legal li{margin:6px 0}
.ua-legal mark{background:#fff3b0;color:#4a3b00;padding:0 3px;border-radius:3px}
.ua-legal-other{margin-top:44px;padding-top:22px;border-top:1px solid var(--border-theme,#D1D6E0)}
.ua-legal-other a{font-weight:700;text-decoration:underline}

.ua-quote-logo{display:block;width:150px;height:auto;margin:0 0 14px}

/* Escritorio: «Prueba gratis» del encabezado oscuro, igual que en celular y tableta. */
@media(min-width:921px){
 body #header.header .nav-actions>a.nav-cta.ua-free-trial{background:#1c1f29!important;background-color:#1c1f29!important;border-color:#1c1f29!important;color:#fff!important}
 body #header.header .nav-actions>a.nav-cta.ua-free-trial:is(:hover,:focus-visible,:active){background:#3e5489!important;background-color:#3e5489!important;border-color:#3e5489!important;color:#fff!important}
}

/* Sección Ayuda: fondo sólido #8d9ab1, sin degradados ni sombra alrededor de la tarjeta. */
html body #contacto.contact-section,html body section#contacto{background:#8d9ab1!important;background-color:#8d9ab1!important;background-image:none!important}
html body #contacto.contact-section::before,html body #contacto.contact-section::after{display:none!important;background:none!important}
html body #contacto .contact-panel.ua-contact-card{box-shadow:none!important}
/* Botón "Solicitar cotización": hover blanco (gana a las reglas globales de .btn) */
html body #ua-quote-dialog button.btn.ua-quote-send:not(#_a):not(#_b):not(#_c):not(#_d):not(:disabled):hover,html body #ua-quote-dialog button.btn.ua-quote-send:not(#_a):not(#_b):not(#_c):not(#_d):not(:disabled):focus-visible{background:#fff!important;background-color:#fff!important;color:#181a22!important;border-color:#181a22!important}

/* Logo del navbar -20% (escritorio). */
@media(min-width:921px){body #header.header .brand.brand-image{width:150px!important;height:53px!important}}

/* Navbar y menu movil: fondo #0f1113 */
html body #header.header,html body #header.header:has(.nav.menu-open){background:#0f1113!important;background-color:#0f1113!important}
@media(max-width:920px){html body #header.header .nav.container.menu-open,html body #header.header:has(.nav.menu-open) .nav.container,html body #header.header #main-nav.nav-links,html body #header.header #main-nav.nav-links.open{background:#0f1113!important;background-color:#0f1113!important}}
