/* ==========================================================================
   Calculadora Anime — SISTEMA VISUAL NEUMÓRFICO (PALETA EXTRAÍDA)
   - Gris Sombra:        #1E1E24
   - Rojo Sangre:        #92140C
   - Blanco Floral:      #FFF8F0
   - Crema Albaricoque:  #FFCF99
   - Índigo Espacial:    #111D4A
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: #1e1e24;
  color: #fff8f0;
  font-family: "DM Sans", sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   ANIMACIONES (EASE-OUT 200MS, ANTICIPACIÓN, FADE & SLIDE)
   ========================================================================== */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes deployWithAnticipation {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
  30% {
    opacity: 0.7;
    transform: translateY(10px) scale(0.955);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

/* ==========================================================================
   ENCABEZADO COMPACTO (MOBILE-FIRST)
   ========================================================================== */
.site-header {
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a32;
  background-color: #1e1e24;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff8f0;
  transition: transform 200ms ease-out;
}

.brand-mark:hover {
  transform: translateX(2px);
}

.brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.select-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.select-chevron {
  position: absolute;
  right: 14px;
  pointer-events: none;
}

.select-shell-mini .select-chevron {
  right: 11px;
}

.neu-select-mini {
  -webkit-appearance: none;
  appearance: none;
  background-color: #1e1e24;
  color: #fff8f0;
  border: 1px solid #2c2c35;
  border-radius: 10px;
  padding: 8px 34px 8px 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow:
    4px 4px 8px #141418,
    -3px -3px 7px #27272f;
  transition:
    box-shadow 200ms ease-out,
    border-color 200ms ease-out,
    transform 200ms ease-out;
}

.neu-select-mini:hover {
  border-color: #ffcf99;
}

.neu-select-mini:focus-visible {
  outline: 2px solid #ffcf99;
  outline-offset: 2px;
}

/* ==========================================================================
   LAYOUT PRINCIPAL (MOBILE-FIRST)
   ========================================================================== */
.app-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

/* ==========================================================================
   HERO & CALCULADORA NEUMÓRFICA
   ========================================================================== */
.hero-calculator {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeSlideUp 380ms ease-out both;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffcf99;
  background-color: #111d4a;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #243575;
}

.hero-intro h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff8f0;
}

.hero-subtitle {
  font-size: 0.96rem;
  color: #d8d0c5;
  max-width: 58ch;
}

.card-calculator {
  background-color: #1e1e24;
  border: 1px solid #2a2a33;
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow:
    6px 6px 14px #141418,
    -4px -4px 10px #26262e;
}

.calc-top-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2a2a33;
}

/* Selector de Pestañas (Anime / Manga) */
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  background-color: #1e1e24;
  border: 1px solid #2a2a33;
  border-radius: 14px;
  box-shadow:
    inset 4px 4px 8px #131317,
    inset -3px -3px 7px #27272f;
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  color: #c7bfb5;
  transition:
    background-color 200ms ease-out,
    color 200ms ease-out,
    box-shadow 200ms ease-out;
}

.mode-tab:hover {
  color: #fff8f0;
}

.mode-tab.active {
  background-color: #92140c;
  color: #fff8f0;
  border: 1px solid #b02118;
  box-shadow:
    3px 3px 7px #121216,
    -2px -2px 5px #282830;
}

.calc-title-group h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-title-group h2::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background-color: #92140c;
  border: 1px solid #ffcf99;
}

.calc-title-group p {
  font-size: 0.84rem;
  color: #c7bfb5;
  margin-top: 2px;
  padding-left: 14px;
}

.calc-form-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label,
.pacing-label-row label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff8f0;
}

.label-optional {
  font-weight: 400;
  font-size: 0.8rem;
  color: #a8a096;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 14px;
  pointer-events: none;
}

/* Campos hundidos (Inset Neumorphism) */
input[type="text"],
input[type="email"],
textarea,
.form-group select {
  width: 100%;
  background-color: #1e1e24;
  color: #fff8f0;
  border: 1px solid #2b2b33;
  border-radius: 12px;
  padding: 13px 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  box-shadow:
    inset 4px 4px 8px #131317,
    inset -3px -3px 7px #27272f;
  transition:
    border-color 200ms ease-out,
    box-shadow 200ms ease-out;
}

