/* ==========================================================================
   SHERYNA — Hoja de estilos principal
   1. Tokens de diseño      6. Eventos
   2. Base / reset          7. Música
   3. Navegación            8. Contacto
   4. Hero                  9. Footer
   5. Sobre mí / Galería   10. Utilidades y responsive
   ========================================================================== */

/* ==========================================================================
   1. TOKENS DE DISEÑO
   ========================================================================== */

:root {
  /* --- Color: superficies --- */
  --color-bg: #000000;
  --color-surface: #1d1d1f;
  --color-surface-soft: rgba(255, 255, 255, .03);
  --color-surface-input: rgba(255, 255, 255, .04);
  --color-overlay: rgba(10, 10, 10, .7);
  --color-overlay-solid: rgba(10, 10, 10, .98);

  /* --- Color: bordes --- */
  --color-border: rgba(255, 255, 255, .08);
  --color-border-soft: rgba(255, 255, 255, .06);
  --color-border-strong: rgba(255, 255, 255, .15);

  /* --- Color: texto --- */
  --color-text: #f5f5f7;
  --color-text-soft: #cccccc;
  --color-text-muted: #86868b;

  /* --- Color: acento --- */
  --color-accent: #d2d2d7;
  --color-on-accent: #0a0a0a;
  /* texto sobre fondo de acento — contraste 15.1:1 */
  --color-accent-glow: rgba(210, 210, 215, .40);
  --color-accent-veil: rgba(210, 210, 215, .20);
  --color-accent-mist: rgba(210, 210, 215, .08);

  /* --- Color: estado --- */
  --color-success: #4ade80;
  --color-danger: #f87171;
  --color-focus: #7cc3ff;

  /* --- Tipografía --- */
  --font-base: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: .7rem;
  --fs-sm: .8rem;
  --fs-md: .9rem;
  --fs-lg: 1.2rem;
  --ls-tight: 1px;
  --ls-base: 2px;
  --ls-wide: 3px;
  --ls-xwide: 6px;

  /* --- Layout --- */
  --container-max: 1200px;
  --container-width: 92%;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --section-pad: clamp(60px, 10vw, 120px);
  --nav-pad-y: 16px;

  /* --- Capas --- */
  --z-orb: 0;
  --z-nav: 100;
  --z-menu: 105;
  --z-hamburger: 110;
  --z-dropdown: 200;
  --z-lightbox: 300;

  /* --- Movimiento --- */
  --t-fast: .2s;
  --t-base: .3s;
  --t-slow: .6s;
  --ease: ease-out;
}

/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

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

/* <picture> es inline por defecto: sin esto, el height:100% de las imágenes
   del hero, el retrato y la galería no tendría contenedor contra el que
   resolverse y las fotos colapsarían. */
picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* Foco visible y consistente en todo el sitio (accesibilidad por teclado) */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container-width), var(--container-max));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

section {
  padding: var(--section-pad) 0;
}

.section-tag {
  font-size: var(--fs-xs);
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: var(--ls-base);
  margin-bottom: 40px;
  text-transform: uppercase;
}

/* ==========================================================================
   3. NAVEGACIÓN
   ========================================================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--nav-pad-y) 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--color-overlay);
  border-bottom: 1px solid var(--color-border-soft);
  transition: padding var(--t-base), background var(--t-base);
}

/* Estado al hacer scroll — reemplaza el estilo inline para no pisar el safe-area */
nav.is-scrolled {
  --nav-pad-y: 8px;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-base);
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--t-base);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 24px);
}

/* --- Botón hamburguesa --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: var(--z-hamburger);
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--t-base);
}

/* --- Selector de idioma --- */
.lang-switcher {
  position: relative;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t-base);
  padding: 4px;
}

.lang-btn:hover {
  color: var(--color-accent);
}

.lang-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.lang-menu {
  position: absolute;
  top: 180%;
  right: -10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 0;
  display: none;
  flex-direction: column;
  min-width: 140px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .8);
  z-index: var(--z-dropdown);
}

