/* ==========================================================================
   Fotostep.site - La Astroguía de Trujillo (astroguia.css)
   Estilos para el Cómic / Guía en Papel de 1984, Flipbook Interactivo y Vídeos
   ========================================================================== */

:root {
  --astro-purple: #a855f7;
  --astro-purple-glow: rgba(168, 85, 247, 0.35);
  --astro-blue: #38bdf8;
  --astro-gold: #fbbf24;
  --astro-gold-glow: rgba(251, 191, 36, 0.35);
  --astro-card-bg: rgba(14, 18, 38, 0.75);
  --astro-border: rgba(168, 85, 247, 0.25);
}

/* Astroguía Hero Header */
.astro-hero {
  position: relative;
  padding: calc(var(--header-height) + 3.5rem) 0 4.5rem;
  background: 
    radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 80% 60%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #070919 0%, #0c102a 100%);
  border-bottom: 1px solid var(--astro-border);
  overflow: hidden;
}

.astro-hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.astro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid var(--astro-purple);
  box-shadow: 0 0 20px var(--astro-purple-glow);
  margin-bottom: 1.5rem;
}

.astro-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.astro-subtitle {
  font-size: 1.25rem;
  color: var(--astro-gold);
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.astro-credits-box {
  background: rgba(18, 22, 48, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--astro-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 2rem auto;
  max-width: 680px;
  box-shadow: var(--shadow-sm);
}

.astro-credit-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.credit-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.credit-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.astro-manifesto {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #cbd5e1;
  background: rgba(11, 15, 34, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  text-align: left;
  margin: 2.5rem 0 2rem;
  box-shadow: var(--shadow-md);
}

.astro-manifesto p {
  color: #94a3b8;
  margin-bottom: 1.2rem;
}

.astro-manifesto p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Interactive Book Reader / Flipbook (31 Pages Recreated)
   ========================================================================== */
.book-reader-section {
  padding: 5.5rem 0;
  background: #080b1a;
  position: relative;
}

.reader-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #0f142e;
  border: 1px solid var(--astro-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(168, 85, 247, 0.12);
  overflow: hidden;
}

.reader-header {
  padding: 1rem 1.75rem;
  background: rgba(7, 10, 24, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.reader-title-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reader-page-indicator {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.reader-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reader-tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.reader-tool-btn:hover {
  background: var(--astro-purple);
  color: #070919;
}

/* Book Stage & Pages Container */
.book-stage {
  position: relative;
  width: 100%;
  min-height: 580px;
  background: radial-gradient(circle, #1a224a 0%, #090d22 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  perspective: 1600px;
  overflow: hidden;
}

.book-pages-wrapper {
  position: relative;
  max-width: 580px;
  width: 100%;
  aspect-ratio: 1 / 1.414; /* Standard Comic Ratio */
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  border-radius: 6px;
  background: #ffffff;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

.book-page-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  background: #000000;
  transition: opacity 0.3s ease;
}

/* Book Spine & Corner Fold effect */
.book-pages-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 25px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
  pointer-events: none;
}

/* Reader Arrows */
.reader-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(12, 16, 38, 0.9);
  border: 1px solid var(--astro-purple);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.reader-nav-arrow:hover {
  background: var(--astro-purple);
  color: #070919;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px var(--astro-purple-glow);
}

.reader-nav-arrow.prev {
  left: 1.5rem;
}

.reader-nav-arrow.next {
  right: 1.5rem;
}

/* Thumbnail Scrubber Bar */
.reader-scrubber {
  padding: 1rem 1.5rem;
  background: rgba(7, 10, 24, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.scrubber-slider {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
}

.scrubber-thumb {
  flex: 0 0 65px;
  aspect-ratio: 1 / 1.4;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all var(--transition-fast);
  background: #000;
}

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

.scrubber-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.scrubber-thumb.active {
  opacity: 1;
  border-color: var(--astro-purple);
  box-shadow: 0 0 15px var(--astro-purple-glow);
}

/* ==========================================================================
   Video Showcase Section (YouTube Documentaries & Videos)
   ========================================================================== */
.astro-videos-section {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, #080b1a 0%, #04060f 100%);
  border-top: 1px solid var(--astro-border);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.video-card {
  background: var(--astro-card-bg);
  border: 1px solid var(--astro-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  border-color: var(--astro-purple);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(168, 85, 247, 0.2);
}

.video-frame-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-frame-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--astro-gold);
  margin-bottom: 0.6rem;
}

.video-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  color: #ffffff;
  line-height: 1.3;
}

.video-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Fullscreen Reader Modal */
.reader-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  border-radius: 0 !important;
  z-index: 2500 !important;
}

@media (max-width: 768px) {
  .book-stage {
    min-height: 420px;
    padding: 1rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .astro-credits-box {
    gap: 1.5rem;
  }
}
