:root {
  --primary: #0e5db8;
  --secondary: #29a8f1;
  --dark: #09284a;
  --ink: #18324d;
  --soft: #eef7ff;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(9, 40, 74, 0.15);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
  background: #f8fbff;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.hero {
  min-height: 100vh;
  position: relative;
  background: linear-gradient(120deg, rgba(9,40,74,.86), rgba(14,93,184,.58)), url('assets/images/portada.jpg') center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(41,168,241,.25), transparent 35%);
}
.navbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px min(3vw, 32px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  padding: 4px;
}
.brand span, .brand small { display: block; }
.brand span { font-weight: 800; }
.brand small { opacity: .8; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-weight: 600; opacity: .95; }
.nav-toggle {
  display: none;
  border: 0;
  background: rgba(255,255,255,.14);
  color: white;
  font-size: 1.4rem;
  padding: 10px 14px;
  border-radius: 12px;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 32px 0 70px;
}
.glass-card {
  max-width: 670px;
  padding: 34px;
  border-radius: 30px;
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: .84rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--secondary);
}
.hero .eyebrow { color: #bfe7ff; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.1; }
h1 { font-size: clamp(2.3rem, 6vw, 4.5rem); font-family: 'Playfair Display', serif; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--dark); }
h3 { font-size: 1.2rem; color: var(--dark); }
p { line-height: 1.75; margin: 0 0 16px; }
.hero-copy p { font-size: 1.05rem; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(14,93,184,.26);
}
.btn-secondary {
  background: rgba(255,255,255,.14);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.24);
}
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.hero-highlights li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.1);
  font-size: .95rem;
}

.contact-strip {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 18px 0;
}
.strip-grid a {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
}
.strip-grid strong, .strip-grid span { display: block; }
.strip-grid strong { margin-bottom: 4px; }

.section { padding: 86px 0; }
.section-soft { background: var(--soft); }
.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.info-card, .social-card, .contact-form, .about-image-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-card {
  padding: 28px;
  border: 1px solid rgba(14,93,184,.08);
}
.about-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
}
.about-image-card { padding: 12px; }
.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.mini-stats div {
  background: rgba(14,93,184,.06);
  padding: 18px;
  border-radius: 18px;
}
.mini-stats strong, .mini-stats span { display: block; }
.mini-stats strong { margin-bottom: 6px; color: var(--primary); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.social-card {
  padding: 28px;
  border: 1px solid rgba(14,93,184,.08);
}
.social-card span {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--primary);
}

.contact-form {
  padding: 26px;
  display: grid;
  gap: 16px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(14,93,184,.18);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fbfdff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(41,168,241,.3);
  border-color: var(--secondary);
}
.contact-list { display: grid; gap: 12px; margin-top: 20px; }
.contact-list a {
  width: fit-content;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(14,93,184,.08);
}

.map-wrap {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 28px 0;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.footer-content p:last-child { margin: 0; }
.footer-content a { color: #9fd7ff; }

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1fcf63, #18a64f);
  display: grid;
  place-items: center;
  box-shadow: 0 15px 30px rgba(0,0,0,.22);
  z-index: 30;
}
.floating-whatsapp svg { width: 34px; fill: white; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(100%, 980px);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  background: white;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.18);
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .cards-grid,
  .gallery-grid,
  .social-grid,
  .about-grid,
  .contact-grid,
  .strip-grid,
  .hero-highlights,
  .mini-stats {
    grid-template-columns: 1fr 1fr;
  }
  .footer-content { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 84px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    padding: 18px;
    background: rgba(9,40,74,.96);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .glass-card { padding: 26px; }
  .cards-grid,
  .gallery-grid,
  .social-grid,
  .about-grid,
  .contact-grid,
  .strip-grid,
  .hero-highlights,
  .mini-stats {
    grid-template-columns: 1fr;
  }
  .gallery-item img { height: 220px; }
  .section { padding: 70px 0; }
  .navbar { padding-inline: 16px; }
}
