/* ============================================================
   SCAN VELVET — Hoja de estilos principal
   Paleta: negros profundos · blancos cálidos · rojo silencioso
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,800&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* Fondos */
  --bg:            #0c0b0e;
  --surface:       #111013;
  --surface-raised:#1b191f;

  /* Texto */
  --text:          #ece6dc;
  --text-dim:      #9e9690;
  --text-muted:    #625e5a;

  /* Bordes */
  --line:          rgba(236, 230, 220, 0.06);
  --line-mid:      rgba(236, 230, 220, 0.10);

  /* ▮ El Rojo — protagonista silencioso */
  --red:           #c2273d;
  --red-bright:    #de3852;
  --red-glow:      rgba(194, 39, 61, 0.16);
  --red-subtle:    rgba(194, 39, 61, 0.08);
  --red-border:    rgba(194, 39, 61, 0.28);

  /* Acento dorado (fechas / meta) */
  --gold:          #9e8240;

  /* Sombras */
  --shadow-sm:     0 1px 3px rgba(0,0,0,.45), 0 4px 12px rgba(0,0,0,.28);
  --shadow-hover:  0 0 0 1px var(--red-border),
                   0 8px 40px rgba(0,0,0,.45),
                   0 0 40px var(--red-glow);

  /* Transición global */
  --ease:          cubic-bezier(.4,0,.2,1);
  /* Curvas fuertes (Emil Kowalski): ease-out con punch para UI */
  --ease-out:      cubic-bezier(.23,1,.32,1);
  --ease-in-out:   cubic-bezier(.77,0,.175,1);
  --t:             .2s var(--ease-out);

  /* Tipografía */
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ── Reset base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  /* Sangrado rojo ambiental en la parte superior */
  background-image:
    radial-gradient(ellipse 90% 35% at 50% -5%, rgba(194,39,61,.13) 0%, transparent 70%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* Accesibilidad: sólo para lectores de pantalla */
.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;
}

/* Accesibilidad: saltar al contenido */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--red);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  z-index: 200;
  transition: top var(--t);
}
.skip-link:focus { top: 0; }

/* ── Barra de progreso de scroll ────────────────────────── */
.scroll-progress {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  transform-origin: left;
  transition: width .08s linear;
  pointer-events: none;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  backdrop-filter: blur(20px) saturate(1.6);
  background: rgba(12, 11, 14, 0.7);
  border-bottom: 1px solid var(--line);
  transition: background var(--t), border-color var(--t);
}

/* Header con fondo más sólido al hacer scroll */
.site-header.scrolled {
  background: rgba(12, 11, 14, 0.88);
  border-bottom-color: var(--line-mid);
}

/* Marca */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: opacity var(--t);
}
.brand:hover { opacity: .82; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--red) 0%, #8a1225 100%);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  /* Borde interior + sombra tintada con offset, en vez de halo neón */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 2px 8px rgba(138,18,37,.4);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-dim);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 7px;
  transition: color var(--t), background var(--t);
  position: relative;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,.07);
  outline: none;
}

.nav-links .nav-cta {
  background: var(--red-subtle);
  color: var(--text);
  border: 1px solid var(--red-border);
  font-weight: 600;
}
.nav-links .nav-cta:hover {
  background: rgba(194,39,61,.16);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  place-items: center start;
  min-height: 92vh;
  overflow: hidden;
  background: var(--bg) url('assets/hero-bg.webp') center right / cover no-repeat;
}

.hero-overlay,
.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Scrim oscuro de izquierda a derecha: el texto queda legible y los
   personajes de la derecha siguen visibles */
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12,11,14,.95) 0%, rgba(12,11,14,.78) 32%, rgba(12,11,14,.35) 62%, rgba(12,11,14,.12) 100%);
}