.form-group select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.input-with-icon input[type="text"] {
  padding-left: 42px;
}

input::placeholder,
textarea::placeholder {
  color: #9a938a;
}

input[type="text"]:hover,
input[type="email"]:hover,
textarea:hover,
.form-group select:hover {
  border-color: #464654;
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
textarea:focus-visible,
.form-group select:focus-visible {
  outline: none;
  border-color: #ffcf99;
  box-shadow:
    inset 4px 4px 8px #131317,
    inset -3px -3px 7px #27272f,
    0 0 0 1px #ffcf99;
}

/* Stepper Numérico con botones - / + */
.number-stepper {
  display: flex;
  align-items: center;
  background-color: #1e1e24;
  border: 1px solid #2b2b33;
  border-radius: 12px;
  padding: 4px;
  box-shadow:
    inset 4px 4px 8px #131317,
    inset -3px -3px 7px #27272f;
  transition: border-color 200ms ease-out;
}

.number-stepper:hover {
  border-color: #464654;
}

.number-stepper:focus-within {
  border-color: #ffcf99;
  box-shadow:
    inset 4px 4px 8px #131317,
    inset -3px -3px 7px #27272f,
    0 0 0 1px #ffcf99;
}

.number-stepper input[type="number"] {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff8f0;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 8px 4px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.number-stepper input[type="number"]::-webkit-inner-spin-button,
.number-stepper input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-stepper input[type="number"]:focus-visible {
  outline: none;
}

.stepper-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid #2e2e38;
  background-color: #1e1e24;
  color: #ffcf99;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    3px 3px 6px #131317,
    -2px -2px 5px #282830;
  transition:
    transform 200ms ease-out,
    background-color 200ms ease-out,
    border-color 200ms ease-out;
}

.stepper-btn:hover {
  border-color: #ffcf99;
  background-color: #24242c;
}

.stepper-btn:active {
  transform: scaleX(1.04) scaleY(0.92);
  box-shadow:
    inset 2px 2px 5px #121216,
    inset -2px -2px 4px #282830;
}

.stepper-btn:focus-visible {
  outline: 2px solid #ffcf99;
  outline-offset: 2px;
}

/* Slider de Ritmo Diario */
.pacing-control {
  background-color: #1e1e24;
  border: 1px solid #27272f;
  border-radius: 16px;
  padding: 16px;
  box-shadow:
    inset 3px 3px 7px #141418,
    inset -3px -3px 7px #27272f;
}

.pacing-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

/* Display digital hundido en Índigo Espacial */
.pacing-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffcf99;
  background-color: #111d4a;
  border: 1px solid #263a82;
  padding: 4px 12px;
  border-radius: 8px;
  box-shadow:
    inset 2px 2px 5px #090f29,
    inset -2px -2px 4px #192b6e;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background-color: #141418;
  box-shadow:
    inset 2px 2px 4px #0d0d10,
    inset -1px -1px 3px #2c2c35;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #92140c;
  border: 2px solid #ffcf99;
  box-shadow:
    3px 3px 6px #111114,
    -2px -2px 5px #2b2b34;
  cursor: pointer;
  transition: transform 200ms ease-out;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #92140c;
  border: 2px solid #ffcf99;
  box-shadow:
    3px 3px 6px #111114,
    -2px -2px 5px #2b2b34;
  cursor: pointer;
  transition: transform 200ms ease-out;
}

input[type="range"]:focus-visible {
  outline: 2px solid #ffcf99;
  outline-offset: 4px;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: #b8b0a6;
}

/* ==========================================================================
   CHECKBOX ANIMADO (TRAZO DE CHECK SVG + FEEDBACK ÍNDIGO ESPACIAL)
   ========================================================================== */