.lang-menu.is-open {
  display: flex;
  animation: fade-in var(--t-fast) var(--ease);
}

.lang-menu button {
  background: none;
  border: none;
  color: var(--color-text-soft);
  padding: 10px 16px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-tight);
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* Código de idioma: US / ES / UE */
.lang-code {
  flex: 0 0 26px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  color: var(--color-text-muted);
  transition: color var(--t-fast);
}

.lang-name {
  flex: 1 1 auto;
}

.lang-menu button:hover,
.lang-menu button.is-active {
  color: var(--color-text);
  background: rgba(255, 255, 255, .05);
}

.lang-menu button:hover .lang-code,
.lang-menu button.is-active .lang-code {
  color: var(--color-accent);
}

.lang-menu button.is-active::after {
  content: '✓';
  color: var(--color-accent);
  margin-left: auto;
}

/* --- Menú móvil --- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-overlay-solid);
  z-index: var(--z-menu);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: color var(--t-base);
}

.mobile-menu a:hover {
  color: var(--color-accent);
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  background: none;
  border: none;
  font-family: inherit;
  padding: 8px 14px;
}

/* ==========================================================================
   4. HERO
   ========================================================================== */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding: 100px 0 18vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* object-position centrado: cada recorte del <picture> ya viene encuadrado
   para su familia de dispositivos, así que cover solo debe recortar lo
   mínimo y de forma simétrica. Con `top` se descuadraría el encuadre wide. */
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.55) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, .1) 0%, rgba(10, 10, 10, .95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero-tag {
  font-size: .75rem;
  letter-spacing: var(--ls-xwide);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: var(--ls-xwide);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 16px;
}

.hero-title .accent {
  color: var(--color-accent);
  text-shadow: 0 0 40px var(--color-accent-glow);
}

.hero-sub {
  font-size: clamp(.85rem, 2vw, 1.1rem);
  color: var(--color-text-muted);
  font-weight: 300;
  letter-spacing: var(--ls-wide);
  margin-bottom: 40px;
}

.scroll-hint {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s infinite;
}

.scroll-hint span {
  font-size: .6rem;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.scroll-hint div {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

/* ==========================================================================
   5. SOBRE MÍ / GALERÍA
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}

.about-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.2);
}

.about-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-accent-veil);
  border-radius: var(--radius);
  pointer-events: none;
}

.about-text p {
  color: var(--color-text-soft);
  font-size: .95rem;
  margin-bottom: 20px;
  font-weight: 300;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.about-stats > div:last-child {
  text-align: center;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-accent);
}

.stat-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-base);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 4px;
  line-height: 1.6;
}

/* --- Galería --- */
.gallery-section {
  background: var(--color-surface);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  flex: 0 0 calc(33.333% - 11px);
  min-width: 260px;
  max-width: 380px;
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
  display: block;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow), filter var(--t-slow);
  filter: grayscale(.3);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.08);
  filter: grayscale(0);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(0, 0, 0, .95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
}

.lightbox.is-open {
  display: flex;
  animation: fade-in var(--t-fast) var(--ease);
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  line-height: 1;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-base);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-color: var(--color-accent);
}

.lightbox-close {
  top: max(20px, env(safe-area-inset-top));
  right: 20px;
}

.lightbox-nav.prev {
  left: 16px;
}

.lightbox-nav.next {
  right: 16px;
}

/* ==========================================================================
   6. EVENTOS
   ========================================================================== */

.events-list {
  display: flex;
  flex-direction: column;
}

.event-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border-soft);
  transition: padding var(--t-base);
}

.event-item:hover {
  padding-left: 12px;
}

.event-date {
  text-align: center;
}

.event-date .day {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}

.event-date .month {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.event-info h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: var(--ls-tight);
}

.event-info p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-top: 4px;
}

.event-btn {
  padding: 8px 24px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-base);
  text-transform: uppercase;
  font-weight: 600;
  transition: all var(--t-base);
  font-family: inherit;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
}

.event-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.event-item.is-past {
  opacity: .4;
  filter: grayscale(100%);
}

.event-item.is-past .event-btn {
  display: none;
}

