﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --salon-50: #fef7ed;
    --salon-100: #f7e6d3;
    --salon-200: #efc9a6;
    --salon-300: #e5a574;
    --salon-400: #d97f40;
    --salon-500: #8b3a24;
    --salon-600: #7a3220;
    --salon-700: #692a1c;
    --salon-800: #582218;
    --salon-900: #471a14;
    --salon-accent: #ff6b35;
    --citas-theme-1-rgb: 88, 64, 239;
}

:root {
    --bs-link-color-rgb: var(--citas-theme-1-rgb);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

    .header h1 {
        font-size: 3rem;
        color: var(--salon-800);
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .header p {
        font-size: 1.2rem;
        color: var(--salon-600);
    }

.icon {
    width: 50px;
    height: 50px;
    fill: var(--salon-accent);
}

.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 30px;
    animation: fadeIn 0.6s ease-out;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #ddd;
}

    .step-circle.active {
        background: var(--salon-accent);
        color: white;
        border-color: var(--salon-accent);
        transform: scale(1.1);
    }

    .step-circle.completed {
        background: #22c55e;
        color: white;
        border-color: #22c55e;
    }

.step-label {
    font-weight: 600;
    color: var(--salon-700);
}

.step-line {
    width: 60px;
    height: 3px;
    background: #ddd;
    border-radius: 2px;
    transition: all 0.5s ease;
}

    .step-line.completed {
        background: #22c55e;
    }

.cardImges {
    background: white;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    animation: slideUp 0.6s ease-out;
}
.card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    animation: slideUp 0.6s ease-out;
}

    .card h2 {
        font-size: 1.8rem;
        color: var(--salon-800);
        margin-bottom: 30px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-card {
    background: linear-gradient(135deg, var(--salon-50), white);
    border: 2px solid #e5e5e5;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        border-color: var(--salon-accent);
    }

    .service-card.selected {
        border-color: var(--salon-accent);
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), white);
        transform: translateY(-5px);
    }

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--salon-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--salon-800);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--salon-600);
    margin-bottom: 20px;
}

.service-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--salon-accent);
    margin-bottom: 5px;
}

.service-duration {
    color: var(--salon-500);
    font-size: 0.9rem;
}

