:root{
  --bg:#0b66b2;
  --bg2:#083b6a;
  --card:#ffffff;
  --text:#0b1b2b;
  --muted:#5a6b7d;
  --accent:#e31b23;
  --accent2:#0b66b2;
  --shadow: 0 14px 40px rgba(0,0,0,.18);
  --radius:22px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% 10%, rgba(255,255,255,.15), transparent 60%),
              linear-gradient(160deg, #0a5fa8 0%, #0a4f90 35%, #083b6a 100%);
}
a{color:inherit; text-decoration:none}
img{max-width:100%; height:auto; display:block}

.container{width:min(1120px, calc(100% - 40px)); margin:0 auto}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.14);
  color:#fff;
  backdrop-filter: blur(10px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  user-select:none;
}
.btn:hover{transform:translateY(-1px); background:rgba(255,255,255,.2); border-color:rgba(255,255,255,.28)}
.btn.primary{background: linear-gradient(135deg, var(--accent) 0%, #ff4b52 100%); border-color: rgba(255,255,255,.25)}
.btn.primary:hover{background: linear-gradient(135deg, #ff2f37 0%, #ff6167 100%)}
.btn.dark{background: rgba(0,0,0,.18)}
.badge{
  display:inline-flex; gap:8px; align-items:center;
  padding:6px 10px; border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.2);
  color:#fff; font-size:12px;
}

header{
  position:sticky; top:0; z-index:50;
  background: rgba(6, 28, 52, .55);
  border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
  color:#fff;
}
.brand img{
  width:168px; height:auto;
  border-radius:12px;
  background:#fff;
  padding:8px 10px;
  box-shadow: 0 8px 26px rgba(0,0,0,.22);
}
.navlinks{
  display:flex; gap:18px; align-items:center;
}
.navlinks a{
  color:rgba(255,255,255,.9);
  font-weight:600;
  font-size:14px;
  padding:10px 10px;
  border-radius:12px;
}
.navlinks a:hover{background: rgba(255,255,255,.10)}
.burger{display:none}

.hero{
  padding:40px 0 26px;
}
.heroGrid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:26px;
  align-items:stretch;
}
.heroCard{
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  position:relative;
  min-height:420px;
}
.heroCard .cover{
  position:absolute; inset:0;
  background: url("../img/portada.jpg") center/cover no-repeat;
  filter:saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}
.heroCard .cover:after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(7,26,47,.84) 0%, rgba(7,26,47,.55) 46%, rgba(7,26,47,.18) 100%),
              linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.35) 100%);
}
.heroContent{
  position:relative;
  padding:30px 28px;
  color:#fff;
}
.heroTitle{
  font-size:42px;
  line-height:1.05;
  margin:8px 0 10px;
  letter-spacing:.2px;
}
.heroTitle span{color: #fff}
.heroLead{
  margin:0 0 18px;
  font-size:16px;
  color: rgba(255,255,255,.92);
  max-width:54ch;
}
.heroActions{display:flex; flex-wrap:wrap; gap:12px; margin-top:14px}
.heroMini{
  display:grid;
  grid-template-rows: auto 1fr;
  gap:16px;
}
.glass{
  border-radius: var(--radius);
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
  overflow:hidden;
}
.miniBox{padding:18px 18px; color:#fff}
.miniBox h3{margin:0 0 8px; font-size:16px}
.miniBox p{margin:0; color: rgba(255,255,255,.88); font-size:14px; line-height:1.45}
.kpis{display:grid; grid-template-columns: repeat(3,1fr); gap:10px; margin-top:14px}
.kpi{
  padding:12px 12px;
  border-radius:16px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
}
.kpi strong{display:block; font-size:16px}
.kpi span{display:block; font-size:12px; color: rgba(255,255,255,.85); margin-top:2px}

.section{
  padding:42px 0;
}
.sectionTitle{
  color:#fff;
  font-size:26px;
  margin:0 0 8px;
}
.sectionSub{
  color: rgba(255,255,255,.86);
  margin:0 0 20px;
  max-width:80ch;
  line-height:1.55;
  font-size:15px;
}
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.card{
  background: rgba(255,255,255,.95);
  border:1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
  overflow:hidden;
  transform: translateY(10px);
  opacity:0;
  transition: transform .6s ease, opacity .6s ease;
}
.card.reveal{transform: translateY(0); opacity:1}
.card .img{
  aspect-ratio: 16/9;
  overflow:hidden;
  background:#eef3f8;
}
.card .img img{width:100%; height:100%; object-fit:cover; transition: transform .35s ease}
.card:hover .img img{transform: scale(1.04)}
.card .body{padding:14px 14px 16px}
.card h4{margin:0 0 6px; font-size:16px}
.card p{margin:0; color:var(--muted); font-size:13px; line-height:1.45}

.carousel{
  background: rgba(255,255,255,.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.carouselTop{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 12px;
  background: linear-gradient(90deg, rgba(11,102,178,.12), rgba(227,27,35,.10));
  border-bottom:1px solid rgba(0,0,0,.06);
}
.carouselTop strong{color:#0b1b2b}
.carouselBtns{display:flex; gap:10px}
.iconBtn{
  width:38px; height:38px; border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  cursor:pointer;
  display:grid; place-items:center;
}
.iconBtn:hover{background:#f6f8fb}
.track{
  display:flex;
  gap:12px;
  padding:12px;
  overflow:auto;
  scroll-snap-type:x mandatory;
}
.track::-webkit-scrollbar{height:10px}
.track::-webkit-scrollbar-thumb{background: rgba(0,0,0,.18); border-radius:999px}
.gItem{
  flex: 0 0 min(300px, 78vw);
  scroll-snap-align:start;
  border-radius:18px;
  overflow:hidden;
  position:relative;
  cursor:pointer;
  border:1px solid rgba(0,0,0,.08);
  background:#eef3f8;
}
.gItem img{width:100%; height:210px; object-fit:cover}
.gOverlay{
  position:absolute; inset:auto 0 0 0;
  padding:10px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 100%);
  color:#fff;
  font-weight:700;
  font-size:12px;
}

.twoCol{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
.panel{
  background: rgba(255,255,255,.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.22);
}
.panel .pHead{
  padding:14px 14px;
  background: linear-gradient(90deg, rgba(11,102,178,.12), rgba(227,27,35,.10));
  border-bottom:1px solid rgba(0,0,0,.06);
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.panel .pHead strong{color:#0b1b2b}
.panel .pBody{padding:14px 14px 16px}
.list{
  margin:0; padding-left:18px; color:#24384c; line-height:1.6; font-size:14px;
}
.embed{
  aspect-ratio: 16/9;
  width:100%;
  border:0;
  display:block;
}

.formGrid{
  display:grid;
  gap:12px;
}
.field{
  display:grid;
  gap:6px;
}
.field label{font-weight:700; font-size:13px; color:#18304a}
.field input,.field textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
  outline:none;
  font-size:14px;
}
.field textarea{min-height:120px; resize:vertical}
.small{font-size:12px; color:#5a6b7d; line-height:1.5}

.map{
  width:100%;
  height:340px;
  border:0;
  display:block;
}

footer{
  padding:28px 0 36px;
  color: rgba(255,255,255,.85);
  border-top:1px solid rgba(255,255,255,.14);
  margin-top:20px;
}
.footerGrid{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.footerGrid strong{color:#fff}
.footerLinks a{color: rgba(255,255,255,.9); text-decoration:underline}

.whatsapp-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #25D366;
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
  display:grid;
  place-items:center;
  transition: transform .15s ease;
}
.whatsapp-float:hover{transform: translateY(-2px)}
.whatsapp-float svg{width:30px; height:30px; fill:#fff}

@media (max-width: 980px){
  .heroGrid{grid-template-columns: 1fr; }
  .heroTitle{font-size:36px}
  .cards{grid-template-columns: 1fr 1fr}
  .twoCol{grid-template-columns: 1fr}
  .navlinks{display:none}
  .burger{display:inline-flex}
}
@media (max-width: 560px){
  .heroTitle{font-size:32px}
  .cards{grid-template-columns: 1fr}
  .brand img{width:150px}
}