
:root{
  --bg:#f7fafc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --brand:#0b6e86;      /* inspired by logo */
  --brand2:#e04b56;     /* subtle accent */
  --ring: rgba(11,110,134,.25);
  --shadow: 0 16px 40px rgba(2,8,23,.10);
  --shadow2: 0 10px 26px rgba(2,8,23,.08);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1100px 700px at 10% -10%, rgba(11,110,134,.14), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(224,75,86,.10), transparent 55%),
    var(--bg);
  line-height:1.5;
}
a{color:inherit}
img{max-width:100%; height:auto; display:block}
.container{width:min(1100px, 92%); margin-inline:auto}
.btn{
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.95rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.75);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(10px);
  text-decoration:none;
  font-weight:700;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover{transform: translateY(-1px); box-shadow: var(--shadow); border-color: rgba(11,110,134,.35); background: rgba(255,255,255,.92);}
.btn.primary{background: linear-gradient(135deg, rgba(11,110,134,1), rgba(9,148,160,1)); color:white; border-color: transparent;}
.btn.primary:hover{box-shadow: 0 18px 44px rgba(11,110,134,.28);}
.btn.ghost{background: transparent; box-shadow:none;}
.badge{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.35rem .65rem;
  border-radius: 999px;
  border:1px solid rgba(11,110,134,.22);
  background: rgba(255,255,255,.65);
  font-weight:700;
  color: var(--brand);
}
header{
  position: sticky; top:0; z-index: 50;
  background: rgba(247,250,252,.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:.75rem 0;
  gap:1rem;
}
.brand{
  display:flex; align-items:center; gap:.7rem; min-width: 220px;
}
.brand img{width:44px; height:44px}
.brand .title{
  display:flex; flex-direction:column;
  line-height:1.1;
}
.brand .title strong{font-size:1.05rem}
.brand .title span{font-size:.82rem; color:var(--muted); font-weight:600}
.navlinks{
  display:flex; gap:.8rem; align-items:center;
}
.navlinks a{
  text-decoration:none;
  font-weight:700;
  color: rgba(15,23,42,.82);
  padding:.55rem .75rem;
  border-radius: 999px;
}
.navlinks a:hover{background: rgba(11,110,134,.08); color: var(--brand);}
.menu-btn{
  display:none;
  border:1px solid rgba(15,23,42,.12);
  border-radius: 12px;
  padding:.55rem .65rem;
  background: rgba(255,255,255,.75);
}
.hero{
  padding: 2.2rem 0 1.4rem;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1.4rem;
  align-items: stretch;
}
.hero-card{
  position:relative;
  border-radius: calc(var(--radius) + 8px);
  overflow:hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,.10);
  background: #0b1220;
}
.hero-card .bg{
  position:absolute; inset:0;
  background-image: url("../img/portada.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.03);
}
.hero-card .overlay{
  position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(2,6,23,.72), rgba(2,6,23,.22) 55%, rgba(11,110,134,.16));
}
.hero-card .content{
  position:relative;
  padding: 2rem 1.8rem;
  display:flex;
  flex-direction:column;
  gap: 1rem;
  height:100%;
  justify-content: flex-end;
}
.hero-card h1{
  margin:0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  color: white;
}
.hero-card p{
  margin:0;
  color: rgba(255,255,255,.86);
  max-width: 44ch;
  font-weight:600;
}
.hero-actions{
  display:flex; flex-wrap:wrap;
  gap:.65rem;
  margin-top:.35rem;
}
.side{
  display:flex;
  flex-direction:column;
  gap: 1rem;
}
.card{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(10px);
}
.card.pad{padding: 1.2rem 1.15rem;}
.card h2{margin:.1rem 0 .5rem; font-size:1.1rem}
.card p{margin:.2rem 0; color:var(--muted); font-weight:600}
.kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:.8rem;
}
.kpi{
  padding:.9rem .9rem;
  border-radius: 16px;
  background: rgba(11,110,134,.07);
  border: 1px solid rgba(11,110,134,.16);
}
.kpi strong{display:block; font-size:1.1rem}
.kpi span{display:block; color:var(--muted); font-weight:700; font-size:.85rem}
.section{padding: 1.7rem 0}
.section .head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:1rem;
  margin-bottom: 1rem;
}
.section h3{margin:0; font-size:1.35rem; letter-spacing:-0.01em}
.section .sub{margin: .25rem 0 0; color:var(--muted); font-weight:600}
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.list{
  display:grid; gap:.65rem;
}
.li{
  display:flex; gap:.65rem; align-items:flex-start;
  padding:.75rem .85rem;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.72);
}
.dot{
  width: 10px; height:10px; border-radius:999px;
  margin-top:.35rem;
  background: var(--brand);
  box-shadow: 0 0 0 6px var(--ring);
  flex:0 0 auto;
}
.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:.8rem;
}
.gitem{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow2);
  cursor: zoom-in;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gitem:hover{transform: translateY(-2px); box-shadow: var(--shadow);}