.checkbox-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background-color: #1e1e24;
  border: 1px solid #2a2a33;
  cursor: pointer;
  user-select: none;
  box-shadow:
    4px 4px 9px #141418,
    -3px -3px 8px #26262e;
  transition:
    transform 200ms ease-out,
    background-color 200ms ease-out,
    border-color 200ms ease-out,
    box-shadow 200ms ease-out;
}

.checkbox-card:hover {
  transform: translateY(-1px);
  border-color: #3e3e4b;
}

.checkbox-card:has(input[type="checkbox"]:checked) {
  background-color: #111d4a;
  border-color: #2e4494;
  box-shadow:
    4px 4px 10px #121216,
    -3px -3px 8px #24242c;
}

.checkbox-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-checkbox {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 8px;
  background-color: #1e1e24;
  border: 1px solid #3a3a46;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 3px 3px 6px #131317,
    inset -2px -2px 5px #282830;
  transition:
    background-color 200ms ease-out,
    border-color 200ms ease-out,
    transform 200ms ease-out;
}

.custom-checkbox svg {
  width: 15px;
  height: 15px;
}

.check-stroke {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 240ms ease-out;
}

.checkbox-card input[type="checkbox"]:checked + .custom-checkbox {
  background-color: #92140c;
  border-color: #ffcf99;
  box-shadow: 0 2px 6px #090f29;
}

.checkbox-card input[type="checkbox"]:checked + .custom-checkbox .check-stroke {
  stroke-dashoffset: 0;
}

.checkbox-card input[type="checkbox"]:focus-visible + .custom-checkbox {
  outline: 2px solid #ffcf99;
  outline-offset: 3px;
}

.toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-copy strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff8f0;
}

.toggle-copy small {
  font-size: 0.78rem;
  color: #c7bfb5;
}

/* ==========================================================================
   BOTÓN PRINCIPAL CON SQUASH & STRETCH (:active)
   ========================================================================== */
.btn-calculate {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #92140c;
  color: #fff8f0;
  border: 1px solid #b02118;
  border-radius: 14px;
  padding: 15px 22px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    5px 5px 12px #131317,
    -4px -4px 10px #282830;
  transition:
    transform 200ms ease-out,
    background-color 200ms ease-out,
    box-shadow 200ms ease-out;
}

.btn-calculate:hover {
  background-color: #a61910;
  transform: translateY(-2px);
  box-shadow:
    7px 7px 16px #111115,
    -5px -5px 12px #2b2b34;
}

.btn-calculate:active {
  transform: scaleX(1.03) scaleY(0.93) translateY(1px);
  box-shadow:
    inset 3px 3px 8px #5a0b06,
    inset -2px -2px 6px #b82319;
}

.btn-calculate:focus-visible,
.btn-download:focus-visible,
.btn-social:focus-visible {
  outline: 2px solid #ffcf99;
  outline-offset: 3px;
}

/* ==========================================================================
   TARJETA DE RESULTADOS EXPORTABLE (ÍNDIGO ESPACIAL #111D4A)
   ========================================================================== */
.results-box {
  display: none;
  background-color: #111d4a;
  border: 1px solid #263a82;
  border-radius: 20px;
  padding: 22px;
  flex-direction: column;
  gap: 16px;
  box-shadow:
    6px 6px 14px #141418,
    -4px -4px 10px #25252d;
  animation: deployWithAnticipation 360ms ease-out both;
}

.results-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.card-brand-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffcf99;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff8f0;
  background-color: #92140c;
  padding: 4px 12px;
  border-radius: 999px;
}

.pass-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff8f0;
  line-height: 1.25;
}

.results-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #1e1e24;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow:
    inset 3px 3px 7px #131317,
    inset -3px -3px 7px #282830;
}

.metric-item svg {
  flex-shrink: 0;
}

.metric-item p {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffcf99;
}

/* Botón Descargar Tarjeta */
.btn-download {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #111d4a;
  color: #ffcf99;
  border: 1px solid #2a408f;
  border-radius: 12px;
  padding: 13px 18px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    5px 5px 10px #0a112e,
    -4px -4px 9px #192966;
  transition:
    transform 200ms ease-out,
    background-color 200ms ease-out,
    box-shadow 200ms ease-out;
}

