/* ============================================================
   PARTIALS · Estilos compartidos por páginas interiores
   (header, footer enriquecido, hero interior, cursor, animaciones base)
   ============================================================ */

/* HERO de página interior */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(91, 43, 153, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(180, 127, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .halo {
  position: absolute; inset: 0;
  display: grid; place-items: center; pointer-events: none;
  z-index: 0;
}
.page-hero .halo svg {
  width: min(80vw, 700px); height: min(80vw, 700px);
  color: var(--accent-uv); opacity: 0.15;
}
.page-hero .container-narrow { position: relative; z-index: 2; }
.page-hero .eyebrow { margin-bottom: 1.5rem; color: var(--accent-legible); }
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin-bottom: 1.5rem;
  color: var(--bone);
}
.page-hero h1 em {
  font-family: var(--font-italic);
  color: var(--accent-uv);
  font-style: italic;
  font-weight: 400;
  text-shadow: 0 0 28px rgba(180, 127, 255, 0.4);
}
.page-hero .lead {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--silver-liquid);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Breadcrumb */
.crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--chrome);
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: inline-block;
}
.crumb a { color: var(--accent-glow); transition: color var(--t-fast) var(--ease); }
.crumb a:hover { color: var(--accent-uv); }
.crumb .sep { color: var(--accent-glow); margin: 0 0.5em; opacity: 0.5; }

/* ============================================================
   SCROLL PROGRESS UV
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--violet-mid) 0%, var(--accent-uv) 100%);
  z-index: 999;
  box-shadow: 0 0 8px rgba(180, 127, 255, 0.5);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   CURSOR CUSTOM
   ============================================================ */
@media (pointer: fine) {
  body { cursor: none; }
  a, button, input, textarea, select, .btn { cursor: none; }
  .cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--accent-uv);
    border-radius: 50%;
    pointer-events: none;
    z-index: 998;
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease), height 0.25s var(--ease);
    mix-blend-mode: difference;
  }
  .cursor-ring {
    position: fixed; top: 0; left: 0;
    width: 32px; height: 32px;
    border: 1px solid var(--accent-uv);
    border-radius: 50%;
    pointer-events: none;
    z-index: 998;
    transform: translate(-50%, -50%);
    transition: transform 0.5s var(--ease), width 0.4s var(--ease), height 0.4s var(--ease);
    opacity: 0.7;
  }
  body.cursor-hover .cursor-dot { width: 0; height: 0; }
  body.cursor-hover .cursor-ring { width: 56px; height: 56px; }
}

/* ============================================================
   ANIMACIONES REVEAL
   ============================================================ */
.anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.anim.is-in { opacity: 1; transform: translateY(0); }
.anim-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.anim-stagger.is-in > *:nth-child(1) { transition-delay: 0.0s; }
.anim-stagger.is-in > *:nth-child(2) { transition-delay: 0.12s; }
.anim-stagger.is-in > *:nth-child(3) { transition-delay: 0.24s; }
.anim-stagger.is-in > *:nth-child(4) { transition-delay: 0.36s; }
.anim-stagger.is-in > *:nth-child(5) { transition-delay: 0.48s; }
.anim-stagger.is-in > *:nth-child(6) { transition-delay: 0.60s; }
.anim-stagger.is-in > * { opacity: 1; transform: translateY(0); }

