:root {
    --primary-color: #4e73df;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --dojo-blue: #00b9ff;
    --dojo-ink: #0a1f44;
    --dojo-border: #dbe2ff;

    /* Paleta moderna juvenil */
    --eb-primary: #6c5ce7;
    --eb-primary-dark: #5849c2;
    --eb-accent: #ff7ab6;
    --eb-success: #00d68f;
    --eb-info: #00b9ff;
    --eb-warn: #ffb547;
    --eb-bg-soft: #f4f6ff;
    --eb-radius-lg: 24px;
    --eb-radius-md: 18px;
    --eb-radius-sm: 14px;
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: var(--dojo-ink);
}

.navbar-brand {
    font-weight: 800;
}

.card {
    border: none;
    border-radius: var(--eb-radius-md);
    box-shadow: 0 8px 24px rgba(58, 59, 69, 0.08);
}

.btn-lg {
    min-width: 160px;
}

/* =========================================================
   Bootstrap overrides — estilo moderno, juvenil y redondeado
   ========================================================= */

/* --- Botones --- */
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    letter-spacing: 0.2px;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.18);
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(108, 92, 231, 0.28);
}

.btn:active {
    transform: translateY(0);
}

.btn-lg {
    min-width: 200px;
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    border-radius: 999px;
}

.btn-sm {
    border-radius: 999px;
    padding: 0.4rem 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6c5ce7 0%, #8a7bff 100%);
    border: none;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #5849c2 0%, #7869ff 100%);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #00d68f 0%, #36e8a6 100%);
    border: none;
    color: #043b27;
}

.btn-info {
    background: linear-gradient(135deg, #00b9ff 0%, #5cd4ff 100%);
    border: none;
    color: #003b5b;
}

.btn-outline-dark {
    border: 1px solid #aaa8a8;
    color: var(--dojo-ink);
    background: #fff;
    box-shadow: none;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background: var(--dojo-ink);
    color: #fff;
}

/* --- Inputs / Formularios --- */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dojo-ink);
    background-color: #f7f8fc;
    border: 2px solid #e6e9f5;
    border-radius: var(--eb-radius-sm);
    padding: 0.85rem 1.1rem;
    min-height: 56px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: none;
}

.form-control::placeholder {
    color: #9aa3c0;
    font-weight: 600;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus {
    background-color: #ffffff;
    border-color: var(--eb-primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15);
    outline: none;
}

.form-control-lg,
input.form-control-lg {
    font-size: 1.15rem;
    padding: 1rem 1.25rem;
    min-height: 64px;
    border-radius: var(--eb-radius-md);
}

.form-label {
    font-weight: 800;
    color: var(--dojo-ink);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-group-text {
    background: #fff;
    border: 2px solid #e6e9f5;
    border-radius: var(--eb-radius-sm);
    font-weight: 700;
    color: var(--eb-primary);
}

/* --- Modales --- */
.modal-content {
    border: none;
    border-radius: var(--eb-radius-lg);
    box-shadow: 0 30px 80px rgba(10, 31, 68, 0.25);
    overflow: hidden;
    background: #ffffff;
}

.modal-header {
    border-bottom: 1px solid #eef0fa;
    padding: 1.5rem 1.75rem;
}

.modal-title {
    font-weight: 900;
    color: var(--dojo-ink);
    font-size: 1.5rem;
    letter-spacing: -0.3px;
}

.modal-body {
    padding: 1.75rem;
}

.modal-footer {
    border-top: 1px solid #eef0fa;
    padding: 1.25rem 1.75rem;
}

.modal-dialog {
    margin: 1.5rem;
}

.modal-dialog-centered {
    min-height: calc(100% - 3rem);
}

@media (min-width: 576px) {
    .modal-dialog {
        margin: 1.75rem auto;
    }
    .modal-dialog:not(.modal-sm):not(.modal-lg):not(.modal-xl) {
        max-width: 520px;
    }
}

.btn-close {
    background-size: 1.1em;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Alertas dentro del modal */
.modal-body .alert {
    border: none;
    border-radius: var(--eb-radius-sm);
    font-weight: 700;
    padding: 0.85rem 1.1rem;
}

.modal-body .alert-danger {
    background: #ffe2ec;
    color: #b21f4d;
}

/* --- Tarjetas genéricas (refuerzo del look juvenil) --- */
.card-header,
.card-footer {
    background: transparent;
    border-color: #eef0fa;
    font-weight: 700;
    padding: 1rem 1.5rem;
}

/* --- Tablas, listas y otros elementos (look consistente) --- */
.table {
    --bs-table-border-color: #eef0fa;
    border-radius: var(--eb-radius-md);
    overflow: hidden;
}

/* =========================================================
   Landing tipo ClassDojo
   ========================================================= */
.landing-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    color: var(--dojo-ink);
    letter-spacing: -0.5px;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid var(--dojo-border);
    border-radius: var(--eb-radius-lg);
    padding: 32px 20px;
    text-decoration: none;
    color: var(--dojo-ink);
    min-height: 280px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.role-card:hover,
.role-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(10, 31, 68, 0.1);
    border-color: #b6c2ff;
    color: var(--dojo-ink);
    text-decoration: none;
}

.role-card__icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.role-card__icon svg {
    width: 64px;
    height: 64px;
}

.role-card__title {
    font-weight: 800;
    font-size: 1.35rem;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 18px;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-card__arrow {
    color: var(--dojo-blue);
    font-size: 1.6rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.role-card:hover .role-card__arrow {
    transform: translateX(4px);
}
