/* ==========================================================================
   AEROSALA — Landing page
   Secciones: Base / Header / Menú mobile / Hero / Próximamente / Video /
              Cards / Suscripción / Mapa / Footer / Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Sora';
  src: url('assets/Sora.ttf') format('truetype-variations');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #1B2B6B;
  --navy-soft: #3b4a8f;
  --navy-hover: #48579e;
  --bg-light: #F0F2F8;
  --text-muted: #5a6486;
  --text-contact: #3a4674;
  --header-h: 86px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Sora', sans-serif;
  color: var(--navy);
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: #2c3f8f;
}

input::placeholder {
  color: #9aa3c4;
}

img {
  max-width: 100%;
}

.logo-svg {
  display: block;
  width: auto;
  fill: currentColor;
}

/* Botones sociales circulares (variantes claro / navy) */
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.social-btn--light {
  background: #ffffff;
}

.social-btn--light svg {
  fill: var(--navy);
}

.social-btn--navy {
  background: var(--navy);
}

.social-btn--navy svg {
  fill: #ffffff;
}

/* --------------------------------------------------------------------------
   Header (sticky, se vuelve navy opaco al hacer scroll o abrir el menú)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled,
.site-header.menu-open {
  background: var(--navy);
  box-shadow: 0 6px 20px rgba(27, 43, 107, 0.25);
}

.nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  color: #ffffff;
  flex-shrink: 0;
  display: block;
}

.nav-logo .logo-svg {
  height: 48px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-pill {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.nav-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-socials .social-btn {
  width: 34px;
  height: 34px;
}

/* Botón hamburguesa (solo mobile) */
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-burger span {
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-open .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .nav-burger span:nth-child(2) {
  opacity: 0;
}

.menu-open .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Menú mobile
   -------------------------------------------------------------------------- */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.menu-open .mobile-menu {
  max-height: 420px;
  padding-bottom: 18px;
}

.mobile-menu-link {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 13px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  text-align: center;
}

.mobile-menu-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Región cielo (hero + próximamente)
   -------------------------------------------------------------------------- */
.sky-region {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(11, 90, 190, 0.55) 0%, rgba(11, 90, 190, 0.15) 45%, rgba(120, 175, 235, 0.25) 100%),
    url('assets/sky.jpg');
  background-size: cover;
  background-position: center 30%;
  padding-top: var(--header-h);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  min-height: 440px;
}

.hero-copy h1 {
  color: #ffffff;
  font-size: 34px;
  line-height: 1.28;
  font-weight: 600;
  max-width: 460px;
  text-wrap: balance;
}

