/* =========================================================================
   turnosOnline — main.css
   Las CSS vars del tema (--primario, --primario-hover, --acento,
   --texto-primario, --overlay-imagen) se inyectan inline desde header.jsp.
   ========================================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1f2937;
    background: #f3f4f6;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* Sticky footer: body es flex column, main toma el remanente */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > .global-footer { flex-shrink: 0; }

/* En mobile, dejar el footer pegado al contenido (sin sticky agresivo).
   El flex: 1 inflaba el espacio entre el ultimo boton y el footer. */
@media (max-width: 767px) {
    body { display: block; min-height: auto; }
    body > main { flex: none; }
    .global-footer { margin-top: 0; padding: 12px 16px; }
}

a { color: var(--acento); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================================================
   LOGIN — opcion B (card flotante sobre imagen full-bleed)
   ========================================================================= */
.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.login-bg { position: absolute; inset: 0; z-index: 0; }
.login-bg .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    animation: bgZoom 25s ease-out infinite alternate;
}
@keyframes bgZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.15); }
}
.login-bg .bg-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-imagen);
}

.login-card {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.30), 0 8px 16px rgba(0,0,0,0.10);
    animation: cardFadeIn 0.5s ease-out;
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.brand-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 24px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}
.login-subtitle {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin: 0 0 28px;
}

