/* Page Layout */
.clases-page {
    background-color: var(--background);
    min-height: 100vh;
}

.pt-32 {
    padding-top: 8rem;
}

.pb-16 {
    padding-bottom: 4rem;
}

.page-title {
    font-size: 2rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.text-center {
    text-align: center;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Grid */
.clases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .clases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .clases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.clase-card {
    background-color: var(--card);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.clase-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.clase-img-container {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.clase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.clase-card:hover .clase-img {
    transform: scale(1.1);
}

.clase-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.clase-badge-wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.clase-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-green {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-yellow {
    background-color: #fef9c3;
    color: #a16207;
}

.badge-red {
    background-color: #fee2e2;
    color: #b91c1c;
}

.badge-blue {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.clase-content {
    padding: 1.5rem;
}

.clase-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.clase-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    min-height: 40px;
}

.info-icon {
    color: var(--primary);
    margin-right: 0.5rem;
}

.clase-info-row {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(44, 62, 80, 0.7);
    /* Text foreground opacity */
    margin-bottom: 1rem;
}

.clase-horarios-container {
    margin-bottom: 1rem;
}

.clase-horarios {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.horario-tag {
    padding: 0.25rem 0.5rem;
    background-color: var(--secondary);
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.clase-cupos {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(44, 62, 80, 0.7);
    margin-bottom: 1rem;
}

.w-full {
    width: 100%;
    display: block;
}

/* Modal Reserva */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background-color: var(--card);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 28rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    position: sticky;
    top: 0;
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.modal-close {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--foreground);
}

.modal-close:hover {
    background-color: var(--secondary);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background-color: var(--input-background);
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.horario-btn {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border);
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
    color: var(--foreground);
}

.horario-btn.selected {
    border-color: var(--primary);
    background-color: rgba(255, 107, 107, 0.05);
    color: var(--primary);
}

.horario-btn:hover:not(.selected) {
    border-color: rgba(255, 107, 107, 0.5);
}

.info-box {
    background-color: rgba(232, 244, 248, 0.5);
    /* secondary with opacity */
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-box-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.info-box-desc {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

/* Animations equivalent to framer motion */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

.toast.success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #166534;
}

.toast.error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #7f1d1d;
}

.toast.hidden {
    display: none;
}