/* =========================================================
   DENTAL SALUD
   SISTEMA DE CITAS
   citas.css - PARTE 1
   ========================================================= */


/* =========================================================
   01. CONTENEDOR PRINCIPAL
   ========================================================= */

.appointment-section {
    position: relative;
    width: 100%;
    padding: 80px 0;
    overflow: hidden;
}

.appointment-section .container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   02. TARJETA PRINCIPAL
   ========================================================= */

.appointment-card {
    position: relative;
    width: 100%;
    background: var(--bs-body-bg, #ffffff);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}


/* =========================================================
   03. CABECERA
   ========================================================= */

.appointment-header {
    padding: 50px 40px 35px;
}

.appointment-header h2 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    color: inherit;
}

.appointment-header p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.75;
}


/* =========================================================
   04. BADGE
   ========================================================= */

.appointment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 9px 17px;

    border-radius: 50px;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;

    /*
     * Se utiliza currentColor para respetar
     * el color definido por style.css.
     */
    color: inherit;

    border: 1px solid currentColor;
}

.appointment-badge i {
    font-size: 14px;
}


/* =========================================================
   05. PROGRESO
   ========================================================= */

.wizard-progress {
    width: 100%;
    padding: 0 45px 35px;
}

.wizard-progress .progress {
    position: relative;
    height: 5px;
    overflow: visible;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.08);
}

.wizard-progress .progress-bar {
    position: relative;
    width: 0%;
    height: 100%;
    border-radius: inherit;

    /*
     * El color se hereda de la línea gráfica
     * principal del sitio.
     */
    background: currentColor;

    transition:
        width 0.45s ease,
        background-color 0.3s ease;
}


/* =========================================================
   06. PASOS DEL WIZARD
   ========================================================= */

.wizard-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;

    margin-top: -17px;
}

