/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --crema: #F5F0E6;
  --crema-dark: #E8E0D0;
  --cafe: #3D2B1F;
  --cafe-light: #6B4C38;
  --dorado: #C9A84C;
  --dorado-light: #E8C96A;
  --blanco: #FFFDF8;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-script: 'Dancing Script', cursive;
  --font-body: 'Nunito', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--crema);
  color: var(--cafe);
  font-family: var(--font-body);
  overflow-x: hidden;
  max-width: 480px;
  margin: 0 auto;
}

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

/* ============================================
   TEXTURAS PAPEL
   ============================================ */
.seccion__papel {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   CINTAS WASHI
   ============================================ */
.cinta {
  background: rgba(201, 168, 76, 0.35);
  position: absolute;
}
.cinta--horizontal {
  height: 18px;
  left: 0; right: 0;
  bottom: -9px;
  z-index: 10;
  background: repeating-linear-gradient(90deg, rgba(201,168,76,0.3) 0px, rgba(201,168,76,0.3) 20px, rgba(201,168,76,0.45) 20px, rgba(201,168,76,0.45) 40px);
}
.cinta--tarjeta {
  width: 60px;
  height: 14px;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  background: rgba(201,168,76,0.5);
}
.cinta--cyan { background: rgba(0,151,167,0.45); }
.cinta--orange { background: rgba(230,81,0,0.45); }
.cinta--space { background: rgba(100,120,200,0.45); }
.cinta--purple { background: rgba(106,27,154,0.45); }

/* ============================================
   PORTADA
   ============================================ */
.portada {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cafe);
  padding: 2rem 1.5rem 6rem;
}

.portada__fondo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201,168,76,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(139,76,56,0.25) 0%, transparent 60%),
    linear-gradient(160deg, #2C1A0E 0%, #3D2B1F 50%, #1A0E08 100%);
}

.portada__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.portada__avion {
  position: absolute;
  top: 8%;
  right: -10px;
  width: 90px;
  opacity: 0.25;
  transform: rotate(-15deg);
  animation: vuela 8s ease-in-out infinite alternate;
}

@keyframes vuela {
  from { transform: rotate(-15deg) translateX(0); }
  to   { transform: rotate(-18deg) translateX(-20px); }
}

.portada__cinta--top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--dorado) 0, var(--dorado) 30px, transparent 30px, transparent 40px);
}

.portada__contenido {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 2rem;
}

.portada__familia {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--dorado);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.portada__titulo {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--crema);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.portada__titulo em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--dorado-light);
  font-size: 2.4rem;
}

.portada__divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.portada__divider span {
  height: 1px;
  width: 40px;
  background: var(--dorado);
  opacity: 0.5;
}

.portada__fecha {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dorado-light);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.portada__destinos {
  font-size: 0.7rem;
  color: rgba(245,240,230,0.6);
  letter-spacing: 0.1em;
}

.portada__boarding {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
}

.boarding-pass {
  background: var(--blanco);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.boarding-pass::before,
.boarding-pass::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--cafe);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.boarding-pass::before { left: -10px; }
.boarding-pass::after  { right: -10px; }

.boarding-pass__header {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cafe-light);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.boarding-pass__ruta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.boarding-pass__code {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--cafe);
}

.boarding-pass__info {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--cafe-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.boarding-pass__fecha {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cafe);
  text-align: center;
  border-top: 1px dashed var(--crema-dark);
  padding-top: 0.4rem;
  margin-top: 0.4rem;
}

.boarding-pass__clase {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--dorado);
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
}

.portada__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  animation: pulsa 2s ease-in-out infinite;
}

.portada__scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(245,240,230,0.5);
  text-transform: uppercase;
}

@keyframes pulsa {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(4px); }
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
.seccion {
  position: relative;
  padding: 3rem 1.5rem;
  overflow: hidden;
}

.seccion__header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 2rem;
}

.sello--familia {
  width: 70px;
  margin: 0 auto 0.5rem;
}

.seccion__titulo {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--cafe);
  line-height: 1.1;
}

.seccion__titulo em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--dorado);
  display: block;
  font-size: 2rem;
}

.seccion__subtitulo {
  font-size: 0.8rem;
  color: var(--cafe-light);
  margin-top: 0.4rem;
}

/* ============================================
   SQUAD / POLAROIDS
   ============================================ */
.squad {
  background: var(--crema);
  padding-bottom: 4rem;
}

.squad__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
  padding: 0 0.5rem;
}

.squad__grid .polaroid:nth-child(7) {
  grid-column: 1 / -1;
  max-width: 200px;
  margin: 0 auto;
}

.polaroid {
  background: white;
  padding: 0.5rem 0.5rem 2.2rem;
  box-shadow: 0 6px 20px rgba(61,43,31,0.2), 0 2px 6px rgba(61,43,31,0.12);
  position: relative;
}