img { opacity: 0; transition: opacity 1s var(--ease); }
img.loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  body { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ============================================================
   FOOTER ENRIQUECIDO + NEWSLETTER PREMIUM
   ============================================================ */
.footer-newsletter {
  background: linear-gradient(180deg, var(--violet-deep) 0%, var(--obsidian) 100%);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer-newsletter::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(180, 127, 255, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.footer-newsletter .container-narrow { position: relative; z-index: 2; }
.footer-newsletter .eyebrow { color: var(--accent-uv); margin-bottom: 1.5rem; }
.footer-newsletter h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--bone);
  margin-bottom: 1rem;
  line-height: 1.05;
}
.footer-newsletter h2 em {
  font-family: var(--font-italic);
  color: var(--accent-uv);
  font-style: italic;
}
.footer-newsletter .sub {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--silver-liquid);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
  margin-left: auto; margin-right: auto;
  line-height: 1.55;
}
.newsletter-form {
  display: flex;
  max-width: 540px;
  margin: 0 auto 1.5rem;
  border-bottom: 1px solid var(--accent-uv);
  padding-bottom: 4px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  border: 0; background: transparent;
  padding: 1rem 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--bone);
  outline: none;
  font-weight: 300;
}
.newsletter-form input[type="email"]::placeholder {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--chrome);
}
.newsletter-form button {
  border: 0; background: transparent;
  font-family: var(--font-grotesk);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-uv);
  cursor: pointer;
  padding: 0 1.2rem;
  transition: all var(--t-fast) var(--ease);
}
.newsletter-form button:hover { color: var(--bone); }
.newsletter-fine {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--chrome);
  text-transform: uppercase;
  margin-top: 1rem;
}
.newsletter-success {
  display: none;
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--accent-uv);
  font-size: 1rem;
  margin-top: 1rem;
}
.newsletter-success.is-visible { display: block; }

/* ============================================================
   FOOTER ENRIQUECIDO
   ============================================================ */
.footer-rich {
  background: var(--obsidian);
  color: var(--bone);
  padding: var(--space-lg) 0 var(--space-md);
  position: relative;
  z-index: 1;
}
.footer-rich .footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.1fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(180, 127, 255, 0.15);
}
.footer-rich .footer-mark {
  font-family: var(--font-italic);
  font-size: 2rem;
  font-style: italic;
  color: var(--bone);
  margin-bottom: 1rem;
  display: block;
}
.footer-rich .footer-mark::after { content: ' ✦'; color: var(--accent-uv); }
.footer-rich .footer-desc {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--silver-liquid);
  line-height: 1.7;
  opacity: 0.85;
}
.footer-rich h4 {
  font-family: var(--font-grotesk);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent-uv);
  margin-bottom: 1.4rem;
}
.footer-rich ul { list-style: none; padding: 0; margin: 0; }
.footer-rich ul li {
  margin-bottom: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--silver-liquid);
  opacity: 0.85;
  transition: opacity var(--t-fast) var(--ease);
}
.footer-rich ul li a { transition: color var(--t-fast) var(--ease); display: inline-block; }
.footer-rich ul li a:hover { color: var(--accent-uv); opacity: 1; }
.footer-rich .footer-contact-line {
  display: flex; align-items: center; gap: 0.6rem;
}
.footer-rich .footer-contact-line .ico {
  width: 14px; height: 14px;
  color: var(--accent-glow);
  flex-shrink: 0;
}
.footer-rich .footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(201, 202, 211, 0.1);
}
.footer-rich .copy {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--chrome);
  text-transform: uppercase;
}
.footer-rich .social-row {
  display: flex; gap: 1rem; justify-content: center;
}
.footer-rich .social-row a {
  width: 36px; height: 36px;
  border: 1px solid rgba(180, 127, 255, 0.3);
  display: grid; place-items: center;
  color: var(--accent-glow);
  transition: all var(--t-fast) var(--ease);
}
.footer-rich .social-row a:hover {
  border-color: var(--accent-uv);
  color: var(--accent-uv);
  box-shadow: 0 0 12px rgba(180, 127, 255, 0.3);
}
.footer-rich .social-row svg { width: 16px; height: 16px; }
.footer-rich .footer-legal {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--chrome);
  text-transform: uppercase;
  text-align: right;
}
.footer-rich .footer-legal a { transition: color var(--t-fast) var(--ease); }
.footer-rich .footer-legal a:hover { color: var(--accent-uv); }

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 1.8rem; right: 1.8rem;
  width: 56px; height: 56px;
  background: var(--accent-uv);
  border-radius: 50%;
  display: grid; place-items: center;
  z-index: 50;
  color: var(--obsidian);
  box-shadow: 0 8px 32px rgba(180, 127, 255, 0.4);
  transition: all var(--t-med) var(--ease);
}
.wa-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(180, 127, 255, 0.55);
}
.wa-float svg { width: 28px; height: 28px; }