/* Alert (errores del WS / login fallido) */
.alert-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    line-height: 1.4;
}
.alert-msg i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* Form */
form { margin: 0; }
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
input[type="text"] {
    width: 100%;
    font-size: 18px;
    font-weight: 500;
    font-family: inherit;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    color: #111827;
    min-height: 48px;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input[type="text"]:focus {
    outline: none;
    border-color: var(--primario);
    background: white;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primario) 20%, transparent);
}
input[type="text"].error {
    border-color: #dc2626;
    background: #fef2f2;
}
.error-msg {
    color: #dc2626;
    font-size: 13px;
    margin: 6px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
/* display:flex pisa el attr HTML 'hidden'. Forzar none cuando esta presente. */
.error-msg[hidden] { display: none !important; }

/* Boton primary grande */
.btn-primary-lg {
    width: 100%;
    background: var(--primario);
    color: var(--texto-primario);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    padding: 14px 20px;
    cursor: pointer;
    margin-top: 20px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.05s;
}
.btn-primary-lg:hover { background: var(--primario-hover); }
.btn-primary-lg:active { transform: scale(0.99); }
.btn-primary-lg:disabled { opacity: 0.7; cursor: wait; }
.btn-primary-lg .arrow { transition: transform 0.2s; display: inline-block; }
.btn-primary-lg:hover .arrow { transform: translateX(4px); }

/* CTA compacto: misma identidad visual que .btn-primary-lg pero tamano inline.
   Padding/size pueden quedar overrideados por el contexto (.combo-card__cta, .sticky-bar). */
.btn-primary {
    background: var(--primario);
    color: var(--texto-primario);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, transform 0.15s;
}
.btn-primary:hover { background: var(--primario-hover); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.trust {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin: 18px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.trust i { color: var(--acento); font-size: 13px; }

.divider {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 24px 0 20px;
}

/* Contacto */
.contacto {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contacto li {
    font-size: 13px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contacto i { color: var(--acento); font-size: 15px; width: 18px; text-align: center; }
.contacto a { color: inherit; text-decoration: none; transition: color 0.15s; }
.contacto a:hover { color: var(--acento); text-decoration: underline; }

/* Footer del card login */
.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    font-size: 12px;
    color: #9ca3af;
}
.login-footer .jst-logo {
    height: 22px;
    opacity: 0.75;
    transition: opacity 0.15s;
}
.login-footer a:hover .jst-logo { opacity: 1; }
.login-footer-copy {
    color: #6b7280;
    font-weight: 500;
}

/* Footer global — barrita minima al pie. Logo a la altura de la tipografia. */
.global-footer {
    padding: 8px 16px;
    margin-top: 24px;
    border-top: 1px solid #e5e7eb;
    background: transparent;
}
.global-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11.5px;
    color: #9ca3af;
    line-height: 1;
}
.global-footer-jst {
    display: inline-flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.global-footer-jst:hover { opacity: 1; }
.global-footer-logo {
    height: 21px;          /* +50% sobre la tipografia (14px → 21px) */
    width: auto;
    display: block;
}
.global-footer-copy { color: #9ca3af; font-weight: 500; }

/* Login mobile */
@media (max-width: 767px) {
    .login-page {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
    }
    .login-bg { position: relative; height: 240px; flex: none; }
    .login-bg .bg-img { animation: none; transform: none; }
    .login-card {
        margin: -32px 16px 24px;
        padding: 32px 24px;
        max-width: none;
        width: auto;
    }
    .brand-logo { max-width: 160px; }
    .login-title { font-size: 24px; }
}
@media (max-width: 400px) {
    .login-card { padding: 24px 20px; margin: -24px 12px 24px; }
    .login-bg { height: 200px; }
    .brand-logo { max-width: 140px; }
}

/* =========================================================================
   TOPBAR (post-login)
   ========================================================================= */
.topbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.topbar-brand { display: flex; align-items: center; gap: 12px; }
.topbar-brand:hover { text-decoration: none; }
.topbar-logo { height: 36px; width: auto; }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Boton "Inicio" — claramente clickable */
.topbar-home {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primario);
    background: color-mix(in srgb, var(--primario) 10%, white);
    border: 1px solid color-mix(in srgb, var(--primario) 25%, white);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.15s;
}
.topbar-home:hover {
    background: var(--primario);
    color: var(--texto-primario);
    border-color: var(--primario);
    text-decoration: none;
}
.topbar-home i { font-size: 16px; }

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
    /* clave para que el ellipsis del hijo funcione */
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
}
.topbar-user-name {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Toma el espacio que sobra y se recorta solo si no entra. */
    flex: 1 1 auto;
    min-width: 0;
    max-width: 280px;
}
.topbar-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 13px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    /* Que el icono nunca se achique ni se corte. */
    flex-shrink: 0;
}
.topbar-logout:hover { background: #f3f4f6; color: var(--primario); text-decoration: none; }
.topbar-logout i { font-size: 16px; }
@media (max-width: 600px) {
    .topbar-inner { padding: 0 16px; }
    .topbar-logo { height: 30px; }
    .topbar-home { padding: 6px 10px; }
    .topbar-actions { gap: 4px; }
    /* "Salir" queda solo icono en mobile UNICAMENTE cuando esta tambien
       el boton "Inicio" (en /inicio, sin "Inicio", se mantiene "Salir"). */
    .topbar-home ~ .topbar-user .topbar-logout-label { display: none; }
    .topbar-home ~ .topbar-user .topbar-logout { padding: 8px 10px; }
    /* En mobile el nombre toma lo que sobra (con flex 1) — el max-width
       baja para no comerse al icono de Salir. */
    .topbar-user-name { max-width: 140px; font-size: 13.5px; }
    /* Ademas del topbar-actions, asegurar que se pueda achicar. */
    .topbar-actions { min-width: 0; flex: 1 1 auto; justify-content: flex-end; }
}

/* =========================================================================
   INICIO
   ========================================================================= */
.inicio-page { padding: 40px 24px; }
.inicio-container { max-width: 1100px; margin: 0 auto; }

.inicio-header {
    margin-bottom: 32px;
    text-align: center;
}
.inicio-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    color: #111827;
}
.inicio-header p { font-size: 16px; color: #6b7280; margin: 0; }

.proximo-turno-empty {
    background: white;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    margin-bottom: 32px;
}
.proximo-turno-empty i {
    font-size: 48px;
    color: var(--primario);
    opacity: 0.6;
    display: block;
    margin-bottom: 12px;
}
.proximo-turno-empty h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #374151;
}
.proximo-turno-empty p { font-size: 14px; color: #6b7280; margin: 0; }

/* Proximo turno (card real, no empty) — variante compacta del .turno-card */
.proximo-turno-section { margin-bottom: 32px; }
.proximo-turno-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b7280;
    margin-bottom: 10px;
    padding-left: 4px;
}
.proximo-turno-label i { color: var(--primario); font-size: 16px; }
.proximo-turno-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.proximo-turno-card + .proximo-turno-card { margin-top: 12px; }
.proximo-turno-card:hover {
    text-decoration: none;
    border-color: color-mix(in srgb, var(--primario) 45%, #e5e7eb);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.proximo-turno-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    color: #9ca3af;
}
.proximo-turno-cta i { font-size: 22px; color: var(--primario); }
.proximo-turno-mas {
    background: color-mix(in srgb, var(--primario) 12%, white);
    color: var(--primario);
    border: 1px solid color-mix(in srgb, var(--primario) 25%, white);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.ctas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.cta-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    color: inherit;
    text-decoration: none;
    transition: all 0.15s;
    position: relative;
    display: block;
}
.cta-card:hover {
    border-color: var(--primario);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none;
}
.cta-card i {
    font-size: 36px;
    color: var(--primario);
    display: block;
    margin-bottom: 12px;
}
.cta-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #111827;
}
.cta-card p {
    font-size: 13.5px;
    color: #6b7280;
    margin: 0;
}
.cta-disabled {
    opacity: 0.55;
    pointer-events: none;
}
.cta-soon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fef3c7;
    color: #92400e;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 999px;
}

/* (eliminado .inicio-footer — ahora se usa .global-footer en layout/footer.jsp) */

@media (max-width: 600px) {
    .inicio-page { padding: 24px 16px 16px; }
    .inicio-header h1 { font-size: 24px; }
    .ctas { grid-template-columns: 1fr; margin-bottom: 0; }
    .cta-card { padding: 24px 20px; }
    /* En mobile el turno-card colapsa a 2 cols y la 3ra fila queda libre.
       Movemos el chevron + chip al margen derecho de la fila de info. */
    .proximo-turno-card .proximo-turno-cta {
        grid-column: 2;
        grid-row: 1;
        flex-direction: row;
        align-self: start;
        justify-self: end;
    }
    .proximo-turno-cta i { font-size: 18px; }
}

/* =========================================================================
   WIZARD (pedir turno) — comun a todas las pantallas del wizard
   ========================================================================= */
.wizard-page {
    padding: 32px 24px 40px;
}
.wizard-container {
    max-width: 880px;
    margin: 0 auto;
}

.wizard-header {
    position: relative;
    text-align: center;
    margin-bottom: 28px;
    padding: 0 56px;
}
.wizard-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
    color: #111827;
}
.wizard-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}
.wizard-back {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 18px;
    transition: all 0.15s;
}
.wizard-back:hover {
    background: #f3f4f6;
    color: var(--primario);
    border-color: var(--primario);
    text-decoration: none;
}