.wizard-step {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 70px;

    text-align: center;

    color: inherit;
    opacity: 0.45;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.wizard-step.active,
.wizard-step.completed {
    opacity: 1;
}

.wizard-step.active {
    transform: translateY(-2px);
}


/* =========================================================
   07. CÍRCULOS DE PASO
   ========================================================= */

.step-circle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: var(--bs-body-bg, #ffffff);
    border: 2px solid currentColor;

    font-size: 13px;
    font-weight: 700;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.wizard-step.active .step-circle {
    transform: scale(1.08);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.wizard-step.completed .step-circle {
    background: currentColor;
    color: var(--bs-body-bg, #ffffff);
}


/* =========================================================
   08. TEXTO DE LOS PASOS
   ========================================================= */

.wizard-step span {
    display: block;

    margin-top: 10px;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.3;

    white-space: nowrap;
}


/* =========================================================
   09. ASISTENTE
   ========================================================= */

.assistant-box {
    display: flex;
    align-items: center;
    gap: 18px;

    margin: 0 45px 35px;
    padding: 18px 22px;

    border-radius: 16px;

    /*
     * Fondo muy suave para no alterar la
     * identidad cromática del sitio.
     */
    background: rgba(0, 0, 0, 0.025);

    border: 1px solid rgba(0, 0, 0, 0.06);
}

.assistant-avatar {
    position: relative;

    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    overflow: hidden;

    background: var(--bs-body-bg, #ffffff);

    border: 2px solid currentColor;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

    animation: assistantFloat 4s ease-in-out infinite;
}

.assistant-avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.assistant-content {
    min-width: 0;
}

.assistant-content h5 {
    margin: 0 0 4px;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.4;
}

.assistant-content p {
    margin: 0;

    font-size: 14px;
    line-height: 1.6;

    opacity: 0.75;
}


/* =========================================================
   10. ANIMACIÓN ASISTENTE
   ========================================================= */

@keyframes assistantFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}


/* =========================================================
   11. PÁGINAS DEL WIZARD
   ========================================================= */

.wizard-page {
    display: none;

    padding: 10px 45px 45px;

    animation: wizardPageIn 0.4s ease both;
}

.wizard-page.active {
    display: block;
}

/* =========================================================
   VISIBILIDAD DE LOS PASOS DEL FORMULARIO
   ========================================================= */

.appointment-step {
    display: none;
    width: 100%;
}

.appointment-step.active {
    display: block;
}

.appointment-step.active .wizard-page {
    display: block;
}


/* =========================================================
   12. ANIMACIÓN DE CAMBIO DE PASO
   ========================================================= */

@keyframes wizardPageIn {

    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =========================================================
   13. TÍTULO DE CADA PASO
   ========================================================= */

.page-title {
    margin-bottom: 30px;
}

.page-title h3 {
    margin: 0 0 8px;

    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;

    line-height: 1.25;
}

.page-title p {
    margin: 0;

    font-size: 15px;
    line-height: 1.7;

    opacity: 0.7;
}


/* =========================================================
   14. NAVEGACIÓN
   ========================================================= */

.wizard-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-top: 35px;
}

.wizard-navigation .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 48px;

    padding: 11px 24px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

.wizard-navigation .btn:hover {
    transform: translateY(-2px);
}

.wizard-navigation .btn:active {
    transform: translateY(0);
}

.wizard-navigation .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   15. BOTÓN SIGUIENTE
   ========================================================= */

.wizard-navigation .btn-next {
    margin-left: auto;
}


/* =========================================================
   16. BOTÓN ANTERIOR
   ========================================================= */

.wizard-navigation .btn-prev {
    margin-right: auto;
}


/* =========================================================
   17. FOCUS ACCESIBLE
   ========================================================= */

.appointment-card button:focus-visible,
.appointment-card input:focus-visible,
.appointment-card textarea:focus-visible,
.appointment-card select:focus-visible {

    outline: 3px solid currentColor;
    outline-offset: 3px;
}


/* =========================================================
   18. TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .appointment-section {
        padding: 60px 0;
    }

    .appointment-header {
        padding: 40px 30px 30px;
    }

    .wizard-progress {
        padding-left: 30px;
        padding-right: 30px;
    }

    .assistant-box {
        margin-left: 30px;
        margin-right: 30px;
    }

    .wizard-page {
        padding-left: 30px;
        padding-right: 30px;
    }

}


/* =========================================================
   19. MÓVIL
   ========================================================= */

@media (max-width: 767.98px) {

    .appointment-section {
        padding: 40px 0;
    }

    .appointment-card {
        border-radius: 18px;
    }

    .appointment-header {
        padding: 32px 20px 25px;
    }

    .appointment-header h2 {
        font-size: 30px;
    }

    .appointment-header p {
        font-size: 14px;
        line-height: 1.65;
    }

    .wizard-progress {
        padding: 0 20px 30px;
    }

    .wizard-step {
        min-width: 40px;
    }

    .wizard-step span {
        font-size: 10px;
    }

    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .wizard-steps {
        margin-top: -15px;
    }

    .assistant-box {
        align-items: flex-start;

        margin: 0 20px 30px;
        padding: 15px;
    }

    .assistant-avatar {
        flex-basis: 48px;

        width: 48px;
        height: 48px;
    }

    .assistant-content p {
        font-size: 13px;
    }

    .wizard-page {
        padding: 5px 20px 30px;
    }

    .page-title {
        margin-bottom: 25px;
    }

    .page-title h3 {
        font-size: 24px;
    }

    .page-title p {
        font-size: 14px;
    }

    .wizard-navigation {
        margin-top: 25px;
    }

    .wizard-navigation .btn {
        min-height: 45px;
        padding: 10px 17px;
        font-size: 13px;
    }

}


/* =========================================================
   20. MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    .wizard-step span {
        display: none;
    }

    .wizard-steps {
        margin-top: -15px;
    }

    .wizard-navigation .btn {
        flex: 1;
    }

    .wizard-navigation .btn-next {
        margin-left: 0;
    }

    .wizard-navigation .btn-prev {
        margin-right: 0;
    }

}

/* =========================================================
   DENTAL SALUD
   SISTEMA DE CITAS
   citas.css - PARTE 2
   CLÍNICAS Y SERVICIOS
   ========================================================= */


/* =========================================================
   21. TARJETAS DE CLÍNICA
   ========================================================= */

.clinic-card {
    position: relative;

    width: 100%;
    height: 100%;

    padding: 28px;

    background: var(--bs-body-bg, #ffffff);

    border: 2px solid rgba(0, 0, 0, 0.07);
    border-radius: 18px;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}


/* Línea decorativa superior */

.clinic-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: currentColor;

    opacity: 0;

    transform: scaleX(0);
    transform-origin: center;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


/* Hover */

.clinic-card:hover {
    transform: translateY(-5px);

    border-color: currentColor;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.09);
}

.clinic-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}


/* Seleccionada */

.clinic-card.selected,
.clinic-card.active {
    border-color: currentColor;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.10);

    transform: translateY(-3px);
}

.clinic-card.selected::before,
.clinic-card.active::before {
    opacity: 1;
    transform: scaleX(1);
}


/* =========================================================
   22. ICONO DE CLÍNICA
   ========================================================= */

.clinic-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 20px;

    border-radius: 16px;

    border: 1px solid currentColor;

    font-size: 23px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.clinic-card:hover .clinic-icon {
    transform: scale(1.06);
}

.clinic-card.selected .clinic-icon,
.clinic-card.active .clinic-icon {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   23. TEXTO DE CLÍNICA
   ========================================================= */

.clinic-card h4 {
    margin: 0 0 7px;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.3;
}

.clinic-card > span {
    display: block;

    font-size: 13px;
    line-height: 1.5;

    opacity: 0.65;
}


/* =========================================================
   24. SEPARADOR CLÍNICA
   ========================================================= */

.clinic-card hr {
    margin: 20px 0;

    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);

    opacity: 1;
}


/* =========================================================
   25. HORARIOS / DÍAS DE CLÍNICA
   ========================================================= */

.clinic-card ul {
    display: flex;
    flex-direction: column;
    gap: 9px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.clinic-card li {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 13px;

    line-height: 1.5;

    opacity: 0.75;
}

.clinic-card li i {
    width: 17px;

    text-align: center;

    font-size: 13px;
}


/* =========================================================
   26. INDICADOR DE SELECCIÓN
   ========================================================= */

.clinic-card::after {
    content: "\f058";

    position: absolute;

    top: 18px;
    right: 18px;

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    font-size: 22px;

    opacity: 0;

    transform: scale(0.6);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.clinic-card.selected::after,
.clinic-card.active::after {
    opacity: 1;

    transform: scale(1);
}


/* =========================================================
   27. TARJETAS DE SERVICIOS
   ========================================================= */

.service-card {
    position: relative;

    width: 100%;
    height: 100%;

    min-height: 215px;

    padding: 26px 23px;

    background: var(--bs-body-bg, #ffffff);

    border: 2px solid rgba(0, 0, 0, 0.07);
    border-radius: 18px;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}


/* Línea superior */

.service-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: currentColor;

    opacity: 0;

    transform: scaleX(0);
    transform-origin: center;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


/* Hover */

.service-card:hover {
    transform: translateY(-5px);

    border-color: currentColor;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.09);
}

.service-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}


/* Seleccionado */

.service-card.selected,
.service-card.active {
    border-color: currentColor;

    transform: translateY(-3px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.10);
}

.service-card.selected::before,
.service-card.active::before {
    opacity: 1;
    transform: scaleX(1);
}


/* =========================================================
   28. ICONO DE SERVICIO
   ========================================================= */

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    margin-bottom: 18px;

    border-radius: 15px;

    border: 1px solid currentColor;

    font-size: 21px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.07) rotate(-2deg);
}

.service-card.selected .service-icon,
.service-card.active .service-icon {
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   29. TEXTO DE SERVICIO
   ========================================================= */

.service-card h4 {
    margin: 0 0 9px;

    font-size: 17px;
    font-weight: 700;

    line-height: 1.3;
}

.service-card p {
    margin: 0;

    font-size: 13px;

    line-height: 1.65;

    opacity: 0.68;
}


/* =========================================================
   30. INDICADOR DE SELECCIÓN SERVICIO
   ========================================================= */

.service-card::after {
    content: "\f058";

    position: absolute;

    top: 17px;
    right: 17px;

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    font-size: 20px;

    opacity: 0;

    transform: scale(0.6);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.service-card.selected::after,
.service-card.active::after {
    opacity: 1;

    transform: scale(1);
}


/* =========================================================
   31. ESTADO DESHABILITADO
   ========================================================= */

.clinic-card.disabled,
.service-card.disabled {
    opacity: 0.45;

    cursor: not-allowed;

    pointer-events: none;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   32. ANIMACIÓN DE SELECCIÓN
   ========================================================= */

.clinic-card.selected,
.service-card.selected {
    animation: selectionPulse 0.35s ease;
}

@keyframes selectionPulse {

    0% {
        transform: scale(0.98);
    }

    70% {
        transform: scale(1.015);
    }

    100% {
        transform: scale(1);
    }

}


/* =========================================================
   33. CALENDARIO - TARJETA BASE
   ========================================================= */

.calendar-card {
    position: relative;

    width: 100%;

    padding: 30px;

    background: var(--bs-body-bg, #ffffff);

    border: 1px solid rgba(0, 0, 0, 0.07);

    border-radius: 18px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}


/* =========================================================
   34. ICONO DEL CALENDARIO
   ========================================================= */

.calendar-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    border-radius: 18px;

    border: 1px solid currentColor;

    font-size: 25px;
}


/* =========================================================
   35. TEXTO CALENDARIO
   ========================================================= */

.calendar-card h4 {
    font-weight: 700;
}

.calendar-card .text-muted {
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   36. RESPONSIVE CLÍNICAS Y SERVICIOS
   ========================================================= */

@media (max-width: 767.98px) {

    .clinic-card {
        padding: 23px;
    }

    .clinic-card h4 {
        font-size: 18px;
    }

    .service-card {
        min-height: auto;

        padding: 23px;
    }

    .service-card h4 {
        font-size: 16px;
    }

    .service-card p {
        font-size: 13px;
    }

    .calendar-card {
        padding: 22px;
    }

}


/* =========================================================
   37. MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    .clinic-card {
        padding: 20px;
    }

    .clinic-icon {
        width: 52px;
        height: 52px;

        margin-bottom: 16px;

        font-size: 21px;
    }

    .service-card {
        padding: 20px;
    }

    .service-icon {
        width: 50px;
        height: 50px;

        margin-bottom: 15px;
    }

    .calendar-card {
        padding: 18px;
    }

}
/* =========================================================
   DENTAL SALUD
   SISTEMA DE CITAS
   citas.css - PARTE 3
   FECHA Y HORARIOS
   ========================================================= */


/* =========================================================
   38. INFORMACIÓN DE SELECCIÓN
   ========================================================= */

.appointment-selection-info {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 30px;
}

.selection-info-item {
    display: flex;
    align-items: center;

    gap: 13px;

    min-width: 0;

    padding: 15px 17px;

    border: 1px solid rgba(0, 0, 0, 0.07);

    border-radius: 14px;

    background: rgba(0, 0, 0, 0.018);
}

.selection-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    border-radius: 11px;

    border: 1px solid currentColor;

    font-size: 16px;
}

.selection-info-item > div:last-child {
    min-width: 0;
}

.selection-info-item small {
    display: block;

    margin-bottom: 3px;

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.05em;

    opacity: 0.55;
}

.selection-info-item strong {
    display: block;

    overflow: hidden;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.4;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   39. ENCABEZADO DE HORARIOS
   ========================================================= */

.schedule-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}

.schedule-header h4 {
    margin: 0 0 5px;

    font-size: 19px;
    font-weight: 700;
}

.schedule-header p {
    margin: 0;

    font-size: 13px;

    line-height: 1.5;

    opacity: 0.65;
}

.schedule-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    border-radius: 14px;

    border: 1px solid currentColor;

    font-size: 19px;
}


/* =========================================================
   40. CONTENEDOR DE HORARIOS
   ========================================================= */

.hour-container {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(125px, 1fr));

    gap: 12px;

    min-height: 100px;
}


/* =========================================================
   41. TARJETA / BOTÓN DE HORA
   ========================================================= */

.hour-card {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 58px;

    padding: 12px 15px;

    background: var(--bs-body-bg, #ffffff);

    border: 2px solid rgba(0, 0, 0, 0.07);

    border-radius: 12px;

    color: inherit;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}


/* Hover */

.hour-card:hover {
    transform: translateY(-3px);

    border-color: currentColor;

    box-shadow:
        0 9px 24px rgba(0, 0, 0, 0.08);
}


/* Seleccionada */

.hour-card.selected,
.hour-card.active {
    border-color: currentColor;

    background: currentColor;

    color: var(--bs-body-bg, #ffffff);

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   42. HORA DISPONIBLE
   ========================================================= */

.hour-card.available {
    opacity: 1;

    cursor: pointer;
}


/* =========================================================
   43. HORA OCUPADA
   ========================================================= */

.hour-card.disabled,
.hour-card.unavailable,
.hour-card[data-available="false"] {

    opacity: 0.45;

    cursor: not-allowed;

    pointer-events: none;

    text-decoration: line-through;

    box-shadow: none;

    transform: none;
}


/* =========================================================
   44. ICONO DE HORA
   ========================================================= */

.hour-card i {
    margin-right: 7px;

    font-size: 13px;
}


/* =========================================================
   45. HORA SELECCIONADA - CHECK
   ========================================================= */

.hour-card.selected::after,
.hour-card.active::after {

    content: "\f058";

    position: absolute;

    top: 6px;
    right: 7px;

    font-family: "Font Awesome 6 Free";

    font-weight: 900;

    font-size: 11px;
}


/* =========================================================
   46. ESTADO VACÍO
   ========================================================= */

.schedule-empty {

    grid-column: 1 / -1;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 220px;

    padding: 30px;

    text-align: center;

    border: 1px dashed rgba(0, 0, 0, 0.14);

    border-radius: 16px;

    background: rgba(0, 0, 0, 0.015);
}

.schedule-empty-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    margin-bottom: 15px;

    border-radius: 50%;

    border: 1px solid currentColor;

    font-size: 23px;

    opacity: 0.75;
}

.schedule-empty h5 {

    margin: 0 0 7px;

    font-size: 16px;

    font-weight: 700;
}

.schedule-empty p {

    max-width: 440px;

    margin: 0;

    font-size: 13px;

    line-height: 1.65;

    opacity: 0.65;
}


/* =========================================================
   47. LOADING DE HORARIOS
   ========================================================= */

.schedule-loading {

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 200px;

    padding: 30px;

    text-align: center;

    border-radius: 16px;

    background: rgba(0, 0, 0, 0.02);
}

.schedule-spinner {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    margin-bottom: 15px;

    font-size: 26px;

    animation:
        scheduleSpin 1s linear infinite;
}

.schedule-loading p {

    margin: 0;

    font-size: 14px;

    opacity: 0.65;
}

@keyframes scheduleSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   48. SIN DISPONIBILIDAD
   ========================================================= */

.schedule-unavailable {

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 240px;

    padding: 30px;

    text-align: center;

    border: 1px dashed rgba(0, 0, 0, 0.14);

    border-radius: 16px;

    background: rgba(0, 0, 0, 0.015);
}

.schedule-unavailable-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    margin-bottom: 16px;

    border-radius: 50%;

    border: 1px solid currentColor;

    font-size: 24px;

    opacity: 0.7;
}

.schedule-unavailable h5 {

    margin: 0 0 7px;

    font-size: 16px;

    font-weight: 700;
}

.schedule-unavailable p {

    max-width: 430px;

    margin: 0 0 20px;

    font-size: 13px;

    line-height: 1.65;

    opacity: 0.65;
}


/* =========================================================
   49. BOTÓN CAMBIAR FECHA
   ========================================================= */

#changeDate {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 43px;

    padding: 9px 18px;

    border-radius: 9px;

    border: 1px solid currentColor;

    background: transparent;

    color: inherit;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

#changeDate:hover {

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   50. SELECTOR DE FECHA
   ========================================================= */

#appointmentDate {

    width: 100%;

    min-height: 52px;

    padding: 12px 17px;

    border: 1px solid rgba(0, 0, 0, 0.12);

    border-radius: 11px;

    background: var(--bs-body-bg, #ffffff);

    color: inherit;

    font-size: 14px;

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

#appointmentDate:hover {

    border-color: currentColor;
}

#appointmentDate:focus {

    border-color: currentColor;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.06);

    outline: none;
}


/* =========================================================
   51. ETIQUETA DEL CALENDARIO
   ========================================================= */

.calendar-card .form-label {

    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 700;
}


/* =========================================================
   52. ALERTA INFORMATIVA
   ========================================================= */

.calendar-card .alert {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 20px;

    margin-bottom: 0;

    padding: 13px 15px;

    border-radius: 11px;

    font-size: 13px;

    line-height: 1.55;
}

.calendar-card .alert i {

    margin-top: 2px;

    flex-shrink: 0;
}


/* =========================================================
   53. RESPONSIVE HORARIOS
   ========================================================= */

@media (max-width: 767.98px) {

    .appointment-selection-info {

        grid-template-columns: 1fr;

        gap: 10px;
    }

    .selection-info-item {

        padding: 13px 15px;
    }

    .schedule-header {

        align-items: flex-start;
    }

    .schedule-icon {

        flex-basis: 43px;

        width: 43px;
        height: 43px;
    }

    .hour-container {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .hour-card {

        min-height: 54px;

        padding: 10px;

        font-size: 13px;
    }

    .schedule-empty,
    .schedule-loading,
    .schedule-unavailable {

        min-height: 190px;

        padding: 25px 18px;
    }

}


/* =========================================================
   54. MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    .appointment-selection-info {

        margin-bottom: 22px;
    }

    .selection-info-icon {

        flex-basis: 36px;

        width: 36px;
        height: 36px;

        font-size: 14px;
    }

    .selection-info-item strong {

        font-size: 13px;
    }

    .schedule-header h4 {

        font-size: 17px;
    }

    .schedule-header p {

        font-size: 12px;
    }

    .hour-container {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .hour-card {

        min-height: 50px;

        border-radius: 10px;

        font-size: 12px;
    }

    .schedule-empty-icon,
    .schedule-unavailable-icon {

        width: 54px;
        height: 54px;

        font-size: 20px;
    }

}
/* =========================================================
   DENTAL SALUD
   SISTEMA DE CITAS
   citas.css - PARTE 4
   FORMULARIO DEL PACIENTE
   ========================================================= */


/* =========================================================
   55. TARJETA DE RESUMEN / FORMULARIO
   ========================================================= */

.summary-card {
    position: relative;

    width: 100%;

    padding: 30px;

    background: var(--bs-body-bg, #ffffff);

    border: 1px solid rgba(0, 0, 0, 0.07);

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.05);
}


/* =========================================================
   56. ENCABEZADO DE SECCIÓN
   ========================================================= */

.section-heading {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 28px;

    padding-bottom: 20px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.section-heading-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    border-radius: 14px;

    border: 1px solid currentColor;

    font-size: 19px;
}

.section-heading h4 {
    margin: 0 0 4px;

    font-size: 18px;

    font-weight: 700;

    line-height: 1.3;
}

.section-heading p {
    margin: 0;

    font-size: 13px;

    line-height: 1.5;

    opacity: 0.65;
}


/* =========================================================
   57. LABELS
   ========================================================= */

.summary-card .form-label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.4;
}

.required {
    margin-left: 2px;

    font-weight: 700;

    opacity: 0.8;
}

.optional {
    margin-left: 3px;

    font-size: 11px;

    font-weight: 400;

    opacity: 0.55;
}


/* =========================================================
   58. INPUTS
   ========================================================= */

.summary-card .form-control {
    width: 100%;

    min-height: 50px;

    padding: 12px 15px;

    border: 1px solid rgba(0, 0, 0, 0.12);

    border-radius: 10px;

    background: var(--bs-body-bg, #ffffff);

    color: inherit;

    font-family: inherit;

    font-size: 14px;

    line-height: 1.5;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.summary-card .form-control:hover {
    border-color: rgba(0, 0, 0, 0.22);
}

.summary-card .form-control:focus {
    border-color: currentColor;

    background: var(--bs-body-bg, #ffffff);

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.055);

    outline: none;
}

.summary-card .form-control::placeholder {
    opacity: 0.45;
}


/* =========================================================
   59. TEXTAREA
   ========================================================= */

.summary-card textarea.form-control {
    min-height: 125px;

    resize: vertical;

    line-height: 1.65;
}


/* =========================================================
   60. INPUT CON ICONO
   ========================================================= */

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper > i {
    position: absolute;

    top: 50%;
    left: 16px;

    z-index: 2;

    width: 18px;

    text-align: center;

    font-size: 14px;

    opacity: 0.55;

    pointer-events: none;

    transform: translateY(-50%);

    transition:
        opacity 0.25s ease;
}

.input-icon-wrapper .form-control {
    padding-left: 45px;
}

.input-icon-wrapper:focus-within > i {
    opacity: 1;
}


/* =========================================================
   61. INPUT CON ERROR
   ========================================================= */

.summary-card .form-control.is-invalid {
    border-color: currentColor;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.04);
}

.summary-card .form-control.is-valid {
    border-color: currentColor;
}


/* =========================================================
   62. MENSAJES DE VALIDACIÓN
   ========================================================= */

.summary-card .invalid-feedback {
    display: none;

    margin-top: 6px;

    font-size: 12px;

    line-height: 1.45;

    opacity: 0.75;
}

.summary-card .form-control.is-invalid
~ .invalid-feedback {
    display: block;
}


/*
 * Cuando el wrapper contiene el input,
 * el mensaje puede estar fuera del wrapper.
 */

.input-icon-wrapper
+ .invalid-feedback {
    margin-top: 6px;
}


/* =========================================================
   63. CONTADOR DEL TEXTAREA
   ========================================================= */

.textarea-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 7px;
}

.textarea-footer small {
    font-size: 11px;

    line-height: 1.4;

    opacity: 0.55;
}

#characterCount {
    font-weight: 700;

    opacity: 0.75;
}