/* ============================================================
   RESPONSIVE COMPLETO — PC · TABLET · MÓVIL
   ============================================================ */

/* Tablet horizontal y monitores chicos */
@media (max-width: 1180px) {
  .footer-rich .footer-top { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
  .footer-rich .footer-top > div:nth-child(1) { grid-column: span 2; }
}

/* ============================================================
   FIRMA · Powered by Merlin
   ============================================================ */
.footer-merlin {
  border-top: 1px solid rgba(180, 127, 255, 0.08);
  margin-top: var(--space-md);
  padding: 1.4rem 0 0.2rem;
  text-align: center;
}
.footer-merlin .merlin-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--chrome);
  opacity: 0.7;
  transition: opacity var(--t-fast) var(--ease);
  text-decoration: none;
  line-height: 1;
}
.footer-merlin .merlin-line:hover { opacity: 1; }
.footer-merlin .merlin-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  min-width: 14px;
  flex-shrink: 0;
  color: var(--accent-uv);
  opacity: 0.9;
  overflow: hidden;
}
.footer-merlin .merlin-glyph svg {
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  display: block;
  flex-shrink: 0;
}
.footer-merlin .merlin-name {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--accent-uv);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: text-shadow var(--t-fast) var(--ease);
  line-height: 1;
}
.footer-merlin .merlin-line:hover .merlin-name {
  text-shadow: 0 0 12px rgba(180, 127, 255, 0.55);
}

/* Tablet vertical */
@media (max-width: 900px) {
  .footer-rich .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-rich .footer-top > div:nth-child(1) { grid-column: span 2; text-align: center; }
  .footer-rich .footer-bottom { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .footer-rich .footer-legal { text-align: center; }
  .footer-newsletter h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
  .wa-float { width: 50px; height: 50px; bottom: 1.4rem; right: 1.4rem; }
  .wa-float svg { width: 24px; height: 24px; }
  .page-hero { padding: var(--space-lg) 0 var(--space-md); }
  .page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
}

/* Móvil */
@media (max-width: 600px) {
  .footer-rich .footer-top { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
  .footer-rich .footer-top > div { grid-column: 1 !important; }
  .footer-rich .footer-top > div:nth-child(1) { text-align: left; }
  .footer-rich h4 { font-size: 10.5px; }
  .footer-rich ul li { font-size: 0.88rem; }
  .footer-newsletter { padding: var(--space-lg) 0; }
  .newsletter-form { flex-direction: column; gap: 0.5rem; border-bottom: 0; }
  .newsletter-form input[type="email"] { border-bottom: 1px solid var(--accent-uv); }
  .newsletter-form button { padding: 1rem; border: 1px solid var(--accent-uv); }
  .wa-float { width: 46px; height: 46px; bottom: 1.1rem; right: 1.1rem; }
  .wa-float svg { width: 21px; height: 21px; }
  .top-bar { font-size: 9.5px; letter-spacing: 0.22em; padding: 0.6rem 0; }
  .top-bar .divider-glyph { margin: 0 0.4em; }
  .crumb { font-size: 10px; letter-spacing: 0.14em; }
}

/* Móvil chico */
@media (max-width: 380px) {
  .editorial-header .container { padding-top: 1rem; padding-bottom: 1rem; }
  .brand-mark { font-size: 1.3rem; letter-spacing: 0.12em; }
  .header-actions .uv-cta { padding: 0.4rem 0.8rem; font-size: 10px; letter-spacing: 0.2em; }
}

/* ============================================================
   ANIMACIONES PREMIUM GLOBALES · capa final
   ============================================================ */

/* 1. Marquee de texto editorial (para titulares clave) */
.marquee-text {
  overflow: hidden;
  position: relative;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-text .mq-track {
  display: inline-flex;
  white-space: nowrap;
  animation: mqSlide 40s linear infinite;
  gap: 4rem;
}
.marquee-text .mq-track:hover { animation-play-state: paused; }
.marquee-text .mq-track span {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--bone);
  letter-spacing: -0.02em;
}
.marquee-text .mq-track em {
  font-family: var(--font-italic);
  color: var(--accent-uv);
  font-style: italic;
}
.marquee-text .mq-track .glyph {
  color: var(--accent-glow);
  opacity: 0.6;
}
@keyframes mqSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 2. Hover reveal en cards (text aparece desde abajo al hover) */
.reveal-card {
  position: relative;
  overflow: hidden;
}
.reveal-card .reveal-content {
  transform: translateY(0);
  transition: transform 0.5s var(--ease);
}
.reveal-card .reveal-extra {
  position: absolute;
  bottom: -100%;
  left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(10,5,16,0.95));
  color: var(--silver-liquid);
  font-size: 0.9rem;
  line-height: 1.55;
  transition: bottom 0.5s var(--ease);
  pointer-events: none;
}
.reveal-card:hover .reveal-content { transform: translateY(-8px); }
.reveal-card:hover .reveal-extra { bottom: 0; }

/* 3. Tilt 3D sutil en cards de obra (sin requerir JS) */
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
}
.tilt-3d:hover {
  transform: perspective(900px) rotateX(-2deg) rotateY(2deg) translateY(-4px);
}

