/* =============================================================================
   AVRORA STUDIO — Home Page Styles  v2.0
   Cargado exclusivamente en page-home.php
   Referencia visual: frog.co, estudios Awwwards — editorial flat, sin adornos
   ============================================================================= */

/* ─── @font-face Manrope (autoalojada) ──────────────────────────────────── */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ─── Variables ──────────────────────────────────────────────────────────── */
:root {
  --bg:       #0A0A0A;
  --surface:  #111111;
  --black:    #000000;
  --line:     #1a1a1a;
  --text:     #FFFFFF;
  --muted:    #888989;
  --accent:   #E8341A;
  --accent-h: #C02A14;
  --font:     'Manrope', system-ui, -apple-system, sans-serif;
  --ease:     0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; background: none; border: none; }

::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: var(--line); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::selection { background: var(--accent); color: #fff; }

/* ─── Body ───────────────────────────────────────────────────────────────── */
body.avrora-home-page {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Ocultar estructura por defecto de Kadence ─────────────────────────── */
body.avrora-home-page #masthead,
body.avrora-home-page .site-header { display: none !important; }

body.avrora-home-page .site-footer,
body.avrora-home-page #colophon,
body.avrora-home-page .footer-html { display: none !important; }

/* Forzar que los wrappers de Kadence no restrinjan el ancho */
body.avrora-home-page #page,
body.avrora-home-page .site,
body.avrora-home-page #content,
body.avrora-home-page .site-content,
body.avrora-home-page #primary,
body.avrora-home-page .content-area {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

body.avrora-home-page .entry-content,
body.avrora-home-page article.page {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}


/* =============================================================================
   LAYOUT — CONTAINER
   ============================================================================= */
.av-container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.av-container-sm {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}


/* =============================================================================
   BOTONES
   ============================================================================= */
.av-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 0;          /* 0px en botones, per brief */
  transition: background var(--ease), transform var(--ease), color var(--ease);
  line-height: 1;
  white-space: nowrap;
}

.av-btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.av-btn-primary:hover,
.av-btn-primary:focus-visible {
  background: var(--accent-h);
  transform: translateY(-2px);
  outline: none;
}

.av-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.25);
}
.av-btn-ghost:hover,
.av-btn-ghost:focus-visible {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.5);
  outline: none;
}

/* Hero buttons larger */
.av-btn-hero {
  padding: 16px 40px;
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
}

/* Focus visible global */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* =============================================================================
   NAV
   ============================================================================= */
.av-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.av-nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

/* Padding horizontal 24 px móvil → 48 px desktop */
.av-nav .av-container {
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .av-nav .av-container { padding-inline: 48px; }
}

/* 3-column grid: logo | links centrados | cta */
.av-nav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

/* Logo — sólo el SVG, sin span extra */
.av-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.av-logo .av-logo-svg { display: block; }

/* Nav links (desktop) — centrados en la columna central */
.av-nav-links {
  display: none;
  list-style: none;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.av-nav-links a {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: #888989;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.av-nav-links a:hover { color: #FFFFFF; }

/* Nav right (col 3) */
.av-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

.av-nav-cta {
  display: none;
  padding: 10px 28px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  border-radius: 0;
  line-height: 1;
}

/* Hamburger toggle */
.av-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  width: 32px;
  background: transparent;
  border: none;
}

.av-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.av-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.av-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.av-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .av-nav-links { display: flex; }
  .av-nav-cta   { display: inline-flex; }
  .av-nav-toggle { display: none; }
}


/* =============================================================================
   MOBILE MENU — overlay fullscreen
   ============================================================================= */
.av-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

.av-mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.av-mobile-close {
  position: absolute;
  top: 20px;
  right: clamp(20px, 4vw, 48px);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  transition: color var(--ease);
}
.av-mobile-close:hover { color: var(--text); }

.av-mobile-menu nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.av-mobile-menu nav a {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--muted);
  transition: color var(--ease);
  display: block;
  padding: 4px 0;
}

.av-mobile-menu nav a:hover { color: var(--text); }


/* =============================================================================
   HERO — 100svh mínimo, logo monumental + texto centrado
   ============================================================================= */
.av-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px clamp(20px, 4vw, 48px) 100px;
  overflow: hidden;
}

/* Cuadrícula de fondo — sutil, no decorativa */
.av-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
  pointer-events: none;
}

/* Logo monumental */
.av-hero-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 52px;
}

.av-hero-logo { display: block; }

.av-hero-studio-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}

