:root {
  --bg: #eef4f8;
  --bg2: #f8fbfd;
  --text: #243949;
  --muted: #587186;
  --primary: #7ea9cc;
  --primary-deep: #5b8db8;
  --accent: #dfeef9;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(43, 72, 99, 0.12);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #ffffff 35%, var(--bg2) 100%);
}
a { color: var(--primary-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, 92%); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 1000; }

.hero {
  position: relative;
  background: url('assets/portada.png') center/cover no-repeat;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(240,247,252,.72) 0%, rgba(236,244,249,.55) 40%, rgba(225,238,248,.88) 100%);
}
.topbar, .hero-content { position: relative; z-index: 1; }
.topbar {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow); }
.brand strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; line-height: 1; }
.brand span { color: var(--muted); font-size: .82rem; }
.nav-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px; padding: 12px 18px;
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; box-shadow: 0 10px 20px rgba(91,141,184,.24); }
.btn-outline { background: rgba(255,255,255,.85); border: 1px solid rgba(91,141,184,.35); color: var(--text); }
.btn-soft { background: #edf5fb; color: #375a77; border: 1px solid #cfe2f2; }

.hero-content { flex: 1; display: grid; align-items: center; padding: 18px 0 48px; }
.glass {
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow);
  border-radius: 24px;
}
.hero-card { max-width: 760px; padding: 28px; }
.eyebrow { margin: 0 0 8px; color: #476c88; font-weight: 600; letter-spacing: .03em; }
.hero-card h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: .98;
}
.lead { color: var(--muted); font-size: 1.02rem; margin: 14px 0 18px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-info { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.quick-info span {
  background: rgba(126,169,204,.14);
  color: #3f647f;
  border: 1px solid rgba(126,169,204,.25);
  padding: 6px 10px; border-radius: 999px; font-size: .9rem;
}

.section { padding: 66px 0; }
.grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; }
.section h2 {
  margin: 6px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
  font-family: 'Cormorant Garamond', serif;
}
.section-head { text-align: center; margin-bottom: 22px; }
.section-head p { color: var(--muted); margin: 0; }
.check-list { padding-left: 1.1rem; color: var(--muted); }
.check-list li { margin-bottom: 8px; }
.promo-banner-card img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.contact-cards { display: grid; gap: 12px; margin-top: 16px; }
.contact-card {
  background: #fff; border: 1px solid #e3edf6; border-radius: 14px; padding: 12px 14px;
  display: flex; gap: 12px; align-items: center; box-shadow: 0 6px 16px rgba(48,78,104,.05);
}
.contact-card span { font-size: 1.4rem; }
.contact-card small { display: block; color: var(--muted); }

.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.promo-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(42,70,96,.08);
  border: 1px solid #e7eef5;
}
.promo-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.promo-card h3 { margin: 0; padding: 12px; font-size: .95rem; text-align: center; color: #365770; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.gallery-item {
  padding: 0; border: 0; background: #fff; cursor: zoom-in;
  border-radius: 14px; overflow: hidden; box-shadow: 0 8px 20px rgba(39,66,90,.08);
  border: 1px solid #e6edf5; transition: transform .2s ease;
}
.gallery-item:hover { transform: translateY(-3px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }

.video-frame {
  background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--shadow); border: 1px solid #e7eef5;
}
.video-frame iframe { width: 100%; min-height: 340px; border: 0; border-radius: 12px; }

.social-links-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.social-link-card {
  background: #fff; border: 1px solid #e4edf6; border-radius: 14px; padding: 14px;
  display: flex; gap: 12px; align-items: center; box-shadow: 0 8px 20px rgba(42,70,96,.06);
}
.social-link-card .icon { font-size: 1.4rem; }
.social-link-card small { color: var(--muted); display: block; }
.embed-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; }
.embed-card {
  background: #fff; border-radius: 16px; padding: 14px; border: 1px solid #e4edf6; box-shadow: 0 10px 22px rgba(42,70,96,.06);
}
.embed-card h3 { margin-top: 0; }
.embed-card iframe { width: 100%; border-radius: 10px; background: #f7fbff; }
.fallback-card { display: grid; align-content: start; gap: 10px; }
.fallback-logo { width: 120px; border-radius: 50%; margin-top: 8px; }

.location-contact .grid-2 { align-items: stretch; }
.contact-form {
  margin-top: 16px; background: #fff; border: 1px solid #e2ecf6; border-radius: 16px; padding: 14px;
  display: grid; gap: 10px; box-shadow: 0 10px 22px rgba(42,70,96,.06);
}
.contact-form label { display: grid; gap: 6px; font-weight: 600; color: #3b5d77; }
.contact-form input,
.contact-form textarea {
  width: 100%; border: 1px solid #d6e4f1; border-radius: 12px; padding: 12px; font: inherit; color: var(--text);
  background: #fbfdff;
}
.contact-form textarea { resize: vertical; }
.map-card {
  background: #fff; border: 1px solid #e2ecf6; border-radius: 16px; padding: 10px; box-shadow: var(--shadow);
}
.map-card iframe { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: 12px; }

.whatsapp-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #27d266, #1cab4f);
  color: #fff; display: grid; place-items: center; font-size: 1.6rem;
  box-shadow: 0 14px 24px rgba(25,168,79,.35);
}
.whatsapp-float:hover { text-decoration: none; transform: translateY(-2px); }

.lightbox {
  position: fixed; inset: 0; background: rgba(10, 18, 28, .82); display: none; place-items: center; z-index: 100;
  padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 84vh; border-radius: 14px; box-shadow: 0 22px 50px rgba(0,0,0,.35); background: #fff; }
.lightbox-close {
  position: absolute; top: 14px; right: 16px; font-size: 2rem; line-height: 1;
  border: none; background: rgba(255,255,255,.15); color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
}

.site-footer {
  background: linear-gradient(180deg, #e7f0f7 0%, #dceaf5 100%);
  border-top: 1px solid #d0e2f0;
  padding: 24px 0;
  margin-top: 18px;
}
.footer-wrap { text-align: center; color: #47677f; }
.footer-wrap p { margin: 6px 0; }

.fade-in, .fade-in-up { opacity: 0; transform: translateY(12px); }
.fade-in.visible, .fade-in-up.visible { opacity: 1; transform: translateY(0); transition: opacity .7s ease, transform .7s ease; }

@media (max-width: 980px) {
  .promo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .grid-2, .embed-grid { grid-template-columns: 1fr; }
  .map-card iframe { min-height: 320px; }
}
@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: stretch; }
  .brand { justify-content: center; }
  .nav-actions { justify-content: center; }
  .hero { min-height: auto; }
  .hero-card { padding: 20px; }
  .cta-row .btn { width: 100%; }
  .social-links-grid { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .section { padding: 48px 0; }
}