/* 4. Glow pulse en CTAs principales sin hover */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180, 127, 255, 0.4); }
  50%      { box-shadow: 0 0 0 16px rgba(180, 127, 255, 0); }
}
.cta-pulse {
  animation: ctaPulse 2.4s ease-in-out infinite;
}

/* 5. Letter spread on hover (titulares editoriales) */
.spread-on-hover {
  display: inline-block;
  transition: letter-spacing 0.6s var(--ease);
}
.spread-on-hover:hover { letter-spacing: 0.04em; }

/* 6. Underline UV growth desde izquierda */
.uv-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.uv-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent-uv);
  transition: width 0.45s var(--ease);
  box-shadow: 0 0 8px var(--accent-uv);
}
.uv-underline:hover::after { width: 100%; }

/* 7. Float sutil continuo (para glyphs decorativos) */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float-y { animation: floatY 5s ease-in-out infinite; }

@keyframes floatRotate {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(2deg); }
}
.float-rotate { animation: floatRotate 7s ease-in-out infinite; }

/* 8. Scroll-triggered text blur reveal */
.blur-reveal {
  filter: blur(8px);
  opacity: 0;
  transform: translateY(20px);
  transition: filter 1.2s var(--ease), opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.blur-reveal.is-in {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

/* 9. Magnetic image (sigue el cursor sutilmente) */
.magnet-img {
  transition: transform 0.4s var(--ease);
  transform-origin: center;
}
.magnet-img:hover { transform: scale(1.02); }

/* 10. Ripple en buttons UV al click */
.btn-uv, .btn-uv-solid, .uv-cta {
  position: relative;
  overflow: hidden;
}
.btn-uv::before, .btn-uv-solid::before {
  content: '';
  position: absolute;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(180, 127, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease), height 0.6s var(--ease);
  top: var(--ripple-y, 50%);
  left: var(--ripple-x, 50%);
  pointer-events: none;
}
.btn-uv:active::before, .btn-uv-solid:active::before {
  width: 400px; height: 400px;
}

/* 11. Section header divider — línea UV que crece al revelarse */
.section-divider {
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-uv), transparent);
  margin: 1.5rem auto;
  transition: width 1.4s var(--ease);
}
.section-divider.is-in { width: min(140px, 30%); }

