/* --- CATÁLOGO (Cards) --- */
.services-section-cards {
    background-color: var(--secondary);
    padding-bottom: 6rem;
}

/* --- Tabs por categoría (mobile-first) --- */
.services-tabs-wrapper {
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
}

.services-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.services-tab {
    flex: 0 0 auto;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
    background: white;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: var(--radius-full);
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.services-tab:hover {
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.services-tab.active {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

.services-panels {
    position: relative;
}

.services-panel {
    display: none;
}

.services-panel.active {
    display: block;
    animation: servicesPanelIn 0.25s ease;
}

@keyframes servicesPanelIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.catalog-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-category-group {
    width: 100%;
}

.category-title {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(116, 84, 63, 0.1);
    text-align: left;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Tarjeta Individual */
.service-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 2rem 2rem 1rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card.card-highlight {
    background-color: #faf9f6; /* Un tono muy sutil diferente si quieres */
    border: 1px solid var(--accent); /* O un borde del color de tu marca */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(205, 126, 98, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 60px;
    margin-bottom: 1.5rem;
}

.service-icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.service-price-tag {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: var(--accent);
    background-color: rgba(205, 126, 98, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h4 {
    font-size: 1.25rem;
    color: var(--text-main);
    min-height: 3.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.card-body p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: auto;
    padding-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
    height: 24px;
    align-items: center;
    margin-top: 0;
}

.card-meta i {
    margin-right: 5px;
    color: var(--accent);
}

.card-footer {
    border-top: 1px solid var(--secondary);
    padding-top: 0.7rem;
    text-align: center;
}

.btn-card {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.btn-card:hover {
    color: var(--accent);
    gap: 0.8rem;
}

/* Botón "Ver más" (mismo estilo que enlace, pero button) */
button.btn-card.btn-ver-mas {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

/* --- Caja de Packs (3ª al 50% / 5ª gratis) --- */
.pack-box {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
    margin-top: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(var(--accent-rgb), 0.08);
    border-radius: var(--radius-md);
}

.pack-box-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card .card-body .pack-box {
    margin-bottom: 0.5rem;
}

.pack-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.pack-option {
    flex: 1 1 0;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    background: white;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.5rem;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.pack-option:hover {
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.pack-option.active {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
}

.pack-option-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.pack-option-detail {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    line-height: 1.2;
}

.pack-option.active .pack-option-detail {
    color: white;
}

.pack-option-price {
    font-size: 0.8rem;
    opacity: 0.95;
}

.pack-option.active .pack-option-price {
    opacity: 1;
}

.pack-price-display {
    margin: 0;
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
}

.pack-price-display strong {
    color: var(--accent);
}

.service-price-tag--soon {
    background-color: #888;
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Modal detalle tratamiento --- */
.treatment-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.treatment-modal[hidden] {
    display: none !important;
}

.treatment-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--primary-rgb), 0.4);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.treatment-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.treatment-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--primary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.treatment-modal-close:hover {
    background: var(--accent);
    color: white;
}

.treatment-modal-body {
    padding-right: 2rem;
}

.treatment-modal-title {
    font-family: "Playfair Display", serif;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-right: 2.5rem;
}

.treatment-modal-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.treatment-modal-body .details-list {
    margin-bottom: 1.5rem;
}

.treatment-modal-body .btn-block {
    width: 100%;
    text-align: center;
    display: block;
}

/* --- PÁGINA DETALLE TRATAMIENTO --- */
#treatment-detail .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

#treatment-detail .section-title h2 {
    font-size: 2.8rem;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--accent);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.treatment-detail-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.treatment-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.treatment-detail-description {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-light);
}

.treatment-detail-sidebar {
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    position: sticky;
    top: 120px;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.detail-item i {
    font-size: 1.2rem;
    color: var(--accent);
    width: 30px;
    padding-top: 5px;
    text-align: center;
}

.detail-item-content h4 {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.1rem;
}

.detail-item-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.treatment-actions-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--secondary);
    padding-top: 2rem;
}

/* --- ESTADO PRÓXIMAMENTE (Coming Soon) --- */

/* Fondo gris y borde sutil */
.service-card.coming-soon {
    background-color: #f4f4f4; /* Un gris claro elegante */
    border: 1px dashed #ccc;   /* Borde discontinuo para indicar "en construcción" */
    opacity: 0.9;
}

/* Cambiar estilo del icono para que se vea apagado */
.service-card.coming-soon .service-icon-box {
    background-color: #e0e0e0;
    color: #a0a0a0;
}

/* Etiqueta de "Próximamente" en lugar de precio */
.service-card.coming-soon .service-price-tag {
    background-color: #888;
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botón deshabilitado */
.btn-card.disabled {
    color: #999;
    cursor: default;
    pointer-events: none; /* Evita que se pueda hacer clic */
}

.btn-card.disabled:hover {
    gap: 0.5rem; /* Evita la animación de movimiento */
    color: #999;
}

/* RESPONSIVE SERVICES */
@media (max-width: 968px) {
    .treatment-detail-layout {
        grid-template-columns: 1fr;
    }

    .treatment-detail-sidebar {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .services-tabs {
        padding-bottom: 0.5rem;
    }

    .services-tab {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-title {
        font-size: 1.75rem;
        text-align: center;
    }

    .treatment-detail-image {
        height: 250px;
    }

    .card-body p {
        display: none;
    }

    .card-body h4 {
        margin-bottom: 0.5rem;
        min-height: auto;
    }

    .service-card.card-highlight .card-body p {
        display: block;
    }

    .pack-selector {
        flex-direction: column;
    }

    .pack-option {
        width: 100%;
    }

    .treatment-modal-dialog {
        max-height: 85vh;
        padding: 1.5rem;
    }

    .treatment-modal-close {
        top: 0.75rem;
        right: 0.75rem;
    }

    .treatment-modal-body {
        padding-right: 0;
    }

    .treatment-modal-title {
        padding-right: 0;
        font-size: 1.5rem;
    }
}