:root{
  --bg:#0b1220;
  --panel:#0f1a33;
  --text:#0f172a;
  --muted:#475569;
  --brand:#c1121f; /* campatrans red */
  --brand2:#1d4ed8; /* accent blue */
  --card:#ffffff;
  --line:#e2e8f0;
  --shadow:0 12px 30px rgba(2,6,23,.12);
  --radius:18px;
  --max:1100px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Noto Sans",Arial,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#f8fafc, #eef2ff 40%, #ffffff);
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(var(--max), calc(100% - 40px)); margin-inline:auto}

.skip{position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;}
.skip:focus{left:16px; top:16px; width:auto; height:auto; padding:10px 12px; background:#fff; border:1px solid var(--line); border-radius:12px; z-index:9999}

header{
  position:sticky; top:0; z-index:1000;
  background:rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(226,232,240,.75);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 210px;
}
.brand img{height:38px; width:auto}
.brand .tag{font-size:12px; color:var(--muted); line-height:1.1}

.menu{
  display:flex; align-items:center; gap:18px;
}
.menu a{
  font-weight:600;
  color:#0f172a;
  padding:10px 12px;
  border-radius:999px;
}
.menu a:hover{background:rgba(29,78,216,.08)}
.menu a.active{background:rgba(193,18,31,.10); color:var(--brand)}
.actions{display:flex; align-items:center; gap:10px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  font-weight:700;
  border:1px solid transparent;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor:pointer;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--brand); color:white; box-shadow:0 10px 20px rgba(193,18,31,.20)}
.btn-primary:hover{box-shadow:0 14px 24px rgba(193,18,31,.28)}
.btn-ghost{background:transparent; border-color:rgba(15,23,42,.18)}
.btn-ghost:hover{background:rgba(15,23,42,.06)}
.icon-btn{
  display:none;
  border:1px solid rgba(15,23,42,.16);
  background:white;
  border-radius:12px;
  padding:10px 12px;
}
.icon-btn svg{width:22px;height:22px}

