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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #123047;
  background-color: #f5f7fb;
  line-height: 1.6;
}

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

.hero {
  position: relative;
  background-image: url("../img/hero-portada.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 32, 64, 0.75), rgba(0, 32, 64, 0.85));
}

.hero-content {
  position: relative;
  padding: 2rem;
  max-width: 900px;
}

.hero-logo {
  width: 110px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.8);
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background-color: #0077c8;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 119, 200, 0.45);
}

.btn.secondary {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 32, 64, 0.96);
  backdrop-filter: blur(8px);
}

.main-nav a {
  color: #f5f7fb;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover {
  text-decoration: underline;
}

.section {
  padding: 3.5rem 1.5rem;
}

.section-alt {
  background-color: #e9f1fb;
}

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

h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.cards-grid,
.posadas-grid,
.promos-grid,
.gallery-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.cards-grid {
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background-color: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(0, 40, 80, 0.12);
  display: flex;
  flex-direction: column;
}

.card img {
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.posadas-grid,
.promos-grid {
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.posada-item,
.promo-item {
  background-color: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(0, 40, 80, 0.12);
}

.gallery-grid {
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.gallery-item {
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 22px rgba(0, 40, 80, 0.18);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 40, 80, 0.22);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 32px rgba(0, 40, 80, 0.25);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.social-section {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-btn {
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background-color: #0077c8;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 119, 200, 0.45);
  font-size: 0.95rem;
}

.social-btn:hover {
  opacity: 0.9;
}

.contact-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  align-items: flex-start;
}

.contact-form {
  background-color: #fff;
  padding: 1.75rem 1.5rem;
  border-radius: 1.4rem;
  box-shadow: 0 18px 32px rgba(0, 40, 80, 0.18);
}

.form-row {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #c0cfdf;
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #0077c8;
  box-shadow: 0 0 0 1px rgba(0, 119, 200, 0.2);
}

.site-footer {
  background-color: #001f3f;
  color: #dbe7ff;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #f6d26a;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  z-index: 50;
}

/* Modal for gallery */
.modal {
  display: none;
  position: fixed;
  z-index: 40;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 1rem;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.9s ease both;
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }
}