/* H1 */
.av-hero-h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 900px;
  margin-bottom: 24px;
}

.av-hero-h1 em {
  font-style: normal;
  color: var(--accent);
}

/* Subtítulo */
.av-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 44px;
}

/* Botones */
.av-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Scroll indicator */
.av-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity 0.4s ease;
}

.av-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--accent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6) translateY(-4px); }
  50%       { opacity: 1;   transform: scaleY(1)   translateY(0);    }
}

.av-scroll-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}


/* =============================================================================
   BARRA DE UBICACIONES — SEO local + separador visual
   ============================================================================= */
.av-locations-strip {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
}

.av-locations-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.av-location-item {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 16px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.av-location-item:last-child { border-right: none; }


/* =============================================================================
   SECCIONES — estilos comunes
   ============================================================================= */
.av-section-bg-surface { background: var(--surface); }
.av-section-bg-dark    { background: var(--bg); }

.av-section {
  padding: clamp(80px, 10vw, 130px) 0;
  position: relative;
}

/* Header de sección */
.av-section-head {
  margin-bottom: 64px;
}

.av-section-head.centered { text-align: center; }

/* Número decorativo de sección */
.av-section-deco {
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 800;
  line-height: 0.85;
  color: var(--accent);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  margin-bottom: -0.3em;
  display: block;
}

.av-section-h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 660px;
  margin-bottom: 20px;
}

.av-section-head.centered .av-section-h2 {
  margin-inline: auto;
}

.av-section-intro {
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
}

.av-section-head.centered .av-section-intro {
  margin-inline: auto;
}


/* =============================================================================
   SERVICIOS — grid 6 cards, gap 1px (el fondo del grid actúa como separador)
   ============================================================================= */
.av-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0;
}

@media (min-width: 600px)  { .av-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .av-services-grid { grid-template-columns: repeat(3, 1fr); } }

.av-service-card {
  background: var(--surface);
  padding: clamp(28px, 3vw, 36px) clamp(24px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
  border: 1px solid transparent; /* sobrescrito en hover */
  position: relative;
  overflow: hidden;
}

.av-service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.av-service-card:hover {
  background: #161616;
  transform: translateY(-4px);
  z-index: 1;
}

.av-service-card:hover::after {
  transform: scaleX(1);
}

/* Icono */
.av-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: border-color var(--ease), background var(--ease);
}

.av-service-card:hover .av-icon {
  border-color: var(--accent);
  background: rgba(232, 52, 26, 0.08);
}

.av-service-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.av-service-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.av-service-price {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
}

/* Flecha hover */
.av-service-arrow {
  color: var(--accent);
  opacity: 0;
  transition: opacity var(--ease), transform var(--ease);
  margin-top: auto;
  align-self: flex-end;
}

.av-service-card:hover .av-service-arrow {
  opacity: 1;
  transform: translateX(4px);
}


/* =============================================================================
   POR QUÉ AVRORA — 3 columnas con separadores verticales
   ============================================================================= */
.av-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .av-why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .av-why-item {
    padding: 0 clamp(28px, 3vw, 48px);
    border-right: 1px solid var(--line);
  }

  .av-why-item:first-child { padding-left: 0; }
  .av-why-item:last-child  { border-right: none; padding-right: 0; }
}

.av-why-num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.av-why-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.av-why-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}


/* =============================================================================
   FAQ — accordion nativo con details/summary
   ============================================================================= */
.av-faq-list {
  border-top: 1px solid var(--line);
}

.av-faq-item {
  border-bottom: 1px solid var(--line);
}

.av-faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  list-style: none;
  transition: color var(--ease);
  user-select: none;
}

.av-faq-item summary::-webkit-details-marker { display: none; }

.av-faq-item summary:hover { color: var(--accent); }

.av-faq-toggle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--accent);
  transition: transform var(--ease), border-color var(--ease);
  font-weight: 300;
  line-height: 1;
}

.av-faq-item[open] .av-faq-toggle {
  transform: rotate(45deg);
  border-color: var(--accent);
}

.av-faq-answer {
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
  color: var(--muted);
  line-height: 1.75;
  padding: 0 0 28px;
  max-width: 720px;
}


/* =============================================================================
   CTA FINAL — motivo SVG de fondo
   ============================================================================= */
.av-cta-section {
  background: var(--surface);
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 140px) 0;
}

/* SVG motivo de fondo */
.av-motivo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

.av-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.av-cta-h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 24px;
}

