:root {
  --bg: #f4f7fb;
  --bg-alt: #edf2f8;
  --text: #49566f;
  --heading: #6b7f9d;
  --primary: #7f8fb0;
  --primary-dark: #667797;
  --soft-pink: #efdbe2;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(76, 97, 133, 0.14);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: #7b8dab;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  font-size: 14px;
  align-items: center;
}
.topbar a {
  background: rgba(255,255,255,.15);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}
.hero {
  position: relative;
  min-height: 100vh;
  background: url('assets/portada.jpg') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(245,248,252,0.86) 15%, rgba(245,248,252,0.38) 55%, rgba(80,91,122,0.28) 100%);
}
.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.brand strong, h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--heading);
}
.brand strong { display: block; font-size: 28px; line-height: .9; }
.brand span { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-weight: 600;
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.menu-toggle {
  display: none;
  border: none;
  background: rgba(255,255,255,.8);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 24px;
}
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 60px 0 90px;
}
.glass-card {
  max-width: 700px;
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(12px);
  padding: 38px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.5);
}
.eyebrow, .section-tag {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 700;
}
h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: .95;
  margin: 12px 0 18px;
}
.hero-copy p:not(.eyebrow) {
  font-size: 1.05rem;
  max-width: 58ch;
}
.hero-actions, .contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(103, 120, 151, .22);
}
.btn-secondary {
  background: rgba(255,255,255,.9);
  color: var(--primary-dark);
  border: 1px solid rgba(103,120,151,.18);
}
.section { padding: 90px 0; }
.alt { background: var(--bg-alt); }
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  align-items: center;
}
h2 {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1;
  margin: 10px 0 18px;
}
.section-head { max-width: 820px; margin: 0 auto 40px; }
.centered { text-align: center; }
.soft-panel {
  background: rgba(255,255,255,.84);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(112, 131, 165, 0.08);
}
.intro-card { overflow: hidden; }
.intro-card img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.feature-list li {
  background: rgba(255,255,255,.78);
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(80, 91, 122, .08);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-card { overflow: hidden; }
.info-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.info-card div { padding: 22px; }
.info-card h3 { font-size: 2rem; margin: 0 0 10px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.video-wrap { overflow: hidden; padding: 10px; }
.video-wrap iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 20px;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.social-card {
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  transition: transform .2s ease;
}
.social-card:hover { transform: translateY(-4px); }
.social-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8d9bbb 0%, #c9d3e7 100%);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}
.contact-grid { align-items: start; }
.contact-list {
  margin-top: 18px;
  margin-bottom: 28px;
  flex-direction: column;
  align-items: flex-start;
}
.contact-list a, .contact-list p {
  margin: 0;
  background: rgba(255,255,255,.85);
  padding: 14px 18px;
  border-radius: 14px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(80, 91, 122, .08);
}
.map-wrap {
  overflow: hidden;
  min-height: 340px;
}
.map-wrap iframe { width: 100%; height: 340px; border: 0; }
.contact-form {
  padding: 28px;
  display: grid;
  gap: 14px;
}
.contact-form h3 {
  font-size: 2rem;
  margin: 0 0 6px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(111, 130, 163, .18);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  background: rgba(255,255,255,.95);
}
.btn-full { width: 100%; }
.footer {
  background: #6b7f9d;
  color: #fff;
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a { text-decoration: underline; }
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
  z-index: 100;
}
.floating-whatsapp svg { width: 34px; fill: white; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(19, 24, 37, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 120;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 38px;
  border: none;
  background: none;
  color: white;
  cursor: pointer;
}
@media (max-width: 980px) {
  .grid-2, .cards-grid, .gallery-grid, .social-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { gap: 28px; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(255,255,255,.96);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-grid; place-items: center; }
}
@media (max-width: 720px) {
  .topbar { flex-direction: column; text-align: center; }
  .hero { min-height: auto; }
  .hero-content { padding: 30px 0 70px; }
  .glass-card { padding: 26px; }
  .grid-2, .cards-grid, .gallery-grid, .social-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .brand strong { font-size: 24px; }
  .footer-inner { flex-direction: column; }
}
