:root{
  --bg:#0b0f12;
  --card:#0f171c;
  --muted:#9fb0bb;
  --text:#e9f0f4;
  --brand:#0e6f73;
  --brand2:#14a3a8;
  --white:#ffffff;
  --shadow: 0 12px 40px rgba(0,0,0,.28);
  --radius: 18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(20,163,168,.18), transparent 55%),
              radial-gradient(900px 700px at 80% 10%, rgba(14,111,115,.18), transparent 60%),
              var(--bg);
}

a{color:inherit}
.container{width:min(1100px, 92%); margin:0 auto}

.topbar{
  position:sticky; top:0; z-index:20;
  background: rgba(11,15,18,.72);
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 0}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none}
.brand__logo{width:44px; height:44px; border-radius:12px; box-shadow: var(--shadow); object-fit:cover}
.brand__name{font-weight:800; letter-spacing:.2px; display:block}
.brand__tag{font-size:12px; color:var(--muted); display:block; margin-top:2px}

.nav{display:none; gap:18px}
.nav a{color:var(--muted); text-decoration:none; font-weight:600}
.nav a:hover{color:var(--text)}

.topbar__cta{display:flex; gap:10px; align-items:center}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 14px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:var(--white);
  border:1px solid rgba(255,255,255,.12);
  text-decoration:none;
  font-weight:800;
  box-shadow: 0 10px 24px rgba(14,111,115,.22);
}
.btn:hover{transform: translateY(-1px)}
.btn--ghost{
  background: rgba(255,255,255,.06);
  box-shadow:none;
}
.btn--ghost:hover{background: rgba(255,255,255,.10)}

.hero{
  position:relative;
  min-height: 78vh;
  display:grid;
  align-items:end;
  padding: 28px 0 40px;
}
.hero__bg{
  position:absolute; inset:0;
  background-image: linear-gradient(to top, rgba(11,15,18,.88), rgba(11,15,18,.15)),
                    url("../img/portada.jpg");
  background-size:cover;
  background-position:center;
  filter:saturate(1.05) contrast(1.02);
}
.hero__content{position:relative}
.hero__card{
  width:min(680px, 100%);
  background: rgba(15,23,28,.72);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
}
.badge{
  display:inline-flex;
  gap:8px; align-items:center;
  background: rgba(20,163,168,.16);
  border:1px solid rgba(20,163,168,.34);
  color:#d7fbff;
  padding:7px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  margin:0 0 12px;
}
h1{font-size: clamp(30px, 4vw, 46px); margin:0 0 10px; line-height:1.05}
.lead{color: rgba(233,240,244,.88); margin:0 0 16px; font-size: 16px; line-height:1.55}
.hero__actions{display:flex; flex-wrap:wrap; gap:10px; margin: 10px 0 10px}
.hero__highlights{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.chip{
  font-size:12px;
  font-weight:800;
  color: rgba(233,240,244,.92);
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  padding:7px 10px;
  border-radius:999px;
}

.section{padding: 64px 0}
.section--alt{background: rgba(255,255,255,.03); border-top:1px solid rgba(255,255,255,.06); border-bottom:1px solid rgba(255,255,255,.06)}
.section__head{margin-bottom:20px}
.section__head h2{font-size: 30px; margin:0 0 6px}
.section__head p{margin:0; color:var(--muted); line-height:1.5}

.grid{display:grid; gap:14px}
.grid--3{grid-template-columns: 1fr}
.grid--2{grid-template-columns: 1fr}

.card{
  background: rgba(15,23,28,.72);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.card h3{margin:0 0 8px; font-size:18px}
.card p{margin:0; color:rgba(233,240,244,.86); line-height:1.55}

.split{display:grid; gap:14px; margin-top:14px}
.split__text{align-self:center}
.list{margin:10px 0 0; padding-left:18px; color:rgba(233,240,244,.86); line-height:1.7}
.actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.media-card{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}
.media-card img{display:block; width:100%; height:auto}

.gallery{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:10px;
}
.gallery__item{
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  position:relative;
}
.gallery__item img{
  width:100%;
  height: 160px;
  object-fit:cover;
  display:block;
  transition: transform .25s ease;
}
.gallery__item:hover img{transform: scale(1.03)}
.gallery__label{
  position:absolute;
  left:10px; bottom:10px;
  font-size:12px;
  font-weight:800;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(11,15,18,.65);
  border:1px solid rgba(255,255,255,.12);
}

.video{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  background: rgba(0,0,0,.25);
}
.video iframe{width:100%; aspect-ratio: 16/9; display:block}

.muted{color:var(--muted)}
.small{font-size:12px}

.contact{display:flex; flex-direction:column; gap:10px; margin-top:10px}
.contact__row{
  display:flex; gap:10px; align-items:center;
  padding:10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  text-decoration:none;
}
.contact__row span{color:rgba(233,240,244,.92); font-weight:800}

.map{
  margin-top:14px;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
}
.map iframe{width:100%; height:260px; display:block; border:0}

.form{display:grid; gap:12px; margin-top:10px}
label{display:grid; gap:6px; font-weight:800; color: rgba(233,240,244,.92)}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(11,15,18,.45);
  color:var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(20,163,168,.55)}

.social{
  margin-top:18px;
  display:grid;
  gap:14px;
}
.embed{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding:0;
}
.embed iframe{width:100%; border:0}
.embed--placeholder{padding:16px}

.fab{
  position:fixed; right:16px; bottom:16px; z-index:30;
  display:flex; align-items:center; justify-content:center;
  width:56px; height:56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #13a84f, #0abf60);
  color:#fff;
  text-decoration:none;
  font-weight:900;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.14);
}
.fab span{font-size:12px}

.footer{
  padding: 22px 0;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(11,15,18,.82);
}
.footer__inner{display:flex; flex-direction:column; gap:6px; color:var(--muted)}
.footer a{color:#c9fbff; text-decoration:none}
.footer a:hover{text-decoration:underline}

/* modal */
.modal{
  position:fixed; inset:0;
  background: rgba(0,0,0,.75);
  display:none;
  align-items:center; justify-content:center;
  padding: 18px;
  z-index:40;
}
.modal.is-open{display:flex}
.modal__img{
  width:min(1000px, 96vw);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
}
.modal__close{
  position:fixed; top:16px; right:16px;
  width:44px; height:44px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(11,15,18,.55);
  color:#fff;
  font-size:18px;
  cursor:pointer;
}
.modal__caption{
  position:fixed;
  bottom:16px;
  left:50%;
  transform: translateX(-50%);
  background: rgba(11,15,18,.55);
  border:1px solid rgba(255,255,255,.14);
  padding:10px 12px;
  border-radius: 999px;
  color: rgba(233,240,244,.92);
  font-weight:800;
  font-size:12px;
}

/* responsive */
@media (min-width: 820px){
  .nav{display:flex}
  .grid--3{grid-template-columns: repeat(3, 1fr)}
  .grid--2{grid-template-columns: repeat(2, 1fr)}
  .split{grid-template-columns: 1.05fr .95fr; align-items:stretch}
  .gallery{grid-template-columns: repeat(4, 1fr)}
  .gallery__item img{height: 170px}
  .footer__inner{flex-direction:row; justify-content:space-between; align-items:center}
}
