*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f1f23;
  background: #fdf9f4;
  line-height: 1.6;
}

/* Los Colorochos*/
:root {
  --bg-main: #fdf9f4;
  --bg-dark: #19181f;
  --bg-light: #ffffff;
  --accent: #ff8b2b;
  --accent-soft: rgba(255, 139, 43, 0.12);
  --accent-strong: #ff6a00;
  --text-dark: #1f1f23;
  --text-muted: #6b6b75;
  --border-soft: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius-xl: 24px;
}

/* La navbar generica :L */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 6vw;
  background: rgba(25, 24, 31, 0.96);
  backdrop-filter: blur(10px);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
}

.navbar__logo-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.logo-main {
  font-family: "Merriweather", serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.logo-sub {
  font-size: 0.7rem;
  color: #f5e1d0;
}

.navbar__links {
  display: flex;
  gap: 1.5rem;
}

.navbar__links a {
  color: #f5f5f7;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.navbar__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.25s ease;
}

.navbar__links a:hover::after {
  width: 100%;
}

/* El Hero (Que no Heroe)*/
.hero {
  position: relative;
  min-height: 75vh;
  padding: 3.5rem 6vw;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-image:
    linear-gradient(120deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.05)),
    url("../recursos/GoodFics76_Web_Banner_Long.png");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 139, 43, 0.5), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0.5;
}

.hero__content {
  position: relative;
  max-width: 760px;
  z-index: 1;
}

.hero__pretitle {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffeed8;
  margin-bottom: 0.8rem;
}

.hero__title {
  font-family: "Merriweather", serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1rem;
  max-width: 620px;
  color: #eed0b0;
  margin-bottom: 1.8rem;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Botoncitos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1a110a;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 107, 34, 0.45);
}

.btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Las secciones generales */
.section {
  padding: 4rem 6vw;
}

.section--light {
  background: var(--bg-main);
}

.section--dark {
  background: var(--bg-dark);
  color: #f6f6fb;
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: flex-start;
}

.section__title {
  font-family: "Merriweather", serif;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  position: relative;
}

.section__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 0.4rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 6px;
}

.section__title--on-dark::after {
  background: linear-gradient(90deg, #ffd29a, #ff8b2b);
}

.section__subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 620px;
}

.section--dark .section__subtitle {
  color: #c7c7d7;
}

/* El texto y las targetas ;v*/
.text-block p + p {
  margin-top: 1rem;
}

.card {
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.card--accent {
  border: 1px solid rgba(255, 139, 43, 0.4);
  background: linear-gradient(135deg, rgba(255, 139, 43, 0.07), rgba(255, 255, 255, 0.95));
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.list {
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
}

/* Gri de las historias */
.stories-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.story-card {
  background: #211f2a;
  border-radius: 18px;
  padding: 1.4rem 1.3rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.story-card__tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #ffddb7;
  margin-bottom: 0.4rem;
}

.story-card__title {
  font-family: "Merriweather", serif;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.story-card__meta {
  font-size: 0.8rem;
  color: #c8c8e0;
  margin-bottom: 0.8rem;
}

.story-card__meta span + span::before {
  content: "·";
  margin: 0 0.4rem;
}

.story-card__description {
  font-size: 0.9rem;
  color: #e6e6f4;
  margin-bottom: 0.9rem;
}

.story-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.story-card__tag {
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 139, 43, 0.16);
  color: #ffd39c;
}

.story-card__link {
  font-size: 0.85rem;
  color: #ffd39c;
  text-decoration: none;
}

.story-card__link:hover {
  text-decoration: underline;
}

.links-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-soft);
  background: var(--bg-light);
  box-shadow: var(--shadow-soft);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.social-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.social-card p {
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
}

.social-card__tag {
  font-size: 0.8rem;
  align-self: flex-start;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.social-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 139, 43, 0.55);
}

