
:root{
  --navy:#062d50;
  --navy2:#0b4778;
  --blue:#0879cf;
  --cyan:#44d4e1;
  --turq:#20bcae;
  --text:#09284a;
  --muted:#5f7181;
  --line:#dce8ef;
  --light:#edf8fe;
  --white:#fff;
  --green:#18a866;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Montserrat,Arial,Helvetica,sans-serif;
  color:var(--text);
  background:#fff;
}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit}

/* ================= HEADER ================= */

.site-header{
  height:82px;
  display:flex;
  align-items:center;
  gap:20px;
  padding:0 3.8%;
  background:#fff;
  position:sticky;
  top:0;
  z-index:50;
  box-shadow:0 2px 16px rgba(6,45,80,.08);
}

.site-header .brand{
  width:305px;
  flex:0 0 305px;
  display:flex;
  align-items:center;
  gap:14px;
  overflow:visible;
}

.site-header .brand img{
  display:block;
  width:68px;
  height:68px;
  flex:0 0 68px;
  object-fit:contain;
  object-position:center;
}

.brand-title{
  font-size:15px;
  line-height:1.1;
  letter-spacing:1px;
  font-weight:950;
  color:#083f69;
  white-space:nowrap;
}

.site-header nav{
  display:flex;
  gap:22px;
  flex:1;
  font-size:15px;
  font-weight:750;
  align-items:center;
}

.site-header nav a{
  position:relative;
  padding:31px 0 27px;
}

.site-header nav a:hover{color:var(--blue)}

.site-header nav a:first-child:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:18px;
  height:3px;
  border-radius:3px;
  background:var(--blue);
}

.header-location{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:700;
  line-height:1.25;
  white-space:nowrap;
}

.pin{
  font-size:24px;
  color:#0d65a9;
}

.wa-mini{
  border:1px solid #19a969;
  border-radius:12px;
  padding:12px 15px;
  font-weight:800;
  font-size:13px;
  color:#11623f;
  white-space:nowrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:12px;
  padding:14px 21px;
  font-weight:850;
  transition:.2s ease;
}

.btn:hover{transform:translateY(-1px)}

.btn-primary{
  background:linear-gradient(135deg,#0876c9,#0790df);
  color:#fff;
  box-shadow:0 8px 20px rgba(8,121,207,.18);
}

.header-cta{white-space:nowrap}

/* ================= HERO ================= */

.hero{
  position:relative;
  min-height:470px;
  overflow:hidden;
  background:#062d50;
  color:#fff;
}

.hero-photo{
  position:absolute;
  inset:0 0 0 29%;
  background-image:url('../img/hero-familia-clean.jpg');
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  background-color:#0b4778;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    rgba(3,35,62,.99) 0%,
    rgba(4,48,82,.94) 30%,
    rgba(4,48,82,.38) 55%,
    rgba(4,48,82,.05) 100%
  );
}

.hero-copy{
  position:relative;
  z-index:3;
  width:58%;
  min-height:470px;
  padding:55px 0 40px 5.2%;
}

.eyebrow{
  font-size:12px;
  font-weight:900;
  letter-spacing:2px;
  color:var(--cyan);
  margin:0 0 13px;
}

.hero h1{
  font-size:58px;
  line-height:.96;
  letter-spacing:-1.7px;
  margin:0 0 18px;
  color:#fff;
  max-width:690px;
}