.btn-download:hover {
  background-color: #16255e;
  transform: translateY(-2px);
}

.btn-download:active {
  transform: scaleX(1.03) scaleY(0.93);
  box-shadow:
    inset 3px 3px 7px #0a112e,
    inset -3px -3px 7px #192966;
}

/* Barra de Redes Sociales */
.social-share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #233578;
}

.btn-social {
  flex: 1 1 auto;
  min-width: 96px;
  background-color: #111d4a;
  color: #fff8f0;
  border: 1px solid #233578;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    3px 3px 7px #0a112e,
    -3px -3px 7px #192966;
  transition:
    transform 200ms ease-out,
    border-color 200ms ease-out,
    color 200ms ease-out;
}

.btn-social:hover {
  border-color: #ffcf99;
  color: #ffcf99;
  transform: translateY(-2px);
}

.btn-social:active {
  transform: scaleX(1.03) scaleY(0.93);
  box-shadow:
    inset 2px 2px 5px #0a112e,
    inset -2px -2px 5px #192966;
}

/* ==========================================================================
   COLUMNA EDITORIAL LATERAL (TOP SEMANAL & ESTRENOS)
   ========================================================================== */
.editorial-rail {
  display: flex;
  flex-direction: column;
  gap: 36px;
  animation: fadeSlideUp 460ms ease-out both;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-heading h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff8f0;
}

.live-indicator {
  margin-left: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffcf99;
  background-color: #111d4a;
  border: 1px solid #263a82;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-indicator::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffcf99;
  animation: pulseDot 2s infinite ease-in-out;
}

.ranking-list {
  list-style: none;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
}

.ranking-list::-webkit-scrollbar {
  width: 4px;
}

.ranking-list::-webkit-scrollbar-thumb {
  background-color: #343440;
  border-radius: 999px;
}

.ranking-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 6px;
  border-bottom: 1px solid #2b2b34;
  transition: transform 200ms ease-out;
}

.ranking-list li:hover {
  transform: translateX(4px);
}

.ranking-list li strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffcf99;
  min-width: 24px;
}

.anime-title {
  font-weight: 600;
  font-size: 0.94rem;
  color: #fff8f0;
}

.anime-title small {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #c2bab0;
}

.season-pill {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffcf99;
  background-color: #111d4a;
  border: 1px solid #243575;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.release-timeline {
  list-style: none;
  border-left: 2px solid #92140c;
  margin-left: 8px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.release-timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.release-timeline li::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffcf99;
}

.release-timeline time {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffcf99;
}

.release-timeline strong {
  font-size: 0.94rem;
  font-weight: 600;
  color: #fff8f0;
}

.release-timeline span {
  font-size: 0.8rem;
  color: #c2bab0;
}

/* ==========================================================================
   SECCIÓN EDITORIAL SEO Y FAQ
   ========================================================================== */
.seo-editorial-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 20px 24px;
  border-top: 1px solid #2a2a32;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.editorial-header {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.editorial-header h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff8f0;
  line-height: 1.2;
}

.editorial-header p {
  font-size: 0.94rem;
  color: #c7bfb5;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.editorial-card {
  background-color: #1e1e24;
  border: 1px solid #2a2a33;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow:
    5px 5px 12px #141418,
    -4px -4px 10px #26262e;
}

.editorial-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: #111d4a;
  border: 1px solid #243575;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.editorial-card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff8f0;
}

.editorial-card p {
  font-size: 0.88rem;
  color: #c7bfb5;
  line-height: 1.6;
}

.faq-box {
  background-color: #1e1e24;
  border: 1px solid #2a2a33;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-box > h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.15rem;
  color: #fff8f0;
  margin-bottom: 4px;
}

.faq-item {
  background-color: #1e1e24;
  border: 1px solid #2b2b34;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow:
    inset 3px 3px 6px #141418,
    inset -2px -2px 5px #27272f;
}

