/* =========================================================
   SCA Industrial — Styles
   limpio, consolidado y responsive
========================================================= */

:root{
  --bg:#0b1220;
  --paper:#ffffff;
  --text:#111111;
  --text-soft:#4b5563;
  --line:#e5e7eb;
  --brand:#1e88ff;
  --brand2:#00c2a8;
  --radius:18px;
  --shadow:0 18px 50px rgba(0,0,0,.12);
  --container:1280px;
  --header-h:88px;
  --header-h-m:74px;
  --hero-speed:900ms;
  --hero-ease:cubic-bezier(.22,.61,.36,1);
}

/* RESET */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
  width:100%;
  overflow-x:hidden;
}

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--paper);
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{
  display:block;
  max-width:100%;
  height:auto;
}

/* CONTENEDORES */
.container,
.p-container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
}

/* HEADER */
.site-header{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  z-index:10000;
  background:rgba(10,47,76,.96);
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 8px 24px rgba(0,0,0,.10);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.header-inner{
  height:var(--header-h);
  max-width:var(--container);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  padding:0 40px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  flex:0 0 auto;
  min-width:180px;
}

.brand-logo{
  width:auto;
  height:56px;
  object-fit:contain;
  flex-shrink:0;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.10));
  transition:transform .2s ease;
}

.brand:hover .brand-logo{
  transform:scale(1.02);
}

.brand-text{
  display:block;
  font-size:20px;
  line-height:1;
  font-weight:800;
  color:#fff;
  white-space:nowrap;
}

.brand-title,
.brand-subtitle,
.header-search,
.hero-watermark{
  display:none !important;
}

/* NAV */
.nav{
  flex:1;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  min-width:0;
}

.nav-toggle{
  display:none;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.24);
  background:rgba(255,255,255,.10);
  border-radius:12px;
  cursor:pointer;
  flex-shrink:0;
}

.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  margin:2px auto;
  background:#fff;
}

.nav-menu,
.nav-menu ul{
  list-style:none;
  margin:0;
  padding:0;
}

.nav-menu{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:34px;
  min-width:0;
}

.nav-menu > li,
.has-dropdown{
  position:relative;
}

.nav-menu a,
.has-dropdown > .dropdown-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:none;
  background:transparent;
  color:#fff;
  text-decoration:none;
  font-size:15px;
  line-height:1;
  font-weight:650;
  white-space:nowrap;
  transition:color .2s ease, opacity .2s ease;
}

.nav-menu a:hover,
.nav-menu a.active,
.has-dropdown > .dropdown-toggle:hover{
  color:var(--brand);
}

.nav-menu a.cta{
  color:#fff;
}

.has-dropdown > .dropdown-toggle{
  appearance:none;
  cursor:pointer;
}

.has-dropdown > .dropdown-toggle::after{
  content:"";
  width:6px;
  height:6px;
  margin-left:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  opacity:.9;
}

.has-dropdown > .dropdown{
  position:absolute;
  top:calc(100% + 12px);
  left:0;
  min-width:220px;
  padding:10px;
  border-radius:14px;
  background:#ffffff;
  border:1px solid rgba(17,17,17,.08);
  box-shadow:0 18px 38px rgba(0,0,0,.12);
  display:none;
  z-index:10003;
}

.has-dropdown:hover > .dropdown,
.has-dropdown.open > .dropdown{
  display:block;
}

.has-dropdown > .dropdown a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  font-size:14px;
  color:#0f172a;
}

.has-dropdown > .dropdown a:hover{
  background:#f3f4f6;
  color:#111827;
}

/* HERO */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:stretch;
  color:#fff;
  overflow:hidden;
  background:#0a2f4c;
}

.hero-carousel{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}

.hero-track{
  display:flex;
  width:100%;
  height:100%;
  transform:translate3d(0,0,0);
  transition:transform var(--hero-speed) var(--hero-ease);
  will-change:transform;
}

.hero-slide{
  position:relative;
  flex:0 0 100%;
  width:100%;
  height:100%;
}

.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  filter:brightness(.78) saturate(.95);
}

