
:root { --ink: #1c110b; --paper: #fffaf2; --cream: #f6e8d2; --terra: #a34726; --deep: #4e1f13; --gold: #f3be50; --gold-glow: rgba(243, 190, 80, 0.35); --shadow: 0 18px 45px rgba(18, 7, 3, 0.4); --radius-card: 24px; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; height: 100%; }

body { margin: 0px; font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif; color: var(--paper); background: rgb(20, 10, 6); overflow: hidden; line-height: 1.5; height: 100%; }

button, a { font: inherit; }

.topbar { position: fixed; top: 0px; left: 0px; right: 0px; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top, 0px)) 22px 12px; background: linear-gradient(rgba(16, 7, 4, 0.92) 0%, rgba(16, 7, 4, 0.7) 65%, transparent 100%); backdrop-filter: blur(10px); }

.brand { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.3px; color: rgb(255, 255, 255); display: flex; align-items: center; gap: 8px; }

.brand span { color: var(--gold); }

.brand-badge { font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(243, 190, 80, 0.18); color: var(--gold); border: 1px solid rgba(243, 190, 80, 0.32); padding: 3px 9px; border-radius: 999px; font-weight: 700; }

.counter { font-size: 0.82rem; font-weight: 700; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(12px); padding: 6px 14px; border-radius: 999px; color: rgb(255, 255, 255); letter-spacing: 0.2px; white-space: nowrap; }

.deck { height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; }

.slide { min-height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; position: relative; display: flex; align-items: center; justify-content: center; padding: calc(74px + env(safe-area-inset-top, 0px)) 5vw calc(72px + env(safe-area-inset-bottom, 0px)); overflow-x: hidden; }

.slide::before { content: ""; position: absolute; inset: 0px; background: radial-gradient(circle at 10% 15%, rgba(255, 255, 255, 0.12), transparent 30%), radial-gradient(circle at 90% 85%, rgba(243, 190, 80, 0.08), transparent 28%); pointer-events: none; }

.slide-inner { width: min(1200px, 100%); display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; position: relative; z-index: 2; }

.copy { color: rgb(255, 255, 255); }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); background: rgba(243, 190, 80, 0.14); padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(243, 190, 80, 0.25); }

.num { font-family: "Playfair Display", Georgia, serif; font-size: clamp(4.5rem, 9vw, 9rem); line-height: 0.75; font-weight: 900; opacity: 0.12; position: absolute; right: 1.5vw; top: 8vh; color: rgb(255, 255, 255); user-select: none; pointer-events: none; }

.copy h1, .copy h2 { font-family: "Playfair Display", Georgia, serif; margin: 14px 0px 12px; line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; }

.copy h1 { font-size: clamp(2.3rem, 4.8vw, 4.4rem); }

.copy h2 { font-size: clamp(1.9rem, 3.8vw, 3.4rem); }

.copy p { font-size: clamp(0.98rem, 1.35vw, 1.15rem); line-height: 1.62; max-width: 560px; color: rgba(255, 255, 255, 0.92); margin: 0px 0px 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.tag { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); font-weight: 600; font-size: 0.82rem; color: rgb(255, 255, 255); transition: 0.2s; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.btn { border: 0px; border-radius: 14px; padding: 12px 20px; font-weight: 800; font-size: 0.92rem; min-height: 46px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: 0.25s; touch-action: manipulation; }

.btn:active { transform: scale(0.97); }

.btn.primary { background: linear-gradient(135deg, rgb(245, 203, 112), rgb(226, 168, 56)); color: rgb(49, 21, 8); box-shadow: 0 6px 20px var(--gold-glow); }

.btn.ghost { background: rgba(255, 255, 255, 0.12); color: rgb(255, 255, 255); border: 1px solid rgba(255, 255, 255, 0.24); backdrop-filter: blur(8px); }

.visual { position: relative; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; max-height: 64vh; min-height: 300px; background: rgb(38, 19, 11); isolation: isolate; cursor: pointer; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }

.visual:hover { transform: scale(1.015); }

.visual img { width: 100%; height: 100%; display: block; position: absolute; inset: 0px; object-fit: cover; object-position: center center; transition: transform 0.6s; }

.visual:hover img { transform: scale(1.04); }

.visual-badge { position: absolute; top: 14px; right: 14px; z-index: 4; background: rgba(18, 8, 4, 0.72); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.22); color: rgb(255, 255, 255); padding: 5px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; gap: 5px; }

