:root{
  --bg:#07141b;
  --surface:rgba(255,255,255,.06);
  --surface2:rgba(255,255,255,.10);
  --text:#eaf2f5;
  --muted:rgba(234,242,245,.78);
  --brand:#006080;
  --brand2:#26526b;
  --accent:#b6905a;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 700px at 70% -10%, rgba(0,96,128,.35), transparent 60%),
              radial-gradient(900px 600px at 10% 10%, rgba(38,82,107,.35), transparent 55%),
              linear-gradient(180deg, #061015, #07141b 40%, #061015);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.container{width:min(var(--max), calc(100% - 40px)); margin-inline:auto}
.section{padding:72px 0}
.section h2{margin:0 0 14px; font-size:clamp(24px, 2.3vw, 34px); letter-spacing:.2px}
.section p{margin:0; color:var(--muted); line-height:1.65}

.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(6,16,21,.62);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
}
.brand{
  display:flex; align-items:center; gap:12px; min-width: 220px;
}
.brand img{width:42px; height:42px; border-radius:50%; box-shadow: 0 10px 30px rgba(0,0,0,.25)}
.brand .t{
  display:flex; flex-direction:column; line-height:1.05;
}
.brand .t strong{font-size:15px; letter-spacing:.7px}
.brand .t span{font-size:12px; color:var(--muted); letter-spacing:.25em}

.menu{display:flex; gap:16px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.menu a{
  font-size:13px; color:rgba(234,242,245,.86);
  padding:10px 12px; border-radius:999px;
  transition: .2s ease;
}
.menu a:hover{background:rgba(255,255,255,.08)}
.menu .cta{
  background:linear-gradient(135deg, rgba(0,96,128,.95), rgba(38,82,107,.95));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
}

.hero{
  position:relative;
  padding: 58px 0 24px;
}
.hero-card{
  position:relative;
  border-radius: calc(var(--radius) + 8px);
  overflow:hidden;
  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.10);
}
.hero-bg{
  position:absolute; inset:0;
  background: url("assets/img/portada.png") center/cover no-repeat;
  transform: scale(1.02);
}
.hero-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(6,16,21,.85) 0%, rgba(6,16,21,.55) 42%, rgba(6,16,21,.18) 70%, rgba(6,16,21,.55) 100%),
    radial-gradient(800px 500px at 35% 35%, rgba(0,96,128,.22), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
}
.hero-content{
  position:relative;
  padding: clamp(22px, 4.6vw, 54px);
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items:end;
  min-height: 380px;
}
.kicker{
  display:inline-flex; gap:10px; align-items:center;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  width: fit-content;
  color: rgba(234,242,245,.9);
  font-size: 13px;
}
.kicker .dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(0,96,128,.18);
}
.hero h1{
  margin:14px 0 10px;
  font-size: clamp(30px, 4.1vw, 56px);
  line-height:1.06;
  letter-spacing:.2px;
}
.hero h1 span{color:#b9e7f2}
.hero .lead{
  font-size: clamp(14px, 1.2vw, 17px);
  color: rgba(234,242,245,.86);
  max-width: 56ch;
}
.hero-actions{
  display:flex; gap:12px; flex-wrap:wrap; margin-top:18px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(234,242,245,.92);
  font-weight:600;
  font-size:14px;
  transition:.18s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.10)}