/* =========================================================
   64. AVISO DE PRIVACIDAD
   ========================================================= */

.privacy-notice {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    margin-top: 30px;

    padding: 17px 18px;

    border-radius: 13px;

    border: 1px solid rgba(0, 0, 0, 0.07);

    background: rgba(0, 0, 0, 0.018);
}

.privacy-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    border-radius: 11px;

    border: 1px solid currentColor;

    font-size: 16px;
}

.privacy-notice strong {
    display: block;

    margin-bottom: 4px;

    font-size: 13px;

    font-weight: 700;
}

.privacy-notice p {
    margin: 0;

    font-size: 12px;

    line-height: 1.6;

    opacity: 0.65;
}


/* =========================================================
   65. CHECKBOX
   ========================================================= */

.summary-card .form-check {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding-left: 0;
}

.summary-card .form-check-input {
    position: relative;

    flex: 0 0 19px;

    width: 19px;
    height: 19px;

    margin: 2px 0 0;

    border: 1px solid rgba(0, 0, 0, 0.20);

    border-radius: 5px;

    background: var(--bs-body-bg, #ffffff);

    cursor: pointer;

    appearance: none;

    -webkit-appearance: none;

    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.summary-card .form-check-input:hover {
    border-color: currentColor;
}

.summary-card .form-check-input:checked {
    background: currentColor;

    border-color: currentColor;
}

.summary-card .form-check-input:checked::after {
    content: "\f00c";

    position: absolute;

    top: 50%;
    left: 50%;

    font-family: "Font Awesome 6 Free";

    font-size: 10px;

    font-weight: 900;

    color: var(--bs-body-bg, #ffffff);

    transform: translate(-50%, -50%);
}

.summary-card .form-check-input:focus {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.06);
}

.summary-card .form-check-label {
    margin: 0;

    font-size: 12px;

    line-height: 1.65;

    cursor: pointer;

    opacity: 0.75;
}


/* =========================================================
   66. CHECKBOX ERROR
   ========================================================= */

.summary-card .form-check-input.is-invalid {
    border-color: currentColor;
}


/* =========================================================
   67. INPUT DISABLED
   ========================================================= */

.summary-card .form-control:disabled,
.summary-card .form-control[readonly] {
    background: rgba(0, 0, 0, 0.025);

    cursor: not-allowed;

    opacity: 0.75;
}


/* =========================================================
   68. AUTOCOMPLETE
   ========================================================= */

.summary-card input:-webkit-autofill,
.summary-card input:-webkit-autofill:hover,
.summary-card input:-webkit-autofill:focus {
    -webkit-text-fill-color: inherit;

    transition:
        background-color 9999s ease-in-out 0s;
}


/* =========================================================
   69. BOTÓN CONFIRMAR
   ========================================================= */

#confirmAppointment {
    min-width: 185px;

    border: 1px solid currentColor;

    background: currentColor;

    color: var(--bs-body-bg, #ffffff);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.10);
}

#confirmAppointment:hover {
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.14);

    transform: translateY(-3px);
}