.visual::after { content: ""; position: absolute; inset: auto 0px 0px; height: 50%; background: linear-gradient(to top, rgba(16, 7, 3, 0.92) 0%, rgba(16, 7, 3, 0.6) 50%, transparent 100%); z-index: 2; pointer-events: none; }

.caption { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3; color: rgb(255, 255, 255); background: rgba(24, 11, 6, 0.65); backdrop-filter: blur(14px); padding: 12px 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.14); }

.caption strong { display: block; font-size: 0.98rem; font-weight: 750; color: rgb(255, 255, 255); margin-bottom: 2px; }

.caption span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.88); line-height: 1.35; display: block; }

.s0 { background: linear-gradient(135deg, rgb(84, 33, 20) 0%, rgb(135, 61, 36) 60%, rgb(168, 82, 46) 100%); }

.s1 { background: linear-gradient(135deg, rgb(109, 42, 23) 0%, rgb(161, 73, 37) 60%, rgb(184, 96, 54) 100%); }

.s2 { background: linear-gradient(135deg, rgb(54, 33, 24) 0%, rgb(90, 52, 36) 60%, rgb(117, 70, 49) 100%); }

.s3 { background: linear-gradient(135deg, rgb(78, 63, 30) 0%, rgb(123, 99, 41) 60%, rgb(152, 123, 50) 100%); }

.s4 { background: linear-gradient(135deg, rgb(48, 73, 44) 0%, rgb(78, 107, 59) 60%, rgb(105, 132, 71) 100%); }

.s5 { background: linear-gradient(135deg, rgb(99, 35, 68) 0%, rgb(142, 56, 92) 60%, rgb(166, 74, 112) 100%); }

.end { background: linear-gradient(135deg, rgb(36, 16, 9) 0%, rgb(75, 29, 18) 60%, rgb(97, 38, 24) 100%); }

.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 20px; }

.gallery-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.2); transition: 0.25s; background: rgb(38, 18, 11); }

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

.gallery-card:active { transform: scale(0.95); }

.gallery-card .g-label { position: absolute; inset: auto 0px 0px; padding: 6px 4px; background: linear-gradient(to top, rgba(16, 7, 3, 0.95), transparent); font-size: 0.68rem; font-weight: 700; text-align: center; color: rgb(255, 255, 255); }

.navdots { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 10px; }

.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.32); border: 0px; padding: 0px; cursor: pointer; transition: 0.25s; touch-action: manipulation; }

.dot.active { height: 28px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 12px var(--gold-glow); }

.arrows { position: fixed; left: 20px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; gap: 10px; }

.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(20, 9, 5, 0.75); backdrop-filter: blur(12px); color: rgb(255, 255, 255); font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; touch-action: manipulation; transition: 0.2s; }

.arrow:active { background: var(--gold); color: rgb(36, 17, 8); transform: scale(0.94); }

.hint { position: fixed; right: 18px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); color: rgba(255, 255, 255, 0.7); font-size: 0.74rem; z-index: 40; background: rgba(20, 9, 5, 0.6); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }

.slide.in-view .reveal { opacity: 1; transform: none; }

.slide.in-view .r2 { transition-delay: 0.12s; }

.slide.in-view .r3 { transition-delay: 0.22s; }

.lightbox { position: fixed; inset: 0px; z-index: 100; background: rgba(10, 5, 3, 0.95); backdrop-filter: blur(16px); display: none; align-items: center; justify-content: center; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); opacity: 0; transition: opacity 0.25s; }

.lightbox.open { display: flex; opacity: 1; }

.lightbox-content { position: relative; width: 100%; max-width: 980px; max-height: 88dvh; display: flex; flex-direction: column; align-items: center; }

.lightbox-content img { width: 100%; max-height: 68dvh; border-radius: 18px; box-shadow: rgba(0, 0, 0, 0.8) 0px 20px 60px; object-fit: contain; }

.lightbox-caption { margin-top: 14px; color: rgb(255, 255, 255); text-align: center; font-size: 0.92rem; max-width: 600px; }

.lightbox-caption strong { display: block; font-size: 1.1rem; color: var(--gold); margin-bottom: 2px; }