/* Ambiente rojo en la base + viñeta inferior */
.hero-ambient {
  background:
    radial-gradient(ellipse 55% 60% at 8% 100%, rgba(194,39,61,.20), transparent 60%),
    linear-gradient(180deg, transparent 55%, rgba(12,11,14,.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 120px clamp(22px, 6vw, 72px) 80px;
}

/* Animaciones de entrada del hero (stagger corto, curva fuerte) */
.hero-content > * {
  animation: fadeInUp .7s var(--ease-out) both;
}
.hero-content .eyebrow    { animation-delay: .05s; }
.hero-content h1          { animation-delay: .12s; }
.hero-content .hero-copy  { animation-delay: .2s;  }
.hero-content .hero-actions { animation-delay: .28s; }

/* ── Tipografía global ───────────────────────────────────── */
.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Pequeña línea roja antes del kicker */
.section-kicker::before {
  content: '— ';
  opacity: .6;
}

h1, h2 {
  font-family: 'Cormorant', Georgia, serif;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.4rem, 10vw, 6.5rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.02em;
  margin-bottom: 22px;
  color: var(--text);
}

h1 em {
  font-style: italic;
  font-weight: 300;
  color: rgba(236,230,220,.78);
}

h2 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

p { margin: 0; text-wrap: pretty; }

.hero-copy {
  color: rgba(236,230,220,.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.72;
  max-width: 580px;
}

/* ── Botones ─────────────────────────────────────────────── */
.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 9px;
  border: 1px solid var(--line-mid);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .01em;
  transition: filter var(--t), box-shadow var(--t), transform .16s var(--ease-out);
  cursor: pointer;
}
.button:hover  { transform: translateY(-1px); }
.button:active { transform: scale(.97); }

.button.primary {
  background: var(--red);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
}
.button.primary:hover {
  background: var(--red-bright);
  box-shadow: 0 6px 28px rgba(194,39,61,.38);
}

.button.secondary {
  background: rgba(255,255,255,.07);
  color: var(--text);
}
.button.secondary:hover {
  background: rgba(255,255,255,.11);
  border-color: var(--line-mid);
}

.button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.button.disabled,
.button[aria-disabled="true"] {
  opacity: .42;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Secciones — base ────────────────────────────────────── */
.updates,
.catalog,
.latest-works,
.progress-band,
.team,
.contact {
  padding: 88px clamp(22px, 5vw, 68px);
}

@media (max-width: 600px) {
  .updates,
  .catalog,
  .latest-works,
  .progress-band,
  .team,
  .contact {
    padding: 52px 20px;
  }
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

/* ── Novedades ───────────────────────────────────────────── */
.updates {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  background:
    linear-gradient(rgba(12,11,14,.74) 0%, rgba(12,11,14,.84) 100%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.updates-intro h2 { margin-top: 8px; }

.notice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  width: 100%;
}

.notice-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 20px;
  transition: border-color var(--t), box-shadow .22s var(--ease-out), transform .22s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.notice-card:hover {
  border-color: var(--red-border);
  box-shadow: 0 4px 24px var(--red-glow);
  transform: translateY(-3px);
}

.notice-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.notice-tag {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  color: var(--red-bright);
}

.notice-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--red-bright);
  text-decoration: none;
  margin-top: auto;
  padding-top: 12px;
  transition: opacity .2s;
}
.notice-link:hover { opacity: .7; }

/* ── Badges de posición en peticiones ───────────────────── */
.ganador-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  color: var(--red-bright);
  margin-bottom: 8px;
}

.puesto-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--text-muted);
  margin-bottom: 8px;
}

.candidato-card--ganador {
  border-color: var(--red-border);
  box-shadow: 0 0 0 1px rgba(194,39,61,.18), 0 4px 24px var(--red-glow);
}

.notice-card time {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.notice-card h3 { margin-bottom: 8px; }
.notice-card p  { color: var(--text-dim); font-size: .92rem; line-height: 1.6; }

/* ── Etiqueta global de contenido maduro ─────────────────── */
/* Cualquier .mature en el sitio se muestra en rojo */
.mature {
  background: var(--red-subtle)  !important;
  border-color: var(--red-border) !important;
  color: var(--red-bright)        !important;
}

/* ── Catalogo ────────────────────────────────────────────── */
.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  width: fit-content;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* Buscador */
.catalog-search-wrap {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}

.catalog-search-input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  height: 48px;
  padding: 0 16px 0 40px;
  outline: none;
  transition: border-color var(--t), background var(--t);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
}