#confirmAppointment:active {
    transform: translateY(0);
}

#confirmAppointment:disabled {
    opacity: 0.55;

    cursor: not-allowed;

    box-shadow: none;

    transform: none;
}


/* =========================================================
   70. ESTADO DE ENVÍO
   ========================================================= */

#confirmAppointment.loading {
    position: relative;

    pointer-events: none;

    opacity: 0.75;
}

#confirmAppointment.loading i {
    animation:
        confirmSpin 0.8s linear infinite;
}

@keyframes confirmSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   71. RESPONSIVE FORMULARIO
   ========================================================= */

@media (max-width: 767.98px) {

    .summary-card {
        padding: 23px;
    }

    .section-heading {
        gap: 12px;

        margin-bottom: 23px;

        padding-bottom: 17px;
    }

    .section-heading-icon {
        flex-basis: 43px;

        width: 43px;
        height: 43px;

        font-size: 17px;
    }

    .section-heading h4 {
        font-size: 17px;
    }

    .section-heading p {
        font-size: 12px;
    }

    .summary-card .form-control {
        min-height: 48px;

        font-size: 13px;
    }

    .privacy-notice {
        padding: 15px;
    }

    .privacy-icon {
        flex-basis: 37px;

        width: 37px;
        height: 37px;
    }

    #confirmAppointment {
        min-width: 0;
    }

}