/* 12. Stagger fade-in para listas (manual, faq, etc.) */
.list-stagger > * {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.list-stagger.is-in > *:nth-child(1) { transition-delay: 0.0s; }
.list-stagger.is-in > *:nth-child(2) { transition-delay: 0.08s; }
.list-stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
.list-stagger.is-in > *:nth-child(4) { transition-delay: 0.24s; }
.list-stagger.is-in > *:nth-child(5) { transition-delay: 0.32s; }
.list-stagger.is-in > *:nth-child(6) { transition-delay: 0.40s; }
.list-stagger.is-in > *:nth-child(7) { transition-delay: 0.48s; }
.list-stagger.is-in > * { opacity: 1; transform: translateX(0); }

/* 13. Glyph rotación lenta para elementos sagrados */
.sacred-rotate { animation: sacredSpin 80s linear infinite; transform-origin: center; }
@keyframes sacredSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.sacred-rotate-rev { animation: sacredSpin 120s linear infinite reverse; transform-origin: center; }

/* 14. Hero text shimmer sutil sobre serif */
@keyframes uvShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.uv-shimmer {
  background: linear-gradient(90deg, var(--bone) 0%, var(--accent-uv) 50%, var(--bone) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: uvShimmer 6s ease-in-out infinite;
}

/* 15. Respeto a reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-text .mq-track,
  .sacred-rotate,
  .sacred-rotate-rev,
  .float-y,
  .float-rotate,
  .cta-pulse,
  .uv-shimmer { animation: none !important; }
  .blur-reveal { filter: none; opacity: 1; transform: none; }
}

/* ============================================================
   ACCESIBILIDAD · WCAG 2.1 AA
   ============================================================ */

/* Focus visible UV en todos los elementos focusables */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
.intent-pill:focus-visible,
.cal-day:focus-visible,
.slot:focus-visible,
.piece:focus-visible,
.ig-tile:focus-visible,
.faq-item:focus-visible {
  outline: 2px solid var(--accent-uv) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 16px rgba(180, 127, 255, 0.4) !important;
}

/* Skip link · saltar al contenido principal con teclado */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent-uv);
  color: var(--obsidian);
  padding: 12px 24px;
  font-family: var(--font-grotesk);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.3s var(--ease);
}
.skip-link:focus {
  top: 0;
  outline: none;
  box-shadow: 0 0 24px rgba(180, 127, 255, 0.5);
}

/* Screen reader only · visualmente oculto pero accesible para lectores */
.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;
}

/* ═══════════════════════════════════════════════════════════════════
   RETOQUES PREMIUM · atmósfera cinematográfica + detalle · 2026
   ═══════════════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }

::selection { background: rgba(180,127,255,0.28); color: var(--bone); }

* { scrollbar-width: thin; scrollbar-color: var(--violet-mid) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-deeper); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--violet-mid), var(--violet-core));
  border-radius: 20px; border: 3px solid var(--bg-deeper);
}
::-webkit-scrollbar-thumb:hover { background: var(--violet-glow); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 1px solid var(--accent-uv); outline-offset: 3px; border-radius: 2px;
}

/* Profundidad ambiental — glows violeta que dan cuerpo al negro plano */
html::before {
  content: ''; position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  display: none;
  background:
    radial-gradient(48% 40% at 14% 10%, rgba(79,38,133,0.40) 0%, transparent 62%),
    radial-gradient(46% 38% at 88% 82%, rgba(146,104,208,0.24) 0%, transparent 64%),
    radial-gradient(60% 50% at 50% 128%, rgba(40,16,69,0.55) 0%, transparent 72%);
}

/* Grano de película — textura fina sobre todo el sitio */
html::after {
  content: ''; position: fixed; inset: 0; z-index: 9996; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Viñeta cinematográfica */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 9992; pointer-events: none;
  box-shadow: inset 0 0 240px 40px rgba(3,1,6,0.78);
}

/* Marco editorial — hairlines verticales que enmarcan el contenido (solo desktop) */
@media (min-width: 1000px) {
  body::after {
    content: ''; position: fixed; top: 0; bottom: 0; left: 2.2rem; right: 2.2rem;
    z-index: 9993; pointer-events: none;
    border-left: 1px solid rgba(155,109,216,0.10);
    border-right: 1px solid rgba(155,109,216,0.10);
  }
}


/* Enlaces de texto en prosa: subrayado elegante en hover */
.section p a:not(.btn), .section-breath p a:not(.btn), .story-block a:not(.btn), .faq-a a {
  color: var(--accent-uv); text-decoration: none;
  background-image: linear-gradient(var(--accent-uv), var(--accent-uv));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--t-med) var(--ease);
}
.section p a:not(.btn):hover, .section-breath p a:not(.btn):hover, .story-block a:not(.btn):hover, .faq-a a:hover {
  background-size: 100% 1px;
}