.catalog-search-input::placeholder { color: var(--text-muted); }

.catalog-search-input:focus {
  border-color: var(--red);
  background-color: rgba(194,39,61,.05);
}

/* Ocultar el botón nativo "×" de type=search en webkit */
.catalog-search-input::-webkit-search-cancel-button { display: none; }

@media (max-width: 600px) {
  .catalog-controls { flex-direction: column; align-items: flex-start; }
  .catalog-search-wrap { max-width: 100%; width: 100%; }
}

.filter-button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--t), color var(--t);
}
.filter-button:hover { color: var(--text-dim); background: rgba(255,255,255,.05); }
.filter-button.active {
  background: var(--surface-raised);
  color: var(--text);
}
.filter-button:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }

.project-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Estado de grilla vacía */
.grid-empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
}

/* Transición de filtro */
.project-grid.filtering {
  opacity: .4;
  pointer-events: none;
  transition: opacity .15s ease;
}

/* Tarjeta de proyecto */
.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), border-color var(--t), box-shadow .25s var(--ease-out);
  animation: fadeInUp .5s var(--ease-out) both;
  animation-delay: var(--card-delay, 0s);
}
@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    transform: translateY(-10px);
    border-color: var(--red-border);
    box-shadow:
      var(--shadow-hover),
      0 18px 40px rgba(0,0,0,.55);
  }
}

/* Arte de tarjeta — portada vertical estilo box art de VN */
.project-art {
  position: relative;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, var(--art-a, #3a1a2a), var(--art-b, #1a2a3a));
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

/* Imagen de portada dentro de la card */
.project-art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: opacity .45s var(--ease-out);
}

/* Overlay sutil en el arte */
.project-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45));
}

/* Pill de estado */
.status-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(12,11,14,.75);
  backdrop-filter: blur(8px);
  color: #fff;
}
/* Dot de color por estado */
.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.status-pill[data-status="traduciendo"] { color: var(--red-bright); }
.status-pill[data-status="revision"]    { color: #d4a048; }
.status-pill[data-status="publicado"]   { color: #4cba82; }

/* Cuerpo de tarjeta */
.project-body {
  display: grid;
  gap: 14px;
  padding: 20px 18px;
}
.project-body h3 { font-size: 1.05rem; }
.project-body p  { color: var(--text-dim); font-size: .88rem; line-height: 1.6; }

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: var(--gold);
  font-weight: 600;
}

/* Barra de progreso */
.meter {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-bright) 100%);
  transition: width .8s var(--ease);
}

/* ── Últimas Obras — carrusel home ──────────────────────── */
.latest-works {
  border-bottom: 1px solid var(--line);
  padding-bottom: 60px;
}

.carousel-wrapper {
  /* clip solo en X para que el lift vertical de las cards no quede cortado */
  overflow-x: clip;
  overflow-y: visible;
  margin-inline: -4px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 16px 4px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 min(320px, 82vw);
  scroll-snap-align: start;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-mid);
  background: rgba(255,255,255,.05);
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform .16s var(--ease-out);
}
.carousel-btn:hover:not(:disabled) {
  background: rgba(255,255,255,.10);
  color: var(--text);
  border-color: var(--red-border);
}
.carousel-btn:active:not(:disabled) { transform: scale(.92); }
.carousel-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.carousel-btn:disabled { opacity: .3; cursor: not-allowed; }

/* ── Banda de progreso ───────────────────────────────────── */
.progress-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.progress-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.progress-panel {
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color var(--t);
}
.progress-panel:hover {
  border-color: var(--red-border);
}