.calendar-container {
    margin-bottom: 30px;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

    .calendar-nav button {
        background: none;
        border: none;
        color: var(--salon-600);
        font-size: 1rem;
        cursor: pointer;
        padding: 10px 15px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .calendar-nav button:hover:not(:disabled) {
            background: var(--salon-accent);
            color: white;
        }

        .calendar-nav button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

.calendar-month {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--salon-800);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: var(--salon-600);
    padding: 10px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
}

    .calendar-day:hover:not(.disabled) {
        border-color: var(--salon-accent);
        background: var(--salon-accent);
        color: white;
        transform: scale(1.05);
    }

    .calendar-day.selected {
        background: var(--salon-accent);
        color: white;
        border-color: var(--salon-accent);
    }

    .calendar-day.disabled {
        background: #f5f5f5;
        color: #ccc;
        cursor: not-allowed;
    }

.social-links .btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.30rem;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .social-links .btn-social:hover {
        transform: translateY(-2px) scale(1.1);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

.btn-facebook {
    background-color: #1877F2;
}

    .btn-facebook:hover {
        background-color: #166FE5;
    }

.btn-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

    .btn-instagram:hover {
        filter: brightness(1.1);
    }

.social-links .social-message {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--salon-700);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.time-slot {
    background: var(--salon-50);
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .time-slot:hover {
        border-color: var(--salon-accent);
        background: var(--salon-accent);
        color: white;
    }

    .time-slot.selected {
        background: var(--salon-accent);
        color: white;
        border-color: var(--salon-accent);
    }

.btnmi {
    background: var(--salon-accent);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .btnmi:hover {
        background: #e55a2b;
        transform: translateY(-2px);
    }

.btn-secondary {
    background: var(--salon-600);
}

    .btn-secondary:hover {
        background: var(--salon-700);
    }

.btn-ghost {
    background: transparent;
    color: var(--salon-600);
}

    .btn-ghost:hover {
        background: var(--salon-100);
    }

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 60px 0;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.loading-dot {
    width: 12px;
    height: 12px;
    background: var(--salon-accent);
    border-radius: 50%;
    animation: loadingDots 1.5s infinite;
}

    .loading-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .loading-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

.confirmation {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    text-align: center;
    padding: 40px;
    border-radius: 20px;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: checkmark 0.6s ease-out;
}

.appointment-summary {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

    .summary-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingDots {

    0%, 20% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.preview-card {
    background: var(--salon-50);
    border: 2px solid var(--salon-200);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}


.preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--salon-200);
}

    .preview-row:last-child {
        border-bottom: 1px solid var(--salon-200);
        font-weight: bold;
        font-size: 1.1rem;
    }

.preview-label {
    color: var(--salon-600);
}

.preview-value {
    color: var(--salon-800);
    font-weight: 600;
}

.preview-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 535px) {
    .calendar-nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 5px;
        flex-wrap: wrap;
    }

    #currentMonth {
        margin: 0;
        font-size: 1rem;
        text-align: center;
    }

    #prevMonth,
    #nextMonth {
        background: none;
        border: none;
        color: inherit;
        padding: 0.25rem 0;
    }

    .step-circle {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }

    .step {
        gap: 4px;
    }

    .progress-indicator {
        width: 100%;
        padding: 0 5px;
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }

    .step-label {
        font-size: 0.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .progress-indicator {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 90%;
        max-width: 450px;
        margin: 2rem auto;
        padding: 0 10px;
        text-align: initial;
    }

    .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        flex-grow: 1;
        position: relative;
        z-index: 1;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        transition: all 0.3s ease;
        border: 2px solid #ddd;
        color: #6c757d;
        background-color: #e9ecef;
        font-size: 1.1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        .step-circle.active {
            background: var(--salon-accent);
            color: white;
            border-color: var(--salon-accent);
            transform: scale(1.1);
        }

        .step-circle.completed {
            background: #22c55e;
            color: white;
            border-color: #22c55e;
        }

    .step-label {
        font-size: 0.85rem;
        color: #6c757d;
        margin-top: 0.5rem;
        white-space: nowrap;
        transition: color 0.3s ease;
    }

    .step.active .step-label,
    .step.completed .step-label {
        color: var(--salon-accent);
        font-weight: bold;
    }

    .step-line {
        display: block;
        flex-grow: 1;
        height: 2px;
        background-color: #e9ecef;
        margin: 0 -5px;
        z-index: 0;
    }

    .progress-indicator .step:first-child .step-line,
    .progress-indicator .step:last-child .step-line {
        display: none;
    }

    .card {
        padding: 25px;
    }

    .services-grid {
        display: grid;
    }

    .calendar-nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .actions,
    .preview-actions {
        flex-direction: column;
    }

    .preview-row {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 991px) {
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
        overflow-x: hidden;
    }

    .citas-mobile-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        box-shadow: 0 -5px 15px rgba(0,0,0,.05),0 -1px 3px rgba(0,0,0,.1);
        border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
        background-color: #fff;
        padding: 0;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: env(safe-area-inset-bottom);
        -webkit-display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

        .citas-mobile-footer .container {
            padding: 0;
            height: 100%;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            -webkit-display: flex;
            -webkit-box-align: center;
            -webkit-align-items: center;
            -webkit-box-pack: center;
            -webkit-justify-content: center;
        }

        .citas-mobile-footer .nav {
            align-items: flex-end;
            margin: 0 auto;
            width: 100%;
            height: 100%;
            --bs-nav-link-padding-y: 0;
            --bs-nav-link-padding-x: 0;
            display: flex;
            justify-content: space-between;
            -webkit-display: flex;
            -webkit-box-align: end;
            -webkit-align-items: flex-end;
            -webkit-box-pack: justify;
            -webkit-justify-content: space-between;
        }

            .citas-mobile-footer .nav .nav-item {
                flex-grow: 1;
                flex-shrink: 1;
                flex-basis: auto;
                display: flex;
                justify-content: center;
                align-items: flex-end;
                height: 100%;
                min-width: 0;
                position: relative;
                z-index: 1;
                -webkit-display: flex;
                -webkit-box-flex: 1;
                -webkit-flex-grow: 1;
                -webkit-box-pack: center;
                -webkit-justify-content: center;
                -webkit-box-align: end;
                -webkit-align-items: flex-end;
            }

                .citas-mobile-footer .nav .nav-item .nav-link {
                    color: var(--bs-secondary);
                    padding: 0.5rem 0.25rem;
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                    justify-content: flex-end;
                    align-items: center;
                    text-decoration: none;
                    -webkit-display: flex;
                    -webkit-box-orient: vertical;
                    -webkit-flex-direction: column;
                    -webkit-box-pack: end;
                    -webkit-justify-content: flex-end;
                    -webkit-box-align: center;
                    -webkit-align-items: center;
                    -webkit-tap-highlight-color: transparent;
                }

                    .citas-mobile-footer .nav .nav-item .nav-link i,
                    .citas-mobile-footer .nav .nav-item .nav-link svg {
                        margin: 0 auto 4px;
                        font-size: 20px;
                        height: 24px;
                        width: 24px;
                        color: inherit;
                        stroke: currentColor;
                    }

                    .citas-mobile-footer .nav .nav-item .nav-link .nav-text {
                        font-size: 10px;
                        white-space: nowrap;
                        line-height: 1.2;
                        color: inherit;
                    }

                    .citas-mobile-footer .nav .nav-item .nav-link:focus,
                    .citas-mobile-footer .nav .nav-item .nav-link:hover {
                        color: var(--citas-theme-1-hover);
                    }

                        .citas-mobile-footer .nav .nav-item .nav-link:focus i,
                        .citas-mobile-footer .nav .nav-item .nav-link:focus svg,
                        .citas-mobile-footer .nav .nav-item .nav-link:hover i,
                        .citas-mobile-footer .nav .nav-item .nav-link:hover svg {
                            color: var(--citas-theme-1-hover);
                            stroke: var(--citas-theme-1-hover);
                        }

                    .citas-mobile-footer .nav .nav-item .nav-link.active,
                    .citas-mobile-footer .nav .nav-item .nav-link:active {
                        background-color: transparent;
                        color: var(--citas-theme-1);
                    }

                        .citas-mobile-footer .nav .nav-item .nav-link.active i,
                        .citas-mobile-footer .nav .nav-item .nav-link.active svg,
                        .citas-mobile-footer .nav .nav-item .nav-link:active i,
                        .citas-mobile-footer .nav .nav-item .nav-link:active svg {
                            color: var(--citas-theme-1);
                            stroke: var(--citas-theme-1);
                        }

                .citas-mobile-footer .nav .nav-item:nth-child(2) {
                    flex-grow: 0;
                    flex-shrink: 0;
                    flex-basis: auto;
                    height: 70px;
                    display: flex;
                    align-items: flex-end;
                    justify-content: center;
                    position: relative;
                    z-index: 101;
                    margin-top: -25px;
                }

                    .citas-mobile-footer .nav .nav-item:nth-child(2) .center-menu-btn {
                        box-shadow: 0 4px 8px rgba(0,0,0,.25),0 2px 4px rgba(0,0,0,.25);
                        height: 55px;
                        width: 55px;
                        line-height: 55px;
                        border-radius: 50%;
                        background-color: transparent !important;
                        box-shadow: none !important;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        margin-bottom: 0;
                    }

                        .citas-mobile-footer .nav .nav-item:nth-child(2) .center-menu-btn i,
                        .citas-mobile-footer .nav .nav-item:nth-child(2) .center-menu-btn svg {
                            font-size: 28px;
                            height: 32px;
                            line-height: 32px;
                            width: 32px;
                            margin-bottom: 0;
                            color: #fff;
                            stroke: #fff;
                        }

    [data-bs-theme=dark] .citas-mobile-footer .nav .nav-item .nav-link,
    [data-bs-theme=dark] .citas-mobile-footer .nav .nav-item .nav-link i,
    [data-bs-theme=dark] .citas-mobile-footer .nav .nav-item .nav-link svg,
    [data-bs-theme=dark] .citas-mobile-footer .nav .nav-item .nav-link .nav-text {
        color: var(--bs-secondary-text-dark);
        stroke: var(--bs-secondary-text-dark);
    }

        [data-bs-theme=dark] .citas-mobile-footer .nav .nav-item .nav-link.active,
        [data-bs-theme=dark] .citas-mobile-footer .nav .nav-item .nav-link:active {
            color: #fff;
        }

            [data-bs-theme=dark] .citas-mobile-footer .nav .nav-item .nav-link.active i,
            [data-bs-theme=dark] .citas-mobile-footer .nav .nav-item .nav-link.active svg,
            [data-bs-theme=dark] .citas-mobile-footer .nav .nav-item .nav-link:active i,
            [data-bs-theme=dark] .citas-mobile-footer .nav .nav-item .nav-link:active svg {
                color: #fff;
                stroke: #fff;
            }

    [data-bs-theme=dark] .citas-mobile-footer {
        background-color: #343a40;
        box-shadow: 0 -5px 15px rgba(0,0,0,.3),0 -1px 3px rgba(0,0,0,.5);
    }

    .citas-mobile-footer .nav .nav-item:nth-child(2) .center-menu-btn > span {
        box-shadow: 0 4px 8px rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.25);
        height: 55px;
        width: 55px;
        line-height: 55px;
        border-radius: 50%;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -60px;
    }
}

