/*
 * Estilos compartidos del sitio (portada y paginas legales).
 *
 * Linea visual: minimalista y futurista. Fondo casi negro, un solo acento
 * menta que brilla, tipografia geometrica (Geist) y etiquetas en mono.
 * Sin framework y sin build: se despliega en Cloudflare Pages tal cual.
 */

:root {
    --fondo:        #06080a;
    --fondo-alt:    #0a0e11;
    --superficie:   rgba(255, 255, 255, 0.028);
    --superficie-2: rgba(255, 255, 255, 0.05);
    --borde:        rgba(255, 255, 255, 0.08);
    --borde-fuerte: rgba(255, 255, 255, 0.16);

    --tinta:        #eef3f1;
    --tinta-suave:  #a6b3af;
    --tinta-tenue:  #6c7b77;

    --acento:       #3ef0a6;   /* menta electrica */
    --acento-2:     #38bdf8;   /* cian, solo en degradados */
    --acento-tenue: rgba(62, 240, 166, 0.1);
    --degradado:    linear-gradient(120deg, #3ef0a6 0%, #38bdf8 100%);
    --wa:           #25D366;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --ancho: 1080px;

    /* Titulares anchos y geometricos, texto tecnico legible y etiquetas de
       interfaz de nave: el trio que le quita a la web la cara de plantilla. */
    --display: "Unbounded", "Space Grotesk", system-ui, sans-serif;
    --fuente: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --mono:   "Chakra Petch", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--fondo); }

body {
    margin: 0;
    font-family: var(--fuente);
    color: var(--tinta);
    background: var(--fondo);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(62, 240, 166, 0.28); color: #fff; }

.envoltorio { max-width: var(--ancho); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 600; }
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.08rem; letter-spacing: -0.02em; }
p  { margin: 0 0 16px; }

a { color: var(--acento); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 6px; }

/* ============ BARRA ============ */
.barra {
    position: sticky; top: 0; z-index: 50;
    background: rgba(6, 8, 10, 0.72);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--borde);
}
.barra-interna {
    max-width: var(--ancho); margin: 0 auto; padding: 13px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.marca {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--tinta);
    letter-spacing: -0.02em; text-decoration: none;
}
.marca:hover { text-decoration: none; }
/* El logo es un JPG sobre fondo negro: en el tema oscuro se integra solo. */
.marca-logo {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
    background: #000; object-fit: cover; object-position: center 33%;
    box-shadow: 0 0 0 1px var(--borde);
}
.barra-enlaces { display: flex; align-items: center; gap: 26px; }
.barra-enlaces a { color: var(--tinta-suave); font-size: 0.9rem; font-weight: 500; transition: color 0.2s ease; }
.barra-enlaces a:hover { color: var(--tinta); text-decoration: none; }
@media (max-width: 760px) { .barra-enlaces .ocultar-movil { display: none; } }

/* ============ BOTONES ============ */
.boton {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 22px; border-radius: 100px;
    font: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.boton:hover { text-decoration: none; transform: translateY(-1px); }
.boton svg { width: 18px; height: 18px; flex-shrink: 0; }
.boton-wa, .barra-enlaces a.boton-wa {
    background: var(--degradado); color: #03140c;
    box-shadow: 0 0 0 1px rgba(62, 240, 166, 0.35), 0 8px 30px -8px rgba(62, 240, 166, 0.55);
}
.boton-wa:hover, .barra-enlaces a.boton-wa:hover {
    color: #03140c;
    box-shadow: 0 0 0 1px rgba(62, 240, 166, 0.6), 0 10px 40px -6px rgba(62, 240, 166, 0.75);
}
.boton-linea { background: var(--superficie); color: var(--tinta); border-color: var(--borde-fuerte); }
.boton-linea:hover { background: var(--superficie-2); border-color: rgba(255, 255, 255, 0.28); }

/* ============ PIE ============ */
.pie { padding: 56px 0 36px; font-size: 0.88rem; color: var(--tinta-tenue); border-top: 1px solid var(--borde); }
.pie-rejilla { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pie h4 {
    font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--tinta); margin: 0 0 12px;
}
.pie p { line-height: 1.9; }
.pie a { color: var(--tinta-suave); }
.pie a:hover { color: var(--tinta); }
.pie .legal {
    margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--borde);
    font-family: var(--mono); font-size: 0.74rem; line-height: 1.9; letter-spacing: 0.01em;
}

/* ============ BOTON FLOTANTE ============ */
.wa-flotante {
    position: fixed; right: 18px; bottom: 18px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--wa); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 30px -6px rgba(37, 211, 102, 0.6);
    transition: transform 0.2s ease;
}
.wa-flotante:hover { transform: scale(1.07); text-decoration: none; }
.wa-flotante svg { width: 29px; height: 29px; }

/* ============ PAGINAS LEGALES ============ */
.legal-texto { max-width: 760px; padding: 64px 22px; color: var(--tinta-suave); }
.legal-texto h1 { color: var(--tinta); }
.legal-texto h2 { margin-top: 42px; font-size: 1.25rem; color: var(--tinta); }
.legal-texto h2:first-of-type { margin-top: 24px; }
.legal-texto b { color: var(--tinta); font-weight: 600; }
.legal-texto ul { padding-left: 22px; }
.legal-texto li { margin-bottom: 9px; }
.legal-texto li::marker { color: var(--acento); }
.legal-texto .actualizado {
    font-family: var(--mono); font-size: 0.78rem; color: var(--tinta-tenue);
    text-transform: uppercase; letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
