:root {
    --rojo: #dc2626;
    --rojo-oscuro: #b91c1c;
    --rojo-claro: #fee2e2;
    --fondo: #f8fafc;
    --blanco: #ffffff;
    --texto: #1f2937;
    --texto-suave: #64748b;
    --borde: #e2e8f0;
    --sombra: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    background:
        radial-gradient(
            circle at top,
            rgba(220, 38, 38, 0.13),
            transparent 38%
        ),
        var(--fondo);
    color: var(--texto);
}

button,
input {
    font: inherit;
}

.pagina {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.tarjeta {
    width: 100%;
    max-width: 440px;
    background: var(--blanco);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    padding: 32px;
    box-shadow: var(--sombra);
}

.logo-contenedor {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 24px;
}

.logo-provisional {
    width: 105px;
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    background: var(--rojo);
    color: var(--blanco);
    font-size: 42px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.25);
}

.encabezado {
    text-align: center;
    margin-bottom: 28px;
}

.encabezado h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.7px;
}

.encabezado p {
    margin: 0;
    color: var(--texto-suave);
    line-height: 1.55;
    font-size: 16px;
}

.formulario {
    display: grid;
    gap: 18px;
}

.grupo {
    display: grid;
    gap: 8px;
}

.grupo label {
    font-size: 14px;
    font-weight: 750;
}

.campo {
    width: 100%;
    min-height: 55px;
    padding: 0 16px;
    border: 1px solid var(--borde);
    border-radius: 15px;
    background: var(--blanco);
    color: var(--texto);
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.campo:focus {
    border-color: var(--rojo);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.telefono-contenedor {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 10px;
}

.prefijo {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid var(--borde);
    border-radius: 15px;
    font-weight: 800;
}

.boton {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    padding: 0 20px;
    background: var(--rojo);
    color: var(--blanco);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(220, 38, 38, 0.22);
    transition:
        background 0.2s,
        transform 0.15s;
}

.boton:hover {
    background: var(--rojo-oscuro);
}

.boton:active {
    transform: translateY(1px);
}

.privacidad {
    margin: 0;
    text-align: center;
    color: var(--texto-suave);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 480px) {
    .pagina {
        align-items: flex-start;
        padding-top: 28px;
    }

    .tarjeta {
        padding: 26px 20px;
        border-radius: 22px;
    }

    .encabezado h1 {
        font-size: 28px;
    }

    .logo-provisional {
        width: 90px;
        height: 90px;
        font-size: 36px;
    }
}
