:root{
  --primary:#0f2d4a;
  --primary-2:#123a5f;
  --accent:#d9a63a;
  --teal:#74a1b5;
  --bg:#fef9ee;
  --card:#f8eee4;
  --text:#0b1a24;
  --muted:#4a5b66;
  --shadow: 0 14px 40px rgba(7, 24, 36, .12);
  --radius: 20px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;background:var(--bg);color:var(--text);}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.container{width:min(1100px, 92vw); margin:0 auto;}
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(254,249,238,.78);
  border-bottom: 1px solid rgba(15,45,74,.10);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:14px;
}
.brand{display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:.3px;}
.brand img{width:44px;height:44px;border-radius:14px; box-shadow:0 10px 25px rgba(15,45,74,.15)}
.brand small{display:block; font-weight:700; color:var(--muted); letter-spacing:.2px;}
.navlinks{display:flex; gap:14px; align-items:center; flex-wrap:wrap; justify-content:flex-end;}
.navlinks a{padding:10px 12px;border-radius:12px;color:var(--primary);font-weight:700; font-size:14px;}
.navlinks a:hover{background: rgba(15,45,74,.06);}
.cta{display:flex; gap:10px; align-items:center;}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px;
  border-radius:14px;
  font-weight:800;
  border:1px solid rgba(15,45,74,.14);
  background:white;
  box-shadow: 0 12px 22px rgba(7, 24, 36, .08);
}
.btn:hover{transform: translateY(-1px);}
.btn.primary{background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:white; border-color: rgba(255,255,255,.12);}
.btn.accent{background: linear-gradient(135deg, var(--accent), #f2c35c); color:#2a1b00; border-color: rgba(255,255,255,.2);}

/* hero */
.hero{
  position:relative;
  overflow:hidden;
  border-radius: calc(var(--radius) + 12px);
  margin: 20px auto 0;
  min-height: 560px;
  background: #0f2d4a;
  box-shadow: var(--shadow);
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 500px at 75% 18%, rgba(217,166,58,.35), transparent 60%),
    radial-gradient(680px 420px at 22% 35%, rgba(116,161,181,.30), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.40));
  z-index:1;
}
.hero-bg{
  position:absolute; inset:0;
  background-image: url("assets/img/portada.jpg");
  background-size: cover;
  background-position: center;
  filter: contrast(1.05) saturate(1.05);
  transform: scale(1.04);
}
.hero-content{
  position:relative; z-index:2;
  height:100%;
  padding: clamp(18px, 4vw, 48px);
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items:end;
}
.badge{
  display:inline-flex; gap:10px; align-items:center;
  padding:10px 12px; border-radius: 999px;
  background: rgba(254,249,238,.92);
  color: var(--primary);
  font-weight:900;
  letter-spacing:.25px;
  width: fit-content;
  border: 1px solid rgba(255,255,255,.35);
}
.badge span{opacity:.85; font-weight:800}
.hero h1{
  margin:14px 0 10px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.02;
  color: white;
  letter-spacing: -0.8px;
  text-shadow: 0 18px 30px rgba(0,0,0,.35);
}
.hero p{
  margin:0;
  max-width: 46ch;
  color: rgba(255,255,255,.88);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.5;
  text-shadow: 0 18px 30px rgba(0,0,0,.35);
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:16px}
.card{
  background: rgba(254,249,238,.93);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 35px rgba(0,0,0,.18);
}
.kv{display:grid; gap:12px}
.kv .row{display:flex; gap:12px; align-items:flex-start}
.kv .icon{width:42px;height:42px;border-radius:14px;background: rgba(15,45,74,.08); display:grid; place-items:center; flex:0 0 auto;}
.kv b{display:block; color: var(--primary);}
.kv span{display:block; color: var(--muted); font-weight:650; font-size: 14px; line-height:1.25}
.chiprow{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.chip{padding:8px 10px;border-radius:999px;background: rgba(15,45,74,.06); color: var(--primary); font-weight:800; font-size:13px; border:1px solid rgba(15,45,74,.10)}

section{padding: 56px 0}
.section-title{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:18px}
.section-title h2{margin:0; font-size: clamp(22px, 3vw, 34px); letter-spacing:-.4px; color: var(--primary);}
.section-title p{margin:0; color: var(--muted); font-weight:650; max-width: 56ch;}
.grid-3{display:grid; grid-template-columns: repeat(3, 1fr); gap:16px}
.grid-2{display:grid; grid-template-columns: repeat(2, 1fr); gap:16px}
.feature{
  background: white;
  border: 1px solid rgba(15,45,74,.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 12px 28px rgba(7, 24, 36, .07);
}
.feature h3{margin:0 0 6px; color: var(--primary); letter-spacing:-.2px}
.feature p{margin:0; color: var(--muted); font-weight:650; line-height:1.55}
.feature .mini{margin-top:12px; display:flex; flex-wrap:wrap; gap:8px}
.feature .mini span{font-size:12px; font-weight:800; padding:7px 9px; border-radius:12px; background: rgba(116,161,181,.18); border:1px solid rgba(116,161,181,.25);}

.quote{
  background: linear-gradient(135deg, rgba(116,161,181,.18), rgba(217,166,58,.18));
  border: 1px solid rgba(15,45,74,.10);
  border-radius: calc(var(--radius) + 8px);
  padding: 22px;
  box-shadow: 0 18px 35px rgba(7, 24, 36, .08);
}
.quote p{margin:0; font-size: clamp(16px, 2.2vw, 20px); font-weight:800; line-height:1.5; color: #102434}
.quote footer{margin-top:12px; color: var(--muted); font-weight:750}

.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.gitem{
  position:relative;
  overflow:hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15,45,74,.10);
  box-shadow: 0 10px 25px rgba(7, 24, 36, .06);
  cursor: zoom-in;
}
.gitem img{width:100%; height:100%; object-fit:cover; transition: transform .45s ease}
.gitem:hover img{transform: scale(1.05)}
.gitem::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.18));
  opacity:.0;
  transition: opacity .3s ease;
}
.gitem:hover::after{opacity:1}
/* layout sizes */
.g1{grid-column: span 5; height: 280px}
.g2{grid-column: span 4; height: 280px}
.g3{grid-column: span 3; height: 280px}
.g4{grid-column: span 6; height: 310px}
.g5{grid-column: span 6; height: 310px}

