/*
Theme Name: TOP TEST Elementor Free
Author: Blue+ / TOP TEST
Description: Tema corporativo independiente con páginas editables en Elementor gratuito. Version 2.
Version: 2.4.0
Requires PHP: 7.4
Text Domain: toptest
*/
:root{--dark:#081727;--navy:#0d2741;--blue:#165d85;--orange:#ffa72b;--ink:#20364b;--light:#f3f7fa}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:#fff;font-family:Inter,'Segoe UI',Arial,sans-serif;line-height:1.65}a{text-decoration:none;color:var(--blue)}img{max-width:100%;height:auto}.wrap{width:min(1200px,92%);margin:auto}.site-header{background:rgba(8,23,39,.98);position:sticky;top:0;z-index:100;box-shadow:0 4px 20px #0002}.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:78px;gap:18px}.brand{font-weight:900;font-size:27px;color:#fff;letter-spacing:.06em;white-space:nowrap}.brand span{color:var(--orange)}.brand-logo{width:66px;max-height:62px;object-fit:contain}.site-header nav ul{list-style:none;display:flex;gap:17px;align-items:center;margin:0;padding:0}.site-header nav a{color:white;font-size:13px;font-weight:700;transition:color .2s}.site-header nav a:hover,.site-header nav .current-menu-item a{color:var(--orange)}.header-quote{display:inline-flex;background:var(--orange);color:#0b223a;font-weight:800;border-radius:7px;padding:11px 17px;font-size:13px}.menu-toggle{display:none;background:none;border:1px solid #fff6;border-radius:6px;color:white;font-size:24px;padding:2px 12px;cursor:pointer}.site-footer{background:#071421;color:#c8d9e7;padding:55px 0 25px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:35px}.site-footer h3{color:white;margin:0 0 14px}.site-footer a{color:#eee}.copyright{border-top:1px solid #ffffff25;margin-top:38px;padding-top:16px;font-size:12px;color:#9bb0bf}.floating-wa{position:fixed;bottom:22px;right:20px;z-index:99;border-radius:30px;background:#17a963;color:white!important;box-shadow:0 9px 28px #0004;font-weight:750;padding:12px 18px}.content{min-height:40vh}.content.default{padding:50px 0}.page-title{background:var(--navy);padding:44px 0;color:white}.page-title h1{margin:0}.tt-hero{background:linear-gradient(100deg,rgba(6,20,34,.97) 5%,rgba(9,35,59,.91) 52%,rgba(10,37,59,.35)),url('assets/hero.jpg') center/cover}.tt-hero .elementor-heading-title,.tt-hero p,.tt-hero .elementor-widget-text-editor{color:#fff!important}.tt-kicker .elementor-heading-title{color:var(--orange)!important;letter-spacing:3px;font-weight:750}.tt-dark{background:#0c2339}.tt-dark .elementor-heading-title,.tt-dark p,.tt-dark .elementor-widget-text-editor{color:white!important}.tt-muted{background:#f3f7fa}.tt-card>.elementor-widget-wrap{border-radius:15px;background:white;padding:28px!important;box-shadow:0 14px 38px #153d5812;border:1px solid #e6edf3;transition:transform .25s,box-shadow .25s;height:100%}.tt-card:hover>.elementor-widget-wrap{transform:translateY(-6px);box-shadow:0 18px 38px #0a35582b}.tt-card .elementor-heading-title{color:#0e2d46}.tt-photo img{border-radius:14px;box-shadow:0 20px 48px #0d294022}.tt-tag .elementor-heading-title{color:#eb9825!important;text-transform:uppercase;letter-spacing:2px}.tt-stat .elementor-heading-title{color:#ffa72b!important}.tt-btn .elementor-button{background:var(--orange)!important;color:#0b2235!important;padding:16px 25px!important;font-weight:800!important;border-radius:7px!important;transition:transform .2s}.tt-btn .elementor-button:hover{transform:translateY(-2px)}.tt-btn-secondary .elementor-button{background:#fff!important;color:#143956!important;padding:15px 23px!important;border-radius:7px!important}.tt-service-image img{border-radius:12px}.elementor-section.elementor-section-boxed>.elementor-container{max-width:1180px}.elementor-widget-heading .elementor-heading-title{line-height:1.18}.elementor-widget-text-editor{line-height:1.75}@media(max-width:900px){.header-quote{display:none}.site-header nav ul{gap:9px;flex-wrap:wrap}}@media(max-width:720px){.menu-toggle{display:block}.header-inner{min-height:66px;flex-wrap:wrap}.site-header nav{display:none;flex-basis:100%;padding-bottom:14px}.site-header nav.is-open{display:block}.site-header nav ul{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.footer-grid{grid-template-columns:1fr}.tt-hero{background:linear-gradient(90deg,#081b2fed,#0c2b44d6),url('assets/hero.jpg') center/cover}.floating-wa{right:12px;bottom:12px}}

/* TOP TEST theme 2.2: altura consistente y color de acento */
:root{--orange:#f56b23}.site-header{top:0;overflow:visible}.site-header,.header-inner,.site-header nav{box-sizing:border-box}.site-header .header-inner{min-height:76px;transition:min-height .22s ease}.site-header.is-compact .header-inner{min-height:62px}.site-header .brand{display:flex;align-items:center;max-width:195px;line-height:1.2}.site-header .tt-header-logo{display:block;width:auto;height:auto;max-height:58px;max-width:180px;object-fit:contain;transition:max-height .22s ease}.site-header.is-compact .tt-header-logo{max-height:44px}.site-header .header-quote{background:#f56b23!important;color:white!important;white-space:nowrap;align-items:center}.site-header .header-quote:hover{background:#e75a18!important}.site-header nav ul{flex-wrap:nowrap}.site-header nav a{line-height:1.5;display:inline-block}.site-footer .footer-grid p{overflow-wrap:anywhere}@media(max-width:900px){.site-header nav ul{flex-wrap:wrap}.site-header .header-inner{min-height:70px}.site-header.is-compact .header-inner{min-height:64px}}@media(max-width:720px){.site-header .header-inner{min-height:66px}.site-header .header-quote{display:none}.site-header nav{width:100%}}

/* TOP TEST 2.3: Header persistente sin recorte al desplazarse.
   La altura se reserva en el documento para que el contenido no quede debajo. */
:root{--tt-header-full:80px;--tt-header-small:66px}
html{scroll-padding-top:calc(var(--tt-header-full) + 16px)}
body{padding-top:var(--tt-header-full)!important}
.site-header#tt-site-header{
 position:fixed!important;inset:auto 0 auto 0!important;top:0!important;
 width:100%!important;max-width:none!important;min-height:var(--tt-header-full);
 transform:none!important;translate:none!important;scale:1!important;
 margin:0!important;padding:0!important;overflow:visible!important;
 z-index:99990!important;isolation:isolate;
}
.site-header#tt-site-header .header-inner{
 height:var(--tt-header-full);min-height:var(--tt-header-full)!important;
 padding-top:0!important;padding-bottom:0!important;
 display:flex;align-items:center;overflow:visible!important;
 transition:height .22s ease,min-height .22s ease;
}
.site-header#tt-site-header.is-compact{min-height:var(--tt-header-small)}
.site-header#tt-site-header.is-compact .header-inner{
 height:var(--tt-header-small);min-height:var(--tt-header-small)!important;
}
.site-header#tt-site-header .brand{line-height:1.1!important;align-self:center;min-height:0;overflow:visible}
.site-header#tt-site-header .tt-header-logo{max-height:54px!important;max-width:175px!important;display:block!important;width:auto!important;object-fit:contain}
.site-header#tt-site-header.is-compact .tt-header-logo{max-height:43px!important}
.site-header#tt-site-header nav,.site-header#tt-site-header .header-quote{align-self:center;flex-shrink:0}
.site-header#tt-site-header .header-quote{line-height:1.2!important;margin:0!important;padding:11px 15px!important}
body.admin-bar #tt-site-header{top:32px!important}
@media(max-width:782px){body.admin-bar #tt-site-header{top:46px!important}}
@media(max-width:900px){:root{--tt-header-full:72px;--tt-header-small:66px}.site-header#tt-site-header .header-inner{gap:12px}}
@media(max-width:720px){
 :root{--tt-header-full:68px;--tt-header-small:62px}
 .site-header#tt-site-header .header-inner{flex-wrap:wrap;align-content:center;position:relative}
 .site-header#tt-site-header nav{position:absolute;top:100%;left:0;right:0;width:100%;background:#081727;padding:0 4% 15px;box-shadow:0 12px 16px #0002}
 .site-header#tt-site-header nav:not(.is-open){display:none!important}
 .site-header#tt-site-header .tt-header-logo{max-height:46px!important}
 .site-header#tt-site-header.is-compact .tt-header-logo{max-height:40px!important}
}

/* TOP TEST V2.4: reparación definitiva del recorte al desplazarse.
 * Se deshabilita la reducción automática del header y se utiliza una altura estable.
 * No se anima la posición ni el tamaño del contenedor fijo. */
:root{--tt-fixed-header-height:78px}
html{scroll-padding-top:94px!important}
body{padding-top:var(--tt-fixed-header-height)!important}
html body #tt-site-header.site-header,
html body #tt-site-header.site-header.is-compact{
  position:fixed!important;inset:0 0 auto 0!important;top:0!important;bottom:auto!important;
  display:block!important;width:100%!important;height:var(--tt-fixed-header-height)!important;
  min-height:var(--tt-fixed-header-height)!important;max-height:none!important;
  margin:0!important;padding:0!important;overflow:visible!important;
  transform:none!important;translate:none!important;transition:none!important;
  z-index:999990!important;box-sizing:border-box!important;
}
html body #tt-site-header .header-inner,
html body #tt-site-header.is-compact .header-inner{
  height:var(--tt-fixed-header-height)!important;min-height:var(--tt-fixed-header-height)!important;
  max-height:var(--tt-fixed-header-height)!important;
  margin:0 auto!important;padding:0!important;display:flex!important;
  align-items:center!important;align-content:center!important;
  justify-content:space-between!important;flex-wrap:nowrap!important;
  transform:none!important;transition:none!important;overflow:visible!important;
}
html body #tt-site-header .brand{position:relative!important;top:auto!important;transform:none!important;margin:0!important;line-height:1.15!important;max-height:60px!important;flex-shrink:0!important}
html body #tt-site-header .tt-header-logo,
html body #tt-site-header.is-compact .tt-header-logo{width:auto!important;height:auto!important;max-height:52px!important;max-width:175px!important;object-fit:contain!important;transform:none!important;margin:0!important}
html body #tt-site-header nav,
html body #tt-site-header .header-quote{position:relative;top:auto!important;transform:none!important;margin-top:0!important;margin-bottom:0!important;align-self:center!important}
html body.admin-bar #tt-site-header.site-header{top:32px!important;inset:32px 0 auto 0!important}
@media(max-width:782px){html body.admin-bar #tt-site-header.site-header{top:46px!important;inset:46px 0 auto 0!important}}
@media(max-width:900px){:root{--tt-fixed-header-height:72px}}
@media(max-width:720px){
 :root{--tt-fixed-header-height:66px}
 html body #tt-site-header .header-inner,html body #tt-site-header.is-compact .header-inner{flex-wrap:nowrap!important}
 html body #tt-site-header nav{position:absolute!important;top:100%!important;left:0;right:0;align-self:auto!important}
 html body #tt-site-header nav:not(.is-open){display:none!important}
 html body #tt-site-header .tt-header-logo{max-height:44px!important}
}
