.inscripcion-flow {
    margin-top: 28px;
    margin-bottom: 22px;
}

.inscripcion-flow h2 {
    margin: 0 0 10px;
    color: #1f2c3b;
}

.inscripcion-flow-lead {
    margin: 0 0 20px;
    color: #384655;
}

.inscripcion-flow-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.flow-card {
    background: #fbfcfd;
    border: 1px solid #d7dfe6;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 3px 12px rgba(22, 34, 45, 0.05);
}

.flow-card.is-expanded {
    border-color: #a5bccf;
    box-shadow: 0 10px 24px rgba(22, 34, 45, 0.12);
}

.flow-step-head {
    display: grid;
    gap: 8px;
}

.flow-card h3 {
    margin: 0 0 10px;
    color: #1f2f40;
}

.flow-step-summary {
    margin: 0;
    color: #506172;
    line-height: 1.4;
}

.flow-step-toggle {
    justify-self: start;
    border: 1px solid #8ba7bb;
    border-radius: 999px;
    background: #f1f7fb;
    color: #1d3b53;
    font: inherit;
    font-weight: 700;
    padding: 6px 14px;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.flow-step-toggle:hover,
.flow-step-toggle:focus-visible {
    background: #e4f0f8;
    border-color: #6a8ea9;
    transform: translateY(-1px);
    outline: none;
}

.flow-step-toggle.is-open {
    background: #d9eaf6;
    border-color: #5c84a1;
}

.flow-step-content {
    margin-top: 14px;
}

.flow-step1-note {
    margin: 0 0 12px;
    color: #3a4d60;
}

.flow-list {
    margin: 0;
    padding-left: 22px;
    color: #263544;
    line-height: 1.45;
}

.flow-list li + li {
    margin-top: 6px;
}

.admisiones-mail {
    color: #1f4f73;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    padding: 1px 3px;
    border-radius: 4px;
    transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.admisiones-mail:hover,
.admisiones-mail:focus-visible {
    color: #0f2a40;
    background-color: #d9ebf8;
    box-shadow: 0 0 0 2px rgba(94, 149, 191, 0.28);
}

.flow-level-tabs {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.flow-level-tab {
    text-align: left;
    width: 100%;
    border: 2px solid #bcc9d4;
    border-radius: 8px;
    background: #f5f8fb;
    color: #213142;
    font: inherit;
    font-weight: 700;
    padding: 10px 12px;
    cursor: pointer;
    transition: transform 130ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.flow-level-tab:hover {
    border-color: #95adc0;
    background: #ebf2f8;
    transform: translateY(-1px);
}

.flow-level-tab.is-active {
    border-color: #3e6d8e;
    background: #dbe9f5;
    color: #0f2234;
    box-shadow: 0 0 0 3px rgba(62, 109, 142, 0.18);
}

.agenda-section {
    margin-top: 26px;
    margin-bottom: 32px;
}

.agenda-card {
    --agenda-accent: #7fb5a4;
    --agenda-border: #c8d6de;
    --agenda-soft: #eef6f3;
    background: linear-gradient(135deg, #f8fbfd 0%, #eef4f8 55%, #edf7f3 100%);
    border: 2px dashed var(--agenda-border);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(20, 33, 61, 0.08);
    padding: 22px;
}

.agenda-card h2 {
    margin: 0 0 14px;
    color: #2f3f4f;
    letter-spacing: 0.01em;
}

.appointment-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
    gap: 18px;
    align-items: start;
}

.appointment-fields label {
    display: block;
    margin: 10px 0 8px;
    color: #3f4b57;
    font-weight: 600;
}

.appointment-fields input,
.appointment-fields select {
    width: 100%;
    border: 2px dashed var(--agenda-border);
    border-radius: 10px;
    background: #ffffff;
    color: #34414d;
    padding: 12px 14px;
    font: inherit;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.appointment-fields input::placeholder {
    color: #7b8896;
}

.appointment-fields input:focus,
.appointment-fields select:focus {
    border-color: var(--agenda-accent);
    box-shadow: 0 0 0 3px rgba(127, 181, 164, 0.2);
    background: #fdfefe;
}

.date-time-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.selected-time-text {
    margin: 10px 0 0;
    color: #4f6172;
    font-weight: 600;
}

.appointment-slots {
    display: grid;
    gap: 10px;
}

.slot-btn {
    border: 2px dashed var(--agenda-border);
    border-radius: 12px;
    background: #ffffff;
    color: #4d5d6e;
    font-size: 1.18rem;
    font-weight: 700;
    padding: 14px 10px;
    cursor: pointer;
    transition: transform 140ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.slot-btn:hover {
    transform: translateY(-1px);
    border-color: #96c2b4;
    box-shadow: 0 4px 12px rgba(127, 181, 164, 0.2);
}

.slot-btn.active {
    background: var(--agenda-soft);
    border-color: #89bfae;
    color: #355448;
}

.slot-btn.is-unavailable,
.slot-btn:disabled {
    cursor: not-allowed;
    transform: none;
    background: #f1f4f6;
    border-color: #cad4db;
    color: #8a98a5;
    box-shadow: none;
    text-decoration: line-through;
}

.confirm-btn {
    margin-top: 18px;
    width: min(420px, 100%);
    border: 2px dashed #a7cabc;
    border-radius: 12px;
    background: linear-gradient(180deg, #8fc9b7, #79b69f);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 13px 18px;
    cursor: pointer;
    transition: transform 160ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.confirm-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 8px 22px rgba(53, 84, 72, 0.2);
}

.confirm-btn:focus-visible {
    outline: 3px solid rgba(127, 181, 164, 0.35);
    outline-offset: 2px;
}

.appointment-message {
    min-height: 24px;
    margin: 12px 0 0;
    color: #4f6172;
    font-weight: 600;
}

.appointment-message.success {
    color: #2f6b57;
}

.appointment-message.error {
    color: #ad3a3a;
}

/* ========================================
   ESTILOS PARA VERIFICACIÓN SEGURA DE EMAIL
   ======================================== */

.paso-citas {
    transition: all 0.3s ease;
}

.paso-header-citas {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.numero-paso-citas {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.paso-header-citas h3 {
    margin: 0 0 5px 0;
    color: #1f2c3b;
    font-size: 20px;
}

.paso-header-citas p {
    margin: 0;
    color: #506172;
    font-size: 14px;
}

.form-verificacion {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #213142;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #d7dfe6;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #506172;
}

#codigo-entrada {
    font-size: 18px;
    letter-spacing: 5px;
    text-align: center;
}

.alerta {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.alerta-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alerta-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alerta-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.info-box {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.info-info {
    background-color: #e7f3ff;
    color: #004085;
    border-left-color: #004085;
}

.info-box p {
    margin: 0;
}

.verificado-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
    font-weight: normal;
}

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    transition: color 0.3s;
}

.btn-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.recaptcha-note-tramites {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e6ed;
    color: #506172;
}

.agenda-limit-note {
    margin: 0 0 10px;
    padding: 10px 12px;
    background: #fff6de;
    border: 1px solid #efd9a1;
    border-radius: 8px;
    color: #5f4a1e;
    font-size: 13px;
    line-height: 1.45;
}

.recaptcha-note-tramites a {
    color: #667eea;
    text-decoration: none;
}

.recaptcha-note-tramites a:hover {
    text-decoration: underline;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .paso-header-citas {
        gap: 12px;
    }

    .appointment-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .inscripcion-flow-grid {
        grid-template-columns: 1fr;
    }

    .appointment-grid {
        grid-template-columns: 1fr;
    }

    .appointment-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .slot-btn {
        font-size: 1.02rem;
        padding: 12px 8px;
    }
}

@media (max-width: 560px) {
    .agenda-card {
        padding: 16px;
    }

    .date-time-row {
        grid-template-columns: 1fr;
    }

    .appointment-slots {
        grid-template-columns: 1fr;
    }

    .confirm-btn {
        font-size: 1.12rem;
    }
}