/* ── Layout premium desktop · ¿Qué es? a dos columnas ── */
.about-intro { padding: var(--space-xl) 0; }
.about-grid { display: grid; gap: 3rem; align-items: center; }
.about-title { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.05; margin-top: 1rem; }
.about-lead { margin-top: 1.5rem; font-size: 1.15rem; color: var(--bone); }
.about-figure { margin: 0; }
.about-figure-inner { aspect-ratio: 4/5; overflow: hidden; }
.about-figure-inner img { width: 100%; height: 100%; object-fit: cover; filter: url(#duotone-violet); transition: transform 1.4s var(--ease); }
.about-figure:hover .about-figure-inner img { transform: scale(1.05); }
.about-figure figcaption { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .5; margin-top: 1rem; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.05fr 0.85fr; gap: 5rem; }
}

/* ── Ciudades como tarjetas editoriales ── */
.cities .elements-row { counter-reset: city; gap: 1.25rem; }
.cities .element {
  position: relative; border: 1px solid var(--line);
  padding: 2.75rem 1.5rem 2.25rem;
  background: linear-gradient(180deg, rgba(79,38,133,0.05), transparent);
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.cities .element:hover {
  border-color: rgba(180,127,255,0.5); transform: translateY(-6px);
  background: linear-gradient(180deg, rgba(79,38,133,0.12), transparent);
}
.cities .element::before {
  counter-increment: city; content: '0' counter(city);
  position: absolute; top: 1rem; right: 1.2rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  color: var(--accent-uv); opacity: .55;
}
.cities .element h3 { font-size: 1.55rem; margin-top: .3rem; }

/* ═══════════════════════════════════════════════════════════════════
   ESTÉTICA v2 · fusión del concepto inmersivo sobre el sitio real
   ═══════════════════════════════════════════════════════════════════ */

/* Ken Burns — vida cinematográfica en el hero */
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.16); } }


/* Reveal cinematográfico: sube + escala sutil (más premium que solo fade) */
body .anim { transform: translateY(34px) scale(0.986); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
body .anim.is-in { transform: translateY(0) scale(1); }

/* Tipografía display más dramática en desktop */
@media (min-width: 900px) {
  .hero-home h1 { font-size: clamp(3.6rem, 8.6vw, 8.4rem) !important; letter-spacing: -0.022em; line-height: 0.92; }
  .about-title { font-size: clamp(2.4rem, 4.4vw, 3.8rem) !important; }
}

/* Tratamiento cinematográfico + hover envolvente en la obra */
.gallery .piece img, .collection-strip img, #flash img, .about-figure-inner img, .split-image-frame img {
  transition: transform 1.6s var(--ease), filter 1.3s var(--ease);
}
.gallery .piece:hover img, .collection-strip a:hover img, #flash > div:hover img { transform: scale(1.06); }

/* Pies de imagen editoriales en cursiva */
.about-figure figcaption, .card figcaption { font-family: var(--font-italic); font-style: italic; }

/* CTAs con expansión elegante al hover */
.btn-uv-solid { transition: letter-spacing var(--t-med) var(--ease), background var(--t-med) var(--ease), color var(--t-med) var(--ease); }
.btn-uv-solid:hover { letter-spacing: 0.16em; }

/* Cursiva serif en subtítulos poéticos de sección */
.section-breath .lead, .about-lead { font-family: var(--font-serif); }

/* ── Ritmo vertical · menos vacío, más intención ── */
body .section-breath { padding: 7.5rem 0; }
body .section { padding: 6rem 0; }
@media (max-width: 700px){
  body .section-breath { padding: 4.5rem 0; }
  body .section { padding: 4rem 0; }
}

/* ── FIX QA · cursor del sistema (el custom se perdía y pesaba) ── */
body, a, button, input, textarea, select, .piece, .ig-tile, .btn, .cal-day, .slot, .intent-pill { cursor: auto !important; }
a, button, .btn, .piece, .ig-tile, .intent-pill, [role="button"], label { cursor: pointer !important; }
.cursor-dot, .cursor-ring, .cursor-label { display: none !important; }