.lightbox-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0px; background: var(--gold); color: rgb(36, 17, 8); font-size: 1.3rem; font-weight: 900; cursor: pointer; box-shadow: rgba(0, 0, 0, 0.5) 0px 4px 14px; display: grid; place-items: center; z-index: 10; touch-action: manipulation; }

@media (max-width: 880px) {
  .slide { padding: calc(68px + env(safe-area-inset-top, 0px)) 18px calc(76px + env(safe-area-inset-bottom, 0px)); height: auto; min-height: 100dvh; box-sizing: border-box; display: grid; align-content: center; }
  .slide-inner { grid-template-columns: 1fr; gap: 18px; }
  .visual { order: -1; aspect-ratio: 16 / 10; max-height: 36dvh; min-height: 210px; border-radius: 20px; }
  .visual-badge { font-size: 0.68rem; padding: 4px 9px; top: 10px; right: 10px; }
  .caption { left: 10px; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 12px; }
  .caption strong { font-size: 0.88rem; }
  .caption span { font-size: 0.76rem; line-height: 1.25; }
  .copy h1 { font-size: clamp(2rem, 7.5vw, 2.8rem); margin: 10px 0px 8px; }
  .copy h2 { font-size: clamp(1.65rem, 6vw, 2.3rem); margin: 10px 0px 8px; }
  .copy p { font-size: 0.94rem; line-height: 1.55; margin: 0px 0px 14px; }
  .num { font-size: 4rem; top: calc(54px + env(safe-area-inset-top, 0px)); right: 14px; opacity: 0.16; }
  .tags { gap: 6px; margin-top: 12px; }
  .tag { padding: 4px 9px; font-size: 0.76rem; }
  .actions { margin-top: 16px; gap: 10px; }
  .btn { padding: 11px 18px; font-size: 0.88rem; min-height: 44px; flex: 1 1 0%; min-width: 140px; }
  .navdots { right: 8px; gap: 8px; }
  .dot { width: 8px; height: 8px; }
  .dot.active { height: 22px; }
  .hint { display: none; }
  .arrows { left: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .arrow { width: 42px; height: 42px; font-size: 1.1rem; }
  .gallery-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; }
  .gallery-card { border-radius: 8px; aspect-ratio: 1 / 1; }
  .gallery-card .g-label { font-size: 0.6rem; padding: 3px 2px; }
  .lightbox-close { top: 10px; right: 10px; position: fixed; width: 38px; height: 38px; }
  .lightbox-content img { max-height: 60dvh; border-radius: 14px; }
}

@media (max-width: 420px) {
  .brand-badge { display: none; }
  .brand { font-size: 1rem; }
  .counter { font-size: 0.75rem; padding: 5px 10px; }
  .visual { aspect-ratio: 16 / 9; max-height: 30dvh; min-height: 190px; }
  .copy h1 { font-size: 1.9rem; }
  .copy h2 { font-size: 1.55rem; }
  .copy p { font-size: 0.88rem; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
/* ---- Estaciones nuevas (colores) ---- */
.s6 { background: linear-gradient(135deg, rgb(22, 64, 72) 0%, rgb(36, 100, 108) 60%, rgb(52, 124, 128) 100%); }
.s7 { background: linear-gradient(135deg, rgb(62, 40, 88) 0%, rgb(98, 62, 128) 60%, rgb(124, 84, 150) 100%); }
.s8 { background: linear-gradient(135deg, rgb(112, 38, 32) 0%, rgb(156, 64, 48) 60%, rgb(182, 88, 64) 100%); }
.s9 { background: linear-gradient(135deg, rgb(28, 40, 64) 0%, rgb(44, 66, 100) 60%, rgb(64, 92, 132) 100%); }

/* ---- Marcador que se ve mientras no exista la foto ---- */
.ph { position: absolute; inset: 0; z-index: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; color: rgba(255, 255, 255, 0.6); background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.14), transparent 55%), rgba(38, 19, 11, 0.92); }
.ph b { font-family: "Playfair Display", Georgia, serif; font-size: clamp(3rem, 8vw, 5rem); line-height: 1; opacity: 0.4; }
.ph span { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.gallery-card .ph b { font-size: 1.4rem; }

/* ---- Galería de 9 ---- */
.gallery-card { position: relative; }
