:root{
  --tech-blue:#325FEB;
  --ocean-blue:#508FFF;
  --button-blue:#479efb;
  --footer-blue:#265cb2;
  --footer-bottom:#0b2755;
  --light-gray:#DCDDDD;
  --white:#FFFFFF;
  --dark-blue:#071116;
  --text:#071116;
  --text-soft:rgba(7,17,22,.72);
  --line:rgba(7,17,22,.10);
  --radius:12px;
  --container:1200px;
  --header-height:88px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Inter',sans-serif;color:var(--text);background:var(--white);overflow-x:hidden}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
img{max-width:100%;display:block}
.container{width:min(calc(100% - 40px), var(--container));margin:0 auto}
.section{padding:110px 0}

.site-header{position:fixed;top:0;left:0;right:0;z-index:40;background:rgba(255,255,255,.86);backdrop-filter:blur(16px);border-bottom:1px solid transparent;transition:.25s ease}
.site-header.scrolled{border-bottom-color:var(--line);box-shadow:0 8px 24px rgba(7,17,22,.05)}
.nav-row{height:var(--header-height);display:flex;align-items:center;gap:28px}
.brand img{height:40px;width:auto;object-fit:contain}
.desktop-nav{display:flex;gap:28px;margin-left:auto}
.desktop-nav a{font-size:14px;font-weight:500;color:var(--dark-blue);position:relative}
.desktop-nav a::after{content:"";position:absolute;left:0;bottom:-8px;width:100%;height:1.5px;background:var(--tech-blue);transform:scaleX(0);transform-origin:left;transition:.25s}
.desktop-nav a:hover::after,.desktop-nav a.active::after{transform:scaleX(1)}
.header-cta,.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:10px;font-weight:600;transition:.22s ease;border:1px solid transparent}
.header-cta{background:var(--button-blue);color:var(--white)}
.header-cta:hover,.btn-primary:hover{transform:translateY(-2px);background:#318eea}
.menu-toggle{display:none;margin-left:auto;background:none;border:0;width:44px;height:44px;padding:0;position:relative;cursor:pointer}
.menu-toggle span{position:absolute;left:10px;width:24px;height:2px;background:var(--dark-blue);transition:.25s}
.menu-toggle span:nth-child(1){top:13px}.menu-toggle span:nth-child(2){top:21px}.menu-toggle span:nth-child(3){top:29px}
.menu-toggle.active span:nth-child(1){transform:rotate(45deg);top:21px}
.menu-toggle.active span:nth-child(2){opacity:0}
.menu-toggle.active span:nth-child(3){transform:rotate(-45deg);top:21px}
.mobile-menu{position:fixed;top:var(--header-height);left:0;right:0;background:var(--white);border-bottom:1px solid var(--line);padding:22px 20px 26px;display:none;z-index:35}
.mobile-menu nav{display:flex;flex-direction:column;gap:14px;margin-bottom:16px}.mobile-menu a{font-size:16px;font-weight:500}.mobile-cta{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 16px;border-radius:10px;background:var(--button-blue);color:#fff}
.mobile-menu.open{display:block}

.hero{padding-top:calc(var(--header-height) + 22px);background:linear-gradient(180deg, #f8fbff 0%, #ffffff 100%)}
.hero-slider{position:relative;min-height:640px}
.slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .55s ease, visibility .55s ease;background-position:center;background-size:cover;background-repeat:no-repeat;border:1px solid rgba(7,17,22,.08);border-radius:18px;overflow:hidden}
.slide::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.72) 38%, rgba(255,255,255,.12) 100%)}
.slide.is-active{opacity:1;visibility:visible}
.slide-content{position:relative;z-index:1;min-height:640px;display:flex;align-items:center}
.hero-copy{max-width:620px;padding:56px 0}
.eyebrow,.section-tag{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.14em;color:var(--tech-blue);margin-bottom:18px}
.hero h1,.hero h2,.section h2{margin:0;line-height:1.03;letter-spacing:-.03em;color:var(--dark-blue)}
.hero h1,.hero h2{font-size:clamp(42px,6vw,74px);max-width:620px}
.hero p{font-size:17px;line-height:1.7;color:var(--text-soft);margin:20px 0 0;max-width:580px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.btn-primary{background:var(--button-blue);color:var(--white)}
.btn-secondary{background:transparent;border-color:var(--dark-blue);color:var(--dark-blue)}
.btn-secondary:hover{background:var(--dark-blue);color:var(--white)}
.slider-ui{display:flex;justify-content:flex-end;margin-top:22px}
.slider-controls{display:flex;align-items:center;gap:14px;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:10px 12px;box-shadow:0 12px 28px rgba(7,17,22,.06)}
.slider-controls button{cursor:pointer}
#prevSlide,#nextSlide{width:42px;height:42px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--dark-blue);font-size:24px;display:grid;place-items:center}
.slider-dots{display:flex;gap:8px}.slider-dots button{width:11px;height:11px;border-radius:999px;border:0;background:rgba(7,17,22,.22);padding:0}.slider-dots button.is-active{width:30px;background:var(--tech-blue)}

.intro-grid,.section-head,.contact-grid,.rpo-grid{display:grid;grid-template-columns:1fr 1fr;gap:42px;align-items:start}
.section h2{font-size:clamp(34px,4.8vw,56px);max-width:760px}
.copy-block p,.section-head p,.contact-text,.rpo-grid>div>p{font-size:16px;line-height:1.75;color:var(--text-soft);margin:0 0 16px}
.values-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;margin-top:44px}
.info-card,.service-card,.contact-form{background:var(--white);border:1px solid var(--line);border-radius:var(--radius)}
.info-card{padding:26px}
.card-label{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.14em;color:var(--tech-blue);margin-bottom:16px}
.info-card p{margin:0;font-size:15px;line-height:1.75;color:var(--text-soft)}
.accent-card{background:linear-gradient(180deg, rgba(50,95,235,.06) 0%, rgba(80,143,255,.10) 100%)}
.chips{display:flex;flex-wrap:wrap;gap:10px}.chips span{padding:10px 12px;border:1px solid rgba(50,95,235,.18);background:#fff;border-radius:10px;font-size:13px;font-weight:500;color:var(--dark-blue)}

.services{background:#fafbfd}
.section-head{margin-bottom:28px}
.services-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.service-card{padding:28px;min-height:250px}
.service-card span{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:rgba(50,95,235,.10);color:var(--tech-blue);font-size:13px;font-weight:700;margin-bottom:18px}
.service-card h3{margin:0 0 12px;font-size:22px;line-height:1.2;color:var(--dark-blue)}
.service-card p{margin:0;font-size:15px;line-height:1.75;color:var(--text-soft)}

.rpo-block{background:var(--white)}
.rpo-list{display:grid;gap:14px}
.rpo-list div{display:grid;grid-template-columns:54px 1fr;gap:18px;align-items:start;padding:18px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(220,221,221,.18) 100%)}
.rpo-list strong{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:rgba(80,143,255,.12);color:var(--tech-blue);font-size:13px}
.rpo-list p{margin:0;font-size:15px;line-height:1.6;color:var(--dark-blue)}

.contact{background:#fafbfd}
.contact-links{display:grid;gap:14px;margin-top:28px}
.contact-links a{display:flex;justify-content:space-between;gap:16px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff}
.contact-links span{font-size:12px;font-weight:700;letter-spacing:.12em;color:var(--tech-blue);text-transform:uppercase}
.contact-links strong{font-size:14px;color:var(--dark-blue)}
.contact-form{padding:26px;box-shadow:0 14px 32px rgba(7,17,22,.05)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-grid label{display:flex;flex-direction:column;gap:8px}.form-grid .full{grid-column:1/-1}
.form-grid span{font-size:12px;font-weight:600;color:var(--dark-blue)}
.form-grid input,.form-grid select,.form-grid textarea{width:100%;border:1px solid rgba(7,17,22,.14);border-radius:10px;background:#fff;padding:14px 14px;color:var(--dark-blue);outline:none;transition:.2s}
.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:var(--tech-blue);box-shadow:0 0 0 4px rgba(50,95,235,.10)}
.form-grid textarea{resize:vertical;min-height:130px}
.captcha-wrap{margin-top:18px}
.submit-btn{margin-top:20px;border:0}
.form-note{margin:14px 0 0;font-size:12px;line-height:1.6;color:var(--text-soft)}

.site-footer{padding:30px 0;border-top:1px solid var(--line);background:#fff}
.footer-row{display:grid;grid-template-columns:auto 1fr auto;gap:24px;align-items:center}
.footer-brand img{height:38px;width:auto}
.footer-links{display:flex;flex-wrap:wrap;gap:18px;justify-content:center}
.footer-links a{font-size:14px;color:var(--dark-blue)}
.site-footer p{margin:0;font-size:13px;color:var(--text-soft)}

@media (max-width: 1024px){
  .desktop-nav,.header-cta{display:none}
  .menu-toggle{display:block}
  .intro-grid,.section-head,.contact-grid,.rpo-grid,.values-grid,.services-grid,.footer-row{grid-template-columns:1fr}
  .footer-links{justify-content:flex-start}
  .slide-content{min-height:580px}
  .hero-slider{min-height:580px}
}
@media (max-width: 720px){
  .container{width:min(calc(100% - 28px), var(--container))}
  .section{padding:82px 0}
  :root{--header-height:80px}
  .brand img{height:34px}
  .hero{padding-top:calc(var(--header-height) + 18px)}
  .hero-slider,.slide-content{min-height:540px}
  .slide{border-radius:14px}
  .slide::before{background:linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.78) 52%, rgba(255,255,255,.28) 100%)}
  .hero-copy{padding:36px 0}
  .hero-actions{flex-direction:column;align-items:stretch}
  .btn,.header-cta,.mobile-cta{width:100%}
  .slider-ui{justify-content:flex-start}
  .form-grid{grid-template-columns:1fr}
  .contact-form{padding:20px}
  .contact-links a{flex-direction:column;align-items:flex-start}
}

/* Footer corporativo */
.site-footer{padding:0;background:var(--footer-blue);color:#fff;border-top:0}
.footer-main{background:var(--footer-blue);padding:58px 0 52px}
.footer-grid{display:grid;grid-template-columns:1.25fr 1.15fr .95fr 1fr;gap:54px;align-items:start}
.footer-brand-col{max-width:290px}
.footer-brand img{height:44px;width:auto;filter:brightness(0) invert(1)}
.footer-brand-col p{margin:20px 0 0;font-size:14px;line-height:1.7;color:rgba(255,255,255,.92)}
.footer-col{display:flex;flex-direction:column;gap:10px}
.footer-col h3{margin:0 0 16px;font-size:15px;line-height:1.2;color:#fff}
.footer-col a{font-size:14px;line-height:1.4;color:rgba(255,255,255,.92);transition:.2s}
.footer-col a:hover{color:#fff;transform:translateX(2px)}
.footer-contact-col{gap:26px}
.footer-contact-btn{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;background:var(--button-blue);color:#fff!important;border-radius:6px;font-size:13px!important;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.footer-contact-btn:hover{background:#318eea;transform:none!important}
.footer-socials{display:flex;gap:12px}
.footer-socials a{width:38px;height:38px;border:1px solid rgba(255,255,255,.32);display:grid;place-items:center;border-radius:6px;color:#fff;font-size:14px;font-weight:700}
.footer-socials a:hover{background:#fff;color:var(--tech-blue);transform:none}
.footer-bottom-bar{background:var(--footer-bottom);padding:18px 0}
.footer-bottom-row{display:flex;align-items:center;justify-content:space-between;gap:24px;font-size:13px;color:rgba(255,255,255,.78)}
.footer-bottom-row a{color:#fff;font-weight:600}
.footer-bottom-row a:hover{text-decoration:underline}

@media (max-width: 980px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:38px 44px}
  .footer-contact-col{align-self:start}
}
@media (max-width: 640px){
  .footer-main{padding:44px 0 38px}
  .footer-grid{grid-template-columns:1fr;gap:34px}
  .footer-brand-col{max-width:none}
  .footer-contact-btn{width:100%}
  .footer-bottom-row{flex-direction:column;align-items:flex-start;gap:8px}
}


/* Slide fullscreen v4 */
.hero.hero-fullscreen{padding-top:0;position:relative;overflow:hidden;background:var(--white)}
.hero-fullscreen .hero-slider{position:relative;min-height:100svh;height:100svh}
.hero-fullscreen .slide{border-radius:0;border:0}
.hero-fullscreen .slide::before{display:none}
.hero-fullscreen .slide-overlay{position:absolute;inset:0;background:linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 36%, rgba(255,255,255,.18) 100%)}
.hero-fullscreen .slide-content{position:relative;z-index:1;min-height:100svh;height:100svh;display:flex;align-items:center;padding-top:96px;padding-bottom:112px}
.hero-fullscreen .hero-copy{max-width:620px}
.hero-fullscreen .slider-ui{position:absolute;left:0;right:0;bottom:42px;z-index:4;margin-top:0}
.hero-fullscreen .slider-ui-inner{display:flex;justify-content:center}
.slider-controls-minimal{display:flex;align-items:center;gap:16px;padding:12px 16px;border-radius:999px;background:rgba(255,255,255,.72);backdrop-filter:blur(18px);border:1px solid rgba(7,17,22,.08);box-shadow:0 18px 42px rgba(7,17,22,.08)}
.nav-minimal{width:36px;height:36px;border-radius:999px;border:0;background:transparent;color:var(--dark-blue);font-size:24px;display:grid;place-items:center;transition:.22s ease;cursor:pointer}
.nav-minimal:hover{background:rgba(50,95,235,.08);color:var(--tech-blue)}
.slider-dots-minimal{display:flex;align-items:center;gap:10px}
.slider-dots-minimal button{width:34px;height:3px;border-radius:999px;border:0;background:rgba(7,17,22,.18);padding:0;transition:.22s ease;cursor:pointer}
.slider-dots-minimal button.is-active{background:var(--tech-blue);width:52px}

@media (max-width: 1024px){
  .hero-fullscreen .hero-slider,.hero-fullscreen .slide-content{min-height:92svh;height:92svh}
}
@media (max-width: 720px){
  .hero-fullscreen .hero-slider,.hero-fullscreen .slide-content{min-height:86svh;height:86svh}
  .hero-fullscreen .slide-overlay{background:linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.84) 48%, rgba(255,255,255,.34) 100%)}
  .hero-fullscreen .slide-content{padding-top:92px;padding-bottom:104px}
  .hero-fullscreen .slider-ui{bottom:24px}
  .slider-controls-minimal{padding:10px 12px;gap:10px}
  .slider-dots-minimal button{width:24px}
  .slider-dots-minimal button.is-active{width:40px}
}

/* V5 - Bloque Servicios con color de fondo */
.services{
  background:var(--ocean-blue);
  color:var(--white);
}
.services .section-tag,
.services .section-head h2{
  color:var(--white);
}
.services .section-head>p{
  color:rgba(255,255,255,.82);
}
.services-grid .service-card{
  background:var(--white);
  border-color:rgba(255,255,255,.18);
  box-shadow:0 14px 32px rgba(7,17,22,.08);
}
.services-grid .service-card h3{
  color:var(--dark-blue);
}
.services-grid .service-card p{
  color:rgba(7,17,22,.72);
}
.services-grid .service-card>span{
  background:rgba(50,95,235,.10);
  color:var(--tech-blue);
}


/* =========================================================
   V7 — Mejor combinación de color + más animaciones
   ========================================================= */

:root{
  --soft-blue:#eaf2ff;
  --soft-blue-2:#dfeaff;
  --mist:#f1f5fb;
  --panel-blue:#edf4ff;
  --panel-gray:#eef1f5;
  --deep:#0b2755;
  --deep-2:#153a70;
  --aqua:#86c8ff;
}

/* Less white overall */
body{
  background:linear-gradient(180deg,#edf4ff 0%,#f1f4f8 28%,#e9f1fb 64%,#edf2f7 100%);
}
.about{background:linear-gradient(180deg,#eaf2ff 0%,#f1f5fb 100%)}
.services{background:linear-gradient(135deg,#3f89e8 0%,#2f6fca 56%,#265cb2 100%) !important}
.rpo-block{background:linear-gradient(180deg,#dfeaff 0%,#edf3fb 100%)}
.contact{background:linear-gradient(180deg,#e8f1ff 0%,#dfe9f7 100%)}
.site-footer{background:var(--footer-blue)}

/* Header richer but still clean */
.site-header{
  background:rgba(234,242,255,.82);
  border-bottom:1px solid rgba(11,39,85,.08);
  backdrop-filter:blur(18px) saturate(145%);
}
.site-header.scrolled{
  background:rgba(223,234,255,.92);
  box-shadow:0 10px 30px rgba(11,39,85,.08);
}

/* Hero mood */
.hero-fullscreen .slide-overlay{
  background:
    linear-gradient(90deg,rgba(234,242,255,.97) 0%,rgba(223,234,255,.88) 35%,rgba(80,143,255,.22) 64%,rgba(38,92,178,.06) 100%);
}
.hero-copy{
  animation:heroCopyIn .85s cubic-bezier(.2,.8,.2,1) both;
}
.slide.is-active .hero-copy{
  animation:heroCopyIn .85s cubic-bezier(.2,.8,.2,1) both;
}
.slide.is-active .hero-copy .eyebrow{animation:fadeUp .7s .05s both}
.slide.is-active .hero-copy h1,
.slide.is-active .hero-copy h2{animation:fadeUp .78s .13s both}
.slide.is-active .hero-copy p{animation:fadeUp .78s .22s both}
.slide.is-active .hero-actions{animation:fadeUp .78s .31s both}
@keyframes heroCopyIn{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:none}
}
@keyframes fadeUp{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:none}
}

/* Animated subtle light field over hero */
.hero-fullscreen::after{
  content:"";
  position:absolute;
  width:34vw;
  height:34vw;
  min-width:360px;
  min-height:360px;
  right:-8vw;
  top:14vh;
  border-radius:50%;
  background:radial-gradient(circle,rgba(71,158,251,.22) 0%,rgba(71,158,251,.08) 38%,transparent 70%);
  filter:blur(6px);
  pointer-events:none;
  animation:floatOrb 8s ease-in-out infinite alternate;
  z-index:2;
}
@keyframes floatOrb{
  from{transform:translate3d(0,0,0) scale(1)}
  to{transform:translate3d(-24px,28px,0) scale(1.08)}
}

/* Buttons */
.btn,.header-cta,.footer-contact-btn,.mobile-cta{
  box-shadow:0 10px 24px rgba(71,158,251,.18);
  transition:transform .25s ease,box-shadow .25s ease,background .25s ease,color .25s ease;
}
.btn:hover,.header-cta:hover,.footer-contact-btn:hover,.mobile-cta:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 34px rgba(38,92,178,.24);
}
.btn-secondary{
  background:rgba(255,255,255,.35);
  backdrop-filter:blur(10px);
}

/* Cards and blocks */
.info-card,.service-card,.contact-form,.contact-links a,.rpo-list div{
  transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease,background .3s ease;
}
.info-card{
  background:linear-gradient(180deg,#f8fbff 0%,#edf4ff 100%);
}
.info-card:hover{
  transform:translateY(-6px);
  border-color:rgba(71,158,251,.28);
  box-shadow:0 18px 36px rgba(11,39,85,.10);
}
.accent-card{
  background:linear-gradient(145deg,#dceaff 0%,#cfe1ff 100%);
}
.service-card{
  background:rgba(255,255,255,.92);
  border-color:rgba(255,255,255,.30);
  box-shadow:0 12px 28px rgba(11,39,85,.09);
}
.service-card:hover{
  transform:translateY(-8px);
  box-shadow:0 22px 42px rgba(11,39,85,.16);
}
.service-card span{
  transition:transform .25s ease,background .25s ease,color .25s ease;
}
.service-card:hover span{
  transform:scale(1.08) rotate(-2deg);
  background:var(--button-blue);
  color:#fff;
}
.rpo-list div{
  background:linear-gradient(135deg,#f7faff 0%,#e6effd 100%);
}
.rpo-list div:hover{
  transform:translateX(6px);
  border-color:rgba(71,158,251,.30);
  box-shadow:0 12px 26px rgba(11,39,85,.08);
}
.contact-form{
  background:linear-gradient(180deg,#f9fbff 0%,#eef4fc 100%);
  box-shadow:0 20px 44px rgba(11,39,85,.10);
}
.contact-links a{
  background:linear-gradient(180deg,#f8fbff 0%,#edf4ff 100%);
}
.contact-links a:hover{
  transform:translateX(5px);
  border-color:rgba(71,158,251,.32);
}

/* Section reveal animation */
.reveal-on-scroll{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .7s cubic-bezier(.2,.8,.2,1),transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal-on-scroll.is-visible{
  opacity:1;
  transform:none;
}
.reveal-on-scroll.delay-1{transition-delay:.08s}
.reveal-on-scroll.delay-2{transition-delay:.16s}
.reveal-on-scroll.delay-3{transition-delay:.24s}

/* Section headings */
.section-tag{
  color:#265cb2;
}
.about h2,.rpo-block h2,.contact h2{
  color:#0b2755;
}
.services .section-tag,
.services h2,
.services .section-head>p{
  color:#fff !important;
}
.services .section-head>p{opacity:.82}

/* Micro interactions */
.desktop-nav a{
  transition:color .2s ease,opacity .2s ease;
}
.desktop-nav a:hover{color:#265cb2}
.footer-col a{transition:transform .2s ease,opacity .2s ease}
.footer-col a:hover{transform:translateX(4px)}

/* Slide dots more alive but still minimal */
.slider-dots-minimal button{
  transition:width .28s ease,background .28s ease,opacity .28s ease;
}
.slider-dots-minimal button:not(.is-active){opacity:.5}
.nav-minimal{
  transition:transform .2s ease,background .2s ease,color .2s ease;
}
.nav-minimal:hover{transform:scale(1.06)}

/* Inputs */
.form-grid input,.form-grid select,.form-grid textarea{
  background:#f8fbff;
}
.form-grid input:hover,.form-grid select:hover,.form-grid textarea:hover{
  border-color:rgba(71,158,251,.30);
}

/* Mobile tweaks */
@media(max-width:720px){
  .hero-fullscreen::after{
    width:70vw;height:70vw;right:-26vw;top:18vh;
  }
  .info-card:hover,.service-card:hover,.rpo-list div:hover,.contact-links a:hover{
    transform:none;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
}


/* =========================================================
   V9 — Navbar #265cb2 + menú móvil fullscreen moderno
   ========================================================= */

.site-header{
  background:#265cb2 !important;
  border-bottom:1px solid rgba(255,255,255,.12);
  box-shadow:none;
  backdrop-filter:none;
}
.site-header.scrolled{
  background:#265cb2 !important;
  border-bottom-color:rgba(255,255,255,.14);
  box-shadow:0 10px 28px rgba(11,39,85,.14);
}
.brand img{
  filter:brightness(0) invert(1);
}
.desktop-nav a,
.header-cta{
  color:#fff;
}
.desktop-nav a::after{
  background:#fff;
}
.header-cta{
  background:#479efb;
  border-color:rgba(255,255,255,.14);
}
.header-cta:hover{
  background:#318eea;
}
.menu-toggle span{
  background:#fff;
}

/* Fullscreen mobile / tablet menu */
@media (max-width:1024px){
  .mobile-menu{
    position:fixed;
    inset:0;
    top:0;
    width:100%;
    height:100dvh;
    padding:112px 28px 34px;
    background:
      radial-gradient(circle at 88% 14%, rgba(71,158,251,.22), transparent 30%),
      linear-gradient(180deg,#265cb2 0%,#1d4d99 100%);
    border:0;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    opacity:0;
    visibility:hidden;
    transform:translateY(-10px);
    transition:opacity .28s ease,visibility .28s ease,transform .28s ease;
    z-index:35;
  }
  .mobile-menu.open{
    opacity:1;
    visibility:visible;
    transform:none;
  }

  .mobile-menu nav{
    display:flex;
    flex-direction:column;
    gap:0;
  }
  .mobile-menu nav a{
    position:relative;
    display:flex;
    align-items:center;
    min-height:72px;
    padding:0;
    color:#fff;
    font-size:clamp(30px,6vw,48px);
    font-weight:600;
    letter-spacing:-.03em;
    border-bottom:1px solid rgba(255,255,255,.14);
    opacity:.92;
    transition:padding-left .22s ease,opacity .22s ease;
  }
  .mobile-menu nav a:hover{
    padding-left:8px;
    opacity:1;
  }

  .mobile-cta{
    width:100%;
    min-height:54px;
    border-radius:8px;
    background:#479efb;
    color:#fff !important;
    font-size:14px;
    font-weight:700;
    letter-spacing:.01em;
    box-shadow:none;
  }
  .mobile-cta:hover{
    background:#318eea;
    transform:none;
  }

  .menu-toggle{
    z-index:50;
  }

  body.menu-open{
    overflow:hidden;
  }
}

/* Mobile menu compact spacing on phones */
@media (max-width:720px){
  .mobile-menu{
    padding:98px 20px 24px;
  }
  .mobile-menu nav a{
    min-height:64px;
    font-size:clamp(28px,10vw,42px);
  }
}


/* =========================================================
   V10 — Slide fullscreen móvil + control minimal bottom-right
   ========================================================= */

/* Control más minimalista y alineado a la esquina inferior derecha */
.hero-fullscreen .slider-ui{
  position:absolute;
  left:0;
  right:0;
  bottom:28px;
  z-index:4;
  margin-top:0;
}
.hero-fullscreen .slider-ui-inner{
  display:flex;
  justify-content:flex-end;
}
.slider-controls-minimal{
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.52);
  backdrop-filter:blur(16px);
  border:1px solid rgba(11,39,85,.08);
  box-shadow:0 10px 26px rgba(11,39,85,.10);
}
.nav-minimal{
  width:30px;
  height:30px;
  font-size:20px;
  color:#0b2755;
}
.nav-minimal:hover{
  background:rgba(71,158,251,.10);
}
.slider-dots-minimal{
  gap:7px;
}
.slider-dots-minimal button{
  width:20px;
  height:2px;
  border-radius:999px;
  background:rgba(11,39,85,.22);
}
.slider-dots-minimal button.is-active{
  width:34px;
  background:#479efb;
}

/* El slide debe ocupar toda la pantalla también en móviles */
@media (max-width:1024px){
  .hero-fullscreen .hero-slider,
  .hero-fullscreen .slide-content{
    min-height:100dvh;
    height:100dvh;
  }
  .hero-fullscreen .slide-content{
    padding-top:96px;
    padding-bottom:110px;
  }
  .hero-fullscreen .slider-ui{
    bottom:24px;
  }
}

@media (max-width:720px){
  .hero-fullscreen .hero-slider,
  .hero-fullscreen .slide-content{
    min-height:100dvh;
    height:100dvh;
  }
  .hero-fullscreen .slide-content{
    padding-top:88px;
    padding-bottom:96px;
  }
  .hero-fullscreen .slider-ui{
    bottom:18px;
  }
  .hero-fullscreen .slider-ui-inner{
    justify-content:flex-end;
  }
  .slider-controls-minimal{
    padding:8px 10px;
    gap:8px;
  }
  .nav-minimal{
    width:28px;
    height:28px;
    font-size:18px;
  }
  .slider-dots-minimal button{
    width:16px;
  }
  .slider-dots-minimal button.is-active{
    width:28px;
  }
}


/* =========================================================
   V11 — control del slide más simple y limpio
   ========================================================= */
.hero-fullscreen .slider-ui{bottom:22px}
.hero-fullscreen .slider-ui-inner{justify-content:flex-end}
.slider-controls-minimal{
  gap:8px;
  padding:0;
  background:transparent;
  backdrop-filter:none;
  border:0;
  box-shadow:none;
}
.nav-minimal{
  width:22px;
  height:22px;
  border-radius:999px;
  background:transparent;
  color:rgba(11,39,85,.62);
  font-size:18px;
  line-height:1;
  opacity:.85;
}
.nav-minimal:hover{
  background:transparent;
  color:#0b2755;
  transform:none;
}
.slider-dots-minimal{
  gap:6px;
}
.slider-dots-minimal button{
  width:14px;
  height:2px;
  border-radius:999px;
  background:rgba(11,39,85,.18);
}
.slider-dots-minimal button.is-active{
  width:24px;
  background:#479efb;
}
@media (max-width:720px){
  .hero-fullscreen .slider-ui{bottom:16px}
  .slider-controls-minimal{gap:7px}
  .nav-minimal{
    width:20px;
    height:20px;
    font-size:16px;
  }
  .slider-dots-minimal button{
    width:12px;
  }
  .slider-dots-minimal button.is-active{
    width:20px;
  }
}


/* =========================================================
   V12 — control solo con 3 rectángulos + botones invertidos
   ========================================================= */

/* Control del slide: solo 3 rectángulos */
.slider-controls-minimal{
  gap:0;
}
.nav-minimal{
  display:none;
}
.slider-dots-minimal{
  gap:8px;
}
.slider-dots-minimal button{
  width:26px;
  height:4px;
  border-radius:2px;
  background:rgba(11,39,85,.18);
}
.slider-dots-minimal button.is-active{
  width:26px;
  background:#0b2755;
}
@media (max-width:720px){
  .slider-dots-minimal{gap:7px}
  .slider-dots-minimal button,
  .slider-dots-minimal button.is-active{
    width:22px;
    height:4px;
  }
}

/* Botones secundarios/blancos invertidos: default negro, hover blanco.
   Los botones azules conservan su estilo anterior. */
.btn-secondary{
  background:#000 !important;
  color:#fff !important;
  border:1px solid #000 !important;
  box-shadow:none;
  backdrop-filter:none;
}
.btn-secondary:hover{
  background:#fff !important;
  color:#000 !important;
  border-color:#000 !important;
  box-shadow:none;
  transform:translateY(-2px);
}


/* =========================================================
   V14 — ajustes de botones, slider móvil y footer
   ========================================================= */

/* Botones secundarios: azul oscuro solicitado */
.btn-secondary{
  background:#0b2755 !important;
  color:#fff !important;
  border-color:#0b2755 !important;
}
.btn-secondary:hover{
  background:#173f76 !important;
  color:#fff !important;
  border-color:#173f76 !important;
}

/* Control del slider: únicamente 3 rectángulos */
.nav-minimal,
#prevSlide,
#nextSlide{
  display:none !important;
}
.slider-controls-minimal{
  padding:0 !important;
  gap:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}
.slider-dots-minimal{
  display:flex;
  gap:8px;
}
.slider-dots-minimal button,
.slider-dots-minimal button.is-active{
  width:28px;
  height:4px;
  border-radius:2px;
}
.slider-dots-minimal button{
  background:rgba(11,39,85,.24);
}
.slider-dots-minimal button.is-active{
  background:#0b2755;
}

/* Tablet y móvil: contenido del slide abajo a la izquierda */
@media (max-width:1024px){
  .hero-fullscreen .slide-content{
    align-items:flex-end !important;
    padding-top:100px !important;
    padding-bottom:86px !important;
  }
  .hero-fullscreen .hero-copy{
    width:100%;
    max-width:none;
    padding:0;
    text-align:left;
  }
  .hero-fullscreen .hero-copy h1,
  .hero-fullscreen .hero-copy h2,
  .hero-fullscreen .hero-copy p{
    max-width:760px;
  }
  .hero-fullscreen .hero-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin-top:24px;
  }
  .hero-fullscreen .hero-actions .btn{
    width:100%;
  }
  .hero-fullscreen .slider-ui{
    bottom:20px;
  }
  .hero-fullscreen .slider-ui-inner{
    justify-content:flex-end;
  }
}

@media (max-width:720px){
  .hero-fullscreen .slide-content{
    padding-top:86px !important;
    padding-bottom:74px !important;
  }
  .hero-fullscreen .hero-copy{
    width:100%;
  }
  .hero-fullscreen .hero-copy h1,
  .hero-fullscreen .hero-copy h2{
    font-size:clamp(38px,11vw,54px);
  }
  .hero-fullscreen .hero-copy p{
    font-size:15px;
    line-height:1.6;
  }
  .hero-fullscreen .hero-actions{
    gap:8px;
    margin-top:20px;
  }
  .hero-fullscreen .hero-actions .btn{
    min-height:50px;
  }
  .hero-fullscreen .slider-ui{
    bottom:14px;
  }
  .slider-dots-minimal button,
  .slider-dots-minimal button.is-active{
    width:22px;
    height:4px;
  }
}

/* Footer: centrar contacto, redes, derechos y desarrollo */
.footer-contact-col{
  align-items:center;
  text-align:center;
}
.footer-contact-btn{
  width:100%;
  max-width:280px;
  margin-inline:auto;
}
.footer-socials{
  justify-content:center;
  width:100%;
}
.footer-bottom-row{
  justify-content:center !important;
  text-align:center;
}
.footer-bottom-row > span{
  flex:1;
  text-align:center;
}

/* En tablet y móvil, todo el footer queda centrado */
@media (max-width:980px){
  .footer-grid{
    text-align:center;
  }
  .footer-brand-col{
    margin-inline:auto;
    text-align:center;
  }
  .footer-brand{
    display:flex;
    justify-content:center;
  }
  .footer-col{
    align-items:center;
    text-align:center;
  }
  .footer-contact-col{
    align-items:center;
  }
  .footer-bottom-row{
    flex-direction:column;
    align-items:center !important;
    justify-content:center !important;
    gap:8px;
  }
  .footer-bottom-row > span{
    flex:none;
    width:100%;
    text-align:center;
  }
}

@media (max-width:640px){
  .footer-grid{
    text-align:center;
  }
  .footer-col,
  .footer-contact-col{
    align-items:center;
  }
  .footer-bottom-row{
    align-items:center !important;
    text-align:center;
  }
}


/* =========================================================
   V15 — degradado reducido + texto MENU + logo visible
   ========================================================= */

/* Reducir la capa/degradado encima de las imágenes del slide */
.hero-fullscreen .slide-overlay{
  background:
    linear-gradient(
      90deg,
      rgba(234,242,255,.72) 0%,
      rgba(223,234,255,.48) 34%,
      rgba(80,143,255,.10) 62%,
      rgba(38,92,178,.02) 100%
    ) !important;
}

/* Mantener navbar y logo por encima del menú fullscreen */
.site-header{
  z-index:60 !important;
}
.brand{
  position:relative;
  z-index:62;
}
.brand img{
  opacity:1 !important;
  visibility:visible !important;
}

/* Texto MENU junto a la hamburguesa */
.menu-toggle{
  width:88px !important;
  margin-left:auto;
}
.menu-toggle::before{
  content:"MENU";
  position:absolute;
  right:42px;
  top:50%;
  transform:translateY(-50%);
  color:#fff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  line-height:1;
  white-space:nowrap;
}
.menu-toggle span{
  left:auto !important;
  right:10px;
}

/* En móviles/tabletas el menú abre por debajo visualmente,
   pero el header con logo y botón MENU permanece visible */
@media (max-width:1024px){
  .mobile-menu{
    z-index:55 !important;
    padding-top:112px !important;
  }
  .site-header{
    background:#265cb2 !important;
  }
  .site-header .nav-row{
    position:relative;
    z-index:61;
  }
}

/* Menos degradado todavía en celulares para ver más la imagen */
@media (max-width:720px){
  .hero-fullscreen .slide-overlay{
    background:
      linear-gradient(
        180deg,
        rgba(234,242,255,.34) 0%,
        rgba(223,234,255,.28) 42%,
        rgba(223,234,255,.54) 72%,
        rgba(223,234,255,.68) 100%
      ) !important;
  }
  .menu-toggle{
    width:82px !important;
  }
  .menu-toggle::before{
    right:39px;
    font-size:11px;
  }
}


/* =========================================================
   V16 — títulos blancos en slides + footer desktop alineado
   ========================================================= */

/* Texto grande de los slides en blanco */
.hero-fullscreen .hero-copy h1,
.hero-fullscreen .hero-copy h2{
  color:#fff !important;
  text-shadow:0 2px 14px rgba(11,39,85,.30);
}

/* Footer escritorio: izquierda / derecha */
@media (min-width:981px){
  .footer-bottom-row{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    text-align:left !important;
  }
  .footer-bottom-row > span{
    flex:0 0 auto !important;
    width:auto !important;
  }
  .footer-bottom-row > span:first-child{
    text-align:left !important;
  }
  .footer-bottom-row > span:last-child{
    margin-left:auto !important;
    text-align:right !important;
  }
}


/* =========================================================
   V17 — Slide sin degradado, capa negra 70%
   ========================================================= */

.hero-fullscreen .slide-overlay{
  background:rgba(0,0,0,.70) !important;
}

/* Igual en tabletas y celulares */
@media (max-width:1024px){
  .hero-fullscreen .slide-overlay{
    background:rgba(0,0,0,.70) !important;
  }
}

@media (max-width:720px){
  .hero-fullscreen .slide-overlay{
    background:rgba(0,0,0,.70) !important;
  }
}

/* Mejor contraste de textos sobre la capa negra */
.hero-fullscreen .hero-copy .eyebrow{
  color:#fff !important;
}
.hero-fullscreen .hero-copy p{
  color:rgba(255,255,255,.82) !important;
}


/* =========================================================
   V18 — capa negra 90% + control de slide más grande y claro
   ========================================================= */

.hero-fullscreen .slide-overlay{
  background:rgba(0,0,0,.90) !important;
}

@media (max-width:1024px){
  .hero-fullscreen .slide-overlay{
    background:rgba(0,0,0,.90) !important;
  }
}

@media (max-width:720px){
  .hero-fullscreen .slide-overlay{
    background:rgba(0,0,0,.90) !important;
  }
}

/* Rectángulos del control: más grandes y en tonos claros */
.slider-dots-minimal{
  gap:10px !important;
}

.slider-dots-minimal button,
.slider-dots-minimal button.is-active{
  width:38px !important;
  height:5px !important;
  border-radius:2px !important;
}

.slider-dots-minimal button{
  background:rgba(255,255,255,.38) !important;
}

.slider-dots-minimal button.is-active{
  background:#ffffff !important;
}

@media (max-width:720px){
  .slider-dots-minimal{
    gap:8px !important;
  }

  .slider-dots-minimal button,
  .slider-dots-minimal button.is-active{
    width:32px !important;
    height:5px !important;
  }
}


/* =========================================================
   V19 — capa negra del slide al 30%
   ========================================================= */

.hero-fullscreen .slide-overlay{
  background:rgba(0,0,0,.30) !important;
}

@media (max-width:1024px){
  .hero-fullscreen .slide-overlay{
    background:rgba(0,0,0,.30) !important;
  }
}

@media (max-width:720px){
  .hero-fullscreen .slide-overlay{
    background:rgba(0,0,0,.30) !important;
  }
}


/* =========================================================
   V20 — texto inferior del footer más discreto
   ========================================================= */

.footer-bottom-row{
  color:#7d8fa8 !important;
}

.footer-bottom-row a{
  color:#7d8fa8 !important;
  font-weight:500 !important;
}

.footer-bottom-row a:hover{
  color:#9cabc0 !important;
  text-decoration:none !important;
}


/* =========================================================
   V21 — fondo RPO
   ========================================================= */

.rpo-block{
  background:#173f76 !important;
}

.rpo-block .section-tag,
.rpo-block h2{
  color:#fff !important;
}

.rpo-block > .container > div:first-child > p{
  color:rgba(255,255,255,.78) !important;
}


/* =========================================================
   V22 — footer redes sociales
   ========================================================= */
.footer-contact-col{
  gap:14px !important;
  align-items:center;
  text-align:center;
}
.footer-contact-col h3{
  margin:0 0 8px;
  color:#fff;
}
.footer-socials{
  justify-content:center;
}


/* =========================================================
   V23 — jerarquía de color en footer
   ========================================================= */

/* Solo títulos en blanco y bold */
.footer-col h3,
.footer-contact-col h3{
  color:#ffffff !important;
  font-weight:700 !important;
}

/* Textos y enlaces secundarios menos blancos */
.footer-brand-col p,
.footer-col a{
  color:#b9c9df !important;
  font-weight:400 !important;
}

/* Hover ligeramente más claro, sin llegar a blanco puro */
.footer-col a:hover{
  color:#d7e2ef !important;
}

/* Iconos de redes en tono más discreto */
.footer-socials a{
  color:#b9c9df !important;
  border-color:rgba(185,201,223,.45) !important;
  background:transparent !important;
}

.footer-socials a:hover{
  color:#dce7f3 !important;
  border-color:rgba(220,231,243,.68) !important;
  background:rgba(255,255,255,.05) !important;
}


/* =========================================================
   V24 — botón Enviar solicitud al ancho completo
   ========================================================= */

.contact-form .submit-btn{
  width:100% !important;
  display:flex;
}


/* =========================================================
   V25 — Navbar con opacidad ligera + blur
   ========================================================= */

.site-header{
  background:rgba(38,92,178,.88) !important;
  -webkit-backdrop-filter:blur(14px) saturate(135%) !important;
  backdrop-filter:blur(14px) saturate(135%) !important;
  border-bottom:1px solid rgba(255,255,255,.10) !important;
}

.site-header.scrolled{
  background:rgba(38,92,178,.84) !important;
  -webkit-backdrop-filter:blur(16px) saturate(140%) !important;
  backdrop-filter:blur(16px) saturate(140%) !important;
  border-bottom-color:rgba(255,255,255,.12) !important;
  box-shadow:0 8px 24px rgba(11,39,85,.10) !important;
}

/* Mantener el mismo efecto cuando el menú móvil está activo */
@media (max-width:1024px){
  .site-header,
  .site-header.scrolled{
    background:rgba(38,92,178,.88) !important;
    -webkit-backdrop-filter:blur(14px) saturate(135%) !important;
    backdrop-filter:blur(14px) saturate(135%) !important;
  }
}


/* =========================================================
   V26 — botones de contacto más altos + iconos SVG
   ========================================================= */

.contact-links a{
  min-height:72px;
  padding:20px 18px !important;
  align-items:center;
}

.contact-label{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:var(--tech-blue);
}

.contact-label > span{
  color:inherit;
}

.contact-label svg{
  width:22px;
  height:22px;
  flex:0 0 22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.contact-links a:hover .contact-label svg{
  transform:translateY(-1px);
}

.contact-label svg{
  transition:transform .2s ease;
}

@media (max-width:720px){
  .contact-links a{
    min-height:76px;
    padding:18px !important;
  }
  .contact-label svg{
    width:21px;
    height:21px;
    flex-basis:21px;
  }
}


/* =========================================================
   V27 — color de textos e iconos de contacto
   ========================================================= */

.contact-label{
  color:#479efb !important;
}

.contact-label > span{
  color:#479efb !important;
}

.contact-label svg{
  color:#479efb !important;
  stroke:#479efb !important;
}


/* =========================================================
   V28 — botones de información en servicios
   ========================================================= */

.service-card{
  display:flex;
  flex-direction:column;
}

.service-card h3{
  margin-top:4px !important;
}

.service-info-btn{
  margin-top:auto;
  padding-top:22px;
  color:#479efb;
  font-size:13px;
  font-weight:700;
  letter-spacing:.01em;
  display:inline-flex;
  align-items:center;
  width:max-content;
  transition:color .2s ease, transform .2s ease;
}

.service-info-btn:hover{
  color:#0b2755;
  transform:translateX(4px);
}

/* Anula el espacio reservado para los números anteriores */
.service-card > h3:first-child{
  margin-top:0 !important;
}


.form-grid select.service-selected{
  border-color:#479efb !important;
  box-shadow:0 0 0 4px rgba(71,158,251,.16) !important;
}


/* =========================================================
   V29 — alinear texto derecho con el título grande izquierdo
   ========================================================= */

@media (min-width:1025px){
  .intro-grid > .copy-block,
  .section-head > p{
    padding-top:36px;
  }
}

/* En tabletas y celulares vuelve al flujo normal */
@media (max-width:1024px){
  .intro-grid > .copy-block,
  .section-head > p{
    padding-top:0;
  }
}


/* =========================================================
   V30 — menú navbar con cuadros de fondo
   ========================================================= */

@media (min-width:1025px){
  .desktop-nav{
    gap:8px !important;
  }

  .desktop-nav a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:0 14px;
    border-radius:8px;
    background:rgba(255,255,255,.08);
    color:#fff !important;
    transition:background .2s ease,color .2s ease,transform .2s ease;
  }

  .desktop-nav a::after{
    display:none !important;
  }

  .desktop-nav a:hover{
    background:rgba(255,255,255,.15);
    color:#fff !important;
    transform:translateY(-1px);
  }

  .desktop-nav a.active{
    background:#479efb;
    color:#fff !important;
  }
}


/* =========================================================
   V31 — fondo solo en hover o activo
   ========================================================= */

@media (min-width:1025px){
  .desktop-nav a{
    background:transparent !important;
  }

  .desktop-nav a:hover{
    background:rgba(255,255,255,.15) !important;
  }

  .desktop-nav a.active{
    background:#479efb !important;
  }
}


/* =========================================================
   V32 — botón Solicitar información igual al menú navbar
   ========================================================= */

@media (min-width:1025px){
  .header-cta{
    min-height:40px !important;
    height:40px !important;
    padding:0 14px !important;
    border-radius:8px !important;
    font-size:14px !important;
    line-height:1 !important;
  }
}


/* =========================================================
   V33 — Política de Privacidad fullscreen modal
   ========================================================= */

body.privacy-opened{
  overflow:hidden !important;
}

.privacy-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  width:100%;
  height:100dvh;
  background:#eef4fc;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .28s ease,visibility .28s ease;
}

.privacy-modal.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.privacy-modal-panel{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  background:#eef4fc;
  transform:translateY(16px);
  transition:transform .32s cubic-bezier(.2,.8,.2,1);
}

.privacy-modal.is-open .privacy-modal-panel{
  transform:none;
}

.privacy-modal-header{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  min-height:126px;
  padding:28px max(32px,calc((100vw - 1200px)/2));
  background:#265cb2;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.privacy-kicker{
  display:block;
  margin-bottom:8px;
  color:rgba(255,255,255,.68);
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
}

.privacy-modal-header h1{
  margin:0;
  color:#fff;
  font-size:clamp(30px,4vw,52px);
  line-height:1;
  letter-spacing:-.035em;
}

.privacy-close{
  flex:0 0 52px;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(255,255,255,.30);
  border-radius:8px;
  background:transparent;
  color:#fff;
  cursor:pointer;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}

.privacy-close span{
  display:block;
  margin-top:-3px;
  font-size:36px;
  font-weight:300;
  line-height:1;
}

.privacy-close:hover{
  background:#fff;
  color:#0b2755;
  border-color:#fff;
}

.privacy-modal-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
}

.privacy-modal-content{
  width:min(calc(100% - 64px),980px);
  margin:0 auto;
  padding:64px 0 90px;
  color:#26394f;
}

.privacy-modal-content h2{
  margin:52px 0 16px;
  color:#0b2755;
  font-size:clamp(22px,2.4vw,32px);
  line-height:1.2;
  letter-spacing:-.02em;
}

.privacy-modal-content h2:first-child{
  margin-top:0;
}

.privacy-modal-content p{
  margin:0 0 18px;
  font-size:16px;
  line-height:1.8;
  color:#42536a;
}

.privacy-modal-content a{
  color:#265cb2;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:3px;
}

@media(max-width:720px){
  .privacy-modal-header{
    min-height:100px;
    padding:20px 18px;
  }

  .privacy-modal-header h1{
    font-size:30px;
  }

  .privacy-close{
    flex-basis:44px;
    width:44px;
    height:44px;
  }

  .privacy-modal-content{
    width:calc(100% - 36px);
    padding:42px 0 70px;
  }

  .privacy-modal-content p{
    font-size:15px;
    line-height:1.72;
  }
}


/* =========================================================
   V35 — orden del footer en tabletas
   1ª fila: logo + texto
   2ª fila: Servicio a Empresas + Legales
   3ª fila: Redes sociales
   ========================================================= */

@media (min-width:641px) and (max-width:980px){

  .footer-grid{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    grid-template-areas:
      "brand brand"
      "services legal"
      "social social";
    gap:36px 44px !important;
    text-align:center;
  }

  .footer-brand-col{
    grid-area:brand;
    max-width:760px !important;
    width:100%;
    margin-inline:auto !important;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:28px;
    text-align:left !important;
  }

  .footer-brand{
    flex:0 0 auto;
    display:flex;
    justify-content:center;
  }

  .footer-brand-col p{
    margin:0 !important;
    max-width:460px;
    text-align:left !important;
  }

  .footer-grid > .footer-col:nth-of-type(1){
    grid-area:services;
  }

  .footer-grid > .footer-col:nth-of-type(2){
    grid-area:legal;
  }

  .footer-contact-col{
    grid-area:social;
    align-items:center !important;
    text-align:center !important;
  }

  .footer-col{
    align-items:center !important;
    text-align:center !important;
  }

  .footer-socials{
    justify-content:center !important;
  }
}


/* =========================================================
   V36 — footer tabletas
   1ª fila: logo + texto
   2ª fila: Servicios + Legales + Redes sociales
   ========================================================= */

@media (min-width:641px) and (max-width:980px){

  .footer-grid{
    display:grid !important;
    grid-template-columns:repeat(3,1fr) !important;
    grid-template-areas:
      "brand brand brand"
      "services legal social" !important;
    gap:38px 32px !important;
    align-items:start;
    text-align:center;
  }

  .footer-brand-col{
    grid-area:brand !important;
    max-width:760px !important;
    width:100%;
    margin-inline:auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:28px !important;
    text-align:left !important;
  }

  .footer-brand{
    flex:0 0 auto;
    display:flex !important;
    justify-content:center !important;
  }

  .footer-brand-col p{
    margin:0 !important;
    max-width:480px;
    text-align:left !important;
  }

  .footer-grid > .footer-col:nth-of-type(1){
    grid-area:services !important;
  }

  .footer-grid > .footer-col:nth-of-type(2){
    grid-area:legal !important;
  }

  .footer-contact-col{
    grid-area:social !important;
    align-items:center !important;
    justify-self:stretch;
    text-align:center !important;
  }

  .footer-col{
    align-items:center !important;
    text-align:center !important;
  }

  .footer-socials{
    justify-content:center !important;
  }
}


/* =========================================================
   V37 — footer tabletas: logo arriba y texto en dos líneas
   ========================================================= */

@media (min-width:641px) and (max-width:980px){

  .footer-brand-col{
    grid-area:brand !important;
    max-width:760px !important;
    width:100%;
    margin-inline:auto !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:16px !important;
    text-align:center !important;
  }

  .footer-brand{
    display:flex !important;
    justify-content:center !important;
    width:100%;
  }

  .footer-brand img{
    margin-inline:auto;
  }

  .footer-brand-col p{
    margin:0 !important;
    max-width:560px !important;
    text-align:center !important;
    line-height:1.6 !important;
  }

  .footer-brand-col p br{
    display:block;
  }
}


/* =========================================================
   V38 — select con la misma altura que los demás campos
   ========================================================= */

.form-grid select{
  min-height:48px !important;
  height:48px !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  line-height:48px !important;
}


/* =========================================================
   V39 — estado del formulario enviado por PHP
   ========================================================= */
.form-status{
  margin-top:12px;
  min-height:20px;
  font-size:13px;
  line-height:1.5;
}
.form-status.is-success{color:#1f7a4d}
.form-status.is-error{color:#a13232}
.contact-form button[disabled]{
  opacity:.65;
  cursor:not-allowed;
  transform:none !important;
}


/* =========================================================
   V43 — mensajes del formulario en ventana emergente
   ========================================================= */

.form-status{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

body.message-modal-open{
  overflow:hidden;
}

.message-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .22s ease,visibility .22s ease;
}

.message-modal.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.message-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(11,39,85,.46);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}

.message-modal-card{
  position:relative;
  z-index:1;
  width:min(100%,460px);
  padding:34px 30px 28px;
  border:1px solid rgba(11,39,85,.10);
  border-radius:14px;
  background:#f7faff;
  box-shadow:0 28px 80px rgba(11,39,85,.20);
  text-align:center;
  transform:translateY(12px) scale(.985);
  transition:transform .24s cubic-bezier(.2,.8,.2,1);
}

.message-modal.is-open .message-modal-card{
  transform:none;
}

.message-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#0b2755;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.message-modal-close:hover{
  background:rgba(11,39,85,.06);
}

.message-modal-icon{
  width:54px;
  height:54px;
  margin:0 auto 18px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:26px;
  font-weight:700;
}

.message-modal.is-success .message-modal-icon{
  background:rgba(71,158,251,.13);
  color:#265cb2;
}

.message-modal.is-success .message-modal-icon::before{
  content:"✓";
}

.message-modal.is-error .message-modal-icon{
  background:rgba(176,55,55,.10);
  color:#a13232;
}

.message-modal.is-error .message-modal-icon::before{
  content:"!";
}

.message-modal-card h2{
  margin:0 0 10px;
  color:#0b2755;
  font-size:24px;
  line-height:1.2;
}

.message-modal-card p{
  margin:0;
  color:#4a5d74;
  font-size:15px;
  line-height:1.65;
}

.message-modal-button{
  width:100%;
  min-height:48px;
  margin-top:24px;
  border:0;
  border-radius:9px;
  background:#479efb;
  color:#fff;
  font-weight:700;
  cursor:pointer;
  transition:background .2s ease,transform .2s ease;
}

.message-modal-button:hover{
  background:#318eea;
  transform:translateY(-1px);
}

@media(max-width:640px){
  .message-modal{
    padding:18px;
  }
  .message-modal-card{
    padding:30px 20px 22px;
    border-radius:12px;
  }
}


/* =========================================================
   V49 — indicar el primer campo al llegar desde Servicios
   ========================================================= */
#contactForm input[name="nombre"].form-start-highlight{
  border-color:#479efb !important;
  box-shadow:
    0 0 0 4px rgba(71,158,251,.16),
    0 0 0 1px #479efb inset !important;
  background:#ffffff !important;
  animation:formStartPulse .8s ease-in-out 2;
}

#contactForm input[name="nombre"]:focus{
  border-color:#479efb !important;
  box-shadow:0 0 0 4px rgba(71,158,251,.14) !important;
  outline:none !important;
}

@keyframes formStartPulse{
  0%,100%{
    box-shadow:
      0 0 0 4px rgba(71,158,251,.12),
      0 0 0 1px #479efb inset;
  }
  50%{
    box-shadow:
      0 0 0 8px rgba(71,158,251,.20),
      0 0 0 1px #479efb inset;
  }
}

@media (prefers-reduced-motion:reduce){
  #contactForm input[name="nombre"].form-start-highlight{
    animation:none !important;
  }
}


/* =========================================================
   V51 — móvil: texto del slide más compacto + fondo inferior azul
   ========================================================= */
@media (max-width:640px){
  html,
  body{
    background:#0b2755 !important;
  }

  .hero-fullscreen .hero-copy .eyebrow{
    font-size:12px !important;
    line-height:1.35 !important;
    letter-spacing:.14em !important;
    margin-bottom:14px !important;
  }

  .hero-fullscreen .hero-copy h1,
  .hero-fullscreen .hero-copy h2{
    font-size:clamp(30px,8.8vw,40px) !important;
    line-height:1.06 !important;
    letter-spacing:-.025em !important;
  }

  .hero-fullscreen .hero-copy p{
    font-size:14px !important;
    line-height:1.52 !important;
    max-width:94% !important;
  }

  .footer-bottom{
    background:#0b2755 !important;
    padding-bottom:max(24px, env(safe-area-inset-bottom)) !important;
  }

  .site-footer{
    background:#265cb2;
  }
}


/* =========================================================
   V52 — tablet/celular: sin controles, contenido abajo
   ========================================================= */
@media (max-width:980px){
  .hero-fullscreen .slider-ui{
    display:none !important;
  }

  .hero-fullscreen .slide-content{
    min-height:100svh !important;
    height:100svh !important;
    display:flex !important;
    align-items:flex-end !important;
    padding-top:110px !important;
    padding-bottom:max(26px, env(safe-area-inset-bottom)) !important;
  }

  .hero-fullscreen .hero-copy{
    width:100% !important;
    max-width:none !important;
    padding:0 !important;
    margin:0 !important;
  }

  .hero-fullscreen .hero-actions{
    margin-bottom:0 !important;
  }
}


/* =========================================================
   V53 — altura fija inicial del hero en tablet/celular
   Evita que Safari/Chrome reajusten el slide al mostrar/ocultar barras
   ========================================================= */
@media (max-width:980px){
  .hero-fullscreen .hero-slider,
  .hero-fullscreen .slide,
  .hero-fullscreen .slide-content{
    height:var(--mobile-hero-height, 100svh) !important;
    min-height:var(--mobile-hero-height, 100svh) !important;
    max-height:var(--mobile-hero-height, 100svh) !important;
  }

  .hero-fullscreen .slide-content{
    box-sizing:border-box !important;
    overflow:hidden !important;
  }
}


/* =========================================================
   V57 — conservar colores originales del logo
   ========================================================= */
.brand img,
.footer-brand img{
  filter:none !important;
  -webkit-filter:none !important;
  opacity:1 !important;
  mix-blend-mode:normal !important;
}


/* =========================================================
   V58 — logo 30% más grande
   ========================================================= */
.brand img{
  width:auto !important;
  height:calc(44px * 1.3) !important;
  max-height:none !important;
}

.footer-brand img{
  width:auto !important;
  height:calc(54px * 1.3) !important;
  max-height:none !important;
}

@media (max-width:980px){
  .brand img{
    height:calc(44px * 1.3) !important;
  }

  .footer-brand img{
    height:calc(54px * 1.3) !important;
  }
}
