/* =========================================================
   LEVION GROUP — Landing page
   Estilos personalizados (complementa a Tailwind)
   ========================================================= */

/* ---------------------------------------------------------
   TIPOGRAFÍA
   Principal: "Regesto Grotesk" (archivos de marca en /fonts).
   Secundaria: "Geist Mono", desde Google Fonts (<link> en el HTML).

   Los .woff2 de acá son la versión COMPLETA que mandó diseño: incluyen
   acentos, ñ y los signos ¿ ¡. (Los primeros que llegaron eran subsets de
   6 KB sin esos caracteres, por eso se veían con otra tipografía.)

   Se cargan solo los 3 pesos que usa la página:
     400 Regular  -> párrafos
     700 Bold     -> subtítulos, botones, negritas (font-bold)
     900 Black    -> títulos grandes (font-extrabold, declarado 800-900)
--------------------------------------------------------- */

@font-face {
    font-family: 'Regesto Grotesk';
    src: url('./fonts/RegestoGrotesk-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Regesto Grotesk';
    src: url('./fonts/RegestoGrotesk-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Regesto Grotesk';
    src: url('./fonts/RegestoGrotesk-Black.woff2') format('woff2');
    font-weight: 800 900;
    font-display: swap;
}


/* ---------------------------------------------------------
   FONDOS DE SECCIÓN
--------------------------------------------------------- */

/* Hero: almacén con un velo oscuro suave.
   El velo es más fuerte abajo a la izquierda (donde está el texto) y casi nulo
   arriba a la derecha, así se ve la foto pero el título mantiene contraste. */
.bg-hero {
    background-image:
        linear-gradient(100deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.55) 45%, rgba(17, 17, 17, 0.32) 100%),
        url('fondo_almacen.webp');
    background-size: cover;
    background-position: center;
}

/* Quiénes somos: degradado negro -> rojo provisto por el diseño */
.bg-quienes-somos {
    background-color: #111111;
    background-image: url('bg-quienes-somos.png');
    background-size: cover;
    background-position: center;
}

/* Cómo trabajamos: plano de ciudad provisto por diseño (sin texto).
   El degradado de arriba es un velo suave que mantiene legible el texto blanco
   sin tapar el plano. */
.bg-mapa {
    background-color: #7c7c7c;
    background-image:
        linear-gradient(rgba(90, 90, 90, 0.35), rgba(90, 90, 90, 0.35)),
        url('bg-mapa.jpg');
    background-size: cover;
    background-position: center;
}

/* ---------------------------------------------------------
   LÍNEA DE TIEMPO — "Cómo trabajamos"
--------------------------------------------------------- */
.timeline {
    position: relative;
}
/* Línea horizontal naranja (solo en desktop).
   top: 1.5rem = centro vertical del círculo (3rem de alto) para que la línea
   lo atraviese exactamente. */
.timeline__line {
    position: absolute;
    left: 0;
    right: 0;
    top: 1.5rem;
    height: 2px;
    background: #E72A00;
}
.timeline__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: #111111;
    border: 2px solid #E72A00;
    color: #E72A00;
    font-family: 'Geist Mono', monospace;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------------------------------------------------------
   BOTÓN FLOTANTE DE WHATSAPP
--------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}
.whatsapp-float svg {
    width: 2rem;
    height: 2rem;
    fill: #ffffff;
}

/* ---------------------------------------------------------
   FEEDBACK DEL FORMULARIO
--------------------------------------------------------- */
#form-status {
    display: none;
    font-family: 'Geist Mono', monospace;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}
#form-status.ok {
    display: block;
    background: #d8f5df;
    color: #0d5726;
    border: 1px solid #25D366;
}
#form-status.error {
    display: block;
    background: #fddede;
    color: #7a1000;
    border: 1px solid #E72A00;
}
#form-status.loading {
    display: block;
    background: #eeeeee;
    color: #333333;
    border: 1px solid #cccccc;
}

/* ---------------------------------------------------------
   ÍCONOS DE REDES (footer)
--------------------------------------------------------- */
.social-ico {
    display: inline-flex;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.social-ico:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

/* ---------------------------------------------------------
   MENÚ MOBILE SMOOTH
--------------------------------------------------------- */
#mobile-nav {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, opacity 0.35s ease-out;
}
#mobile-nav.mobile-nav-open {
    max-height: 500px;
    opacity: 1;
}

/* ---------------------------------------------------------
   PEQUEÑOS AJUSTES
--------------------------------------------------------- */
html { scroll-behavior: smooth; }

/* Compensa el header sticky al saltar con anclas */
section[id] { scroll-margin-top: 5rem; }

/* Animación de aparición al hacer scroll.
   IMPORTANTE: el estado "oculto" solo se aplica si el JS está activo
   (clase .js en <html>). Así, si el JS falla, el contenido SIEMPRE se ve. */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
