* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    color: #0f172a;
    min-height: 100vh;
}

.contenedor-principal {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card-formulario {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card-ancha {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

h1 {
    text-align: center;
    color: #1d4ed8;
    margin-bottom: 10px;
    font-size: 2rem;
}

.subtitulo {
    text-align: center;
    color: #475569;
    margin-bottom: 24px;
}

.campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #1e3a8a;
}

input {
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
}

select {
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
}

.btn-principal {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.btn-principal:hover {
    opacity: 0.95;
}

.alerta {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.exito {
    background: #dcfce7;
    color: #166534;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.tabla-resultados {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tabla-resultados th,
.tabla-resultados td {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
    font-size: 0.96rem;
}

.tabla-resultados th {
    background: #eff6ff;
    color: #1e3a8a;
}

.acciones-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.enlace-boton {
    text-decoration: none;
    background: #2563eb;
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: bold;
}

.enlace-boton.secundario {
    background: #64748b;
}

@media (max-width: 700px) {
    .tabla-resultados {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .card-formulario,
    .card-ancha {
        padding: 22px;
    }

    h1 {
        font-size: 1.7rem;
    }
}