/* =========================================================
   72. MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    .summary-card {
        padding: 19px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading-icon {
        flex-basis: 40px;

        width: 40px;
        height: 40px;
    }

    .summary-card .form-label {
        font-size: 12px;
    }

    .summary-card .form-control {
        min-height: 46px;

        padding: 10px 13px;

        font-size: 13px;
    }

    .input-icon-wrapper .form-control {
        padding-left: 40px;
    }

    .input-icon-wrapper > i {
        left: 13px;
    }

    .privacy-notice {
        gap: 10px;
    }

    .privacy-notice p {
        font-size: 11px;
    }

    .summary-card .form-check-label {
        font-size: 11px;
    }

    .wizard-navigation {
        flex-wrap: wrap;
    }

    #confirmAppointment {
        width: 100%;
        order: -1;
    }

}
/* =========================================================
   DENTAL SALUD
   SISTEMA DE CITAS
   citas.css - PARTE 5
   RESUMEN Y CONFIRMACIÓN
   ========================================================= */


/* =========================================================
   73. RESUMEN FINAL DE LA CITA
   ========================================================= */

.appointment-summary {
    position: relative;

    width: 100%;

    padding: 28px;

    background: var(--bs-body-bg, #ffffff);

    border: 1px solid rgba(0, 0, 0, 0.07);

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.05);
}