.coming-soon {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--color-accent-veil);
  border-radius: var(--radius);
}

.coming-soon h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.coming-soon p {
  color: var(--color-text-muted);
  font-size: .85rem;
}

.coming-soon a {
  color: var(--color-accent);
}

/* ==========================================================================
   7. MÚSICA
   ========================================================================== */

.music-section {
  background: var(--color-surface);
}

.music-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.platform-card {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  transition: all .4s;
  cursor: pointer;
}

.platform-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-accent-mist);
}

.platform-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.platform-card h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: var(--ls-base);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.platform-card p {
  font-size: .75rem;
  color: var(--color-text-muted);
  letter-spacing: var(--ls-tight);
}

/* ==========================================================================
   8. CONTACTO
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  line-height: 1.8;
  margin-bottom: 32px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-base);
  font-size: var(--fs-md);
  font-weight: 600;
}

/* Contraste corregido: texto oscuro sobre el fondo claro de acento */
.social-link:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-on-accent);
  transform: scale(1.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  background: var(--color-surface-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--color-text);
  font-family: inherit;
  font-size: .85rem;
  transition: border var(--t-base);
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
}

.contact-form textarea {
  min-height: 120px;
}

/* Campo trampa anti-spam — oculto para personas, visible para bots */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Contraste corregido: antes era #fff sobre #d2d2d7 (1.51:1), ahora 15.1:1 */
.submit-btn {
  padding: 14px 36px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-base);
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t-base);
}

.submit-btn:hover:not(:disabled) {
  box-shadow: 0 0 30px var(--color-accent-glow);
  transform: translateY(-2px);
}

.submit-btn:disabled {
  opacity: .7;
  cursor: wait;
}

.form-status {
  margin-top: 15px;
  font-size: .85rem;
  letter-spacing: var(--ls-tight);
  transition: opacity var(--t-base);
  text-align: center;
  min-height: 20px;
}

.form-status.is-success {
  color: var(--color-success);
}

.form-status.is-error {
  color: var(--color-danger);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

footer {
  border-top: 1px solid var(--color-border-soft);
  padding: 40px 0;
  text-align: center;
}

footer p {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--ls-base);
}

.footer-credit {
  margin-top: 12px;
  font-size: .65rem;
  letter-spacing: 1.5px;
}

.footer-credit a {
  color: var(--color-accent);
  transition: opacity var(--t-base);
}

.footer-credit a:hover {
  opacity: .7;
}

/* ==========================================================================
   10. UTILIDADES Y RESPONSIVE
   ========================================================================== */

.glow-orb {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent-mist) 0%, transparent 70%);
  pointer-events: none;
  z-index: var(--z-orb);
  filter: blur(40px);
  will-change: transform;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-img {
    max-width: 400px;
    margin: 0 auto 20px;
  }

  /* El botón de mapa baja a una segunda fila alineado con el texto, en vez de
     ocultarse: en móvil es justo donde más se usa. */
  .event-item {
    grid-template-columns: 72px 1fr;
    gap: 6px 16px;
    align-items: start;
  }

  .event-btn {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
    padding: 7px 18px;
  }

  .gallery-grid {
    gap: 8px;
  }

  .gallery-item {
    flex: 0 0 calc(50% - 4px);
    min-width: 0;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: 4px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: 6px;
  }

  .gallery-item {
    flex: 0 0 calc(50% - 3px);
    min-width: 0;
  }

  .music-platforms {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2rem, 12vw, 3rem);
    letter-spacing: var(--ls-base);
  }

  .contact-grid {
    gap: 40px;
  }
}

/* Respeta la preferencia del sistema de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .glow-orb {
    display: none;
  }
}

/* Área segura en iPhones con notch — se apoya en --nav-pad-y, por lo que el
   estado .is-scrolled ya no la sobrescribe (antes se pisaba con estilo inline) */
@supports (padding: env(safe-area-inset-top)) {
  nav {
    padding-top: calc(var(--nav-pad-y) + env(safe-area-inset-top));
  }

  footer {
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
}