.hero .container{
  position:relative;
  z-index:2;
}

.hero-content{
  position:relative;
  z-index:2;
  width:min(100%, 980px);
  margin:0 auto;
  min-height:100vh;
  padding:200px 20px 110px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.eyebrow{
  margin:0 0 18px;
  font-size:13px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(255,255,255,.94);
}

.hero-content h1,
#heroTitle{
  margin:0 0 20px;
  max-width:16ch;
  font-size:clamp(42px, 4.4vw, 64px);
  line-height:1.05;
  font-weight:300;
  text-transform:uppercase;
  letter-spacing:.02em;
  color:#fff;
}

.hero-content .lead,
#heroSubtitle{
  max-width:54ch;
  margin:0 auto 26px;
  font-size:20px;
  line-height:1.45;
  color:rgba(255,255,255,.92);
}

.hero-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  margin-top:8px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 26px;
  border-radius:999px;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  color:#fff;
  background:linear-gradient(180deg, #1e88ff, #1666cc);
  box-shadow:0 6px 16px rgba(0,0,0,.18);
  transition:transform .25s ease, box-shadow .25s ease;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(0,0,0,.26);
}

.hero-dots{
  position:absolute;
  left:0;
  right:0;
  bottom:34px;
  z-index:3;
  display:flex;
  justify-content:center;
  gap:10px;
}

.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.45);
  background:rgba(255,255,255,.18);
  cursor:pointer;
}

.dot.is-active{
  background:#1e88ff;
  border-color:#1e88ff;
}

/* SECTIONS */
.section{
  padding:78px 0;
}

.section.alt{
  background:#f5f8fc;
}

.section h2{
  margin:0 0 16px;
  font-size:clamp(28px, 2.4vw, 36px);
}

.section p{
  color:var(--text-soft);
}

.grid-2{
  display:grid;
  grid-template-columns:minmax(0, 1.25fr) minmax(0, .9fr);
  gap:42px;
  align-items:start;
}

.cards{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
}

.card{
  padding:22px;
  border-radius:20px;
  background:#fff;
  box-shadow:0 14px 34px rgba(0,0,0,.07);
  border:1px solid rgba(0,0,0,.05);
}

.card h3{
  margin:0 0 10px;
}

.card p{
  margin:0 0 14px;
  opacity:.86;
}

.card a{
  color:var(--brand);
  font-weight:700;
  text-decoration:none;
}

/* CTA TECH */
.cta-tech{
  position:relative;
  overflow:hidden;
  padding:120px 0;
  background:#0b1220;
  color:#fff;
}

.cta-tech-bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 500px at 10% 20%, rgba(14,165,233,.25), transparent 60%),
    radial-gradient(600px 300px at 80% 40%, rgba(6,182,212,.18), transparent 60%),
    linear-gradient(180deg,#0b1220 0%, #0a101c 100%);
}

.cta-tech-grid{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) minmax(0, .8fr);
  gap:60px;
  align-items:center;
}

.cta-tech-eyebrow{
  font-size:12px;
  letter-spacing:.2em;
  text-transform:uppercase;
  opacity:.6;
}

.cta-tech-content h2{
  margin:12px 0 18px;
  font-size:clamp(36px, 4vw, 52px);
  line-height:1.05;
}

.cta-tech-content p{
  max-width:620px;
  line-height:1.7;
  color:rgba(255,255,255,.8);
}

.cta-tech-actions{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:28px;
}

.cta-btn-primary,
.cta-btn-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius:999px;
  color:#fff;
}

