/* opa.css — páginas de servicio del portal OPA */

:root {
    --fondo:       #f4f6f8;
    --tarjeta:     #ffffff;
    --texto:       #1f2933;
    --texto-tenue: #61707d;
    --acento:      #0b4f8a;
    --borde:       #dfe4ea;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    background-color: var(--fondo);
    color: var(--texto);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 24px;
}

.content {
    width: 100%;
    max-width: 480px;
    padding: 40px 32px;
    background-color: var(--tarjeta);
    border: 1px solid var(--borde);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.content h1 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.content p {
    margin: 0 0 12px;
    color: var(--texto-tenue);
}

.content p:last-child {
    margin-bottom: 0;
}

.content .volver {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--borde);
}

a {
    color: var(--acento);
    font-weight: 600;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

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

/* Indicador de carga: solo en la página de redirección */
.content.cargando::before {
    content: "";
    display: block;
    width: 34px;
    height: 34px;
    margin: 0 auto 20px;
    border: 3px solid var(--borde);
    border-top-color: var(--acento);
    border-radius: 50%;
    animation: girar 0.9s linear infinite;
}

@keyframes girar {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .content.cargando::before { animation: none; }
}