@media (max-width: 991px) {
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
        overflow-x: hidden;
    }

    .citas-mobile-footer {
        position: relative;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

        .citas-mobile-footer.style-1.d-block.d-lg-none
        .nav .nav-item .center-menu-btn {
            margin: 0 !important;
        }

        .citas-mobile-footer .container {
            max-width: 100% !important;
            padding: 0 !important;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .citas-mobile-footer .nav {
            display: flex;
            justify-content: space-around; /* reparte los items */
            align-items: center; /* alinea verticalmente */
            height: 60px; /* altura de tu footer */
            position: relative;
        }

            .citas-mobile-footer .nav .nav-item .center-menu-btn {
                position: relative;
                top: 20px;
                left: 15%;
                transform: translateX(-50%, -50%) !important;
                bottom: 10px;
                z-index: 101;
            }

    [data-bs-theme=dark] .citas-mobile-footer {
        background-color: #343a40;
        box-shadow: 0 -5px 15px rgba(0,0,0,.3), 0 -1px 3px rgba(0,0,0,.5);
    }

    .citas-mobile-footer .nav .nav-item .center-menu-btn > span {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 8px rgba(0,0,0,.25) !important;
        height: 55px !important;
        width: 55px !important;
        line-height: 55px !important;
        border-radius: 50% !important;
        background-color: transparent !important;
    }
}

.calendar-container {
    max-width: 100%;
    margin: 0 2px;
    padding: 0 1rem;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

    .calendar-nav button {
        flex: 1 1 auto;
        margin: 0.5rem;
    }

.calendar-month {
    flex: 2 1 auto;
    text-align: center;
    margin: 0.5rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    gap: 0.2rem;
}

    .calendar-weekdays .weekday {
        font-size: 0.8rem;
        white-space: nowrap;
    }

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
}

    .calendar-days > div {
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        font-size: clamp(0.7rem, 2vw, 0.9rem);
        min-width: 0;
        box-sizing: border-box;
    }

.citas-footer,
.citas-mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -5px 15px rgba(0,0,0,.1);
    z-index: 1000;
}