/* =========================================================
   74. CABECERA DEL RESUMEN
   ========================================================= */

.appointment-summary-header {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 25px;

    padding-bottom: 20px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.appointment-summary-header .summary-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 50px;

    width: 50px;
    height: 50px;

    border-radius: 14px;

    border: 1px solid currentColor;

    font-size: 20px;
}

.appointment-summary-header h4 {
    margin: 0 0 4px;

    font-size: 19px;

    font-weight: 700;
}

.appointment-summary-header p {
    margin: 0;

    font-size: 13px;

    line-height: 1.5;

    opacity: 0.65;
}


/* =========================================================
   75. BLOQUES DE INFORMACIÓN
   ========================================================= */

.summary-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;
}

.summary-item {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    min-width: 0;

    padding: 15px;

    border: 1px solid rgba(0, 0, 0, 0.07);

    border-radius: 13px;

    background: rgba(0, 0, 0, 0.018);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.summary-item:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.05);
}


/* =========================================================
   76. ICONO DEL RESUMEN
   ========================================================= */

.summary-item-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    border-radius: 10px;

    border: 1px solid currentColor;

    font-size: 14px;
}


/* =========================================================
   77. TEXTO DEL RESUMEN
   ========================================================= */

.summary-item-content {
    min-width: 0;
}

.summary-item-content small {
    display: block;

    margin-bottom: 4px;

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.05em;

    opacity: 0.5;
}

.summary-item-content strong {
    display: block;

    overflow: hidden;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.4;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-item-content span {
    display: block;

    margin-top: 3px;

    font-size: 12px;

    line-height: 1.45;

    opacity: 0.6;
}


/* =========================================================
   78. BLOQUE DE OBSERVACIONES
   ========================================================= */

.summary-notes {
    margin-top: 14px;

    padding: 17px;

    border: 1px solid rgba(0, 0, 0, 0.07);

    border-radius: 13px;

    background: rgba(0, 0, 0, 0.018);
}

.summary-notes-header {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 7px;
}

.summary-notes-header i {
    font-size: 13px;
}

.summary-notes-header strong {
    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}

.summary-notes p {
    margin: 0;

    font-size: 13px;

    line-height: 1.65;

    opacity: 0.7;

    white-space: pre-line;
}


/* =========================================================
   79. CONFIRMACIÓN DE DATOS
   ========================================================= */

.confirmation-check {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-top: 24px;

    padding: 17px;

    border-radius: 13px;

    border: 1px solid rgba(0, 0, 0, 0.07);

    background: rgba(0, 0, 0, 0.018);
}

.confirmation-check-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    border: 1px solid currentColor;

    font-size: 15px;
}

.confirmation-check strong {
    display: block;

    margin-bottom: 4px;

    font-size: 13px;

    font-weight: 700;
}

.confirmation-check p {
    margin: 0;

    font-size: 12px;

    line-height: 1.6;

    opacity: 0.65;
}


/* =========================================================
   80. PANTALLA DE ÉXITO
   ========================================================= */

.appointment-success {
    display: none;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 55px 30px;

    text-align: center;

    animation:
        successAppear 0.5s ease both;
}

.appointment-success.active,
.appointment-success.show {
    display: flex;
}


/* =========================================================
   81. ICONO DE ÉXITO
   ========================================================= */

.success-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 85px;
    height: 85px;

    margin-bottom: 22px;

    border-radius: 50%;

    border: 2px solid currentColor;

    font-size: 34px;

    animation:
        successIconIn 0.55s cubic-bezier(.17,.67,.32,1.3) both;
}

.appointment-success h3 {
    margin: 0 0 10px;

    font-size: clamp(25px, 4vw, 34px);

    font-weight: 700;

    line-height: 1.25;
}

.appointment-success > p {
    max-width: 580px;

    margin: 0 auto 25px;

    font-size: 14px;

    line-height: 1.75;

    opacity: 0.7;
}


/* =========================================================
   82. CÓDIGO DE CONFIRMACIÓN
   ========================================================= */

.confirmation-code {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 25px;

    padding: 11px 18px;

    border-radius: 10px;

    border: 1px dashed currentColor;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.03em;
}

.confirmation-code span {
    font-weight: 500;

    opacity: 0.65;
}


/* =========================================================
   83. ACCIONES DE ÉXITO
   ========================================================= */

.success-actions {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;
}

.success-actions .btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 45px;

    padding: 10px 20px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 600;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.success-actions .btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   84. ERROR DE ENVÍO
   ========================================================= */

.appointment-error {
    display: none;

    align-items: flex-start;

    gap: 13px;

    margin-top: 20px;

    padding: 16px 18px;

    border: 1px solid rgba(0, 0, 0, 0.10);

    border-radius: 12px;

    background: rgba(0, 0, 0, 0.025);
}

.appointment-error.active,
.appointment-error.show {
    display: flex;

    animation:
        errorAppear 0.35s ease both;
}

.appointment-error-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    border: 1px solid currentColor;

    font-size: 15px;
}

.appointment-error strong {
    display: block;

    margin-bottom: 3px;

    font-size: 13px;

    font-weight: 700;
}

.appointment-error p {
    margin: 0;

    font-size: 12px;

    line-height: 1.6;

    opacity: 0.65;
}