/* ── FIX QA · ¿Qué es? · foto contenida y centrada ── */
.about-figure-inner { aspect-ratio: auto; height: clamp(340px, 40vw, 540px); }
.about-figure-inner img { object-position: center 40%; }
@media (max-width: 899px) {
  .about-figure { max-width: 460px; margin: 2.5rem auto 0; }
  .about-figure-inner { height: auto; aspect-ratio: 4/5; }
}

/* ── ¿Qué es? · figura más estética (marco fino + encuadre) ── */
.about-figure-inner { border: 1px solid rgba(180,127,255,.22); }
.about-figure-inner img { object-position: center 45%; }
.about-figure figcaption { text-align: right; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 0.92fr; gap: 4.5rem; align-items: center; }
  .about-figure-inner { height: clamp(420px, 46vw, 600px); }
}

/* ── ¿Qué es? · AUTORIDAD FINAL · imagen contenida y sección pareja ── */
.about-intro .container { max-width: 1200px; }
.about-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 2.5rem !important; align-items: center !important; }
.about-figure { margin: 0 auto !important; max-width: 400px; width: 100%; }
.about-figure-inner { height: auto !important; aspect-ratio: 4/5 !important; overflow: hidden; border: 1px solid rgba(180,127,255,.22); }
.about-figure-inner img { width: 100%; height: 100%; object-fit: cover; object-position: center 42% !important; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.2fr 0.8fr !important; gap: 4rem !important; }
  .about-figure { max-width: 380px; margin: 0 !important; }
}

/* ── Vitrina · bucle infinito real (contenido duplicado + -50%) ── */
.ig-marquee { overflow: hidden; }
.ig-track { display: flex; gap: 0 !important; width: max-content; animation: marquee 80s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ig-track:hover { animation-play-state: paused; }

/* ── Selector de idioma ES | EN ── */
.lang-switch { display:inline-flex; gap:.45rem; align-items:center; font-family:var(--font-mono); font-size:.7rem; letter-spacing:.14em; margin-right:1.3rem; }
.lang-switch a { color:var(--silver-liquid); opacity:.5; text-decoration:none; transition:opacity var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.lang-switch a:hover, .lang-switch a[aria-current] { opacity:1; color:var(--accent-uv); }
.lang-switch span { opacity:.3; }

/* ── FIX QA móvil · ritmo vertical compacto (evita huecos negros en celular) ── */
@media (max-width: 700px){
  body .section, body .section-breath, .manifesto-block { padding-top: 2.6rem !important; padding-bottom: 2.6rem !important; }
  .rituals-header { margin-bottom: 1.9rem !important; }
  .ritual-card { padding: 1.6rem 1.4rem !important; }
  .rituals-grid { gap: 1.25rem !important; }
  .about-figure { margin-top: 1.5rem !important; }
}

/* ── FIX QA móvil · TODO centrado en celular ── */
@media (max-width: 700px){
  .about-intro, .about-intro .container, .rituals, .portal, .archive, .process, .process-list, .editorial-footer { text-align: center !important; }
  .about-grid, .rituals-grid { justify-items: center !important; }
  .about-figure, .about-figure figcaption { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
  .process-step { grid-template-columns: 1fr !important; justify-items: center !important; text-align: center !important; gap: .4rem !important; }
  .process-step > * { text-align: center !important; }
  .footer-grid { grid-template-columns: 1fr !important; justify-items: center !important; text-align: center !important; gap: 1.8rem !important; }
  .editorial-footer * { text-align: center !important; }
  .footer-base { flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important; gap: .6rem !important; }
}

/* ── FIX QA móvil · header centrado ── */
@media (max-width: 700px){
  .editorial-header .container { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: .55rem !important; text-align: center !important; }
  .editorial-header .brand-mark { text-align: center !important; }
  .editorial-header .header-actions { justify-content: center !important; width: auto !important; }
}
