/* Lo común a todas las pantallas: la letra, los colores de la maqueta aprobada, campos, botones y avisos.
   acceso.css (entrar, registro, correo, contraseña) y dentro.css (tus negocios, mi cuenta) van encima. */

/* Plus Jakarta Sans, servida desde aquí (licencia OFL en fuentes/): sin pedir nada a Google en cada visita. */
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../fuentes/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
        U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../fuentes/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    --letra: "Plus Jakarta Sans", system-ui, sans-serif;
    --tinta: #0B1630;
    --tinta-media: #333C50;
    --gris: #4B5568;
    --gris-icono: #6B7489;
    --borde: #D5DBE5;
    --linea: #E3E8EF;
    --linea-suave: #EEF1F6;
    --fondo: #F6F8FC;
    --campo: #FBFCFE;
    --marca: #061433;
    --azul: #0052D4;
    --azul-vivo: #3668FF;
    --enlace: #0047B8;
    --enlace-encima: #003EA1;
    --verde: #15803D;
    --rojo: #B42318;
    --degradado: linear-gradient(135deg, #0052D4 0%, #4364F7 60%, #5B8CFA 100%);
    /* El fondo de marca: dos brillos azules y una rejilla fina sobre azul noche. */
    --fondo-marca:
        radial-gradient(900px 600px at 12% 8%, rgba(54, 104, 255, .55), transparent 60%),
        radial-gradient(700px 520px at 92% 88%, rgba(90, 200, 250, .32), transparent 60%),
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px,
        #061433;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--letra); color: var(--tinta); background: var(--fondo); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: var(--enlace); }
a:hover { color: var(--enlace-encima); }
input, button { font: inherit; }
[hidden] { display: none !important; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Campos ─────────────────────────────────────────────────────────────────────────────────── */
.campos { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.fila { display: flex; flex-wrap: wrap; gap: 10px; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.fila > .campo { flex: 1 1 130px; }
.fila > .campo.largo { flex-basis: 170px; }
.campo-cabeza { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.campo-cabeza a { font-size: 13px; font-weight: 600; }
.entrada {
    width: 100%; height: 45px; padding: 0 14px;
    border: 1px solid var(--borde); border-radius: 12px; background: var(--campo);
    font-size: 15px; font-weight: 400; color: var(--tinta);
}
.entrada:focus { outline: none; border-color: var(--azul-vivo); background: #FFFFFF; box-shadow: 0 0 0 1px var(--azul-vivo), 0 0 0 5px rgba(54, 104, 255, .14); }
.con-icono { position: relative; display: flex; }
.con-icono svg { position: absolute; left: 14px; top: 14px; color: var(--gris-icono); pointer-events: none; }
.con-icono .entrada { padding-left: 42px; }
.casilla { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.45; color: var(--gris); }
.casilla input { width: 16px; height: 16px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--azul); }

/* ── Botones ────────────────────────────────────────────────────────────────────────────────── */
.boton {
    height: 48px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--degradado); color: #FFFFFF; font-size: 16px; font-weight: 700; text-decoration: none;
    box-shadow: 0 14px 28px -12px rgba(0, 82, 212, .65);
}
.boton:hover { color: #FFFFFF; filter: brightness(1.06); }
.boton:focus-visible, .boton-claro:focus-visible { outline: 3px solid rgba(54, 104, 255, .45); outline-offset: 2px; }
.boton-claro {
    height: 42px; padding: 0 20px; border: 1px solid var(--borde); border-radius: 12px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: #FFFFFF; color: var(--tinta); font-size: 14px; font-weight: 700; text-decoration: none;
}
.boton-claro:hover { color: var(--tinta); border-color: #B9C3D3; }
.boton.pequeno { height: 42px; padding: 0 18px; font-size: 14px; box-shadow: 0 12px 24px -12px rgba(0, 82, 212, .65); }

/* ── Avisos ─────────────────────────────────────────────────────────────────────────────────── */
.aviso, .error { padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; font-weight: 600; }
.aviso { background: #ECFDF3; color: var(--verde); box-shadow: inset 0 0 0 1px #BBEBCB; }
.error { background: #FEF3F2; color: var(--rojo); box-shadow: inset 0 0 0 1px #F2C4C4; }

/* ── Iniciales (avatar de una persona o un negocio) ─────────────────────────────────────────── */
.iniciales {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    color: #FFFFFF; font-weight: 800; background: linear-gradient(135deg, #4364F7, #6FB1FC);
}

/* Las páginas que aún no tienen diseño (la del negocio y la gestión, que llegan con el CRM). */
.provisional { max-width: 40rem; margin: 4rem auto; padding: 0 1rem; display: flex; flex-direction: column; gap: 1rem; }

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