.petct-calendar {
    border: 1px solid var(--border);
    background: var(--background);
    border-radius: var(--radius);
    padding: 0.65rem 0.75rem;
}

.petct-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.petct-calendar__nav {
    display: flex;
    height: 1.5rem;
    width: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1;
    transition: background-color 0.15s ease;
}

.petct-calendar__nav:hover:not(:disabled) {
    background: var(--surface);
}

.petct-calendar__nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.petct-calendar__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--foreground);
    text-transform: capitalize;
}

.petct-calendar__weekdays,
.petct-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.15rem;
}

.petct-calendar__weekdays {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--muted-foreground);
}

.petct-calendar__days {
    margin-top: 0.15rem;
}

.petct-calendar__day {
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--foreground);
    font-size: 0.7rem;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.petct-calendar__day:hover:not(:disabled):not(.is-selected) {
    background: var(--surface);
}

.petct-calendar__day:disabled {
    color: var(--muted-foreground);
    opacity: 0.35;
    cursor: not-allowed;
}

.petct-calendar__day.is-today:not(.is-selected) {
    border-color: var(--accent);
    font-weight: 600;
}

.petct-calendar__day.is-selected {
    background-image: var(--gradient-accent);
    color: var(--primary-foreground);
    font-weight: 700;
}

.petct-calendar__day--empty {
    visibility: hidden;
    pointer-events: none;
}

.petct-slot-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal de reserva exitosa */
.petct-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: oklch(21% 0.06 253 / 0.55);
    backdrop-filter: blur(2px);
}

.petct-modal__card {
    width: 100%;
    max-width: 27rem;
    border-radius: var(--radius);
    background: var(--card);
    color: var(--card-foreground);
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-float);
}

.petct-modal__icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 9999px;
    background-image: var(--gradient-accent);
    color: var(--primary-foreground);
}

.petct-modal__icono svg {
    width: 1.5rem;
    height: 1.5rem;
}

.petct-modal__titulo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
}

.petct-modal__texto {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--muted-foreground);
}

.petct-modal__boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background-image: var(--gradient-accent);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-card);
    text-decoration: none;
}

/* Spinner del overlay de carga */
.petct-spinner {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 1.25rem;
    border-radius: 9999px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    animation: petct-spin 0.8s linear infinite;
}

@keyframes petct-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .petct-spinner {
        animation-duration: 2s;
    }
}