.av-cta-sub {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--muted);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.7;
  margin-bottom: 48px;
}

.av-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.av-cta-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.av-cta-note a {
  color: var(--muted);
  transition: color var(--ease);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.av-cta-note a:hover {
  color: var(--text);
  text-decoration-color: var(--muted);
}


/* =============================================================================
   FOOTER — #000000, 2 columnas
   ============================================================================= */
.av-footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 60px) 0;
}

.av-footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  text-align: center;
}

@media (min-width: 768px) {
  .av-footer-inner {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}

/* Columna izquierda: logo + tagline */
.av-footer-brand {}

.av-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 10px;
  justify-content: center;
}

@media (min-width: 768px) {
  .av-footer-logo { justify-content: flex-start; }
}

.av-footer-tagline {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Columna derecha: info + links */
.av-footer-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .av-footer-meta { align-items: flex-end; }
}

.av-footer-email {
  color: var(--muted);
  transition: color var(--ease);
}
.av-footer-email:hover { color: var(--text); }

.av-footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .av-footer-links { justify-content: flex-end; }
}

.av-footer-links a {
  color: var(--muted);
  font-size: 13px;
  transition: color var(--ease);
}
.av-footer-links a:hover { color: var(--text); }

.av-footer-copy {
  font-size: 12px;
  color: #444;
}


/* =============================================================================
   ANIMACIONES DE ENTRADA — Intersection Observer
   ============================================================================= */
.av-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.av-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger para cards */
.av-fade-up[data-delay="1"] { transition-delay: 0.1s; }
.av-fade-up[data-delay="2"] { transition-delay: 0.2s; }
.av-fade-up[data-delay="3"] { transition-delay: 0.3s; }
.av-fade-up[data-delay="4"] { transition-delay: 0.4s; }
.av-fade-up[data-delay="5"] { transition-delay: 0.5s; }
.av-fade-up[data-delay="6"] { transition-delay: 0.6s; }


/* =============================================================================
   ANIMACIÓN BARRAS DEL HERO — CSS @keyframes con stagger
   Las barras parten con opacity:0 en el SVG; JS añade .av-loaded al body
   ============================================================================= */
@keyframes barra-entrada {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: var(--op, 1); transform: translateY(0); }
}

body.av-loaded .av-hero-logo .av-barra {
  animation: barra-entrada 0.7s ease forwards;
}

body.av-loaded .av-hero-logo #barra-1 { animation-delay: 0.1s; }
body.av-loaded .av-hero-logo #barra-2 { animation-delay: 0.2s; }
body.av-loaded .av-hero-logo #barra-3 { animation-delay: 0.3s; }
body.av-loaded .av-hero-logo #barra-4 { animation-delay: 0.4s; }
body.av-loaded .av-hero-logo #barra-5 { animation-delay: 0.5s; }
body.av-loaded .av-hero-logo #barra-6 { animation-delay: 0.6s; }
body.av-loaded .av-hero-logo #barra-7 { animation-delay: 0.7s; }

/* ── Sintetizador continuo — activado por JS (.av-synth) ─────────────────── */
@keyframes synth {
  0%, 100% { transform: scaleY(var(--min, 0.2));  opacity: calc(var(--op, 1) * 0.6); }
  50%       { transform: scaleY(1);                opacity: var(--op, 1); }
}

.av-synth .av-barra {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation:
    synth var(--dur, 1.5s) ease-in-out infinite var(--phase, 0s) !important;
}


/* =============================================================================
   HERO BACKGROUND CAROUSEL — imágenes al ~40 % de opacidad
   ============================================================================= */
.av-hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.av-carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.av-carousel-slide.av-slide-active {
  opacity: 0.38;
}

/* Capa oscura sobre el carrusel para legibilidad del texto */
.av-hero-carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.55) 0%,
    rgba(10,10,10,0.35) 50%,
    rgba(10,10,10,0.65) 100%
  );
  pointer-events: none;
}

/* El grid y el contenido hero van por encima del carrusel */
.av-hero-grid  { z-index: 2; }
.av-hero-logo-wrap,
.av-hero-h1,
.av-hero-sub,
.av-hero-actions,
.av-scroll-hint { position: relative; z-index: 3; }


/* =============================================================================
   ACCESIBILIDAD
   ============================================================================= */
.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;
}

/* Respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .av-fade-up { opacity: 1 !important; transform: none !important; }
  .av-hero-logo .av-barra { opacity: var(--op, 1) !important; transform: none !important; }
}