.btn-location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  background: var(--navy);
  color: #ffffff;
  padding: 12px 22px 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(20, 47, 122, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-location:hover {
  color: #ffffff;
  background: #24378a;
  transform: translateY(-2px);
}

.btn-location svg {
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero-seats {
  position: relative;
  width: 100%;
  max-width: 630px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 22px 30px rgba(20, 40, 90, 0.28));
}

/* --------------------------------------------------------------------------
   Próximamente
   -------------------------------------------------------------------------- */
.proximamente {
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 40px 64px;
}

.proximamente h2 {
  color: #ffffff;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 1px;
}

.proximamente-rule {
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  margin-top: 16px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Video
   -------------------------------------------------------------------------- */
.video-section {
  background: var(--bg-light);
  padding: 60px 24px;
  display: flex;
  justify-content: center;
}

.video-wrapper {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.cards {
  background: #ffffff;
  padding: 56px 40px 72px;
}

.cards-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.card {
  flex: 0 1 calc((100% - 4 * 26px) / 5);
  background: var(--bg-light);
  border-radius: 16px;
  padding: 30px 26px 34px;
  box-shadow: 0 10px 26px rgba(27, 43, 107, 0.06);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(27, 43, 107, 0.28);
}

.card h3 {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 700;
  color: #111111;
}

.card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #111111;
}

/* --------------------------------------------------------------------------
   Mapa
   -------------------------------------------------------------------------- */
.map {
  width: 100%;
  height: 400px;
  background: #dfe4ef;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #ffffff;
  padding: 56px 40px 40px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-card {
  background: #E8EAF2;
  border-radius: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  color: var(--navy);
}

.footer-brand .logo-svg {
  height: 44px;
}

.footer-badge {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  background: var(--navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(27, 43, 107, 0.28);
}

.footer-contact {
  justify-self: end;
  text-align: right;
}

.footer-contact h3 {
  font-size: 30px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 14px;
}

.footer-contact p {
  font-size: 16px;
  line-height: 1.7;
  color: #111111;
}

.footer-contact-role {
  margin-bottom: 6px;
}

.footer-contact-role a {
  color: #111111;
  text-decoration: underline;
}

.footer-contact-role a:hover {
  color: var(--navy);
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 0 8px;
}

/* --------------------------------------------------------------------------
   Cartelera
   -------------------------------------------------------------------------- */
.cartelera {
  background: var(--navy);
  padding: 56px 40px 72px;
}

.cartelera-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.cartelera-title {
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 34px;
}

.cartelera-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.cartelera-empty {
  color: var(--text-muted);
  font-size: 16px;
}

.funcion-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(27, 43, 107, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.funcion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(27, 43, 107, 0.14);
}

.funcion-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-light);
}

.funcion-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.funcion-badge-agotado {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #d12b2b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(209, 43, 43, 0.35);
}

.funcion-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 22px;
}

.funcion-nombre {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: #111111;
}

.funcion-subtitulo {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.funcion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
}

.funcion-fecha,
.funcion-hora {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.funcion-fecha svg,
.funcion-hora svg {
  flex-shrink: 0;
  color: var(--navy-soft);
}

@media (max-width: 1100px) {
  .cartelera-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cartelera-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .card {
    flex-basis: calc((100% - 2 * 26px) / 3);
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 82px;
  }

  /* Header / menú */
  .nav {
    padding: 20px 22px;
  }

  .nav-logo .logo-svg {
    height: 36px;
  }

  .nav-links,
  .nav-socials {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  /* Hero */
  .sky-region {
    background-image:
      linear-gradient(180deg, rgba(11, 90, 190, 0.6) 0%, rgba(11, 90, 190, 0.18) 45%, rgba(120, 175, 235, 0.28) 100%),
      url('assets/sky.jpg');
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 24px 22px 0;
    gap: 0;
    min-height: 0;
  }

  .hero-copy h1 {
    font-size: 29px;
    line-height: 1.28;
    max-width: none;
  }

  .btn-location {
    margin-top: 26px;
    padding: 12px 20px 12px 16px;
  }

  .hero-visual {
    margin-top: 20px;
    min-height: 280px;
  }

  .hero-seats {
    width: 84%;
    max-width: 315px;
  }

  /* Próximamente */
  .proximamente {
    padding: 14px 22px 42px;
  }

  .proximamente h2 {
    font-size: 32px;
    letter-spacing: 0.5px;
  }

  .proximamente-rule {
    margin-top: 12px;
  }

  /* Cards */
  .cards {
    padding: 36px 22px 44px;
  }

  .cards-grid {
    gap: 18px;
  }

  .card {
    flex-basis: 100%;
  }

  .card {
    padding: 26px 24px 28px;
  }

  .card-icon {
    width: 54px;
    height: 54px;
  }

  .card h3 {
    margin-top: 20px;
  }

  .card p {
    margin-top: 9px;
  }

  /* Mapa */
  .map {
    height: 300px;
  }

  /* Footer */
  .footer {
    padding: 44px 22px 36px;
  }

  .footer-card {
    padding: 36px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 30px;
    text-align: center;
  }

  .footer-brand .logo-svg {
    height: 40px;
  }

  .footer-badge {
    width: 64px;
    height: 64px;
  }

  .footer-contact {
    justify-self: center;
    text-align: center;
  }

  .footer-contact h3 {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .footer-contact p {
    font-size: 15px;
    line-height: 1.8;
  }

  .footer-socials {
    gap: 14px;
    padding: 30px 0 4px;
  }
}