body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

.citas-footer .container,
.citas-mobile-footer .container {
    max-width: 100%;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.citas-footer .nav,
.citas-mobile-footer .nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.citas-footer .center-menu-btn,
.citas-mobile-footer .center-menu-btn {
    position: relative;
    margin: 0 .5rem;
    flex: 0 0 auto;
}

    .citas-footer .center-menu-btn > span,
    .citas-mobile-footer .center-menu-btn > span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        line-height: 60px;
        border-radius: 50%;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,.15);
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
    }

[data-bs-theme=dark] .citas-footer,
[data-bs-theme=dark] .citas-mobile-footer {
    background-color: #343a40;
    box-shadow: 0 -5px 15px rgba(0,0,0,.3), 0 -1px 3px rgba(0,0,0,.5);
}

@media (min-width: 992px) {
    .citas-footer .nav-item .nav-link,
    .citas-mobile-footer .nav-item .nav-link {
        padding: .75rem 1.5rem;
        font-size: 1rem;
    }

    .citas-footer .nav-pills,
    .citas-mobile-footer .nav-pills {
        justify-content: center;
    }

    .citas-footer .center-menu-btn > span,
    .citas-mobile-footer .center-menu-btn > span {
        width: 70px;
        height: 70px;
        line-height: 70px;
        top: -30px;
    }
}

@media (max-width: 480px) {
    .calendar-weekdays .weekday {
        font-size: 0;
        position: relative;
    }

        .calendar-weekdays .weekday:nth-child(1)::after {
            content: "D";
            font-size: 0.75rem;
        }

        .calendar-weekdays .weekday:nth-child(2)::after {
            content: "L";
            font-size: 0.75rem;
        }

        .calendar-weekdays .weekday:nth-child(3)::after {
            content: "M";
            font-size: 0.75rem;
        }

        .calendar-weekdays .weekday:nth-child(4)::after {
            content: "M";
            font-size: 0.75rem;
        }

        .calendar-weekdays .weekday:nth-child(5)::after {
            content: "J";
            font-size: 0.75rem;
        }

        .calendar-weekdays .weekday:nth-child(6)::after {
            content: "V";
            font-size: 0.75rem;
        }

        .calendar-weekdays .weekday:nth-child(7)::after {
            content: "S";
            font-size: 0.75rem;
        }
}

