/* ============================================
   servicios.css — Página de Servicios
   Masoterapia Katia
   ============================================ */

/* --- Services Hero --- */
.services-hero {
    padding: 180px 0 120px;
    background: linear-gradient(160deg, hsl(177, 37%, 94%) 0%, hsl(270, 90%, 97%) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.services-hero-label {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.6;
    margin-bottom: 20px;
}

.services-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--primary);
    max-width: 700px;
    margin: 0 auto 28px;
    line-height: 1.15;
}

.services-hero h1 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--primary) 0%, hsl(270, 60%, 55%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-hero p {
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.8;
}

.services-hero-shape {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 160px;
    background: var(--bg-light);
    border-radius: 50% 50% 0 0;
}

/* --- Services Detail --- */
.services-detail {
    padding: 80px 0 100px;
    background: var(--bg-light);
}

.services-category {
    margin-bottom: 80px;
}

.services-category:last-child {
    margin-bottom: 0;
}

.category-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.category-header h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.category-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

/* --- Service Detail Card --- */
.service-detail-card {
    background: var(--white);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -12px rgba(42, 92, 90, 0.15);
}

.service-detail-card--featured {
    border: 2px solid rgba(42, 92, 90, 0.2);
    background: linear-gradient(135deg, rgba(42, 92, 90, 0.03) 0%, rgba(216, 180, 254, 0.06) 100%);
}

.sdc-badge {
    position: absolute;
    top: -12px;
    left: 28px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 20px;
}

.sdc-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 4px;
}

.sdc-content {
    flex: 1;
}

.sdc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sdc-header h3 {
    font-size: 1.1rem;
    color: var(--primary);
    line-height: 1.3;
    font-family: var(--font-heading);
}

.sdc-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    background: rgba(42, 92, 90, 0.08);
    padding: 4px 10px;
    border-radius: 12px;
    flex-shrink: 0;
}

.sdc-benefit {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.sdc-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.sdc-tags li {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: rgba(42, 92, 90, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.sdc-btn {
    font-size: 0.8rem;
    padding: 10px 20px;
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* --- Gallery Carousel --- */
.gallery-section {
    padding: 100px 0;
    background: var(--white);
    overflow: hidden;
}

.gallery-carousel-wrapper {
    position: relative;
    margin: 48px 0 24px;
    padding: 0 40px;
    /* Espacio para flechas */
}

.gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 24px;
    /* Espacio para scrollbar si la muestra el SO */

    /* Ocultar scrollbar visual */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    scroll-snap-align: start;
    flex: 0 0 calc(16.666% - 13.33px);
    /* 6 previas, restando el gap proporcional */
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Flechas de Navegación */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: 0 8px 24px rgba(42, 92, 90, 0.12);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav.prev {
    left: 0;
}

.gallery-nav.next {
    right: 0;
}

.gallery-nav:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.05);
}

.gallery-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.5;
    margin-top: 16px;
}

.gallery-hint code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: monospace;
}

/* --- Services CTA --- */
.services-cta {
    padding: 80px 0 120px;
    background: var(--bg-light);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .gallery-item {
        flex: 0 0 calc(25% - 12px);
        /* 4 items en tablet horiz */
    }
}

@media (max-width: 900px) {
    .services-detail-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        flex: 0 0 calc(33.333% - 10.66px);
        /* 3 items en tablet vertical */
    }

    .gallery-carousel-wrapper {
        padding: 0 24px;
    }

    .gallery-nav.prev {
        left: -12px;
    }

    .gallery-nav.next {
        right: -12px;
    }
}

@media (max-width: 600px) {
    .services-hero {
        padding: 140px 0 80px;
    }

    .services-hero h1 {
        font-size: 2.3rem;
    }

    .service-detail-card {
        flex-direction: column;
        padding: 28px;
    }

    .sdc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }

    .sdc-price {
        align-self: flex-start;
    }

    .category-header {
        margin-bottom: 32px;
    }

    .category-header h2 {
        font-size: 1.6rem;
    }

    .gallery-item {
        flex: 0 0 calc(75% - 16px);
        /* 1.25 items asomándose en móvil, mostrando el siguiente slide más claro */
    }

    /* En móvil ocultamos las flechas porque usarán el touch nativo */
    .gallery-nav {
        display: none;
    }

    .gallery-carousel-wrapper {
        padding: 0;
        margin: 32px -20px 24px;
        /* Sangría negativa para que el scroll llegue al borde */
    }

    .gallery-track {
        padding: 0 20px 24px;
    }
}