/* Buscador dinamico */
.wizard-search {
    position: relative;
    margin-bottom: 20px;
}
.wizard-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    pointer-events: none;
}
.wizard-search input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.wizard-search input:focus {
    outline: none;
    border-color: var(--primario);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primario) 18%, transparent);
}

/* No results */
.no-results {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}
.no-results i {
    font-size: 36px;
    color: #d1d5db;
    display: block;
    margin-bottom: 10px;
}
.no-results p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* =========================================================================
   Paso 1: Modalidad (2 cards grandes)
   ========================================================================= */
.modalidad-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 16px;
}
.modalidad-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 40px 28px;
    text-align: center;
    color: inherit;
    text-decoration: none;
    transition: all 0.18s;
    display: block;
}
.modalidad-card:hover {
    border-color: var(--primario);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    transform: translateY(-3px);
    text-decoration: none;
}
.modalidad-card i {
    font-size: 48px;
    color: var(--primario);
    display: block;
    margin-bottom: 16px;
}
.modalidad-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111827;
    letter-spacing: -0.01em;
}
.modalidad-card p {
    font-size: 13.5px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}
@media (max-width: 600px) {
    .modalidad-grid { grid-template-columns: 1fr; gap: 14px; }
    .modalidad-card { padding: 32px 24px; }
}

/* =========================================================================
   Paso 2a: Grid de especialidades
   ========================================================================= */
.especialidad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.especialidad-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    line-height: 1.3;
}
.especialidad-card:hover {
    border-color: var(--primario);
    background: color-mix(in srgb, var(--primario) 4%, white);
    color: var(--primario);
    text-decoration: none;
}

