/* =========================================================
   NAVBAR + TOPBAR + FOOTER SERVIPACK
   Archivo independiente para no afectar el resto del sitio
========================================================= */

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 12px 35px rgba(5,39,69,.10);
}

.topbar{
  position:relative;
  overflow:hidden;
  background:linear-gradient(90deg,#052f55 0%,#074875 50%,#06385e 100%);
  color:#dcecf7;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.topbar::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(115deg,transparent 0 70%,rgba(255,118,13,.10) 70% 72%,transparent 72%),
    radial-gradient(circle at 85% 50%,rgba(255,255,255,.09),transparent 18%);
  pointer-events:none;
}

.topbar-inner{
  position:relative;
  z-index:2;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  font-size:.76rem;
}

.topbar-message,
.topbar-links,
.topbar-links a{
  display:flex;
  align-items:center;
}

.topbar-message{
  gap:9px;
  font-weight:600;
  letter-spacing:.01em;
}

.topbar-dot{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:var(--orange);
  box-shadow:0 0 0 5px rgba(255,118,13,.12);
}

.topbar-links{
  gap:10px;
}

.topbar-links a{
  gap:7px;
  padding:5px 10px;
  border-radius:999px;
  color:#eef8ff;
  transition:background .2s ease,color .2s ease;
}

.topbar-links a:hover{
  background:rgba(255,255,255,.10);
  color:#fff;
}

.topbar-links svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.navbar{
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(14px);
}

.nav-inner{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
}

.brand{
  position:relative;
  display:inline-flex;
  align-items:center;
  padding:7px 0;
}

.brand::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:1px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--blue),var(--orange));
  transform:scaleX(.35);
  transform-origin:left;
  opacity:.18;
  transition:transform .25s ease,opacity .25s ease;
}

.brand:hover::after{
  transform:scaleX(1);
  opacity:.55;
}

.brand img{
  width:235px;
  height:auto;
}

.nav-menu{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:.88rem;
  font-weight:700;
}

.nav-menu>a:not(.nav-cta){
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 13px;
  border-radius:12px;
  color:#263747;
  transition:color .2s ease,background .2s ease;
}

.nav-menu>a:not(.nav-cta)::after{
  content:"";
  position:absolute;
  left:13px;
  right:13px;
  bottom:5px;
  width:auto;
  height:2px;
  border-radius:999px;
  background:var(--orange);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .25s ease;
}

.nav-menu>a:not(.nav-cta):hover,
.nav-menu>a:not(.nav-cta).active{
  color:var(--blue);
  background:rgba(7,59,105,.055);
}

.nav-menu>a:not(.nav-cta):hover::after,
.nav-menu>a:not(.nav-cta).active::after{
  transform:scaleX(1);
}

.nav-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:46px;
  margin-left:8px;
  padding:0 19px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--orange),#ff8d32);
  color:#fff;
  box-shadow:0 10px 24px rgba(255,118,13,.23);
  transition:transform .25s ease,box-shadow .25s ease;
}

.nav-cta:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(255,118,13,.30);
}

.nav-cta svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.nav-toggle{
  width:46px;
  height:46px;
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  border:1px solid rgba(7,59,105,.12);
  border-radius:13px;
  background:#fff;
  box-shadow:0 8px 18px rgba(5,39,69,.07);
}

.nav-toggle span{
  width:22px;
  height:2px;
  border-radius:999px;
  background:var(--blue);
  transition:transform .25s ease,opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* FOOTER */
.site-footer{
  position:relative;
  overflow:hidden;
  padding-top:0;
  color:#c8d7e4;
  background:
    radial-gradient(circle at 82% 18%,rgba(30,121,181,.18),transparent 24%),
    radial-gradient(circle at 8% 85%,rgba(255,118,13,.10),transparent 21%),
    linear-gradient(135deg,#061b2d 0%,#08263e 52%,#061a2c 100%);
}

.site-footer::before{
  content:"";
  position:absolute;
  right:-170px;
  top:60px;
  width:420px;
  height:420px;
  border:64px solid rgba(255,255,255,.025);
  border-radius:50%;
  pointer-events:none;
}

.footer-accent{
  height:5px;
  background:linear-gradient(90deg,var(--orange) 0%,#ff9f51 28%,var(--blue2) 70%,#5ca7d3 100%);
}

.footer-main{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1.25fr .62fr 1.1fr .92fr;
  gap:42px;
  padding-top:68px;
  padding-bottom:58px;
}

.footer-brand{
  display:inline-flex;
  background:#fff;
  border-radius:14px;
  padding:10px 14px;
  box-shadow:0 14px 30px rgba(0,0,0,.15);
}

.footer-logo{
  width:210px;
  margin:0;
  padding:0;
  border-radius:0;
  background:transparent;
}

.footer-brand-column>p{
  max-width:390px;
  margin:22px 0 0;
  color:#b5c7d6;
  font-size:.91rem;
  line-height:1.75;
}

.footer-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}

.footer-tags span{
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:#dce9f3;
  font-size:.72rem;
  font-weight:700;
}

.site-footer h3{
  margin:0 0 18px;
  color:#fff;
  font-size:1.05rem;
}

.footer-links{
  display:grid;
  gap:9px;
}

.footer-links a{
  position:relative;
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin:0;
  color:#b9cad7;
  font-size:.86rem;
  transition:color .2s ease,transform .2s ease;
}

.footer-links a::before{
  content:"";
  width:0;
  height:2px;
  margin-right:0;
  border-radius:999px;
  background:var(--orange);
  transition:width .2s ease,margin-right .2s ease;
}

.footer-links a:hover{
  color:#fff;
  transform:translateX(3px);
}

.footer-links a:hover::before{
  width:12px;
  margin-right:7px;
}

.footer-contact-column{
  min-width:0;
}

.footer-contact-item{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr);
  gap:12px;
  align-items:center;
  margin:0 0 13px!important;
  color:#c7d6e2;
}

.footer-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:#ff9b4c;
}