.metric {
  display: block;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--red);
  margin-bottom: 16px;
}
.progress-panel h3 { margin-bottom: 8px; }
.progress-panel p  { color: var(--text-dim); font-size: .88rem; line-height: 1.6; }

/* ── Equipo ──────────────────────────────────────────────── */
.team { border-bottom: 1px solid var(--line); }

.team-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.team-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color var(--t), transform var(--t);
}
.team-card:hover {
  border-color: var(--line-mid);
  transform: translateY(-3px);
}

.team-icon {
  display: inline-block;
  color: var(--red);
  font-size: 1.1rem;
  margin-bottom: 16px;
  opacity: .7;
}
.team-card p { color: var(--text-dim); font-size: .9rem; line-height: 1.65; }

/* ── Contacto ────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(194,39,61,.07), transparent),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.contact-intro h2 { margin: 8px 0 16px; }
.contact-intro p  { color: var(--text-dim); font-size: .95rem; line-height: 1.7; max-width: 520px; }

.contact-actions {
  flex-direction: column;
  align-items: stretch;
  min-width: 160px;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(22px, 5vw, 68px);
}
.site-footer p   { color: var(--text-muted); font-size: .84rem; }
.site-footer a   {
  color: var(--red);
  font-size: .84rem;
  font-weight: 700;
  opacity: .8;
  transition: opacity var(--t);
}
.site-footer a:hover { opacity: 1; }

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Animaciones de scroll ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px) scale(.99);
  transition:
    opacity .55s var(--ease-out),
    transform .55s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Sin animación para quienes prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal           { opacity: 1; transform: none; }
  .hero-content > * { animation: none; opacity: 1; }
  .project-card     { animation: none; opacity: 1; }
  .hero-particles   { display: none; }
  #cursor-star, #cursor-trail, #ambient-glow { display: none; }
}

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px) scale(.99); }
  to   { opacity: 1; transform: translateY(0) scale(1);      }
}

/* ── Responsive: tablet ──────────────────────────────────── */
@media (max-width: 960px) {
  .site-header {
    position: absolute;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding-bottom: 16px;
  }

  .hero-content { padding-top: 200px; }

  .updates {
    gap: 20px;
  }

  .project-grid,
  .progress-layout,
  .team-list {
    grid-template-columns: 1fr 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-actions { flex-direction: row; }
}

/* ── Responsive: móvil ───────────────────────────────────── */
@media (max-width: 600px) {
  /* Nav: scroll horizontal en lugar de dos filas */
  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
    padding-bottom: 4px;
    justify-content: flex-start;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    padding-inline: 10px;
    font-size: .85rem;
    white-space: nowrap;
  }

  /* Hero móvil: imagen centrada + scrim vertical uniforme para legibilidad */
  .hero {
    min-height: 88vh;
    background-position: center center;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(12,11,14,.55) 0%, rgba(12,11,14,.78) 55%, rgba(12,11,14,.92) 100%);
  }
  .hero-content { padding-top: 150px; }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .button { width: 100%; }

  .project-grid,
  .progress-layout,
  .team-list {
    grid-template-columns: 1fr;
  }

  /* Encabezado de sección: botón debajo del título */
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .section-heading .button { width: auto; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  h1 { line-height: .88; }

  /* Carrusel: controles a la izquierda en móvil */
  .carousel-controls { justify-content: flex-start; }

  /* Barras de filtro: scroll horizontal en lugar de wrap */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
}

/* ── Age Gate ────────────────────────────────────────────── */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(194,39,61,.16), transparent),
    rgba(8, 7, 10, 0.97);
  backdrop-filter: blur(12px);
  animation: fadeIn .4s ease both;
}

.age-gate[hidden] { display: none; }

.age-gate-card {
  max-width: 480px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-mid);
  border-radius: 18px;
  padding: 44px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 60px var(--red-glow);
}

.age-gate-mark {
  margin-bottom: 28px;
  width: 52px;
  height: 52px;
  font-size: 1.1rem;
  border-radius: 14px;
}