@media (min-width: 481px) and (max-width: 768px) {
    .calendar-days {
        grid-template-columns: repeat(7, 1fr);
    }

    #step4 .preview-card {
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);

        max-width: auto;

    }

        #step4 .preview-card h3 {
            font-size: 1.25rem;
            margin-bottom: 1rem;
            font-weight: 600;
            color: var(--salon-800);
        }

    .preview-summary {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .preview-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .preview-label {
        font-weight: 500;
        color: #555;
    }

        .preview-label.remarcar {
            font-weight: 600;
            color: var(--salon-accent);
        }

    .preview-value {
        font-weight: 600;
        color: #333;
    }

    /* Inputs flotantes y select en filas remarcadas */
    .preview-row.remarcar .form-floating,
    .preview-row.remarcar .input-group .form-floating,
    .preview-row.remarcar .input-group .maxwidth-100 {
        width: 100%;
    }

    .form-floating .form-control {
        padding: 0.75rem 0.5rem;
        border-radius: 6px;
        border: 1px solid #ccc;
        transition: border-color .2s;
    }

        .form-floating .form-control:focus {
            border-color: var(--salon-accent);
            box-shadow: 0 0 0 2px rgba(255,160,0,0.1);
        }

    /* Selector de país y teléfono alineados */
    #countryClient {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    #phoneClient {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .calendar-nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        margin-bottom: 1rem;
    }

        .calendar-nav > .calendar-month {
            text-align: center;
            margin-bottom: .5rem;
            white-space: nowrap;
        }

        .calendar-nav > button {
            background: none;
            border: none;
            font-size: .9rem;
            cursor: pointer;
            white-space: nowrap;
            padding: .25rem .5rem;
            flex: 0 0 auto;
        }

    #prevMonth {
        align-self: flex-start;
    }

    #nextMonth {
        align-self: flex-end;
    }

    .preview-row.remarcar .input-group {
        display: flex;
        gap: 0.5rem;
        align-items: stretch;
    }

        .preview-row.remarcar .input-group .form-floating:first-child {
            flex: 0 0 auto;
            width: auto;
        }

        .preview-row.remarcar .input-group .form-floating:last-child {
            flex: 1 1 auto;
        }

        .preview-row.remarcar .input-group .form-floating {
            width: auto !important;
        }
}

@media (max-width: 480px) {
    .calendar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        margin-bottom: 1rem;
    }

    .calendar-month {
        width: 100%;
        text-align: center;
        font-size: 1rem;
        white-space: nowrap;
        margin-bottom: 0.5rem;
    }

    .month-buttons-group {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

        .month-buttons-group button {
            background: none;
            border: none;
            font-size: 0.9rem;
            cursor: pointer;
            white-space: nowrap;
            flex-shrink: 0;
            padding: 0.25rem 0.5rem;
        }

    .step-circle {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }

    .step {
        gap: 4px;
    }

    .progress-indicator {
        width: 100%;
        padding: 0 5px;
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }

    .step-label {
        font-size: 0.5rem;
    }

    .calendar-weekdays {
        margin-top: 0.5rem;
    }

    .preview-row.remarcar .input-group {
        display: flex;
        gap: 0.25rem;
        align-items: stretch;
        width: 100%;
        flex-wrap: nowrap;
    }

        .preview-row.remarcar .input-group .form-floating:first-child {
            flex: 0 0 auto;
            width: auto !important;
            min-width: 80px !important;
            max-width: 100px !important;
            overflow: hidden;
        }

        .preview-row.remarcar .input-group .form-floating:last-child {
            flex: 1 1 0%;
            width: 100% !important;
        }

        .preview-row.remarcar .input-group .form-floating:first-child .form-select {
            width: 100% !important;
        }

        .preview-row.remarcar .input-group .form-floating:last-child .form-control {
            width: 100% !important;
        }
}

@media (min-width: 481px) and (max-width: 768px) {
    /* Centrar y limitar ancho */
    #step5 .confirmation {
        width: 100%;
        margin: 0 auto;
        padding: 1rem;
    }
    /* Icono más grande y centrado */
    #step5 .confirmation-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }
    /* Resumen de cita en columnas si cabe */
    #step5 .appointment-summary {
        display: grid;
        gap: 0.75rem;
    }

        #step5 .appointment-summary .summary-row {
            display: flex;
            justify-content: space-between;
        }
    /* Botones uno al lado del otro */
    #step5 .actions {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    /* Ajustar padding y ancho completo */
    #step5 .confirmation {
        width: 100%;
        padding: 0.75rem;
    }
    /* Icono más pequeño, centrado */
    #step5 .confirmation-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 0.75rem;
    }
    /* Resumen en una sola columna */
    #step5 .appointment-summary {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
        /* Aumentar separación de filas */
        #step5 .appointment-summary .summary-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.95rem;
        }
    /* Botones en columna */
    #step5 .actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}
