/* =========================================================
   ANIVERSARIO SUPER MAMI
   Estilos principales - Landing independiente del servidor
   ========================================================= */

:root {
  --header: #00c8ae;
  --sky: #87bde7;
  --aqua: #40b5a5;
  --ink: #173b4b;
  --white: #fff;
  --content-width: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0%, var(--aqua) 100%);
  position: relative;
}
img, picture { display: block; max-width: 100%; }
a { color: inherit; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header);
  box-shadow: 0 3px 12px rgba(0,0,0,.10);
}
.main-nav {
  min-height: 72px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 4.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: auto; height: 48px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
.nav-links a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .025em;
  white-space: nowrap;
  transition: opacity .2s ease, transform .2s ease;
}
.nav-links a:hover { opacity: .8; transform: translateY(-2px); }
.menu-toggle { display: none; }

/* BANNER */
.hero-banner { width: 100%; line-height: 0; overflow: hidden; }
.hero-banner img { width: 100%; height: auto; }

/* Legal */
.pv-legal {
  color: #ffffff; /* O simplemente "white" */
  text-align: left;
}

/* INTRO: espacio editable para el texto promocional */
.intro-section {
  width: min(92%, 1040px);
  min-height: 64px;
  margin: 38px auto 38px;
  padding: 20px 30px;
  text-align: left;
  background: rgba(255,255,255,.94);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15,55,72,.12);
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.65;
  font-weight: 600;
}
.intro-section p { margin: 0; }

/* FORMULARIO + MODELO DE TICKET */
.participation-section {
  width: min(94%, var(--content-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.participation-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(28px, 4vw, 54px);
}
.ticket-info { text-align: left; padding: 24px 10px 0; }
.ticket-info p {
  max-width: 490px;
  margin: 0 auto 22px;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
}
.ticket-example {
  width: min(100%, 440px);
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15,55,72,.13);
}
.form-card {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 34px rgba(15,55,72,.16);
  overflow: hidden;
}
.form-card iframe {
  display: block;
  width: 100%;
  min-height: 850px;
  border: 0;
  border-radius: 9px;
  background: transparent;
}

/* OFERTAS + MARCAS */
.extras-section {
  width: min(94%, var(--content-width));
  margin: 200px auto 0;
  position: relative;
  z-index: 1;
}
.extras-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 54px);
}
.offers-area { display: flex; align-items: center; justify-content: center; }
.offers-button {
  display: block;
  width: min(100%, 460px);
  border-radius: 18px;
  overflow: hidden;
  transform: translateZ(0);
  filter: drop-shadow(0 12px 18px rgba(20,65,75,.20));
  transition: transform .28s ease, filter .28s ease;
  animation: offersFloat 4.2s ease-in-out infinite;
}
.offers-button img { width: 100%; height: auto; }
.offers-button:hover {
  transform: translateY(-8px) scale(1.035) rotate(-1deg);
  filter: drop-shadow(0 18px 22px rgba(20,65,75,.28));
}
.brands-area { min-width: 0; text-align: center; }
.brands-area h2, .social-section h2 {
  margin: 0 0 22px;
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: .035em;
  text-shadow: 0 2px 8px rgba(20,65,75,.12);
}
.brands-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 88%, transparent 100%);
}
.brands-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 16px;
  animation: brandsScroll 34s linear infinite;
  will-change: transform;
}
.brands-track img {
  width: 245px;
  height: 220px;
  flex: 0 0 auto;
  object-fit: contain;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 7px 18px rgba(20,65,75,.12);
}
.brands-carousel:hover .brands-track { animation-play-state: running; }

