/* ==========================================================================
   PÁGINA DE INICIO — hero de partículas + secciones
   Fondo negro #000000 · superficies #111111 / #1a1a1a · texto blanco y gris neutro
   Luz amarilla (#ffd24a) como único acento. Sin sombras: la profundidad sale de las superficies.
   ========================================================================== */

body.home-page {
    background-color: #000000;
    color: #bdbdbd;
}

.home-hero,
.home-about,
.home-what {
    font-family: 'Matter', 'Inter', 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Lienzo de partículas (fondo fijo) ---------- */
.hp-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
html.hp-on .hp-canvas { opacity: 1; }

/* ---------- Hero: título sobre la imagen ---------- */
.home-hero {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 81px); /* alto de ventana menos la barra de navegación */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px 120px;
}
/* Respaldo sin JavaScript / con "reducir movimiento": la misma imagen y el mismo velo, estáticos */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.58) 55%, #000000 100%),
        var(--hero-img);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
html.hp-on .hero-bg { visibility: hidden; }

.home-hero-title {
    margin: 0;
    max-width: 14ch;
    font-weight: 500;
    font-size: clamp(2.5rem, 7.2vw, 6rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #ffffff;
}
.home-hero-title span {
    color: #fff1bd;
    text-decoration: underline;
    text-decoration-color: rgba(255, 200, 40, 0.7);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.14em;
}

/* ---------- Descripción: columna estrecha para leer a gusto ---------- */
.home-about {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 80px 24px 20px;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: #bdbdbd;
}
.home-about p { margin: 0 0 24px; }

/* ---------- ¿Qué hacemos? ---------- */
.home-what {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
    padding: 68px 24px 120px;
    text-align: center;
}
.home-what-title {
    margin: 0 0 48px;
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #ffffff;
}
.home-what-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
/* Tarjeta de superficie (Liquid Kelp): 16px de radio, sin borde ni sombra */
.home-what-card {
    position: relative;
    flex: 1 1 280px;
    max-width: 360px;
    min-height: 190px;
    padding: 36px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
    text-decoration: none;
    color: #ffffff;
    background: #111111;
    border-radius: 16px;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}
.home-what-card i {
    font-size: 1.5rem;
    color: #ffd24a;
}
/* Botón de flecha (32×32, 6px) arriba a la derecha, como en la guía */
.home-what-card::after {
    content: "\2197";
    position: absolute;
    top: 36px;
    right: 36px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transition: background-color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-what-card:hover { transform: translateY(-4px); background: #1a1a1a; }
.home-what-card:hover::after { background: rgba(255, 210, 74, 0.2); transform: translate(2px, -2px); }
.home-what-card:active { transform: translateY(-2px) scale(0.99); }
.home-what-card:focus-visible { outline: 2px solid #ffd24a; outline-offset: 3px; }

/* Logo del proyecto insignia, centrado entre los dos botones */
.home-voces-logo {
    flex: 0 0 auto;
    width: 200px;
    padding: 24px 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}
.home-voces-logo:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.06); }
.home-voces-logo:active { transform: translateY(-2px) scale(0.98); }
.home-voces-logo:focus-visible { outline: 2px solid #ffd24a; outline-offset: 3px; }
/* El emblema provisional adopta la luz amarilla del inicio (el logo oficial lo reemplazará) */
.home-voces-logo .vlogo--placeholder { color: #ffd24a; }
.home-voces-logo .vlogo__text { color: #ffffff; }

@media (max-width: 900px) {
    .home-what-options { flex-direction: column; align-items: center; }
    .home-what-card { flex-basis: auto; width: 100%; max-width: 420px; }
    .home-voces-logo { width: 220px; }
}

@media (max-width: 600px) {
    .home-hero { padding-bottom: 80px; }
}

/* --- EFECTOS DE SCROLL ESTILO iOS (los valores se calculan en inicio_scroll.js: html.ios-fx) --- */
.ios-fx .home-hero,
.ios-fx [data-reveal] {
    will-change: opacity, translate, scale;
    transition: none;
}

/* Título: entrada al cargar la página */
.ios-fx .home-hero-title {
    animation: home-title-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes home-title-in {
    from { opacity: 0; transform: translateY(26px) scale(0.96); filter: blur(10px); letter-spacing: 0.02em; }
    to   { opacity: 1; transform: none; filter: blur(0); letter-spacing: -0.04em; }
}

@media (prefers-reduced-motion: reduce) {
    .home-what-card, .home-what-card::after, .home-voces-logo { transition: none; }
}
