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

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a1a;
  background-color: #f5f6fb;
  line-height: 1.6;
}

/* Navbar */
.header {
  position: relative;
  min-height: 100vh;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(5, 23, 73, 0.9);
  backdrop-filter: blur(10px);
  color: #fff;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #ffca7a;
  transition: width 0.25s 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: #fff;
  height: 2px;
  width: 22px;
  border-radius: 999px;
  position: relative;
  transition: all 0.3s 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 {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 23, 73, 0.8), rgba(0, 0, 0, 0.3));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn.primary {
  background: #ffca7a;
  color: #051749;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn.full {
  width: 100%;
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
}

.section-light {
  background: #f5f6fb;
}

.section-colored {
  background: linear-gradient(135deg, #051749, #163476);
  color: #fff;
}

.section-colored h2,
.section-colored p,
.section-colored li {
  color: #fff;
}

.section h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  margin-top: 0;
  margin-bottom: 2rem;
  color: #666;
}

.section-colored .section-subtitle {
  color: #e0e4ff;
}

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

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

/* Image mosaic */
.image-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 120px;
  gap: 0.5rem;
}

.image-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-mosaic img:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.image-mosaic img:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.icon-list {
  padding-left: 1.1rem;
}

.icon-list li {
  margin-bottom: 0.4rem;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}

.section-colored .card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.card-body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.card-body h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card-body p {
  margin: 0;
  font-size: 0.95rem;
}

/* Galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
  filter: brightness(1.05);
}

/* Video section */
.section-video {
  background: radial-gradient(circle at top left, #ffca7a 0, #f5f6fb 40%, #e0e4ff 100%);
}

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

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

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

/* Redes */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: #fff;
}

.social-card small {
  font-weight: 400;
  opacity: 0.9;
}

.social-card.fb {
  background: linear-gradient(135deg, #1877f2, #174287);
}

.social-card.ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b);
}

.social-embeds {
  display: flex;
  justify-content: center;
}

.fb-embed iframe {
  border-radius: 16px;
}

/* Contacto */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.contact-list li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.contact-list a {
  color: inherit;
}

.map-wrapper {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  margin-top: 1rem;
}

.contact-form-card {
  background: #fff;
  color: #1a1a1a;
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}

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

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #d1d5e5;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.18s ease, box-shadow 0.18s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #163476;
  box-shadow: 0 0 0 2px rgba(22, 52, 118, 0.15);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  z-index: 60;
  animation: pulse 2.2s infinite;
}

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

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.2rem 1rem 1.4rem;
  background: #020822;
  color: #e5e7f5;
  font-size: 0.85rem;
}

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

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

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Animaciones de scroll */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .two-columns {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

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

  .social-embeds {
    margin-top: 1.5rem;
  }
}

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

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

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(5, 23, 73, 0.97);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1.2rem;
  }

  .nav-toggle:checked ~ .nav-links {
    max-height: 260px;
  }

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

  .nav-toggle:checked + .nav-toggle-label span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .hero-content {
    padding-top: 5.5rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

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

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

  .section {
    padding-block: 4rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

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