*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #122025;
  background-color: #f5f7f7;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #fdf5e6 0, #f5f7f7 40%, #e3f3f5 100%);
  padding-bottom: 3rem;
}

/* Navbar */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 247, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,0,0,0.08);
}

.nav-title {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.brand-main {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c7922c;
}

.brand-sub {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: #1c5d6c;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #c7922c, #1c5d6c);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav */

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #122025;
  height: 2px;
  width: 22px;
  border-radius: 999px;
  position: relative;
  transition: 0.2s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before {
  top: -6px;
}

.nav-toggle-label span::after {
  top: 6px;
}

.hero-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 5% 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 3.2vw + 1rem, 3.2rem);
  margin: 0 0 1rem;
  color: #12323b;
}

.hero-text p {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  color: #26434a;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #c7922c, #e0a93c);
  color: #fff;
  box-shadow: 0 10px 20px rgba(199,146,44,0.22);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(199,146,44,0.3);
}

.btn.ghost {
  background: rgba(255,255,255,0.85);
  color: #1c5d6c;
  border-color: rgba(28,93,108,0.2);
}

.btn.ghost:hover {
  background: #1c5d6c;
  color: #fff;
}

.btn.full {
  width: 100%;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.hero-badges span {
  background: rgba(255,255,255,0.9);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.04);
  color: #416a74;
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-image-wrapper {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.9);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video .ratio-16x9 {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}

/* Generic layout */

.section {
  padding: 4rem 5%;
}

.section.alt {
  background: #ffffff;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

h2 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
  font-size: 1.9rem;
  color: #12323b;
}

.section-lead {
  max-width: 640px;
  color: #43575e;
  font-size: 0.98rem;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.icon-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.icon-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.icon-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.55rem;
  color: #c7922c;
  transform: translateY(0.35rem);
}

.image-stack {
  position: relative;
  width: 100%;
}

.stack-image {
  border-radius: 1.4rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.9);
}

.stack-image.top {
  position: relative;
  z-index: 2;
}

.stack-image.bottom {
  position: absolute;
  right: -8%;
  bottom: -14%;
  width: 70%;
  z-index: 1;
  opacity: 0.95;
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #f7f9fa;
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.card-img {
  height: 210px;
  width: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.2rem 1.3rem 1.3rem;
  font-size: 0.92rem;
}

.card-body h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #12323b;
}

.card-body ul {
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

/* Galería */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 0.9rem;
  overflow: hidden;
  cursor: pointer;
  height: 150px;
  object-fit: cover;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.gallery-item:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 12px 26px rgba(0,0,0,0.15);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.76);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 1.5rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 960px;
  width: 100%;
}

.lightbox img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 20px 45px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -0.8rem;
  right: -0.8rem;
  background: #ffffff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: #122025;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* Ratios */

.ratio-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.ratio-16x9 iframe,
.ratio-16x9 video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Redes */

.fb-wrapper {
  max-width: 520px;
  margin-left: auto;
}

/* Contacto */

.contact-section {
  align-items: flex-start;
}

.contact-info p {
  margin: 0.2rem 0;
  font-size: 0.94rem;
}

.contact-info a {
  color: #1c5d6c;
  font-weight: 600;
}

.contact-form-card {
  background: #ffffff;
  border-radius: 1.4rem;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.09);
  border: 1px solid rgba(0,0,0,0.03);
}

.contact-form h3 {
  margin-top: 0;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #55686f;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  background: #f9fbfb;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #1c5d6c;
  box-shadow: 0 0 0 1px rgba(28,93,108,0.2);
  background: #ffffff;
}

/* Footer */

.footer {
  background: #0f2025;
  color: #eaeff0;
  padding: 1.8rem 5%;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
}

.footer a {
  color: #8fd3e6;
}

/* WhatsApp float */

.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  z-index: 50;
}

.wa-icon {
  font-size: 1.6rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 2rem;
  }

  .hero-media {
    order: -1;
  }

  .two-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .image-stack .stack-image.bottom {
    display: none;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .navbar {
    padding-inline: 1.25rem;
  }

  .hero,
  .section,
  .footer {
    padding-inline: 1.25rem;
  }

  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    background: rgba(245,247,247,0.98);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.5rem;
    gap: 0.9rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-toggle:checked + .nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle:checked + .nav-toggle-label span::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label span::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-toggle:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-badges {
    flex-direction: column;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