.btn.primary{
  background: linear-gradient(135deg, rgba(0,96,128,.95), rgba(38,82,107,.95));
  box-shadow: var(--shadow);
}
.badges{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end;
}
.badge{
  padding:12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  min-width: 180px;
}
.badge strong{display:block; font-size:18px}
.badge span{display:block; font-size:12px; color:var(--muted); margin-top:4px}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.card{
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  overflow:hidden;
}
.card.pad{padding:20px}
.card h3{margin:0 0 8px; font-size:18px}
.card small{color:var(--muted)}
.pills{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.pill{
  font-size:12px; letter-spacing:.12em;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(0,96,128,.18);
  border:1px solid rgba(0,96,128,.28);
  color: rgba(234,242,245,.92);
}

.projects{grid-column: span 8;}
.side{grid-column: span 4;}

.project-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.project{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  aspect-ratio: 1/1;
  cursor:pointer;
  border: 1px solid rgba(255,255,255,.10);
}
.project img{width:100%; height:100%; object-fit:cover; filter:saturate(1.05)}
.project::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.62));
}
.project .label{
  position:absolute; left:14px; right:14px; bottom:12px;
  display:flex; justify-content:space-between; align-items:end; gap:10px;
  z-index:2;
}
.project .label strong{font-size:14px}
.project .label span{font-size:12px; color:rgba(234,242,245,.78)}

.quote{
  display:flex; gap:14px; align-items:center;
}
.quote img{width:74px; height:74px; border-radius:18px; object-fit:cover}
.quote p{margin:0; color:rgba(234,242,245,.86)}
.quote p strong{display:block; margin-bottom:6px}

.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.gi{
  grid-column: span 4;
  border-radius: 18px;
  overflow:hidden;
  cursor: zoom-in;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.gi.wide{grid-column: span 8;}
.gi img{width:100%; height:100%; object-fit:cover; transition: .18s ease}
.gi:hover img{transform: scale(1.02)}

.video-wrap{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  background: rgba(0,0,0,.2);
}
.video-wrap iframe{width:100%; height:min(64vh, 520px); border:0}

.social{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.embed{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  min-height: 420px;
}
.embed .fallback{
  padding:18px;
  display:flex; flex-direction:column; gap:10px;
}
.embed .fallback a{display:inline-flex; width:fit-content}

.form{
  display:grid; gap:12px;
}
.input, textarea{
  width:100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding:12px 12px;
  color: var(--text);
  outline:none;
  font-size:14px;
}
textarea{min-height:120px; resize: vertical}
.input:focus, textarea:focus{border-color: rgba(0,96,128,.6); box-shadow: 0 0 0 6px rgba(0,96,128,.18)}

.map{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
}
.map img{width:100%; height:100%; object-fit:cover}

.footer{
  padding: 28px 0 44px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(6,16,21,.6);
}
.footer .row{
  display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between;
  color: rgba(234,242,245,.76);
  font-size: 13px;
}
.footer .row a{color: rgba(234,242,245,.86)}

.whatsapp-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, #25D366, #1ebe57);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.22);
  transition: .18s ease;
}
.whatsapp-float:hover{transform: translateY(-2px)}
.whatsapp-float svg{width:28px; height:28px; fill:white}

.modal{
  position:fixed; inset:0;
  background: rgba(0,0,0,.72);
  display:none;
  align-items:center; justify-content:center;
  padding: 18px;
  z-index: 200;
}
.modal.open{display:flex}
.modal .frame{
  position:relative;
  width:min(1100px, 100%);
  border-radius: 22px;
  overflow:hidden;
  box-shadow: 0 26px 80px rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.18);
  background: rgba(10,20,26,.9);
}
.modal img{width:100%; height:auto; display:block}
.modal .close{
  position:absolute; top:12px; right:12px;
  width:42px; height:42px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: white;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.fade{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade.in{
  opacity:1;
  transform: translateY(0);
}

@media (max-width: 920px){
  .hero-content{grid-template-columns: 1fr; min-height: 420px}
  .badges{justify-content:flex-start}
  .projects{grid-column: span 12;}
  .side{grid-column: span 12;}
  .project-grid{grid-template-columns: repeat(2, 1fr)}
  .social{grid-template-columns: 1fr}
  .embed{min-height: 360px}
}
@media (max-width: 560px){
  .container{width:min(var(--max), calc(100% - 28px))}
  .menu{display:none}
  .hero{padding-top: 34px}
  .project-grid{grid-template-columns: 1fr}
  .gi{grid-column: span 12}
  .gi.wide{grid-column: span 12}
  .badge{min-width: unset; width: 100%}
}