/* Sistema de colorinchis para la seccion de las redes y plataformas */
.wattpad { border-left: 4px solid #ff7a00; }
.fanfiction { border-left: 4px solid #4d6bff; }
.youtube { border-left: 4px solid #ff3b3b; }
.X { border-left: 4px solid #000000; }

/* Fostito */
.footer {
  padding: 1.5rem 6vw 2rem;
  background: #14131a;
  color: #8a8aa2;
  text-align: center;
  font-size: 0.85rem;
}

/* Sistema Responsive de los chinos :v */
@media (max-width: 800px) {
  .navbar__links {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .hero {
    padding-top: 5rem;
    padding-bottom: 3.5rem;
  }

  .section__inner--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 3.2rem 1.5rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .navbar__logo-image {
    width: 32px;
    height: 32px;
  }
}

.story-card__cover {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.story-card__cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Ocultar menú superior en móviles */
@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  /* De paso centramos el logo para que quede bonito */
  .navbar {
    justify-content: center;
  }
}

/* Banner especial para móvil: usa la versión corta */
@media (max-width: 768px) {
  .hero {
    background-image:
      linear-gradient(120deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2)),
      url("../recursos/GoodFics76_Web_Banner_Short.png");
    background-size: cover;
    background-position: center;
  }
}

/* Contorno suave para textos del HERO */
.hero__title,
.hero__subtitle,
.hero__pretitle {
  text-shadow:
    0px 0px 4px rgba(0, 0, 0, 0.45),
    0px 0px 8px rgba(0, 0, 0, 0.35),
    0px 0px 12px rgba(0, 0, 0, 0.25);
}

/* ====== Modo navideño ultra cutre pero con cariño ====== */

.xmas-mode .navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 10px;
  background-image:
    radial-gradient(circle at 5% 50%, #ff1744 0, #ff1744 3px, transparent 4px),
    radial-gradient(circle at 20% 50%, #ffd600 0, #ffd600 3px, transparent 4px),
    radial-gradient(circle at 35% 50%, #00e676 0, #00e676 3px, transparent 4px),
    radial-gradient(circle at 50% 50%, #40c4ff 0, #40c4ff 3px, transparent 4px),
    radial-gradient(circle at 65% 50%, #ff9100 0, #ff9100 3px, transparent 4px),
    radial-gradient(circle at 80% 50%, #f50057 0, #f50057 3px, transparent 4px),
    radial-gradient(circle at 95% 50%, #00e5ff 0, #00e5ff 3px, transparent 4px);
  background-size: 120px 10px;
  background-repeat: repeat-x;
  animation: xmas-lights 2.4s linear infinite;
}

@keyframes xmas-lights {
  0% {
    filter: brightness(0.7);
    transform: translateY(0);
  }
  25% {
    filter: brightness(1.4);
  }
  50% {
    filter: brightness(0.9);
    transform: translateY(1px);
  }
  75% {
    filter: brightness(1.6);
  }
  100% {
    filter: brightness(0.7);
    transform: translateY(0);
  }
}


/* ====== Nieve cayendo ====== */

.snow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
}

.snowflake {
  position: absolute;
  top: -10%;
  color: #ffffff;
  opacity: 0.8;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
  animation-name: snowfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes snowfall {
  0% {
    transform: translate3d(0, -10%, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(20px, 110vh, 0) rotate(360deg);
  }
}

/* ====== Papá Noel volando ====== */

.santa-sleigh {
  position: fixed;
  top: 10vh;
  left: -20vw;
  font-size: 2.4rem;
  z-index: 60;
  pointer-events: none;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.7),
    0 0 16px rgba(255, 255, 255, 0.6);
  animation: santa-fly 24s linear infinite;
}

@keyframes santa-fly {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(140vw);
    opacity: 0;
  }
}

/* ====== Botón de música navideña ====== */

.xmas-audio-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1.1rem;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.xmas-audio-toggle.is-playing {
  background: linear-gradient(135deg, #d32f2f, #2e7d32);
  border-color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 520px) {
  .xmas-audio-toggle {
    font-size: 0.8rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }
}

.santa-sleigh {
  position: fixed;
  top: 10vh;
  left: -20vw;
  width: 400px;
  height: 200px;
  background: url("../recursos/santa.gif") no-repeat center / contain;
  font-size: 0; /* ocultar emoji */
  z-index: 60;
  pointer-events: none;
  animation: santa-fly 7s linear infinite; /* 12s = el doble de rápido que 24s */
}