.age-gate-card .section-kicker {
  margin-bottom: 10px;
}

.age-gate-card h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 20px;
}

.age-gate-desc {
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 380px;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.age-gate-actions .button {
  width: 100%;
  min-height: 52px;
}

/* ═══════════════════════════════════════════════════════════
   PETICIONES / VOTACIONES
   ═══════════════════════════════════════════════════════════ */

.peticiones {
  padding: var(--section-padding);
  max-width: var(--content-width);
  margin: 0 auto;
}

.peticiones-intro {
  max-width: 62ch;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 44px;
}

/* ── Grid de candidatos ──────────────────────────────────── */
.candidatos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.candidato-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
}

.candidato-card:hover {
  border-color: var(--red-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Arte / cabecera del card */
.candidato-art {
  height: 200px;
  background: linear-gradient(135deg, var(--art-a, #1a0d35), var(--art-b, #2a1060));
  background-size: cover;
  background-position: center top;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

/* Gradiente inferior para que el texto del body no compita con la imagen */
.candidato-art::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
}

/* Cuerpo del card */
.candidato-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.candidato-titulo {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.candidato-meta {
  font-size: .73rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 0;
}

.candidato-desc {
  font-size: .86rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

/* Barra de interés / votos */
.candidato-interes {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.interes-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  white-space: nowrap;
}

.interes-bar {
  flex: 1;
  height: 4px;
  background: var(--surface-raised);
  border-radius: 999px;
  overflow: hidden;
}

.interes-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  border-radius: 999px;
  transition: width 1.3s cubic-bezier(.4,0,.2,1) .25s;
}

/* Se activa cuando el card entra en vista (clase .visible del reveal) */
.candidato-card.visible .interes-fill {
  width: var(--interes-w, 0%);
}

.interes-pct {
  font-size: .76rem;
  font-weight: 700;
  color: var(--red-bright);
  min-width: 32px;
  text-align: right;
}

/* ── Acciones ────────────────────────────────────────────── */
.peticiones-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

/* ── Nota al pie ─────────────────────────────────────────── */
.peticiones-nota {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 56ch;
}

.peticiones-nota::before {
  content: '— ';
  color: var(--red);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .candidatos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .candidatos-grid {
    grid-template-columns: 1fr;
  }
  .peticiones-actions {
    flex-direction: column;
  }
  .peticiones-actions .button {
    width: 100%;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 480px) {
  .age-gate-card { padding: 32px 22px 28px; }
}

/* ══════════════════════════════════════════════════════════
   ANIMACIONES — Velvet Route v20260601
   ══════════════════════════════════════════════════════════ */

/* ── 1. Status pill: dot pulsante en "Traduciendo" ────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.8); }
}
.status-pill[data-status="traduciendo"]::before {
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* ── 3. Progress bar: shimmer sweep ──────────────────────── */
@keyframes shimmer-sweep {
  0%   { transform: translateX(-150%) skewX(-18deg); }
  100% { transform: translateX(400%)  skewX(-18deg); }
}
.meter span {
  position: relative;
  overflow: hidden;
}
.meter span::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  animation: shimmer-sweep 2.8s ease-in-out infinite;
  animation-delay: .9s;
}

/* ── 4. Glow ambiental que respira ───────────────────────── */
@keyframes breathe-glow {
  0%, 100% { opacity: .55; }
  50%       { opacity: 1;   }
}
#ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse 78% 28% at 50% 0%,
    rgba(194,39,61,.14) 0%, transparent 65%);
  animation: breathe-glow 6s ease-in-out infinite;
}

/* ── 6. Imagen lazy: fade-in al cargar ───────────────────── */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
img[loading="lazy"].img-loaded {
  opacity: 1;
}

/* ── 7. Brand mark: shimmer diagonal ────────────────────── */
@keyframes brand-sweep {
  0%   { transform: translateX(-180%) rotate(28deg); opacity: 0;  }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(240%)  rotate(28deg); opacity: 0;  }
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: -10% -20%;
  width: 36%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.24) 50%,
    transparent 100%);
  animation: brand-sweep 5.5s ease-in-out infinite;
  animation-delay: 1.8s;
  pointer-events: none;
}