.cta-btn-primary{
  padding:15px 28px;
  background:linear-gradient(90deg,#0ea5e9,#06b6d4);
  font-weight:600;
  box-shadow:0 12px 30px rgba(14,165,233,.35);
}

.cta-btn-ghost{
  padding:15px 24px;
  border:1px solid rgba(255,255,255,.25);
}

.cta-tech-cards{
  display:grid;
  gap:16px;
}

.cta-tech-card{
  padding:20px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background:rgba(255,255,255,.05);
  backdrop-filter:blur(10px);
}

/* FOOTER */
.mega-footer{
  background:#0a111d;
  color:rgba(255,255,255,.86);
  padding:64px 0 0;
  border-top:1px solid rgba(255,255,255,.08);
}

.mega-footer a{
  color:rgba(255,255,255,.9);
  text-decoration:none;
}

.mega-footer-inner{
  display:grid;
  grid-template-columns:1.1fr 1.2fr 1.1fr;
  gap:42px;
  align-items:start;
  padding-bottom:38px;
}

.mf-logo{
  width:180px;
  max-width:100%;
  margin-bottom:14px;
}

.mf-tagline{
  margin:6px 0 0;
  font-size:14px;
  line-height:1.7;
  opacity:.85;
}

.mf-title{
  margin:6px 0 16px;
  font-size:11px;
  font-weight:750;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.mf-social{
  display:flex;
  gap:10px;
}

.mf-social-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  font-weight:800;
}

.mf-right p{
  margin:8px 0;
  line-height:1.7;
  opacity:.85;
}

.mf-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}

.mf-bottom-inner{
  padding:14px 0;
}

.mf-bottom small{
  display:block;
  font-size:13px;
  opacity:.5;
}

/* RESPONSIVE */
@media (max-width: 1200px){
  .cards{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .nav-menu{
    gap:24px;
  }
}

@media (max-width: 980px){
  .grid-2,
  .cta-tech-grid{
    grid-template-columns:1fr;
  }

  .cards{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .mega-footer-inner{
    grid-template-columns:1fr;
    gap:22px;
    text-align:center;
  }

  .mf-social{
    justify-content:center;
  }

  .mf-logo{
    margin:0 auto 14px;
  }
}

@media (max-width: 768px){
  .container,
  .p-container{
    width:100%;
    max-width:100%;
    padding-left:16px;
    padding-right:16px;
  }

  .site-header{
    position:fixed;
    background:rgba(10,47,76,.98) !important;
    border-bottom:1px solid rgba(255,255,255,.10);
    box-shadow:0 8px 20px rgba(0,0,0,.14);
  }

  .header-inner{
    height:var(--header-h-m);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 16px;
  }

  .brand{
    min-width:auto;
  }

  .brand-logo{
    height:42px;
  }

  .brand-text{
    color:#fff;
    font-size:16px;
  }

  .nav{
    flex:0 0 auto;
    justify-content:flex-end;
  }

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.28);
  }

  .nav-toggle span{
    background:#fff;
  }

  .nav-menu{
    position:fixed;
    top:82px;
    right:16px;
    left:16px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    width:auto;
    max-width:none;
    max-height:calc(100vh - 106px);
    margin-left:0;
    padding:12px;
    overflow-y:auto;
    background:rgba(10,47,76,.98) !important;
    border:1px solid rgba(255,255,255,.14);
    border-radius:16px;
    box-shadow:0 20px 40px rgba(0,0,0,.28);
    z-index:10002;
  }

  .nav-menu.open{
    display:flex;
  }

  .nav-menu a,
  .has-dropdown > .dropdown-toggle,
  .nav-menu a.cta{
    justify-content:space-between;
    padding:14px 16px;
    font-size:15px;
    color:#fff;
  }

  .has-dropdown > .dropdown{
    position:static;
    min-width:100%;
    margin-top:8px;
    box-shadow:none;
    background:rgba(5,28,48,.98);
    border:1px solid rgba(255,255,255,.10);
  }

  .has-dropdown > .dropdown a{
    color:#fff;
  }

  .has-dropdown > .dropdown a:hover{
    background:rgba(255,255,255,.10);
    color:#fff;
  }

  .hero-content{
    min-height:100svh;
    padding:150px 20px 110px;
  }

  .hero-content h1,
  #heroTitle{
    font-size:clamp(32px, 8vw, 46px);
    max-width:13ch;
  }

  .hero-content .lead,
  #heroSubtitle{
    font-size:16px;
    max-width:30ch;
  }
}

