:root{
  --bg:#07131f;
  --card:#0b2034;
  --soft:#0f2a43;
  --text:#eaf2ff;
  --muted:#b8c7e3;
  --accent:#3bb2ff;
  --accent2:#2dd4bf;
  --ring: rgba(59,178,255,.35);
  --shadow: 0 18px 45px rgba(0,0,0,.35);
  --radius: 20px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% -10%, rgba(59,178,255,.35), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(45,212,191,.20), transparent 60%),
              var(--bg);
  color:var(--text);
}

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

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(7,19,31,.72);
  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:12px; text-decoration:none}
.brand__logo{width:52px; height:52px; border-radius:14px; object-fit:cover; box-shadow: 0 8px 20px rgba(0,0,0,.35)}
.brand__text strong{display:block; font-size:16px; letter-spacing:.2px}
.brand__text span{display:block; font-size:12px; color:var(--muted); margin-top:2px}

.nav{display:flex; gap:18px; align-items:center}
.nav a{
  text-decoration:none; color:var(--muted); font-weight:600; font-size:13px;
  padding:10px 10px; border-radius:12px;
}
.nav a:hover{background: rgba(255,255,255,.06); color:var(--text)}
.topbar__cta{display:flex; gap:10px; align-items:center}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  text-decoration:none;
  padding:10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59,178,255,1), rgba(45,212,191,1));
  color:#04101a;
  font-weight:800;
  border: 0;
  cursor:pointer;
  box-shadow: 0 12px 25px rgba(0,0,0,.30);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover{transform: translateY(-1px); filter: brightness(1.05)}
.btn:active{transform: translateY(0px)}

.btn--ghost{
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:none;
  font-weight:700;
}
.btn--secondary{
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:none;
}
.btn--big{padding:14px 18px; border-radius: 16px; font-size:14px}

.hero{
  position:relative;
  min-height: 78vh;
  display:flex;
  align-items:stretch;
}
.hero__bg{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(7,19,31,.88), rgba(7,19,31,.35) 55%, rgba(7,19,31,.92)),
    url("../img/portada.jpg") center/cover no-repeat;
  filter: contrast(1.05) saturate(1.05);
}
.hero__content{
  position:relative;
  padding: 60px 0 42px;
}
.badge{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--muted);
  font-weight:700;
  font-size: 12px;
  width: fit-content;
}
.hero h1{
  margin: 14px 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing:-.9px;
}
.accent{
  background: linear-gradient(135deg, rgba(59,178,255,1), rgba(45,212,191,1));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero p{
  margin:0;
  max-width: 720px;
  color: rgba(234,242,255,.88);
  font-size: 16px;
  line-height: 1.55;
}
.hero__actions{
  display:flex; gap:12px; flex-wrap:wrap;
  margin-top: 18px;
}
.hero__stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top: 26px;
}
.stat{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 14px 14px;
}
.stat__num{font-size: 20px}
.stat__label{margin-top: 8px; color: var(--muted); font-weight:700; font-size: 13px; line-height:1.25}

.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{
  display:flex; align-items:flex-end; justify-content:space-between; gap:18px;
  margin-bottom: 18px;
}
.section__head h2{margin:0; font-size: 30px; letter-spacing:-.4px}
.section__head p{margin:0; color: var(--muted); max-width: 520px}

.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.card img{width:100%; height: 180px; object-fit: cover; display:block}
.card__body{padding: 16px}
.card__body h3{margin: 0 0 8px; font-size: 18px}
.card__body p{margin:0 0 10px; color: rgba(234,242,255,.86); line-height:1.45}
.list{margin:0; padding-left: 18px; color: var(--muted); font-weight:650}
.list li{margin: 7px 0}

.cta-strip{
  margin-top: 16px;
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px;
  padding: 16px 16px;
  border-radius: var(--radius);
  background: rgba(59,178,255,.10);
  border: 1px solid rgba(59,178,255,.20);
}
.cta-strip strong{display:block}
.cta-strip span{color: var(--muted); font-weight:650}

.gallery{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.gallery__item{
  padding:0; border:0; background: transparent; cursor:pointer;
  border-radius: 16px;
  overflow:hidden;
  outline: none;
  position:relative;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.gallery__item img{
  width:100%; height: 160px; object-fit: cover; display:block;
  transform: scale(1.02);
  transition: transform .18s ease, filter .18s ease;
}
.gallery__item:hover img{transform: scale(1.06); filter: brightness(1.05)}
.gallery__item:focus-visible{box-shadow: 0 0 0 4px var(--ring), 0 12px 28px rgba(0,0,0,.22)}

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

.contact-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
}
.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.panel h3{margin: 0 0 12px; font-size: 18px}
.contact-row{display:flex; gap:12px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.12)}
.contact-row:last-child{border-bottom:0}
.chip{
  width:38px; height:38px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  display:flex; align-items:center; justify-content:center;
}
.contact-row strong{display:block}
.contact-row a{color: var(--text); font-weight:800}
.contact-row span{color: var(--muted)}

.social{display:flex; gap:10px; margin-top: 14px; flex-wrap:wrap}

.form{display:grid; gap: 10px}
label{display:grid; gap:6px; color: var(--muted); font-weight:700; font-size: 13px}
input, select, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(7,19,31,.45);
  color: var(--text);
  outline: none;
}
input:focus, select:focus, textarea:focus{box-shadow: 0 0 0 4px var(--ring)}
textarea{resize: vertical; min-height: 110px}
.form__hint{margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35}

.map-social{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}
.map iframe{
  width:100%;
  min-height: 520px;
  border:0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.fb{
  display:flex; flex-direction:column; gap:10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.fb__head{display:flex; align-items:baseline; justify-content:space-between; gap:10px}
.fb__head span{color: var(--muted); font-weight:650; font-size: 12px}
.fb iframe{
  width:100%;
  min-height: 520px;
  border-radius: 14px;
}

.lightbox{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  display:none;
  align-items:center; justify-content:center;
  padding: 18px;
  z-index: 80;
}
.lightbox.is-open{display:flex}
.lightbox__img{
  max-width: min(1020px, 96vw);
  max-height: 82vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  background: rgba(255,255,255,.04);
}
.lightbox__close{
  position:absolute; top: 14px; right: 14px;
  width: 44px; height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 26px;
  cursor:pointer;
}
.lightbox__nav{
  position:absolute;
  bottom: 14px;
  display:flex;
  gap: 10px;
}

.footer{
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(7,19,31,.72);
}
.footer__inner{
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer__inner p{margin:0}
.footer__credit a{color: var(--text); font-weight:800; text-decoration:none}
.footer__credit a:hover{text-decoration:underline}

.wa-float{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(45,212,191,1), rgba(59,178,255,1));
  color:#04101a;
  text-decoration:none;
  font-weight:900;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.wa-icon{
  width: 34px; height: 34px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.55);
  border-radius: 999px;
}
.wa-text{font-size: 13px}

@media (max-width: 980px){
  .nav{display:none}
  .hero__stats{grid-template-columns: 1fr}
  .cards{grid-template-columns: 1fr}
  .gallery{grid-template-columns: repeat(2, minmax(0,1fr))}
  .contact-grid{grid-template-columns: 1fr}
  .map-social{grid-template-columns: 1fr}
  .map iframe{min-height: 380px}
  .fb iframe{min-height: 420px}
}