/* Pin de chincheta */
.polaroid::before {
  content: '';
  position: absolute;
  width: 13px;
  height: 13px;
  background: radial-gradient(circle at 38% 35%, #f0f0f0, #999);
  border-radius: 50%;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  z-index: 5;
}

/* Rotaciones variadas y naturales */
.polaroid--rot-left   { transform: rotate(-3deg); }
.polaroid--rot-right  { transform: rotate(2.5deg); }
.polaroid--rot-none   { transform: rotate(-0.8deg); }
.polaroid--rot-left2  { transform: rotate(-1.5deg); }
.polaroid--rot-right2 { transform: rotate(4deg); }

.polaroid__foto {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--crema-dark);
}

.polaroid__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid__nombre {
  position: absolute;
  bottom: 0.4rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-script);
  font-size: 1rem;
  color: var(--cafe);
}

/* ============================================
   DESTINOS
   ============================================ */
.destino {
  min-height: 85svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 1.25rem 3rem;
}

.destino__fondo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Fondos por destino — gradiente + textura representativa */
.destino__fondo--orlando {
  background-image: url('img/orlando.jpg');
  background-size: cover;
  background-position: center top;
}
.destino__fondo--miami {
  background-image: url('img/miami.jpg');
  background-size: cover;
  background-position: center;
}
.destino__fondo--universal {
  background-image: url('img/universal.jpg');
  background-size: cover;
  background-position: center;
}
.destino__fondo--nasa {
  background-image: url('img/nasa.jpg');
  background-size: cover;
  background-position: center;
}
.destino__fondo--lasvegas {
  background-image: url('img/lasvegas.jpg');
  background-size: cover;
  background-position: center;
}

.destino__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
}

/* Estrellas para NASA */
#nasa .destino__fondo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 15%, white 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 25%, white 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 40%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 55%, white 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 70%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 5%,  white 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.5) 0%, transparent 100%);
}

/* Luces de neón para Las Vegas */
#lasvegas .destino__fondo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,0,255,0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(0,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(255,215,0,0.08) 0%, transparent 40%);
  animation: neon-pulse 3s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

/* Stickers */
.sticker {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  animation: float 4s ease-in-out infinite alternate;
}

.sticker--1 { top: 8%;  right: 5%;  width: 90px;  animation-delay: 0s;    transform: rotate(8deg); }
.sticker--2 { top: 15%; left: 5%;   width: 70px;  animation-delay: 0.8s;  transform: rotate(-6deg); }
.sticker--3 { top: 40%; right: 8%;  width: 80px;  animation-delay: 1.5s;  transform: rotate(4deg); }

@keyframes float {
  from { transform: rotate(var(--rot, 6deg)) translateY(0); }
  to   { transform: rotate(var(--rot, 6deg)) translateY(-8px); }
}

/* Tarjeta de destino */
.destino__tarjeta {
  position: relative;
  z-index: 3;
  background: rgba(255,253,248,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 1.5rem 1.25rem 1.25rem;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  margin-top: auto;
}

.destino__numero {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--dorado);
  letter-spacing: 0.2em;
  margin-bottom: 0.25rem;
}

.destino__ciudad {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--cafe);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.destino__texto {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--cafe-light);
  margin-bottom: 0.75rem;
}

.destino__tag {
  font-size: 0.7rem;
  color: var(--dorado);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ============================================
   CIERRE
   ============================================ */
.cierre {
  position: relative;
  min-height: 60svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cafe);
  padding: 4rem 1.5rem;
}

.cierre__fondo {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #2C1A0E 0%, #3D2B1F 60%, #1A0E08 100%);
}

.cierre__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cierre__contenido {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cierre__label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 0.75rem;
}

.cierre__titulo {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--crema);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.cierre__titulo em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--dorado-light);
  display: block;
  font-size: 2.8rem;
}

.cierre__fecha {
  font-size: 0.8rem;
  color: rgba(245,240,230,0.7);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.cierre__sello {
  width: 120px;
  margin: 0 auto;
}

/* ============================================
   AUDIO PLAYER
   ============================================ */
.audio-player {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
}

.audio-btn {
  width: 52px;
  height: 52px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.audio-btn__play,
.audio-btn__pause {
  width: 52px;
  height: 52px;
}

.audio-btn__waves {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.audio-btn__waves.playing { opacity: 1; }

.audio-btn__waves span {
  display: block;
  width: 3px;
  height: 8px;
  background: var(--dorado);
  border-radius: 2px;
  animation: wave 0.8s ease-in-out infinite alternate;
}

.audio-btn__waves span:nth-child(2) { animation-delay: 0.2s; }
.audio-btn__waves span:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave {
  from { height: 4px; }
  to   { height: 12px; }
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   DESKTOP SCALE
   ============================================ */
@media (min-width: 480px) {
  body { border-left: 1px solid var(--crema-dark); border-right: 1px solid var(--crema-dark); }
}