.footer-icon svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.footer-contact-item small,
.footer-contact-item strong{
  display:block;
}

.footer-contact-item small{
  color:#7fa0b7;
  font-size:.67rem;
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.footer-contact-item strong{
  overflow-wrap:anywhere;
  color:#e8f2f8;
  font-size:.82rem;
  font-weight:600;
  line-height:1.45;
}

.footer-cta-card{
  align-self:start;
  padding:25px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
  box-shadow:0 22px 45px rgba(0,0,0,.13);
  backdrop-filter:blur(8px);
}

.footer-cta-card>span{
  color:#ffad70;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.footer-cta-card h3{
  margin:10px 0 10px;
  font-size:1.3rem;
  line-height:1.25;
}

.footer-cta-card p{
  margin:0;
  color:#aebfcd;
  font-size:.82rem;
  line-height:1.65;
}

.footer-cta-card a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:18px;
  color:#fff;
  font-size:.84rem;
  font-weight:800;
}

.footer-cta-card a span{
  color:var(--orange);
  font-size:1.1rem;
}

.footer-bottom{
  position:relative;
  z-index:2;
  margin:0;
  padding:18px 0;
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.10);
}

.footer-bottom-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  color:#91a8b9;
  font-size:.75rem;
}

.footer-credit{
  color:#a9bdcb;
  transition:color .2s ease;
}

.footer-credit:hover{
  color:#fff;
}

.footer-credit strong{
  color:#fff;
  font-weight:700;
}

.floating-contact{
  position:fixed;
  right:22px;
  bottom:22px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:50px;
  padding:0 17px;
  border:2px solid rgba(255,255,255,.82);
  border-radius:999px;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  color:#fff;
  font-weight:800;
  z-index:999;
  box-shadow:0 14px 30px rgba(22,163,74,.28);
  transition:transform .25s ease,box-shadow .25s ease;
}

.floating-contact:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 35px rgba(22,163,74,.34);
}

.floating-contact svg{
  width:21px;
  height:21px;
  fill:currentColor;
}

@media(max-width:980px){
  .nav-toggle{
    display:flex;
  }

  .nav-inner{
    min-height:74px;
  }

  .brand img{
    width:205px;
  }

  .nav-menu{
    position:absolute;
    top:112px;
    left:18px;
    right:18px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:5px;
    padding:16px;
    border:1px solid rgba(7,59,105,.08);
    border-radius:20px;
    background:#fff;
    box-shadow:0 24px 50px rgba(5,39,69,.16);
  }

  .nav-menu.open{
    display:flex;
  }

  .nav-menu>a:not(.nav-cta){
    justify-content:flex-start;
    min-height:46px;
  }

  .nav-menu>a:not(.nav-cta)::after{
    display:none;
  }

  .nav-cta{
    margin:7px 0 0;
    min-height:50px;
  }

  .footer-main{
    grid-template-columns:1.2fr .8fr;
  }

  .footer-cta-card{
    align-self:stretch;
  }
}

@media(max-width:700px){
  .topbar-inner{
    min-height:34px;
    justify-content:center;
  }

  .topbar-message{
    font-size:.68rem;
    text-align:center;
  }

  .topbar-links{
    display:none;
  }

  .nav-menu{
    top:108px;
  }

  .footer-main{
    grid-template-columns:1fr;
    gap:34px;
    padding-top:48px;
    padding-bottom:42px;
  }

  .footer-brand-column,
  .footer-column,
  .footer-cta-card{
    width:100%;
  }

  .footer-links{
    grid-template-columns:1fr 1fr;
    gap:10px 18px;
  }

  .footer-bottom-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    text-align:left;
  }

  .floating-contact{
    right:14px;
    bottom:14px;
    min-height:46px;
    padding:0 14px;
    font-size:.78rem;
  }
}

@media(max-width:420px){
  .brand img{
    width:175px;
  }

  .topbar-message span:last-child{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    max-width:270px;
  }

  .footer-links{
    grid-template-columns:1fr;
  }

  .footer-credit{
    line-height:1.55;
  }
}