@media (max-width: 560px){
  .cards{
    grid-template-columns:1fr;
  }

  .section{
    padding:58px 0;
  }

  .section h2{
    font-size:28px;
  }

  .header-inner{
    height:68px;
    padding:0 14px;
  }

  .brand-logo{
    height:36px;
  }

  .brand-text{
    font-size:15px;
  }

  .nav-menu{
    top:76px;
  }

  .hero-content{
    padding:138px 16px 96px;
  }

  .hero-content h1,
  #heroTitle{
    font-size:clamp(28px, 9vw, 38px);
  }

  .hero-content .lead,
  #heroSubtitle{
    font-size:14px;
  }

  .btn{
    min-height:48px;
    padding:0 22px;
    font-size:13px;
  }

  .cta-tech{
    padding:80px 0;
  }

  .cta-tech-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .cta-btn-primary,
  .cta-btn-ghost{
    text-align:center;
  }
}

/* ACCESIBILIDAD */
a:focus-visible,
button:focus-visible{
  outline:2px solid rgba(30,136,255,.95);
  outline-offset:3px;
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    transition:none !important;
    animation:none !important;
  }
}
/* FIX DEFINITIVO MENU MOBILE + HEADER */

.container.header-inner{
  width:min(1280px, calc(100% - 40px)) !important;
  max-width:1280px !important;
  margin:0 auto !important;
  padding:0 !important;
}

@media (max-width:768px){

  .site-header,
  header.site-header{
    background:#0a2f4c !important;
  }

  .container.header-inner{
    width:100% !important;
    max-width:100% !important;
    height:74px !important;
    padding:0 16px !important;
  }

  #navMenu,
  ul#navMenu,
  .nav-menu,
  .site-header .nav-menu{
    background:#0a2f4c !important;
    background-color:#0a2f4c !important;
    color:#fff !important;
  }

  #navMenu.open,
  .nav-menu.open{
    display:flex !important;
  }

  #navMenu li,
  #navMenu a,
  .nav-menu li,
  .nav-menu a,
  .dropdown-toggle{
    background:transparent !important;
    color:#fff !important;
  }

  .has-dropdown > .dropdown{
    background:#06243d !important;
    background-color:#06243d !important;
  }

  .has-dropdown > .dropdown a{
    color:#fff !important;
  }

  .nav-toggle{
    background:#0a2f4c !important;
    border:1px solid rgba(255,255,255,.35) !important;
  }

  .nav-toggle span{
    background:#fff !important;
  }
}
.wa-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:inherit;
  text-decoration:none;
}

.wa-link:hover{
  text-decoration:underline;
}

.wa-icon{
  width:18px;
  height:18px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#25D366;
  color:#fff;
  font-size:12px;
  font-weight:700;
}
/* =========================================================
   HEADER — DEGRADÉ BLANCO A AZUL OSCURO FOOTER
========================================================= */

.site-header,
header.site-header{
  background:linear-gradient(
    90deg,
    #ffffff 0%,
    #dbeeff 32%,
    #0a2f4c 72%,
    #0a111d 100%
  ) !important;
  border-bottom:1px solid rgba(10,17,29,.18) !important;
}

.brand-text{
  color:#005B9F !important;
}

.nav-menu a,
.has-dropdown > .dropdown-toggle,
.nav-menu a.cta{
  color:#ffffff !important;
}

.nav-menu a.active,
.nav-menu a:hover,
.has-dropdown > .dropdown-toggle:hover{
  color:#7cc4ff !important;
}

.nav-toggle{
  background:#0a111d !important;
  border:1px solid rgba(255,255,255,.25) !important;
}

.nav-toggle span{
  background:#fff !important;
}

@media (max-width:768px){

  .site-header,
  header.site-header{
    background:linear-gradient(
      90deg,
      #ffffff 0%,
      #ffffff 0%,
      #0a2f4c 72%,
      #0a111d 100%
    ) !important;
  }

  #navMenu,
  .nav-menu{
    background:#0a111d !important;
    background-color:#0a111d !important;
  }

  #navMenu a,
  .nav-menu a,
  .dropdown-toggle{
    color:#fff !important;
  }
}
