* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.header .icono {
    font-size: 60px;
}

.header h1 {
    color: #1a237e;
    font-size: 36px;
    margin: 10px 0 5px;
    letter-spacing: 3px;
}

.header p {
    color: #718096;
    font-size: 18px;
}

.buscador {
    text-align: center;
}

.buscador h2 {
    color: #1a237e;
    margin-bottom: 10px;
}

.descripcion {
    color: #718096;
    margin-bottom: 25px;
    font-size: 15px;
}

.form-busqueda {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.form-busqueda input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
    transition: all 0.3s;
}

.form-busqueda input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.form-busqueda button {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.form-busqueda button:hover {
    background: #1557b0;
    transform: translateY(-2px);
}

.alerta {
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 600;
}

.alerta.error {
    background: #fed7d7;
    color: #742a2a;
}

#resultados {
    margin-top: 30px;
}

#resultados h3 {
    color: #1a237e;
    margin-bottom: 15px;
}

.tabla-scroll {
    overflow-x: auto;
    max-height: 450px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

thead th {
    background: #1a237e;
    color: white;
    padding: 12px 10px;
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

tbody td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}

tbody tr:hover {
    background: #ebf4ff;
}

.btn-certificado {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-certificado:hover {
    background: #c53030;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    color: rgba(255,255,255,0.7);
    margin-top: 30px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .card {
        padding: 20px;
    }
    .form-busqueda {
        flex-direction: column;
    }
    .header h1 {
        font-size: 24px;
    }
}

.firmas {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    text-align: center;
}

.firma {
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nombre-firmante {
    font-weight: 700;
    color: #1a237e;
    font-size: 14px;
    margin-bottom: 3px;
}

.firma .linea {
    border-top: 1px solid #2d3748;
    width: 250px;
    padding-top: 5px;
    font-size: 12px;
    color: #718096;
}