/* ── 8. Stagger automático en grids ─────────────────────── */
.progress-layout > .reveal:nth-child(2),
.team-list       > .reveal:nth-child(2),
.notice-list     > .reveal:nth-child(2),
.heroinas-grid   > .reveal:nth-child(2) { --reveal-delay: .09s; }

.progress-layout > .reveal:nth-child(3),
.team-list       > .reveal:nth-child(3),
.notice-list     > .reveal:nth-child(3),
.heroinas-grid   > .reveal:nth-child(3) { --reveal-delay: .18s; }

.progress-layout > .reveal:nth-child(n+4),
.team-list       > .reveal:nth-child(n+4),
.heroinas-grid   > .reveal:nth-child(n+4) { --reveal-delay: .27s; }

/* ── 9. Nav: underline animado desde el centro ───────────── */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  right: 50%;
  height: 1.5px;
  background: var(--red);
  border-radius: 999px;
  transition: left .22s var(--ease-out), right .22s var(--ease-out);
  pointer-events: none;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  left: 12px;
  right: 12px;
}

/* ── 10. Hero: partículas flotantes ─────────────────────── */
@keyframes float-particle {
  0%   { opacity: 0; transform: translateY(0)    translateX(0)                 scale(0);  }
  8%   { opacity: .6; transform: translateY(-5vh) translateX(var(--dx, 0px))   scale(1);  }
  90%  { opacity: .1; transform: translateY(-88vh) translateX(calc(var(--dx, 0px)*2.2)) scale(.6); }
  100% { opacity: 0;  transform: translateY(-98vh) translateX(calc(var(--dx, 0px)*2.2)) scale(0);  }
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-particles span {
  position: absolute;
  bottom: 12%;
  left: var(--px, 50%);
  width: var(--ps, 2px);
  height: var(--ps, 2px);
  background: var(--red-bright);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--red), 0 0 10px rgba(194,39,61,.3);
  animation: float-particle var(--pd, 16s) ease-in var(--po, 0s) infinite;
}

/* ── 11. Cursor personalizado: estrella ──────────────────── */
@keyframes spin-star {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (hover: hover) and (pointer: fine) {
  html, * { cursor: none !important; }

  #cursor-star {
    position: fixed;
    top: 0; left: 0;
    width: 20px; height: 20px;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
    transition: opacity .2s;
  }
  #cursor-star svg {
    width: 100%; height: 100%;
    fill: var(--red);
    filter:
      drop-shadow(0 0 4px var(--red))
      drop-shadow(0 0 9px rgba(194,39,61,.45));
    animation: spin-star 5s linear infinite;
    transition: transform .14s var(--ease-out), filter .14s;
    display: block;
  }
  #cursor-star.is-hovering svg {
    transform: scale(1.4);
    filter:
      drop-shadow(0 0 6px var(--red-bright))
      drop-shadow(0 0 14px rgba(222,56,82,.6));
    animation-duration: 1.8s;
  }
  #cursor-star.is-clicking svg {
    transform: scale(1.7);
    filter:
      drop-shadow(0 0 9px var(--red-bright))
      drop-shadow(0 0 20px var(--red));
  }

  #cursor-trail {
    position: fixed;
    top: 0; left: 0;
    width: 7px; height: 7px;
    pointer-events: none;
    z-index: 99998;
    will-change: transform;
  }
  #cursor-trail span {
    display: block;
    width: 100%; height: 100%;
    background: var(--red);
    border-radius: 50%;
    opacity: .35;
    filter: blur(1.5px);
  }
}

/* ── 12. Page transition overlay ────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 98000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .38s var(--ease-out);
}
#page-transition.is-leaving {
  opacity: 1;
  pointer-events: all;
  transition: opacity .28s var(--ease-in-out);
}