/* Card destacada "Cualquier médico" (aparece arriba del grid cuando viene por especialidad) */
.cualquier-medico-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--primario) 8%, white),
        color-mix(in srgb, var(--acento) 6%, white));
    border: 1.5px solid color-mix(in srgb, var(--primario) 30%, white);
    border-radius: 14px;
    padding: 18px 22px;
    color: inherit;
    text-decoration: none;
    margin-bottom: 16px;
    transition: all 0.18s;
}
.cualquier-medico-card:hover {
    border-color: var(--primario);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--primario) 14%, white),
        color-mix(in srgb, var(--acento) 12%, white));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primario) 18%, transparent);
    transform: translateY(-1px);
    text-decoration: none;
}
.cualquier-medico-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primario);
    color: var(--texto-primario);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.cualquier-medico-info { flex: 1; min-width: 0; }
.cualquier-medico-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}
.cualquier-medico-subtitle {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
}
.cualquier-medico-chevron {
    color: var(--primario);
    font-size: 22px;
    flex-shrink: 0;
}

/* Subtítulo divisorio cuando hay card destacada + lista */
.medico-grid-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 10px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.medico-grid-titulo i { font-size: 16px; opacity: 0.7; }

/* =========================================================================
   Paso 2b: Grid de medicos
   ========================================================================= */
.medico-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}
.medico-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.15s;
}
.medico-card:hover {
    border-color: var(--primario);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-decoration: none;
}
.medico-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primario) 14%, white);
    color: var(--primario);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.medico-info { flex: 1; min-width: 0; }
.medico-nombre {
    font-size: 14.5px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.medico-especialidad {
    font-size: 12.5px;
    color: #6b7280;
}
.medico-chevron {
    color: #d1d5db;
    font-size: 18px;
    flex-shrink: 0;
}
.medico-card:hover .medico-chevron { color: var(--primario); }

/* =========================================================================
   Paso 3: Slots
   ========================================================================= */
.slot-fecha-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}
.slot-nav-btn {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}
.slot-nav-btn:hover {
    border-color: var(--primario);
    color: var(--primario);
    text-decoration: none;
}
.slot-nav-next { margin-left: auto; }

.slot-fecha-titulo {
    background: color-mix(in srgb, var(--primario) 10%, white);
    border: 1px solid color-mix(in srgb, var(--primario) 30%, white);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primario);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.slot-sucursal {
    font-size: 13.5px;
    color: #6b7280;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}
.slot-form { margin: 0; }
.slot-btn {
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #111827;
    cursor: pointer;
    transition: all 0.15s;
}
.slot-btn:hover {
    border-color: var(--primario);
    background: var(--primario);
    color: var(--texto-primario);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px color-mix(in srgb, var(--primario) 30%, transparent);
}

/* Grid de slots cuando vienen de distintos medicos (modoEspecialidad).
   Cada boton es mas alto y muestra hora + nombre del medico. */
.slot-grid-medico {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.slot-grid-medico .slot-btn {
    padding: 14px 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.2;
}
.slot-btn-hora {
    font-size: 19px;
    font-weight: 700;
    color: var(--primario);
}
.slot-grid-medico .slot-btn:hover .slot-btn-hora {
    color: var(--texto-primario);
}
.slot-btn-medico {
    font-size: 12.5px;
    font-weight: 500;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}
.slot-grid-medico .slot-btn:hover .slot-btn-medico {
    color: color-mix(in srgb, var(--texto-primario) 80%, transparent);
}

/* Slots en mobile: botones mas compactos para entrar 2 columnas en celular tipico. */
@media (max-width: 600px) {
    .slot-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    .slot-btn {
        padding: 11px 6px;
        font-size: 15px;
        border-radius: 9px;
    }
    .slot-grid-medico {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }
    .slot-grid-medico .slot-btn {
        padding: 10px 12px;
        gap: 2px;
    }
    .slot-btn-hora {
        font-size: 16px;
    }
    .slot-btn-medico {
        font-size: 11.5px;
    }
}

/* =========================================================================
   Paso 4: Confirmar
   ========================================================================= */
.resumen-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 28px 24px;
    margin-bottom: 20px;
}
.resumen-fecha {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f3f4f6;
    letter-spacing: -0.01em;
}
.resumen-fecha i { color: var(--primario); font-size: 24px; }
.resumen-hora { color: var(--primario); }

.resumen-detalle {
    margin: 0;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px 16px;
    font-size: 14px;
}
.resumen-detalle dt {
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 11.5px;
    padding-top: 3px;
}
.resumen-detalle dd { margin: 0; color: #1f2937; }
.text-muted { color: #9ca3af; }

@media (max-width: 600px) {
    .resumen-detalle { grid-template-columns: 1fr; gap: 4px 0; }
    .resumen-detalle dt { padding-top: 12px; }
    .resumen-detalle dt:first-child { padding-top: 0; }
}

.confirmar-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-secondary:hover {
    border-color: var(--primario);
    color: var(--primario);
    text-decoration: none;
}

/* =========================================================================
   Paso 5: Confirmado
   ========================================================================= */
.confirmado-hero {
    text-align: center;
    margin-bottom: 24px;
}
.confirmado-check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    margin: 0 auto 16px;
    animation: popIn 0.4s ease-out;
}
@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.confirmado-hero h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #111827;
    letter-spacing: -0.02em;
}
.confirmado-hero p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.confirmado-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
    margin-top: 4px;
}
@media (min-width: 600px) {
    .confirmado-actions { flex-direction: row; }
    .confirmado-actions > * { flex: 1; }
}

