/* 
    Madeline Estética Integral - Components
    Shared UI Components
*/

/* Service Selection Grid (Used in services overview) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft), inset 0 0 20px rgba(255,255,255,0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.service-card .image-overlay {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card .service-info {
    padding: 25px;
    text-align: center;
}

.service-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--color-primary-dark);
}

/* Service Detail Sections (Used in servicios.html) */
.rich-sections-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 60px;
}

.service-detail-section {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 50px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 40px;
    border: 1px solid var(--color-primary-light);
    text-align: left;
    scroll-margin-top: 100px;
}

.service-detail-section.alternate {
    flex-direction: row-reverse;
    background: rgba(232, 240, 240, 0.5);
}

.section-image-side {
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.section-image-side img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.section-content-side {
    flex: 1;
}

.section-content-side h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 15px;
}

.section-content-side h3 {
    font-size: 1.3rem;
    color: var(--color-text-main);
    margin-bottom: 20px;
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.benefit-item i {
    color: #2ecc71;
}

.section-actions, .cta-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: nowrap;
    justify-content: center;
}

/* Treatment Grid (Used in specific service pages like facial.html) */
.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.treatment-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-soft), inset 0 0 15px rgba(255,255,255,0.2);
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.treatment-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.treatment-card .treatment-info {
    padding: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .service-detail-section, .service-detail-section.alternate {
        flex-direction: column;
        padding: 30px;
    }
    .section-image-side img {
        height: 300px;
    }
    .section-content-side h2 {
        font-size: 2rem;
    }
    .section-actions, .cta-actions {
        justify-content: center;
        gap: 8px;
    }
    .section-actions .btn, .cta-actions .btn {
        padding: 10px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}