.embed{
  background:white;
  border: 1px solid rgba(15,45,74,.10);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 12px 28px rgba(7, 24, 36, .07);
}
.embed iframe{width:100%; border:0; display:block}

.contact{
  background:white;
  border: 1px solid rgba(15,45,74,.10);
  border-radius: calc(var(--radius) + 8px);
  padding: 18px;
  box-shadow: 0 12px 28px rgba(7, 24, 36, .07);
}
.form{display:grid; gap:12px}
.input{display:grid; gap:6px}
.input label{font-weight:800; color: var(--primary); font-size: 13px}
.input input,.input textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(15,45,74,.14);
  padding: 12px 12px;
  font-size: 15px;
  outline:none;
  background: #fff;
}
.input textarea{min-height: 120px; resize: vertical}
.notice{font-size: 12.5px; color: var(--muted); font-weight:650; line-height:1.4}
.footer{
  padding: 26px 0 44px;
  color: rgba(15,45,74,.85);
  font-weight:750;
  border-top: 1px solid rgba(15,45,74,.10);
}
.footer a{color: var(--primary); font-weight:900}
/* floating buttons */
.floatbar{
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  z-index: 60;
}
.fab{
  display:flex; align-items:center; gap:10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(15,45,74,.14);
  box-shadow: 0 14px 30px rgba(7,24,36,.14);
  font-weight:900;
}
.fab svg{width:18px;height:18px}
.fab.whatsapp{border-color: rgba(37,211,102,.25)}
.fab.call{border-color: rgba(217,166,58,.35)}

/* lightbox */
.lightbox{
  position:fixed; inset:0;
  background: rgba(5,10,14,.78);
  display:none;
  align-items:center; justify-content:center;
  padding: 18px;
  z-index: 80;
}
.lightbox.open{display:flex}
.lightbox .panel{
  position:relative;
  width: min(980px, 96vw);
  max-height: 86vh;
  border-radius: 18px;
  overflow:hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.lightbox img{width:100%; height:100%; object-fit:contain; background:#000}
.lbbar{
  position:absolute; inset: 0 0 auto 0;
  display:flex; justify-content:space-between; align-items:center;
  padding: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent);
}
.lbbtn{
  border:0;
  background: rgba(255,255,255,.16);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight:900;
  cursor:pointer;
}
.lbbtn:hover{background: rgba(255,255,255,.22)}
.lbmeta{color: rgba(255,255,255,.88); font-weight:800; font-size:13px}

.reveal{opacity:0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease}
.reveal.show{opacity:1; transform: translateY(0)}

@media (max-width: 920px){
  .hero-content{grid-template-columns: 1fr; align-items:start}
  .hero{min-height: 620px}
  .grid-3{grid-template-columns: 1fr}
  .grid-2{grid-template-columns: 1fr}
  .navlinks{display:none}
}
@media (max-width: 640px){
  .hero{min-height: 660px}
  .btn{width:100%}
  .hero-actions{flex-direction:column; align-items:stretch}
  .g1,.g2,.g3,.g4,.g5{grid-column: span 12; height: 240px}
  .fab span{display:none}
}