:root {
  --navy: #0b3b8c;
  --navy-deep: #082c69;
  --green: #5f8f16;
  --earth: #c4681e;
  --sand: #f5f1e7;
  --text: #1d2433;
  --muted: #5b667a;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(8, 44, 105, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfbfd 0%, #f2f5fa 100%);
}
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;
}
.page-shell { overflow: hidden; }
.hero {
  min-height: 100svh;
  background:
    linear-gradient(120deg, rgba(8,44,105,.78), rgba(8,44,105,.48) 42%, rgba(196,104,30,.28) 100%),
    url('assets/portada.jpg') center/cover no-repeat;
  color: var(--white);
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: rgba(255,255,255,.9);
  border-radius: 20px;
  padding: 8px;
}
.brand strong { display: block; font-size: 1.05rem; }
.brand span { font-size: .82rem; opacity: .85; }
.nav-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--earth), #dd8a3f); color: var(--white); box-shadow: var(--shadow); }
.btn-secondary { background: rgba(255,255,255,.16); color: var(--white); border-color: rgba(255,255,255,.34); backdrop-filter: blur(10px); }
.btn-outline { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.45); }
.hero-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  align-items: center;
  gap: 34px;
  padding: 42px 0 72px;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 760px;
}
.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 640px;
  color: rgba(255,255,255,.92);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  color: #d8e8ff;
}
.hero-badges, .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.hero-badges span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(10px);
}
.glass-card {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
}
.hero-card {
  color: var(--text);
  padding: 28px;
  border-radius: var(--radius);
}
.hero-card h2 { margin-top: 0; color: var(--navy); }
.hero-card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
  color: var(--muted);
}
.mini-contact {
  display: inline-block;
  margin-top: 16px;
  color: var(--navy);
  font-weight: 700;
}
section { padding: 92px 0; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  color: var(--navy-deep);
}
.section-heading p {
  color: var(--muted);
  max-width: 640px;
  margin: 12px auto 0;
}
.section-heading.center { text-align: center; }
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: -48px;
  position: relative;
  z-index: 3;
}
.highlight-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.highlight-card h3 { color: var(--navy); margin-top: 0; }
.highlight-card p { color: var(--muted); line-height: 1.8; margin-bottom: 0; }
.about-grid, .social-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: stretch;
}
.about p { line-height: 1.9; color: var(--muted); }
.stats-card, .social-card, .map-card, .contact-card, .contact-form {
  border-radius: var(--radius);
  padding: 28px;
}
.stats-card { display: grid; gap: 18px; }
.stats-card strong { display: block; color: var(--navy); margin-bottom: 5px; }
.stats-card span { color: var(--muted); }
.video-section { background: linear-gradient(180deg, #f7f9fd 0%, #eef3f9 100%); }
.video-wrapper {
  margin-top: 28px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.gallery-item {
  border: 0;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  background: var(--white);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:first-child img { aspect-ratio: 1.45 / 1; }
.gallery-item:first-child { grid-column: span 2; }
.gallery-item:hover img { transform: scale(1.05); }
.social-location { background: linear-gradient(180deg, #fdfcf8 0%, #f6f3ea 100%); }
.social-link {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(11,59,140,.06);
  border: 1px solid rgba(11,59,140,.1);
  margin-top: 18px;
}
.social-link img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 14px;
  background: white;
  padding: 6px;
}
.map-wrapper {
  overflow: hidden;
  border-radius: 20px;
  margin-top: 18px;
}
.map-wrapper iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}
.contact-card {
  display: grid;
  gap: 14px;
}
.contact-card h3 { margin: 0 0 6px; color: var(--navy); }
.contact-card a { color: var(--navy); font-weight: 600; }
.contact-card p { color: var(--muted); line-height: 1.8; }
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--navy-deep);
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(11,59,140,.15);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,.88);
  color: var(--text);
}
.contact-form small { color: var(--muted); }
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.88);
  padding: 26px 0;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-wrap a { color: #fff; }
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 16px 30px rgba(37, 211, 102, .35);
  display: grid;
  place-items: center;
  z-index: 60;
}
.floating-whatsapp svg {
  width: 34px;
  fill: #fff;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 16, 42, .86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 80;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .hero-content,
  .about-grid,
  .social-grid,
  .contact-grid,
  .highlights {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .hero-content {
    padding-top: 28px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item:first-child { grid-column: span 2; }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .nav-actions { width: 100%; }
  .nav-actions .btn { flex: 1; }
  .hero-copy h1 { font-size: 2.2rem; }
  .hero-copy p { font-size: .98rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .gallery-item img,
  .gallery-item:first-child img { aspect-ratio: 1.12 / 1; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
}