.hero{
  position:relative;
  min-height: 66vh;
  display:grid;
  align-items:stretch;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:#000;
}
.hero .bg{
  position:absolute; inset:0;
  background-image:
    linear-gradient(90deg, rgba(2,6,23,.72), rgba(2,6,23,.15) 60%),
    url('../images/hero-cabecera.webp');
  background-size:cover;
  background-position:center;
  transform:scale(1.02);
}
.hero .content{
  position:relative;
  padding:64px 0;
  color:white;
}
.hero h1{
  font-size: clamp(34px, 4.2vw, 56px);
  line-height:1.05;
  margin:0 0 14px 0;
  letter-spacing:-0.02em;
}
.hero p{
  margin:0 0 22px 0;
  font-size: clamp(16px, 1.55vw, 20px);
  max-width: 52ch;
  color: rgba(255,255,255,.88);
}
.hero .cta{display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.hero .badges{
  margin-top:28px;
  display:flex; flex-wrap:wrap; gap:10px;
}
.badge{
  display:inline-flex; gap:8px; align-items:center;
  padding:10px 12px; border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  font-weight:650;
  font-size:13px;
}
.badge svg{width:16px;height:16px; opacity:.95}

.section{padding:62px 0}
.section h2{
  font-size: clamp(24px, 2.2vw, 34px);
  margin:0 0 10px 0;
  letter-spacing:-0.01em;
}
.section .lead{color:var(--muted); margin:0 0 26px 0; max-width:75ch}

.grid{
  display:grid;
  gap:18px;
}
.grid.cols-3{grid-template-columns: repeat(3, minmax(0,1fr))}
.grid.cols-2{grid-template-columns: repeat(2, minmax(0,1fr))}

.card{
  background:var(--card);
  border:1px solid rgba(226,232,240,.9);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  transform: translateY(0);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover{transform: translateY(-4px); box-shadow:0 18px 42px rgba(2,6,23,.14)}
.card .media{aspect-ratio: 16 / 10; overflow:hidden}
.card .media img{width:100%; height:100%; object-fit:cover; transform:scale(1.02)}
.card .body{padding:18px 18px 20px}
.card h3{margin:0 0 6px 0; font-size:18px}
.card p{margin:0; color:var(--muted); line-height:1.6}

.pills{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.pill{
  font-weight:700;
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(29,78,216,.08);
  border:1px solid rgba(29,78,216,.14);
  color:#1e3a8a;
}

.banner{
  background: radial-gradient(1200px 500px at 10% 10%, rgba(193,18,31,.12), transparent 55%),
              radial-gradient(1200px 500px at 90% 10%, rgba(29,78,216,.12), transparent 55%),
              white;
  border:1px solid rgba(226,232,240,.95);
  border-radius: calc(var(--radius) + 6px);
  padding:22px;
  box-shadow: var(--shadow);
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:center;
}
.banner h3{margin:0 0 8px 0}
.banner p{margin:0; color:var(--muted); line-height:1.6}
.banner .right{
  display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap
}

.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:22px;
  align-items:center;
}
.split .panel{
  background:white;
  border:1px solid rgba(226,232,240,.95);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.split .panel img{width:100%; height:100%; object-fit:cover}
.list{
  display:grid; gap:12px;
}
.item{
  display:flex; gap:12px;
  padding:14px 14px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(226,232,240,.9);
  border-radius:14px;
}
.item svg{width:22px;height:22px; color:var(--brand)}
.item b{display:block; margin-bottom:2px}
.item span{color:var(--muted); line-height:1.55}

.form{
  background:white;
  border:1px solid rgba(226,232,240,.95);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.form .row{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
label{display:block; font-weight:700; margin:10px 0 6px}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.16);
  outline:none;
  font:inherit;
}
input:focus, textarea:focus{
  border-color: rgba(29,78,216,.55);
  box-shadow: 0 0 0 4px rgba(29,78,216,.12);
}
textarea{resize:vertical; min-height:120px}

.toast{
  position: fixed;
  right:16px;
  bottom:16px;
  max-width: 360px;
  background:#0f172a;
  color:white;
  padding:14px 14px;
  border-radius:16px;
  box-shadow:0 16px 40px rgba(2,6,23,.25);
  border:1px solid rgba(255,255,255,.10);
  display:none;
  z-index:9999;
}
.toast.show{display:block; animation: pop .25s ease}
@keyframes pop{from{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}

footer{
  background: linear-gradient(180deg, #0b1220, #050814);
  color: rgba(255,255,255,.9);
  padding:36px 0;
  margin-top:50px;
}
footer .cols{
  display:grid; grid-template-columns: 1.2fr .8fr .8fr;
  gap:18px;
}
footer a{color:rgba(255,255,255,.86)}
footer a:hover{color:white; text-decoration:underline}
footer .small{color:rgba(255,255,255,.68); font-size:13px; line-height:1.55}
footer .hr{height:1px; background:rgba(255,255,255,.10); margin:18px 0}
footer .bottom{display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; align-items:center}
footer .logo{display:flex; align-items:center; gap:10px}
footer .logo img{height:34px; width:auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.25))}

.reveal{opacity:0; transform:translateY(10px); transition: opacity .6s ease, transform .6s ease}
.reveal.in{opacity:1; transform:translateY(0)}

@media (max-width: 900px){
  .grid.cols-3{grid-template-columns: 1fr}
  .grid.cols-2{grid-template-columns: 1fr}
  .banner{grid-template-columns: 1fr}
  .banner .right{justify-content:flex-start}
  .split{grid-template-columns:1fr}
  footer .cols{grid-template-columns: 1fr}
  .menu{display:none; position:absolute; left:0; right:0; top:62px; padding:12px; background:rgba(255,255,255,.96); border-bottom:1px solid var(--line)}
  .menu.open{display:grid; gap:8px}
  .menu a{display:block}
  .icon-btn{display:inline-flex}
}