/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #eef2f7, #d9e2ec);
    color: #1e2a3e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
}

/* CONTENEDOR PRINCIPAL (tarjeta) */
.cert-container, .form-container {
    max-width: 1280px;
    margin: 0 auto;
    background: white;
    border-radius: 28px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.2s ease;
}

/* HEADER común */
.cert-header, .form-header {
    background: linear-gradient(135deg, #0b2b4f, #1a4a7a);
    padding: 1.5rem 2rem;
    text-align: center;
    color: white;
}

.cert-header img, .form-header img {
    height: 70px;
    margin-bottom: 0.5rem;
}

.cert-header h1, .form-header h1 {
    font-weight: 600;
    font-size: 1.8rem;
    letter-spacing: -0.3px;
    margin-top: 0.25rem;
}

/* CUERPO */
.cert-body {
    padding: 2rem;
}

/* FORMULARIO */
.form-body {
    padding: 2rem;
}

.input-group {
    margin-bottom: 1.8rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0b2b4f;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    transition: all 0.2s;
    background: #fefefe;
}

.input-group input:focus {
    border-color: #1a4a7a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 74, 122, 0.2);
}

.btn-submit {
    background: linear-gradient(135deg, #0b2b4f, #1a4a7a);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1e4468, #23668f);
    transform: scale(1.01);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* TARJETA INFO ESTUDIANTE */
.info-card {
    background: #f9fafc;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #e9edf2;
}

.info-card h2, .cursos-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    border-left: 5px solid #1a4a7a;
    padding-left: 12px;
    color: #0b2b4f;
}

/* TABLA DATOS PERSONALES */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 12px 8px;
    font-size: 0.95rem;
}

.info-table td:first-child {
    font-weight: 600;
    width: 30%;
    color: #1a4a7a;
    background: #f1f5f9;
    border-radius: 12px 0 0 12px;
}

/* TABLA CURSOS */
.cursos-section {
    margin-top: 1rem;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cursos-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.85rem;
    border-radius: 20px;
    overflow: hidden;
}

.cursos-table th {
    background: linear-gradient(120deg, #0b2b4f, #1e5a8a);
    color: white;
    font-weight: 600;
    padding: 14px 8px;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.cursos-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #eef2f6;
    transition: background 0.2s;
}

.cursos-table tr:hover td {
    background: #f0f6ff;
}

.cursos-table tr:nth-child(even) {
    background-color: #fafcff;
}

/* FOOTER INFORMACIÓN (contacto y fecha) */
.footer-info {
    margin-top: 2.5rem;
    text-align: center;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 1.2rem;
    font-size: 0.8rem;
    color: #2c3e50;
}

.footer-info b {
    color: #0b2b4f;
}

.fecha-consulta {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.75rem;
    color: #5b6e8c;
}

/* FOOTER GLOBAL (siempre abajo) */
.global-footer {
    background: #0b2b4f;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.7rem;
    margin-top: auto;
    width: 100%;
}

/* CAPTCHA */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* BOTÓN DESHABILITADO */
#submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

/* Ajuste para el formulario dentro de la tarjeta */
.form-body form {
    display: flex;
    flex-direction: column;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .cert-body { padding: 1rem; }
    .info-table td { display: block; width: 100%; }
    .info-table td:first-child { border-radius: 8px 8px 0 0; }
    .info-table tr { display: block; margin-bottom: 1rem; border: 1px solid #e2e8f0; border-radius: 12px; }
    .cursos-table th, .cursos-table td { padding: 8px 4px; font-size: 0.7rem; }
}