/*
Theme Name: Exam Trainer
Theme URI: https://example.com
Author: Tu Nombre
Author URI: https://example.com
Description: Tema para plataforma de simulacros de examen de admisión, compatible con Elementor.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: exam-trainer
*/

/* --------- RESET SIMPLE --------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #111827;
}

a {
    color: #2563eb;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* --------- LAYOUT GENERAL --------- */

.site-header {
    background: #1f2937;
    color: #fff;
    padding: 0.75rem 1rem;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-title {
    margin: 0;
    font-size: 1.1rem;
}

.site-nav .et-main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
}

.site-nav .et-main-menu li {
    margin: 0;
    padding: 0;
}

.site-nav .et-main-menu a {
    font-size: 0.9rem;
    color: #e5e7eb;
}
.site-nav .et-main-menu a:hover {
    color: #ffffff;
}

.site-main,
.et-main {
    min-height: 70vh;
    padding: 1.5rem 1rem;
}

.site-footer {
    background: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
}

/* --------- CONTENEDOR --------- */
.et-container {
    max-width: 960px;
    margin: 0 auto;
}

/* --------- FORMULARIOS / BOTONES --------- */

.et-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.et-form-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.et-form-group {
    margin-bottom: 1rem;
}

.et-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.et-input,
.et-select,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    background: #fff;
}

/* Radios como tarjetas */
.et-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.et-radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    cursor: pointer;
}

.et-btn-primary {
    display: inline-block;
    text-align: center;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.et-btn-primary:hover {
    filter: brightness(1.05);
}

.et-btn-secondary {
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
}

/* --------- EXAMEN --------- */

.et-exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.et-progress {
    flex: 1;
    font-size: 0.85rem;
}

.et-progress-bar {
    margin-top: 0.25rem;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.et-progress-bar-fill {
    height: 100%;
    background: #10b981;
    width: 0;
}

.et-timer {
    font-size: 0.9rem;
    font-weight: 600;
}

.et-question-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.et-question-text {
    font-size: 1rem;
}

.et-question-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 0.75rem;
}

.et-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.et-option {
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: 0.95rem;
    cursor: pointer;
}

.et-option.is-selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.et-exam-footer {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* --------- RESULTADOS --------- */

.et-results-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.et-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}

.et-pill {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

/* --------- AUTH (LOGIN / REGISTRO) --------- */

.et-auth-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.et-auth-hero {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.4);
}

.et-auth-hero h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.et-auth-hero p {
    font-size: 0.95rem;
    color: #d1d5db;
    margin-bottom: 0.75rem;
}

.et-auth-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.et-auth-list li {
    margin-bottom: 0.3rem;
}

.et-auth-form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.et-auth-form-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.et-form-auth .et-form-group {
    margin-bottom: 0.9rem;
}

.et-auth-errors {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

/* --------- PANEL "MI CUENTA" --------- */

.et-account {
    margin: 1.5rem 0 2rem;
}

.et-account-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
}

.et-account-header p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #4b5563;
}

.et-account-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.et-account-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.et-account-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.et-account-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
}

.et-account-section h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.et-account-table-wrapper {
    overflow-x: auto;
}

.et-account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.et-account-table thead {
    background: #f3f4f6;
}

.et-account-table th,
.et-account-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

.et-account-table th {
    font-weight: 600;
    color: #374151;
}

.et-account-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.et-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.et-btn-link {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 0.8rem;
    color: #2563eb;
    text-decoration: none;
}

.et-btn-link:hover {
    text-decoration: underline;
}

.et-btn-link-secondary {
    color: #10b981;
}

/* --------- RESPONSIVE --------- */

@media (min-width: 768px) {
    .et-container {
        max-width: 960px;
    }

    .et-options {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .et-option {
        width: calc(50% - 0.25rem);
    }

    .et-auth-layout {
        flex-direction: row;
        align-items: stretch;
    }

    .et-auth-hero {
        flex: 1.2;
    }

    .et-auth-form-card {
        flex: 1;
    }

    .et-account-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .et-account-table {
        font-size: 0.9rem;
    }
}
