:root {
    --azul: #2563eb;
    --azul-oscuro: #1d4ed8;
    --fondo: #f5f7fb;
    --blanco: #ffffff;
    --texto: #172033;
    --secundario: #64748b;
    --borde: #e2e8f0;
    --verde: #15803d;
    --rojo: #dc2626;
    --radio: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--fondo);
    color: var(--texto);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

button, input, textarea, select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

a {
    color: var(--azul);
    text-decoration: none;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.contenedor {
    width: min(1440px, 94%);
    margin: 0 auto;
}

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    background: var(--azul);
    color: white;
    padding: 12px 18px;
    font-weight: 600;
    min-height: 44px;
}

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

.boton-secundario {
    background: white;
    color: var(--azul);
    border: 1px solid var(--borde);
}

.boton-secundario:hover {
    background: #eff6ff;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.campo label {
    font-weight: 600;
    font-size: 14px;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    border: 1px solid var(--borde);
    border-radius: 10px;
    background: white;
    padding: 12px;
    color: var(--texto);
}

.campo textarea {
    min-height: 110px;
    resize: vertical;
}

:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

.panel {
    background: white;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    padding: 24px;
}

.notificacion {
    position: fixed;
    z-index: 9999;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    background: #172033;
    color: white;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 8px 24px #0002;
}

.notificacion[data-tipo="error"] {
    background: var(--rojo);
}

.notificacion[data-tipo="ok"] {
    background: var(--verde);
}

@media (max-width: 600px) {
    .contenedor {
        width: 94%;
    }

    .panel {
        padding: 16px;
    }
}