/* =========================================================
   85. BOTÓN REINTENTAR
   ========================================================= */

.retry-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 10px;

    padding: 8px 14px;

    border: 1px solid currentColor;

    border-radius: 8px;

    background: transparent;

    color: inherit;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.retry-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.07);
}


/* =========================================================
   86. ANIMACIONES
   ========================================================= */

@keyframes successAppear {

    from {
        opacity: 0;

        transform: translateY(15px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}

@keyframes successIconIn {

    from {
        opacity: 0;

        transform: scale(0.65);
    }

    to {
        opacity: 1;

        transform: scale(1);
    }

}

@keyframes errorAppear {

    from {
        opacity: 0;

        transform: translateY(-5px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================================
   87. ESTADO GLOBAL DE PROCESAMIENTO
   ========================================================= */

.appointment-processing {
    position: relative;
}

.appointment-processing::after {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 20;

    background: rgba(255, 255, 255, 0.55);

    backdrop-filter: blur(2px);

    -webkit-backdrop-filter: blur(2px);

    border-radius: inherit;

    pointer-events: all;
}

.appointment-processing .processing-indicator {
    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 21;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    font-size: 22px;

    transform: translate(-50%, -50%);
}

.processing-indicator i {
    animation:
        scheduleSpin 0.8s linear infinite;
}


/* =========================================================
   88. ALERTAS GENERALES
   ========================================================= */

.appointment-alert {
    display: flex;

    align-items: flex-start;

    gap: 11px;

    width: 100%;

    margin-bottom: 20px;

    padding: 14px 16px;

    border-radius: 11px;

    border: 1px solid rgba(0, 0, 0, 0.08);

    font-size: 13px;

    line-height: 1.6;
}

.appointment-alert i {
    margin-top: 2px;

    flex-shrink: 0;
}

.appointment-alert strong {
    display: block;

    margin-bottom: 2px;

    font-weight: 700;
}


/* =========================================================
   89. BOTÓN VOLVER AL INICIO
   ========================================================= */

.success-home {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 45px;

    padding: 10px 20px;

    border: 1px solid currentColor;

    border-radius: 10px;

    background: transparent;

    color: inherit;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.success-home:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08);

    color: inherit;

    text-decoration: none;
}


/* =========================================================
   90. RESPONSIVE RESUMEN
   ========================================================= */

@media (max-width: 767.98px) {

    .appointment-summary {
        padding: 23px;
    }

    .appointment-summary-header {
        gap: 12px;

        margin-bottom: 21px;

        padding-bottom: 17px;
    }

    .appointment-summary-header .summary-icon {
        flex-basis: 43px;

        width: 43px;
        height: 43px;

        font-size: 17px;
    }

    .appointment-summary-header h4 {
        font-size: 17px;
    }

    .appointment-summary-header p {
        font-size: 12px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .appointment-success {
        padding: 45px 20px;
    }

    .success-icon {
        width: 75px;
        height: 75px;

        font-size: 29px;
    }

    .appointment-success > p {
        font-size: 13px;
    }

    .success-actions {
        width: 100%;
    }

    .success-actions .btn,
    .success-home {
        width: 100%;
    }

}


/* =========================================================
   91. MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    .appointment-summary {
        padding: 19px;
    }

    .summary-item {
        padding: 13px;
    }

    .summary-item-icon {
        flex-basis: 35px;

        width: 35px;
        height: 35px;

        font-size: 13px;
    }

    .summary-item-content strong {
        font-size: 13px;
    }

    .summary-item-content span {
        font-size: 11px;
    }

    .summary-notes {
        padding: 14px;
    }

    .confirmation-check {
        padding: 14px;
    }

    .confirmation-check-icon {
        flex-basis: 36px;

        width: 36px;
        height: 36px;
    }

    .appointment-success {
        padding: 38px 16px;
    }

    .success-icon {
        width: 68px;
        height: 68px;

        margin-bottom: 18px;

        font-size: 26px;
    }

    .appointment-success h3 {
        font-size: 25px;
    }

    .appointment-success > p {
        font-size: 12px;
    }

    .confirmation-code {
        width: 100%;

        justify-content: center;

        font-size: 12px;
    }

    .appointment-error {
        padding: 14px;
    }

}


/* =========================================================
   92. REDUCIR ANIMACIONES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .appointment-card *,
    .appointment-card *::before,
    .appointment-card *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
    }

}

/* =========================================================
   MODAL DE CITAS
   Siempre por encima de toda la página
   ========================================================= */

.appointment-modal {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

/* =========================================================
   MODAL ACTIVO
   ========================================================= */

.appointment-modal.active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   CONTENIDO DEL MODAL
   ========================================================= */

.appointment-modal > .appointment-section {
    position: relative;

    z-index: 1;

    width: 100%;
    max-width: 1100px;

    max-height: 95vh;

    padding: 0;

    overflow-y: auto;

    border-radius: 24px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    .appointment-modal {
        align-items: flex-start;

        padding: 12px;
    }

    .appointment-modal > .appointment-section {
        max-height: calc(100vh - 24px);

        border-radius: 18px;
    }

}

/* =========================================================
   BOTÓN CERRAR FORMULARIO
   ========================================================= */

.close-appointment {
    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 30;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 1px solid rgba(0, 0, 0, 0.10);

    border-radius: 50%;

    background: var(--bs-body-bg, #ffffff);

    color: inherit;

    font-size: 16px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.close-appointment:hover {
    transform: rotate(90deg);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.10);
}

.close-appointment:focus {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.06);
}

@media (max-width: 480px) {

    .close-appointment {
        top: 12px;
        right: 12px;

        width: 36px;
        height: 36px;

        font-size: 14px;
    }

}
/* =========================================================
   TARJETAS DE CLÍNICA Y SERVICIO
   ESTADO SELECCIONADO
   ========================================================= */

.clinic-card,
.service-card {
    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


/* =========================================================
   HOVER
   ========================================================= */

.clinic-card:hover,
.service-card:hover {
    transform: translateY(-4px);
}


/* =========================================================
   SELECCIONADO
   ========================================================= */

.clinic-card.selected,
.clinic-card.active,
.service-card.selected,
.service-card.active {
    transform: translateY(-4px);

    border-color: var(--bs-primary, #0d6efd);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   FOCO TECLADO
   ========================================================= */

.clinic-card:focus-visible,
.service-card:focus-visible {
    outline: 3px solid
        rgba(13, 110, 253, 0.25);

    outline-offset: 3px;
}

/* =====================================================
   CLÍNICA SELECCIONADA
   ===================================================== */

.clinic-card.selected {
    transform: translateY(-3px);
    border-width: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
/* =====================================================
   MODAL DE CITAS
   ===================================================== */

body .appointment-modal {

    position: fixed !important;

    inset: 0 !important;

    z-index: 2147483647 !important;

}

body .appointment-modal.active {

    z-index: 2147483647 !important;

}

/* =========================================================
   MODAL ABIERTO
   OCULTAR NAVBAR POR COMPLETO
   ========================================================= */

body.appointment-open .navbar {

    z-index: 0 !important;

    pointer-events: none !important;

}

body.appointment-open .navbar-collapse {

    visibility: hidden !important;

    pointer-events: none !important;

}


/* =========================================================
   CALENDARIO DE CITAS
   DISEÑO DEL SELECTOR DE FECHA
   ========================================================= */

.appointment-calendar {

    display: none;

    width: 100%;

    margin-top: 12px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 18px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.10);

    position: relative;

    z-index: 100;

    animation:
        appointmentCalendarIn
        0.25s ease both;

}


.appointment-calendar.active {

    display: block;

}


/* =========================================================
   CABECERA
   ========================================================= */

.appointment-calendar-header {

    display: grid;

    grid-template-columns:
        42px
        1fr
        42px;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

}


.calendar-title {

    text-align: center;

    font-size: 18px;

    font-weight: 700;

    line-height: 1.3;

}


.calendar-nav {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 42px;

    height: 42px;

    padding: 0;

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 12px;

    background: #ffffff;

    color: inherit;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;

}


.calendar-nav:hover {

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.08);

}


/* =========================================================
   DÍAS DE LA SEMANA
   ========================================================= */

.calendar-weekdays {

    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 6px;

    margin-bottom: 8px;

}


.calendar-weekday {

    padding: 8px 2px;

    text-align: center;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    opacity: 0.55;

}


/* =========================================================
   DÍAS DEL MES
   ========================================================= */

.calendar-days {

    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 6px;

}


.calendar-day {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    aspect-ratio: 1;

    min-height: 42px;

    padding: 0;

    border: 1px solid transparent;

    border-radius: 12px;

    background: transparent;

    color: inherit;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


/* =========================================================
   DÍAS VACÍOS
   ========================================================= */

.calendar-day.empty {

    pointer-events: none;

    cursor: default;

}


/* =========================================================
   DÍAS DISPONIBLES
   ========================================================= */

.calendar-day:not(.empty):not(.disabled):hover {

    transform: translateY(-2px);

    border-color: currentColor;

    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.08);

}


/* =========================================================
   DÍAS DESHABILITADOS
   ========================================================= */

.calendar-day.disabled {

    opacity: 0.28;

    cursor: not-allowed;

    background: rgba(0, 0, 0, 0.025);

}


/* =========================================================
   ANIMACIÓN
   ========================================================= */

@keyframes appointmentCalendarIn {

    from {

        opacity: 0;

        transform:
            translateY(-8px)
            scale(0.98);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    .appointment-calendar {

        padding: 16px;

        border-radius: 16px;

    }


    .appointment-calendar-header {

        grid-template-columns:
            38px
            1fr
            38px;

    }


    .calendar-nav {

        width: 38px;

        height: 38px;

        border-radius: 10px;

    }


    .calendar-title {

        font-size: 16px;

    }


    .calendar-weekdays {

        gap: 3px;

    }


    .calendar-days {

        gap: 3px;

    }


    .calendar-weekday {

        font-size: 10px;

    }


    .calendar-day {

        min-height: 38px;

        border-radius: 10px;

        font-size: 12px;

    }

}


@media (max-width: 400px) {

    .appointment-calendar {

        padding: 12px;

    }


    .calendar-day {

        min-height: 34px;

        font-size: 11px;

    }


    .calendar-weekday {

        font-size: 9px;

    }

}

/* =========================================================
   BOTÓN ENVIAR / CONFIRMAR CITA
   ========================================================= */

#btnEnviar {
    min-width: 220px;
    height: 58px;

    padding: 0 28px;

    border: none !important;
    border-radius: 50px;

    background: linear-gradient(
        135deg,
        #10B981,
        #059669
    ) !important;

    color: #FFFFFF !important;

    font-size: 1rem;
    font-weight: 700;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    cursor: pointer;

    box-shadow:
        0 18px 35px rgba(16, 185, 129, 0.30);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


/* ICONO */

#btnEnviar i {
    color: #FFFFFF !important;
}


/* HOVER */

#btnEnviar:hover {
    transform: translateY(-3px);

    background: linear-gradient(
        135deg,
        #059669,
        #047857
    ) !important;

    color: #FFFFFF !important;

    box-shadow:
        0 24px 45px rgba(16, 185, 129, 0.38);
}


/* AL HACER CLICK */

#btnEnviar:active {
    transform: translateY(0);
}


/* DESHABILITADO */

#btnEnviar:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}

/* =========================================================
   BOTÓN CONFIRMAR CITA
   ========================================================= */

#confirmAppointment {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 220px !important;
    height: 58px !important;

    padding: 0 28px !important;

    border: none !important;
    border-radius: 50px !important;

    background: linear-gradient(
        135deg,
        #10B981,
        #059669
    ) !important;

    color: #FFFFFF !important;

    font-size: 16px !important;
    font-weight: 700 !important;

    opacity: 1 !important;
    visibility: visible !important;

    cursor: pointer !important;

    gap: 10px;

    box-shadow:
        0 18px 35px rgba(16, 185, 129, 0.30);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#confirmAppointment i {
    display: inline-block !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
}

#confirmAppointment:hover {
    transform: translateY(-3px);

    background: linear-gradient(
        135deg,
        #059669,
        #047857
    ) !important;

    color: #FFFFFF !important;

    box-shadow:
        0 24px 45px rgba(16, 185, 129, 0.38);
}

#confirmAppointment:disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}