/* REDES Y BASES */
.social-section {
  padding: 76px 20px 24px;
  text-align: center;
}
.social-section h2 { margin-bottom: 24px; }
.social-links { display: flex; justify-content: center; align-items: center; gap: 34px; }
.social-links a { transition: transform .25s ease, opacity .25s ease; }
.social-links a:hover { transform: translateY(-5px) scale(1.08); opacity: .85; }
.social-links img { width: 44px; height: 44px; object-fit: contain; }
.terms-section { text-align: center; padding: 18px 20px 68px; }
.terms-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 28px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  background: rgba(255,255,255,.12);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.terms-button:hover { background: #fff; color: #278f89; transform: translateY(-3px); }

/* FOOTER ORIGINAL */
.site-footer {
  position: relative;
  z-index: 2;
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 25px 10px;
  font-size: 14px;
  line-height: 1.55;
}
.site-footer p { margin: 0; }
.site-footer p > img:first-child { display: inline-block; vertical-align: middle; margin: 8px auto; }
.site-footer .footer-iso { margin: 10px auto 0; }

/* RECURSOS DECORATIVOS */
.floating-assets {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.float-item { position: absolute; height: auto; object-fit: contain; opacity: .88; }
.float-plane { width: clamp(76px, 9vw, 126px); top: 24%; left: -18px; animation: driftA 13s ease-in-out infinite; }
.float-paper-plane { width: clamp(54px, 6vw, 82px); top: 39%; right: 4%; animation: driftC 11s ease-in-out infinite 1.2s; }
.float-balloon { width: clamp(64px, 7vw, 96px); top: 49%; right: 2%; animation: driftB 8s ease-in-out infinite; }
.float-bill { width: clamp(76px, 8vw, 112px); top: 70%; left: 1%; animation: driftC 10s ease-in-out infinite; }
.float-cloud { width: clamp(80px, 10vw, 140px); top: 12%; right: -28px; opacity: .72; animation: driftB 15s ease-in-out infinite; }
.float-zeppelin { width: clamp(90px, 11vw, 145px); top: 82%; right: -22px; animation: driftA 17s ease-in-out infinite; }
.float-pig { width: clamp(66px, 7vw, 96px); top: 59%; left: -20px; animation: driftC 12s ease-in-out infinite; }

@keyframes brandsScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes offersFloat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(.5deg); } }
@keyframes driftA { 0%,100% { transform: translate3d(0,0,0) rotate(-5deg); } 50% { transform: translate3d(25px,-25px,0) rotate(7deg); } }
@keyframes driftB { 0%,100% { transform: translate3d(0,0,0) rotate(4deg); } 50% { transform: translate3d(-23px,24px,0) rotate(-7deg); } }
@keyframes driftC { 0%,100% { transform: translate3d(0,0,0) rotate(3deg); } 50% { transform: translate3d(20px,-22px,0) rotate(-7deg); } }


/* AJUSTES DESKTOP: formulario compacto y marcas protagonistas */
@media (min-width: 768px) {
  .form-card {
    align-self: start;
    height: auto;
    padding: 10px;
  }
  .form-card iframe {
    height: 620px;
    min-height: 620px;
    max-height: 620px;
    overflow: hidden;
  }

  .extras-grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(30px, 3.5vw, 58px);
  }
  .offers-button {
    width: min(100%, 470px);
  }
  .brands-area {
    width: 100%;
    min-width: 0;
  }
  .brands-area h2 {
    font-size: clamp(24px, 2.3vw, 32px);
    margin-bottom: 26px;
  }
  .brands-carousel {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  }
  .brands-track {
    gap: 18px;
    animation: brandsScrollDesktop 30s linear infinite;
    animation-play-state: running !important;
    width: max-content;
    max-width: none;
  }
  .brands-track img {
    display: block;
    flex: 0 0 285px;
    width: 285px;
    max-width: none;
    height: 285px;
    padding: 12px;
    border-radius: 16px;
    object-fit: contain;
  }
}

@keyframes brandsScrollDesktop {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 9px), 0, 0); }
}

/* TABLET / MOBILE */
@media (max-width: 767px) {
  .main-nav { min-height: 64px; padding: 8px 18px; }
  .brand img { height: 43px; }
  .menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.18);
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 100%; height: 3px; border-radius: 4px; background: #fff; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 18px 20px 22px;
    background: var(--header);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 8px 14px rgba(0,0,0,.12);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 8px; text-align: center; font-size: 13px; }
  .nav-links a + a { border-top: 1px solid rgba(255,255,255,.24); }
  .intro-section {
    width: min(92%, 540px);
    min-height: 58px;
    margin: 28px auto 30px;
    padding: 17px 18px;
    border-radius: 15px;
    font-size: 14px;
  }
  .participation-section { width: min(92%, 620px); margin-top: 0; }
  .participation-grid { grid-template-columns: 1fr; gap: 26px; }
  .ticket-info { padding: 12px 0 0; }
  .ticket-info p { font-size: 14px; }
  .ticket-example { width: min(92%, 390px); }
  .form-card { padding: 7px; border-radius: 12px; }
  .form-card iframe { min-height: 900px; }
  .extras-section { margin-top: 115px; width: min(92%, 620px); }
  .extras-grid { grid-template-columns: 1fr; gap: 48px; }
  .offers-button { width: min(88%, 390px); }
  .brands-area h2 { margin-bottom: 18px; }
  .brands-track { gap: 14px; animation-duration: 34s; }
  .brands-track img { width: 220px; height: 195px; }
  .social-section { padding-top: 62px; }
  .terms-section { padding-bottom: 52px; }
  .float-plane { top: 30%; left: -28px; }
  .float-paper-plane { top: 43%; right: -24px; }
  .float-balloon { top: 52%; right: -22px; }
  .float-bill { top: 76%; left: -25px; }
  .float-cloud { top: 18%; right: -48px; }
  .float-zeppelin { top: 87%; right: -20px; }
  .float-pig { top: 66%; left: -35px; }
}
@media (prefers-reduced-motion: reduce) {
  /* Se respeta la preferencia para el desplazamiento y las transiciones,
     pero se mantienen activas las animaciones de campaña solicitadas:
     carrusel de marcas y recursos decorativos flotantes. */
  html { scroll-behavior: auto !important; }
  .nav-links a,
  .social-links a,
  .terms-button,
  .offers-button { transition-duration: .01ms !important; }
}
