/* ==========================================================================
   ESTILOS DE LA PÁGINA CANAL ATEÍSMO - RACIONALMENTE
   Tema Rojo Carmesí Neón (#ff3366) + Cyber-Tech Glassmorphism
   ========================================================================== */

:root {
  --bg-primary: #060913;
  --bg-secondary: #0b0f19;
  --bg-card: rgba(15, 23, 42, 0.65);
  --accent-red: #ff3366;
  --accent-red-soft: #ff6b8b;
  --glow-red: rgba(255, 51, 102, 0.25);
  --border-color: rgba(255, 51, 102, 0.22);
  --border-hover: rgba(255, 51, 102, 0.55);
  --text-main: #ffffff;
  --text-muted: #94a3b8;

  /* Paleta cromática Prisma Cinético */
  --prism-coral: #ff595e;
  --prism-yellow: #ffca3a;
  --prism-emerald: #8ac926;
  --prism-cobalt: #1982c4;
  --prism-violet: #9b5de5;
  --prism-turquoise: #00bbf9;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --speed-scale: 1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ==========================================================================
   Sección Hero del Canal Ateísmo
   ========================================================================== */

.ateismo-hero-section {
  padding: 140px 20px 80px;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 51, 102, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #060913 0%, #0b0f19 100%);
  position: relative;
  overflow: hidden;
}

.ateismo-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .ateismo-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ateismo-visual {
    order: 1;
  }

  .ateismo-hero-content {
    order: 2;
  }
}

.crimson-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: var(--accent-red);
  text-transform: uppercase;
  padding: 5px 14px;
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: 20px;
  margin-bottom: 20px;
}

.ateismo-hero-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 20px;
}

.ateismo-hero-title span {
  background: linear-gradient(135deg, #ff3366 0%, #ff758f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ateismo-hero-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

@media (max-width: 992px) {
  .ateismo-hero-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 680px;
  }
}

/* Píldoras Informativas del Hero */
.ateismo-highlights {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.highlight-pill {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-align: left;
}

.highlight-pill:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px var(--glow-red);
  transform: translateY(-2px);
}

.icon-container {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.35);
  border-radius: 10px;
  box-shadow: 0 0 15px var(--glow-red);
}

.icon-container svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-red);
  filter: drop-shadow(0 0 6px rgba(255, 51, 102, 0.6));
}

.highlight-text strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.highlight-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Tarjeta Visual y Animación Prisma Cinético */
.ateismo-visual {
  position: relative;
  width: 100%;
}

.lib-card {
  background: linear-gradient(135deg, rgba(19, 25, 44, 0.92), rgba(28, 18, 43, 0.88) 55%, rgba(15, 36, 41, 0.92));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  perspective: 900px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 51, 102, 0.12);
}

.lib-card-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  pointer-events: none;
  background: rgba(6, 9, 19, 0.78);
  padding: 12px 16px;
  border-radius: 10px;
  border-left: 3px solid var(--accent-red);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: left;
}

.overlay-title {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--accent-red);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.overlay-subtitle {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.4px;
  margin-bottom: 2px;
}

.overlay-author {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sistema de 8 líneas girando + núcleo de ateísmo */
.ring-system {
  position: relative;
  z-index: 2;
  width: 290px;
  height: 290px;
  display: grid;
  place-items: center;
  transform: translateY(22px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.18s ease-out;
}

.ring {
  position: absolute;
  border-radius: 38% 62% 55% 45% / 44% 36% 64% 56%;
  border: 2.5px solid transparent;
  mix-blend-mode: screen;
  animation: morph calc(var(--base-speed) / var(--speed-scale)) linear infinite;
}

.r1 {
  width: 266px;
  height: 266px;
  border-top-color: var(--prism-coral);
  border-right-color: var(--prism-yellow);
  --base-speed: 7.5s;
}

.r2 {
  width: 242px;
  height: 242px;
  border-bottom-color: var(--prism-emerald);
  border-left-color: var(--prism-cobalt);
  --base-speed: 6s;
  animation-direction: reverse;
}

.r3 {
  width: 218px;
  height: 218px;
  border-top-color: var(--prism-yellow);
  border-left-color: var(--prism-coral);
  --base-speed: 4.8s;
}

.r4 {
  width: 194px;
  height: 194px;
  border-right-color: var(--prism-violet);
  border-bottom-color: var(--prism-turquoise);
  --base-speed: 6.4s;
  animation-direction: reverse;
}

.r5 {
  width: 170px;
  height: 170px;
  border-top-color: var(--prism-turquoise);
  border-bottom-color: var(--prism-coral);
  --base-speed: 3.9s;
}

.r6 {
  width: 146px;
  height: 146px;
  border-left-color: var(--prism-emerald);
  border-right-color: var(--prism-violet);
  --base-speed: 5.2s;
  animation-direction: reverse;
}

.r7 {
  width: 124px;
  height: 124px;
  border-top-color: var(--prism-violet);
  border-right-color: var(--prism-yellow);
  --base-speed: 3.2s;
}

.r8 {
  width: 104px;
  height: 104px;
  border-bottom-color: var(--prism-turquoise);
  border-left-color: var(--prism-coral);
  --base-speed: 4.4s;
  animation-direction: reverse;
}

.atheism-core {
  position: relative;
  z-index: 3;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 14px rgba(0, 187, 249, 0.55));
  animation: corePulse 3s ease-in-out infinite;
}

.atheism-core svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

@keyframes morph {
  0% {
    transform: rotate(0deg) scale(1);
    border-radius: 38% 62% 55% 45% / 44% 36% 64% 56%;
  }
  50% {
    transform: rotate(180deg) scale(1.06);
    border-radius: 58% 42% 37% 63% / 60% 52% 48% 40%;
  }
  100% {
    transform: rotate(360deg) scale(1);
    border-radius: 38% 62% 55% 45% / 44% 36% 64% 56%;
  }
}

@keyframes corePulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 12px rgba(0, 187, 249, 0.45));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 22px rgba(255, 202, 58, 0.65));
  }
}

@media (max-width: 540px) {
  .lib-card-overlay {
    top: 14px;
    left: 14px;
    padding: 9px 12px;
  }

  .overlay-title {
    font-size: 0.72rem;
  }

  .overlay-subtitle {
    font-size: 1rem;
  }

  .overlay-author {
    font-size: 0.75rem;
  }

  .ring-system {
    transform: translateY(28px) scale(0.82) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  }
}

/* ==========================================================================
   Sección de Tarjetas de Estudios del Canal Ateísmo
   ========================================================================== */

.estudios-section {
  padding: 60px 0 110px 0;
  background: linear-gradient(180deg, #0b0f19 0%, #060913 100%);
  position: relative;
}

.estudios-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-red);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Cuadrícula Modular de Estudios */
.estudios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 992px) {
  .estudios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .estudios-grid {
    grid-template-columns: 1fr;
  }
}

/* Tarjeta Individual de Estudio */
.study-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.study-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65), 0 0 22px rgba(255, 51, 102, 0.18);
}

.study-card:hover .card-glow {
  opacity: 1;
}

.study-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.study-title {
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.study-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 26px;
}

.btn-study {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  background: rgba(30, 41, 59, 0.65);
  color: var(--text-main);
  border: 1px solid rgba(255, 51, 102, 0.28);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.study-card:hover .btn-study,
.btn-study:hover {
  background: rgba(255, 51, 102, 0.16);
  border-color: var(--accent-red);
  color: var(--accent-red);
  box-shadow: 0 0 15px var(--glow-red);
}