.gitem img{aspect-ratio: 1/1; object-fit: cover;}
.lightbox{
  position: fixed; inset:0;
  background: rgba(2,6,23,.82);
  display:none;
  align-items:center; justify-content:center;
  padding: 1rem;
  z-index: 1000;
}
.lightbox.open{display:flex;}
.lightbox .panel{
  width:min(980px, 96%);
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(15,23,42,.25);
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
  position:relative;
}
.lightbox img{width:100%; height:auto; display:block; background:#0b1220}
.lbbar{
  position:absolute; inset:auto 0 0 0;
  display:flex; justify-content:space-between; align-items:center;
  padding: .65rem .7rem;
  background: linear-gradient(180deg, transparent, rgba(2,6,23,.75));
  color:white;
}
.lbbar .controls{display:flex; gap:.35rem}
.iconbtn{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: white;
  border-radius: 12px;
  padding:.5rem .6rem;
  cursor:pointer;
}
.iconbtn:hover{background: rgba(255,255,255,.14);}
.video{
  position:relative;
  border-radius: calc(var(--radius) + 6px);
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow);
  background: #0b1220;
}
.video iframe{width:100%; aspect-ratio: 16/9; border:0; display:block}
.contact-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1rem;
}
.field{
  display:flex; flex-direction:column; gap:.35rem;
  margin-bottom:.75rem;
}
label{font-weight:800; font-size:.92rem}
input, textarea{
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.16);
  padding: .8rem .9rem;
  font: inherit;
  background: rgba(255,255,255,.9);
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(11,110,134,.55); box-shadow: 0 0 0 5px var(--ring);}
textarea{min-height: 120px; resize: vertical;}
.small{font-size:.88rem; color:var(--muted); font-weight:600}
.map{
  border-radius: calc(var(--radius) + 6px);
  overflow:hidden;
  border:1px solid rgba(15,23,42,.10);
  box-shadow: var(--shadow2);
}
.map iframe{width:100%; height: 320px; border:0; display:block}
.footer{
  padding: 1.5rem 0 2.4rem;
  color: rgba(15,23,42,.75);
}
.footer .row{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  flex-wrap:wrap;
}
.footer .social{
  display:flex; gap:.6rem; flex-wrap:wrap;
}
.footer .social a{
  text-decoration:none;
  font-weight:800;
  color: var(--brand);
  background: rgba(11,110,134,.08);
  border: 1px solid rgba(11,110,134,.16);
  padding:.55rem .8rem;
  border-radius: 999px;
}
.footer .social a:hover{background: rgba(11,110,134,.12);}
.whatsapp-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
}
.whatsapp-float a{
  display:flex; align-items:center; gap:.55rem;
  padding: .85rem 1rem;
  border-radius: 999px;
  background: #25D366;
  color: white;
  text-decoration:none;
  font-weight:900;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}
.whatsapp-float a:hover{filter: brightness(0.98);}
.fade{opacity:0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease;}
.fade.in{opacity:1; transform: translateY(0);}

@media (max-width: 940px){
  .hero-grid{grid-template-columns: 1fr; }
  .hero-card{min-height: 380px;}
  .contact-grid{grid-template-columns: 1fr;}
  .gallery{grid-template-columns: repeat(3, 1fr);}
}
@media (max-width: 680px){
  .navlinks{display:none;}
  .menu-btn{display:inline-flex;}
  .kpis{grid-template-columns: 1fr; }
  .grid-2{grid-template-columns: 1fr;}
  .gallery{grid-template-columns: repeat(2, 1fr);}
  .hero-card .content{padding: 1.6rem 1.1rem;}
}
.mobile-menu{
  display:none;
  padding: .5rem 0 1rem;
}
.mobile-menu.open{display:block;}
.mobile-menu a{
  display:block;
  padding:.8rem .7rem;
  border-radius: 14px;
  text-decoration:none;
  font-weight:800;
  color: rgba(15,23,42,.86);
}
.mobile-menu a:hover{background: rgba(11,110,134,.08); color: var(--brand);}
