/* ═══════════════════════════════════════════════════
   CLASES PAGE — Bujinkan Sant Cugat
   ═══════════════════════════════════════════════════ */

/* ─── 1. HERO SECTION ──────────────────────────── */
.clases-hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    overflow: hidden;
}

.clases-hero-section .hero-layout {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    min-height: 0;
}

.clases-hero-section .hero-col-center {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 0;
}

.clases-hero-content {
    text-align: center;
    padding: 15px 20px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.clases-hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.clases-hero-tagline {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.clases-hero-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contenedor foto + sol — mismo patrón que bujinkan */
.clases-hero-image {
    margin-top: auto;
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

.clases-hero-image .hero-sun {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 95vw;
    max-width: 1470px;
    opacity: 0.85;
    z-index: 1;
    object-fit: contain;
    pointer-events: none;
}

.clases-photo {
    max-width: 1100px;
    width: 65%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
    position: relative;
    z-index: 2;
}

/* Desktop-large description (inside hero, between tagline and image) — always visible on desktop */
.clases-hero-description--desktop-large {
    display: block;
    margin-top: 15px;
}

/* Mobile-only description (inside hero, after image) — hidden on desktop */
.clases-hero-description--mobile {
    display: none;
}

/* Below-fold section — hidden (description now lives inside the hero) */
.clases-description-section {
    display: none;
}

/* ─── 2. SCHEDULE SECTION ──────────────────────── */
.clases-schedule-section .section-title,
.clases-reviews-section .section-title {
    text-align: center;
}

.clases-schedule-section {
    padding: 100px 20px;
    background-color: #f5f5f5;
    background-image: url('../images/Background-image.png');
    background-repeat: repeat;
    position: relative;
    overflow: hidden;
}

.clases-schedule-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background-image: url('../images/Jackie-H1-testimonial-bg-img-01.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.clases-schedule-section > .container {
    position: relative;
    z-index: 1;
}

.schedule-intro {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* Schedule table */
.schedule-table-wrapper {
    overflow-x: auto;
    margin-bottom: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 700px;
}

.schedule-table thead th {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 18px 12px;
    background: var(--color-dark);
    color: #fff;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-table thead th:last-child {
    border-right: none;
}

.schedule-table thead th.active-day {
    background: var(--color-primary);
}

.schedule-table thead th.special-day {
    background: #8b6914;
}

.schedule-table thead th.time-header {
    width: 80px;
    background: var(--color-dark);
}

.schedule-table tbody td {
    padding: 12px;
    text-align: center;
    border: 1px solid #eee;
    height: 70px;
    vertical-align: middle;
}

.schedule-table .time-cell {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-dark);
    background: #f9f9f9;
    white-space: nowrap;
    width: 80px;
}

.schedule-table .spacer-row td {
    height: 30px;
    border: none;
    background: #f5f5f5;
}

/* Class cells */
.class-cell {
    padding: 15px 10px !important;
    vertical-align: middle !important;
}

.class-cell.regular-class {
    background: rgba(196, 30, 58, 0.08);
    border-left: 3px solid var(--color-primary);
}

.class-cell.special-class {
    background: rgba(139, 105, 20, 0.08);
    border-left: 3px solid #8b6914;
}

.class-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.class-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.class-type {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.class-time {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.class-badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 4px;
}

.regular-class .class-badge {
    background: var(--color-primary);
    color: #fff;
}

.special-class .class-badge {
    background: #8b6914;
    color: #fff;
}

/* Schedule cards */
.schedule-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.schedule-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.schedule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.schedule-card.regular::before {
    background: var(--color-primary);
}

.schedule-card.special::before {
    background: #8b6914;
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.schedule-card .card-icon {
    margin-bottom: 20px;
}

.schedule-card.regular .card-icon {
    color: var(--color-primary);
}

.schedule-card.special .card-icon {
    color: #8b6914;
}

.schedule-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.schedule-card .card-day {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 5px;
}

.schedule-card .card-time {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.schedule-card.regular .card-time {
    color: var(--color-primary);
}

.schedule-card.special .card-time {
    color: #8b6914;
}

.schedule-card .card-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ─── 3. REVIEWS SECTION ──────────────────────── */
.clases-reviews-section {
    padding: 100px 20px;
    background-color: var(--color-white);
    background-image: url('../images/Background-image.png');
    background-repeat: repeat;
    position: relative;
    overflow: hidden;
}

.clases-reviews-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background-image: url('../images/Jackie-H1-class-list-bg-img-01.png');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: contain;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.clases-reviews-section > .container {
    position: relative;
    z-index: 1;
}

.reviews-rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.rating-stars {
    font-size: 1.5rem;
    color: #f5a623;
    letter-spacing: 2px;
}

.rating-score {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
}

.rating-count {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Carousel */
.reviews-carousel {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto 30px;
}

.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-dark);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--color-dark);
}

.carousel-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.carousel-btn:hover svg {
    stroke: #fff;
}

.reviews-track-wrapper {
    flex: 1;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

/* Review cards */
.review-card {
    flex: 0 0 calc(33.333% - 14px);
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 5rem;
    color: rgba(196, 30, 58, 0.1);
    line-height: 1;
}

.review-stars {
    font-size: 1rem;
    color: #f5a623;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.review-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: var(--color-text);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-dark);
    display: block;
}

.review-source {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dots .dot.active {
    background: var(--color-primary);
}

.reviews-google-link {
    display: block;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.reviews-google-link:hover {
    color: var(--color-dark);
}

/* ─── 4. RESPONSIVE ────────────────────────────── */
@media (max-width: 992px) {
    .clases-hero-title {
        font-size: 3.5rem;
    }

    .review-card {
        flex: 0 0 calc(50% - 10px);
    }

    .schedule-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .clases-hero-content {
        padding: 30px 15px 60px;
    }

    .clases-hero-title {
        font-size: 2.8rem;
    }

    .clases-hero-description {
        font-size: 0.9rem;
    }

    .clases-schedule-section {
        padding: 60px 15px;
    }

    .review-card {
        flex: 0 0 calc(100% - 0px);
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .reviews-rating-summary {
        flex-wrap: wrap;
    }

    .clases-reviews-section {
        padding: 60px 15px;
    }
}

@media (max-width: 480px) {
    .clases-hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .clases-hero-tagline {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .schedule-table thead th {
        font-size: 0.75rem;
        padding: 12px 6px;
    }

    .class-name {
        font-size: 0.85rem;
    }

    .carousel-btn {
        display: none;
    }

    .reviews-track-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .reviews-track {
        transition: none;
    }

    .review-card {
        scroll-snap-align: start;
    }
}