.hero h1 span{color:#55d8e5}

.hero-text{
  font-size:18px;
  line-height:1.55;
  max-width:610px;
  color:#f3f9fd;
}

.hero-actions{
  display:flex;
  gap:12px;
  margin-top:23px;
}

.hero-btn{
  background:linear-gradient(135deg,#0795ea,#0780d2);
}

.btn-outline{
  border:1px solid rgba(255,255,255,.7);
  color:#fff;
  background:rgba(255,255,255,.05);
}

.trust-row{
  display:flex;
  gap:18px;
  margin-top:26px;
  font-size:13px;
  flex-wrap:wrap;
  color:#f1f8fc;
}

/* hero quick menu */

.hero-menu{
  position:absolute;
  z-index:10;
  right:2.6%;
  top:16px;
  width:270px;
  background:rgba(255,255,255,.95);
  color:var(--text);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 18px 45px rgba(0,27,58,.23);
  backdrop-filter:blur(8px);
}

.hero-menu a{
  display:grid;
  grid-template-columns:32px 1fr 12px;
  gap:9px;
  align-items:center;
  padding:11px 15px;
  border-bottom:1px solid #d9e5ed;
}

.hero-menu a:last-child{border:0}
.hero-menu a:hover{background:#f1f8fc}

.menu-icon{
  font-size:22px;
  line-height:1;
  color:#0a69ad;
}

.hero-menu b{
  display:block;
  font-size:12px;
}

.hero-menu small{
  display:block;
  font-size:9.5px;
  color:var(--muted);
  margin-top:2px;
}

.hero-menu i{
  font-style:normal;
  font-size:24px;
  color:#0a69ad;
}

/* ================= SOLUCIONES ================= */

.solutions{
  padding:38px 3.5% 34px;
  background:#fff;
  display:grid;
  grid-template-columns:290px 1fr;
  gap:32px;
  align-items:start;
}

.section-intro h2{
  font-size:31px;
  line-height:1.16;
  margin:0 0 10px;
  letter-spacing:-.5px;
}

.section-intro>p:last-child{
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
  max-width:280px;
}

.solution-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
}

.solution-grid article{
  min-height:116px;
  border:1px solid #e0e8ee;
  border-radius:14px;
  padding:13px 10px;
  text-align:center;
  box-shadow:0 7px 20px rgba(18,49,75,.08);
  display:flex;
  flex-direction:column;
  gap:7px;
  background:#fff;
}

.solution-grid article>span{
  font-size:28px;
  line-height:1.1;
}

.solution-grid b{
  font-size:13px;
  line-height:1.2;
}

.solution-grid a{
  margin-top:auto;
  font-size:12px;
  color:var(--blue);
  font-weight:700;
}

/* ================= COMPAÑÍAS ================= */

.marquee-section{
  padding:18px 0 22px;
  background:#eaf7fe;
  text-align:center;
  overflow:hidden;
  border-top:1px solid #d9edf7;
  border-bottom:1px solid #d9edf7;
}

.marquee-section .eyebrow{
  color:#14548c;
  margin-bottom:11px;
}

.marquee{
  overflow:hidden;
  position:relative;
}

.marquee:before,
.marquee:after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:80px;
  z-index:2;
  pointer-events:none;
}

.marquee:before{
  left:0;
  background:linear-gradient(90deg,#eaf7fe,transparent);
}

.marquee:after{
  right:0;
  background:linear-gradient(270deg,#eaf7fe,transparent);
}

.marquee-track{
  display:flex;
  width:max-content;
  animation:scroll 48s linear infinite;
  align-items:center;
  will-change:transform;
}

.logo-set{
  display:flex;
  align-items:center;
  gap:38px;
  padding-right:38px;
}

.logo-set img{
  width:auto;
  height:46px;
  max-width:190px;
  object-fit:contain;
  display:block;
  flex:0 0 auto;
}

.marquee:hover .marquee-track{
  animation-play-state:paused;
}

@keyframes scroll{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* ================= ASESOR ================= */

.about{
  padding:32px 3.5%;
  display:grid;
  grid-template-columns:240px 1fr 1.15fr;
  gap:21px;
  align-items:center;
}

.portrait img{
  width:100%;
  height:225px;
  object-fit:cover;
  object-position:center 25%;
  border-radius:18px;
  display:block;
  box-shadow:0 10px 30px rgba(18,50,75,.18);
}

.about-copy h2{
  font-size:31px;
  margin:0;
  letter-spacing:-.5px;
}

.about-copy h3{
  margin:2px 0 12px;
  font-size:18px;
}

.badge{
  display:inline-block;
  background:var(--navy);
  color:#fff;
  padding:9px 14px;
  border-radius:7px;
  font-size:12px;
  font-weight:850;
}

.about-copy>p:last-child{
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
  max-width:440px;
}

.why{
  border-left:1px solid #d8e3eb;
  padding-left:28px;
}

.why-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:19px;
}

.why-grid b{
  display:block;
  font-size:14px;
}

.why-grid small{
  display:block;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  margin-top:5px;
}

/* ================= CONTACTO ================= */

.contact{
  margin:18px 3.5% 38px;
  padding:32px 40px;
  border-radius:24px;
  background:#f3fbff;
  display:grid;
  grid-template-columns:58% 42%;
  gap:10px;
  align-items:center;
  border:1px solid #e0f0f7;
}

.contact h2{
  margin:0 0 8px;
  font-size:36px;
  line-height:1.15;
}

.contact>div>p:not(.eyebrow){
  color:var(--muted);
  font-size:15px;
  line-height:1.5;
}

.contact-data{
  font-size:15px;
  line-height:1.9;
  color:var(--muted);
}

.contact .btn{
  font-size:16px;
  margin-top:14px;
  padding:15px 24px;
}

.btn-whatsapp{
  background:#14a866;
  color:#fff;
}

/* ================= MAPA ================= */

.map-section{
  margin:0 3.5% 46px;
  display:grid;
  grid-template-columns:.75fr 1.25fr;
  gap:24px;
  align-items:stretch;
}

.map-copy{
  padding:32px;
  border-radius:24px;
  background:#062d50;
  color:#fff;
}

.map-copy .eyebrow{color:#44d4e1}
.map-copy h2{
  color:#fff;
  font-size:36px;
  line-height:1.15;
  margin:0 0 14px;
}

.map-address{
  font-size:16px;
  line-height:1.55;
  color:#d9edf8;
  margin:0 0 22px;
}

.map-info{
  display:flex;
  flex-direction:column;
  gap:0;
  margin-top:3px;
}

.map-info-item{
  display:flex;
  align-items:flex-start;
  gap:13px;
  padding:13px 0;
  border-top:1px solid rgba(255,255,255,.18);
}

.map-info-icon{
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-radius:50%;
  background:#0879cf;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:900;
}

.map-info-item strong{
  display:block;
  font-size:14px;
  line-height:1.3;
  color:#fff;
  margin-bottom:3px;
}

.map-info-item small{
  display:block;
  font-size:12px;
  line-height:1.45;
  color:#c7dce9;
}

.map-location-badge{
  display:inline-flex;
  align-items:center;
  margin-top:18px;
  padding:9px 14px;
  border-radius:999px;
  background:#eef9ff;
  border:1px solid #d7edf7;
  color:#12608d;
  font-size:12px;
  font-weight:800;
}

.map-frame{
  min-height:300px;
  border-radius:24px;
  overflow:hidden;
  border:1px solid #dce8ef;
  box-shadow:0 12px 30px rgba(18,50,75,.12);
}

.map-frame iframe{
  width:100%;
  height:100%;
  min-height:300px;
  border:0;
  display:block;
}

/* ================= FOOTER ================= */

footer{
  padding:28px;
  text-align:center;
  background:#06233e;
  color:#bcd1df;
  font-size:13px;
  line-height:1.6;
}

/* ================= RESPONSIVE ================= */

@media(max-width:1250px){
  .site-header{gap:13px}
  .site-header nav{gap:16px}
  .header-location{display:none}

  .site-header .brand{
    width:260px;
    flex-basis:260px;
  }

  .site-header .brand img{
    width:62px;
    height:62px;
    flex-basis:62px;
  }

  .hero h1{font-size:49px}
  .hero-menu{width:235px}
  .solution-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:1050px){
  .site-header nav{display:none}

  .site-header{
    justify-content:space-between;
  }

  .site-header .brand{
    width:auto;
    flex-basis:auto;
    flex:1;
    min-width:220px;
  }

  .site-header .brand img{
    width:58px;
    height:58px;
    flex-basis:58px;
  }

  .header-cta{display:none}

  .hero-copy{width:64%}

  .hero-photo{
    left:30%;
    background-size:cover;
    background-position:68% center;
  }

  .hero-menu{
    width:220px;
    right:3%;
  }

  .solutions{
    grid-template-columns:1fr;
  }

  .section-intro>p:last-child{
    max-width:560px;
  }

  .about{
    grid-template-columns:200px 1fr;
  }

  .why{
    grid-column:1/-1;
    border-left:0;
    padding:22px 0;
    border-top:1px solid #d8e3eb;
  }

  .map-section{
    grid-template-columns:1fr;
  }
}

@media (min-width:761px) and (max-width:1100px){
  .site-header{
    height:auto;
    min-height:78px;
    flex-wrap:wrap;
    padding:12px 4%;
    gap:12px;
  }

  .site-header .brand{
    width:auto;
    flex:1;
    min-width:220px;
  }

  .site-header nav{
    display:flex;
    order:3;
    width:100%;
    flex-basis:100%;
    justify-content:center;
    padding-bottom:4px;
    overflow:auto;
  }

  .site-header nav a{
    padding:9px 0;
  }

  .site-header nav a:first-child:after{
    bottom:2px;
  }

  .header-location{display:none}

  .wa-mini{
    padding:10px 12px;
    font-size:12px;
  }

  .header-cta{
    padding:11px 14px;
    font-size:12px;
  }

  .hero{
    min-height:610px;
  }

  .hero-copy{
    width:62%;
    min-height:610px;
    padding-top:52px;
  }

  .hero-photo{
    left:30%;
    background-size:cover;
    background-position:68% center;
  }

  .hero-menu{
    width:220px;
    right:3%;
    top:16px;
  }

  .solutions{
    padding-left:4%;
    padding-right:4%;
  }

  .about{
    grid-template-columns:190px 1fr;
  }

  .why{grid-column:1/-1}
}

@media(max-width:760px){
  .site-header{
    height:auto;
    min-height:68px;
    padding:10px 4%;
    gap:8px;
    align-items:center;
  }

  .site-header .brand{
    width:auto;
    flex:1;
    min-width:0;
    gap:7px;
  }

  .site-header .brand img{
    width:40px;
    height:40px;
    flex-basis:40px;
  }

  .brand-title{
    font-size:10px;
    letter-spacing:.7px;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .wa-mini{display:none}

  .header-cta{
    display:inline-flex;
    padding:10px 12px;
    font-size:11px;
    border-radius:10px;
  }

  .hero{
    min-height:0;
    display:flex;
    flex-direction:column;
    background:#062d50;
  }

  .hero-photo{
    position:relative;
    inset:auto;
    order:0;
    width:100%;
    height:285px;
    min-height:285px;
    background-size:cover;
    background-position:center center;
  }

  .hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
      180deg,
      rgba(3,35,62,.02) 0%,
      rgba(3,35,62,.08) 100%
    );
  }

  .hero-copy{
    order:1;
    width:100%;
    min-height:0;
    padding:30px 7% 24px;
    background:linear-gradient(180deg,#062d50,#0a4778);
  }

  .hero h1{
    font-size:39px;
    line-height:1.02;
    letter-spacing:-1px;
  }

  .hero-text{
    font-size:15px;
  }

  .hero-actions{
    gap:9px;
    margin-top:18px;
    flex-direction:column;
  }

  .hero-actions .btn{width:100%}

  .trust-row{
    gap:6px;
    font-size:11px;
    margin-top:17px;
  }

  .hero-menu{
    position:relative;
    order:2;
    left:auto;
    right:auto;
    bottom:auto;
    top:auto;
    width:90%;
    margin:0 5% 20px;
    border-radius:16px;
  }

  .solutions{
    padding:32px 5%;
  }

  .section-intro h2{font-size:28px}

  .solution-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .solution-grid article{
    min-height:108px;
    padding:12px 8px;
  }

  .marquee-section{
    padding:18px 0 20px;
  }

  .marquee-section .eyebrow{
    padding:0 5%;
    line-height:1.35;
  }

  .logo-set{
    gap:20px;
    padding-right:20px;
  }

  .logo-set img{
    height:38px;
    max-width:135px;
  }

  .about{
    grid-template-columns:1fr;
    padding:28px 5%;
    gap:18px;
  }

  .portrait img{
    height:auto;
    aspect-ratio:4/3;
  }

  .why{
    border-left:0;
    border-top:1px solid #d8e3eb;
    padding:20px 0 0;
  }

  .why-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .contact{
    margin:14px 5% 25px;
    padding:24px 20px;
    grid-template-columns:1fr;
    gap:18px;
  }

  .contact h2{font-size:30px}

  .contact .btn{width:100%}

  .contact-data{
    font-size:14px;
    line-height:1.8;
    overflow-wrap:anywhere;
  }

  .map-section{
    margin:0 5% 30px;
    grid-template-columns:1fr;
    gap:12px;
  }

  .map-copy{padding:24px 20px}

  .map-copy h2{font-size:30px}

  .map-frame,
  .map-frame iframe{
    min-height:290px;
    height:290px;
  }

  footer{
    padding:24px 5%;
  }
}

@media(max-width:390px){
  .header-cta{
    padding:9px 10px;
    font-size:10px;
  }

  .site-header .brand img{
    width:36px;
    height:36px;
    flex-basis:36px;
  }

  .brand-title{font-size:9px}

  .hero-photo{
    height:250px;
    min-height:250px;
  }

  .hero h1{font-size:35px}

  .hero-copy{
    padding-left:6%;
    padding-right:6%;
  }

  .hero-menu{
    width:88%;
    margin-left:6%;
    margin-right:6%;
  }
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .marquee-track{animation:none}
}