/* =========================================================================
   MIS TURNOS — listado tipo card grande con fecha grande a la izquierda
   ========================================================================= */
.turnos-lista {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}
.turno-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 18px;
    align-items: center;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.turno-card:hover {
    border-color: color-mix(in srgb, var(--primario) 30%, #e5e7eb);
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.turno-fecha-bloque {
    background: color-mix(in srgb, var(--primario) 10%, white);
    border: 1px solid color-mix(in srgb, var(--primario) 25%, white);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    width: 80px;
}
.turno-dia {
    font-size: 30px;
    font-weight: 700;
    color: var(--primario);
    line-height: 1;
    letter-spacing: -0.01em;
}
.turno-mes {
    font-size: 12px;
    font-weight: 700;
    color: var(--primario);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
}

.turno-info { min-width: 0; }
.turno-hora {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.turno-hora i { font-size: 16px; color: var(--primario); }
.turno-medico {
    font-size: 14.5px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}
.turno-especialidad {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}
.turno-sucursal, .turno-estudios {
    font-size: 12.5px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}
.turno-sucursal i, .turno-estudios i {
    font-size: 13px;
    color: var(--acento);
}

.turno-acciones {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* Iconos de los botones de turno: un poco mas grandes que el texto
   para que se lean rapido (Reprogramar / Cancelar este turno). */
.turno-acciones .btn-sm i { font-size: 17px; }

/* Botones small + variantes */
.btn-sm {
    padding: 8px 12px !important;
    font-size: 13px !important;
    min-height: auto !important;
}
.btn-danger-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.btn-danger-soft:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    text-decoration: none;
}
.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-danger:hover { background: #b91c1c; }

/* Responsive */
@media (max-width: 600px) {
    .turno-card {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto;
        gap: 14px;
    }
    .turno-fecha-bloque {
        width: 64px;
        padding: 10px 4px;
    }
    .turno-dia { font-size: 24px; }
    .turno-acciones {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 8px;
    }
    .turno-acciones > * { flex: 1; justify-content: center; }
}

/* =========================================================================
   MI CUENTA — display read-only de datos del paciente
   ========================================================================= */
.mi-cuenta-page { padding-bottom: 40px; }

.data-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 22px 16px;
    margin-bottom: 18px;
}
.data-section h2 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b7280;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.data-section h2 i {
    color: var(--primario);
    font-size: 16px;
}

.data-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid #f3f4f6;
    align-items: baseline;
}
.data-row:last-child { border-bottom: none; }
.data-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}
.data-value {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    word-break: break-word;
}
.data-empty {
    color: #9ca3af;
    font-style: italic;
    font-weight: 400;
    font-size: 13.5px;
}

/* Banner privacidad */
.mi-cuenta-privacy-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.mi-cuenta-privacy-banner > i {
    font-size: 22px;
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 2px;
}
.mi-cuenta-privacy-banner strong {
    font-size: 14.5px;
    color: #1e3a8a;
    display: block;
    margin-bottom: 4px;
}
.mi-cuenta-privacy-banner p {
    margin: 0;
    font-size: 13.5px;
    color: #1e40af;
    line-height: 1.5;
}

/* Bloque sucursal / acercate al sanatorio */
.mi-cuenta-sucursal {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.mi-cuenta-sucursal > i {
    font-size: 22px;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}
.mi-cuenta-sucursal strong {
    font-size: 14.5px;
    color: #92400e;
    display: block;
    margin-bottom: 2px;
}
.mi-cuenta-sucursal p {
    margin: 0;
    font-size: 13.5px;
    color: #78350f;
    line-height: 1.5;
}
.mi-cuenta-sucursal p.dir {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.mi-cuenta-sucursal p.dir i { color: #d97706; }

/* Responsive */
@media (max-width: 600px) {
    .data-row {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 10px 0;
    }
    .data-label {
        font-size: 11.5px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .data-value { font-size: 14.5px; }
}

/* =========================================================================
   ALERTS adicionales (success / info / warn)
   ========================================================================= */
.alert-msg.alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.alert-msg.alert-success i { color: #10b981; }

.alert-msg.alert-info {
    background: color-mix(in srgb, var(--primario) 8%, white);
    border-color: color-mix(in srgb, var(--primario) 30%, white);
    color: #1f2937;
}
.alert-msg.alert-info i { color: var(--primario); }
.alert-msg.alert-info strong { color: var(--primario); }

.alert-msg.alert-warn {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}
.alert-msg.alert-warn i { color: #d97706; }
.alert-msg.alert-warn strong { color: #92400e; }

/* =========================================================================
   MODAL (cancelar turno)
   ========================================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.15s ease-out;
}
/* IMPORTANTE: display:flex gana sobre el atributo "hidden" (que solo
   aplica display:none por default). Forzamos none cuando esta presente. */
.modal-overlay[hidden] { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-dialog {
    background: white;
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
    from { transform: translateY(20px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f3f4f6;
}
.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}
.modal-close {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1;
}
.modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.modal-body { padding: 18px 22px 22px; }

.modal-turno-detalle {
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #1f2937;
}
.modal-turno-detalle > div:first-child {
    font-weight: 700;
    color: var(--primario);
    margin-bottom: 4px;
}

.motivos {
    border: none;
    padding: 0;
    margin: 0 0 18px;
}
.motivos legend {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
    padding: 0;
}
.radio-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background 0.1s;
}
.radio-row:hover { background: #f9fafb; }
.radio-row input { accent-color: var(--primario); }

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .modal-actions { flex-direction: column-reverse; }
    .modal-actions > * { width: 100%; justify-content: center; }
}

/* =============================================================
   v0.7 Estudios — pantalla 1: chips multi-select + sticky bar
   ============================================================= */

/* Padding extra abajo cuando hay sticky-bar, asi el ultimo chip
   no queda tapado por la barra. */
.wizard-page--with-sticky {
    padding-bottom: 96px;
}

.prestacion-grupo {
    margin-bottom: 28px;
}
.prestacion-grupo__title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* La input real esta visualmente oculta pero accesible para teclado. */
.chip-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.chip:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}
.chip__check {
    font-size: 12px;
    opacity: 0;
    width: 0;
    margin-right: -6px;
    transition: opacity 0.15s, width 0.15s, margin-right 0.15s;
}

.chip-input:checked + .chip {
    background: var(--primario);
    border-color: var(--primario);
    color: var(--texto-primario, #ffffff);
    box-shadow: 0 1px 3px color-mix(in srgb, var(--primario) 30%, transparent);
}
.chip-input:checked + .chip .chip__check {
    opacity: 1;
    width: 12px;
    margin-right: 0;
}
.chip-input:focus-visible + .chip {
    outline: 3px solid color-mix(in srgb, var(--primario) 40%, transparent);
    outline-offset: 2px;
}

/* Barra sticky inferior */
.sticky-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 24px;
    padding: 14px 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    z-index: 20;
}
.sticky-bar__counter {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}
.sticky-bar__counter--active {
    color: var(--primario);
    font-weight: 600;
}
.sticky-bar .btn-primary {
    min-height: 44px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sticky-bar .btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Aviso flotante (limite excedido) */
.aviso-flotante {
    position: fixed;
    bottom: 84px;
    left: 50%;
    transform: translate(-50%, 8px);
    background: #1f2937;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 30;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.aviso-flotante--visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 600px) {
    .wizard-page--with-sticky {
        padding-bottom: 88px;
    }
    .sticky-bar {
        padding: 12px 16px;
    }
    .sticky-bar__counter {
        font-size: 13px;
    }
    .sticky-bar .btn-primary {
        padding: 0 18px;
        font-size: 14px;
    }
    .chip {
        font-size: 13px;
        padding: 9px 14px;
    }
}

/* =============================================================
   v0.7 Estudios — pantalla 2: cards de combo
   ============================================================= */

.combo-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.combo-card {
    display: block;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.combo-card:hover {
    border-color: var(--primario);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.combo-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.combo-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #111827;
}
.combo-line__hora {
    font-weight: 700;
    font-size: 18px;
    color: var(--primario);
    min-width: 64px;
}
.combo-line__arrow {
    color: #9ca3af;
    font-size: 12px;
}
.combo-line__estudio {
    flex: 1;
    color: #374151;
}
.combo-line__medico {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #6b7280;
}

.combo-card__sucursal {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.combo-card__cta {
    display: flex;
    justify-content: flex-end;
}
.combo-card__cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .combo-card {
        padding: 16px;
    }
    .combo-line {
        font-size: 14px;
        gap: 8px;
    }
    .combo-line__hora {
        font-size: 16px;
        min-width: 56px;
    }
    .combo-card__cta {
        justify-content: stretch;
    }
    .combo-card__cta .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================================
   v0.7 Estudios — bloque preparacion (confirmar + confirmado)
   ============================================================= */

/* En confirmar/confirmado el "combo-list" es solo resumen (sin CTA): sin hover. */
.combo-list--summary .combo-line {
    padding: 0;
}

.prep-block {
    margin-top: 20px;
    padding: 18px 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
}
.prep-block--final {
    background: #fef2f2;
    border-color: #fecaca;
}
.prep-block__title {
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
}
.prep-block--final .prep-block__title {
    color: #b91c1c;
}

.prep-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.prep-item {
    border-left: 3px solid #fde68a;
    padding-left: 12px;
}
.prep-block--final .prep-item {
    border-left-color: #fecaca;
}
.prep-item__name {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
}
.prep-item__text,
.prep-item__nota {
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    white-space: pre-line;
}
.prep-item__nota {
    margin-top: 4px;
    color: #6b7280;
    font-style: italic;
}


/* ============================================================
   Mi cuenta — flujo de edicion via codigo OTP por WhatsApp
   ============================================================ */
.mi-cuenta-actions {
    margin-top: 1.5rem;
    text-align: center;
}
.mi-cuenta-actions .btn-primary-lg { width: 100%; }
.mi-cuenta-actions-help {
    margin-top: .75rem;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.codigo-celular-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 1rem 0;
    font-size: 18px;
    color: #166534;
}
.codigo-celular-display i { font-size: 22px; color: #25d366; }

.data-help {
    font-size: 13px;
    color: #6b7280;
    margin-top: .5rem;
}

.codigo-form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.codigo-input-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-top: .5rem;
}
.codigo-input {
    width: 100%;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 8px;
    text-align: center;
    padding: 14px 12px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}
.codigo-input:focus {
    outline: none;
    border-color: var(--primario);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.codigo-reenviar {
    margin-top: 1.25rem;
    text-align: center;
}
.link-btn {
    background: none;
    border: none;
    color: var(--primario);
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
}
.link-btn:hover { color: var(--primario-hover); }

/* Form de edicion */
.editar-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
.editar-row {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.editar-row label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
.editar-row input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}
.editar-row input:focus {
    outline: none;
    border-color: var(--primario);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}
.editar-row small {
    font-size: 12px;
    color: #6b7280;
}
.editar-actions {
    display: flex;
    gap: .75rem;
    margin-top: .5rem;
    flex-wrap: wrap;
}
.editar-actions .btn-secondary,
.editar-actions .btn-primary-lg {
    flex: 1;
    min-width: 140px;
}