.faq-item summary {
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff8f0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.1rem;
  color: #ffcf99;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #2b2b34;
  font-size: 0.88rem;
  color: #c7bfb5;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER SEMÁNTICO Y CUMPLIMIENTO LEGAL
   ========================================================================== */
.app-footer {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 26px 20px 44px;
  border-top: 1px solid #2a2a32;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-logo {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff8f0;
}

.footer-privacy-note {
  font-size: 0.82rem;
  color: #c2bab0;
  max-width: 560px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  margin: 4px 0;
}

.footer-nav a {
  font-size: 0.84rem;
  font-weight: 500;
  color: #fff8f0;
  text-decoration: none;
  transition: color 200ms ease-out;
}

.footer-nav a:hover {
  color: #ffcf99;
}

.footer-sep {
  color: #7d766e;
  font-size: 0.75rem;
}

.footer-copy {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  color: #a8a096;
}

/* ==========================================================================
   PÁGINAS LEGALES, CONTACTO Y ERROR 404 (COMPATIBILIDAD COMPLETA)
   ========================================================================== */
.legal-container {
  max-width: 780px;
  margin: 32px auto;
  padding: 0 20px;
}

.legal-card {
  background-color: #1e1e24;
  border: 1px solid #2a2a33;
  border-radius: 22px;
  padding: 28px;
  box-shadow:
    6px 6px 14px #141418,
    -4px -4px 10px #26262e;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.legal-updated {
  align-self: flex-start;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffcf99;
  background-color: #111d4a;
  border: 1px solid #243575;
  padding: 4px 10px;
  border-radius: 8px;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid #2b2b34;
}

.legal-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff8f0;
}

.legal-section p,
.legal-section li {
  font-size: 0.92rem;
  color: #c7bfb5;
  line-height: 1.65;
}

.legal-section ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: #ffcf99;
  background-color: #111d4a;
  padding: 2px 6px;
  border-radius: 4px;
}

.legal-link {
  color: #ffcf99;
  font-weight: 600;
  text-decoration: underline;
}

.legal-actions {
  margin-top: 6px;
  display: flex;
  justify-content: center;
}

.btn-back-home {
  max-width: 280px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.error-404-card {
  align-items: center;
  text-align: center;
  padding: 44px 28px;
}

.error-code-display {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(4.5rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: #ffcf99;
}

/* ==========================================================================
   BANNER DE COOKIES FLOTANTE
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(920px, calc(100% - 28px));
  background-color: #111d4a;
  border: 1px solid #263a82;
  border-left: 4px solid #92140c;
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 18px 40px #0d0d10;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-content p {
  font-size: 0.82rem;
  color: #fff8f0;
  line-height: 1.5;
}

.cookie-content a {
  color: #ffcf99;
  font-weight: 600;
  text-decoration: underline;
}

.btn-cookie-accept {
  flex-shrink: 0;
  background-color: #92140c;
  color: #fff8f0;
  border: 1px solid #b02118;
  padding: 9px 18px;
  border-radius: 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 200ms ease-out,
    transform 200ms ease-out;
}

.btn-cookie-accept:hover {
  background-color: #a61910;
}

.btn-cookie-accept:active {
  transform: scaleX(1.03) scaleY(0.93);
}

/* ==========================================================================
   BREAKPOINTS RESPONSIVOS (MOBILE-FIRST)
   ========================================================================== */
@media (min-width: 640px) {
  .hero-intro h1 {
    font-size: 2.3rem;
  }

  .card-calculator {
    padding: 28px;
  }

  .split-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .app-layout {
    padding-top: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.82fr);
    gap: 56px;
    align-items: start;
  }

  .editorial-rail {
    position: sticky;
    top: 86px;
  }

  .editorial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* Botones de votación en vivo (Top Semanal) */
.vote-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #383846;
  background-color: #23232a;
  color: #ffcf99;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 160ms ease;
}

.vote-pill-btn:hover:not(:disabled) {
  background-color: #92140c;
  border-color: #b02118;
  color: #fff8f0;
}

.vote-pill-btn.voted,
.vote-pill-btn:disabled {
  background-color: #1a1a20;
  border-color: #92140c;
  color: #fff8f0;
  cursor: default;
  opacity: 0.9;
}
