/* modules/servicios/servicios.css */
/* Servicios Profesional Minimalista - Yoga Gaya */

.servicios-container {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #FAF7F0 0%, #F5E6D3 100%);
    min-height: 100vh;
}

.servicios-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.servicios-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: #4A4A4A;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    position: relative;
}

.servicios-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #8B4513;
}

.servicios-subtitle {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.2rem;
    color: #6B6B6B;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* === CARDS PROFESIONALES === */
.servicio-card {
    background: white;
    border: 1px solid #E8E6E1;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.15);
    border-color: #D2B48C;
}

.card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #E8E6E1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: saturate(0.9) contrast(1.1);
}

.servicio-card:hover .card-image img {
    transform: scale(1.03);
}

.card-content {
    padding: 2.5rem 2rem;
}

.card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #4A4A4A;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.card-description {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #6B6B6B;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.card-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-card-whatsapp, .btn-card-details {
    padding: 1rem 2rem;
    border: 2px solid transparent;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
    justify-content: center;
    position: relative;
}

.btn-card-whatsapp {
    background: #8B4513;
    color: white;
    border-color: #8B4513;
}

.btn-card-whatsapp:hover {
    background: transparent;
    color: #8B4513;
    border-color: #8B4513;
    transform: translateY(-2px);
}

.btn-card-details {
    background: transparent;
    color: #8B4513;
    border-color: #8B4513;
}

.btn-card-details:hover {
    background: #8B4513;
    color: white;
    transform: translateY(-2px);
}

/* Iconos profesionales SVG */
.btn-card-whatsapp::before {
    content: '';
    width: 14px;
    height: 14px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893A11.821 11.821 0 0020.465 3.516'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

.btn-card-details::before {
    content: '';
    width: 14px;
    height: 14px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

/* === MODAL PROFESIONAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 74, 74, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    max-width: 1000px;
    width: 95%;
    max-height: 95vh;
    overflow: visible;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(139, 69, 19, 0.2);
    border: 1px solid #E8E6E1;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 2rem;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.3px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-carousel {
    position: relative;
    overflow: hidden;
    flex: 1;
    height: 500px;
}

.modal-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 2rem;
    gap: 2rem;
    align-items: flex-start;
    box-sizing: border-box;
}

.slide-image-container {
    flex: 0 0 300px;
    width: 300px;
}

.slide-modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 1px solid #E8E6E1;
    filter: saturate(0.9) contrast(1.1);
}

.slide-info {
    flex: 1;
    text-align: left;
    overflow-y: auto;
    max-height: 100%;
    padding-right: 1rem;
}

.slide-modal-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #4A4A4A;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.slide-modal-description {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #6B6B6B;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.slide-work-method {
    background: #F9F7F4;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid #8B4513;
    border-right: 1px solid #E8E6E1;
    border-top: 1px solid #E8E6E1;
    border-bottom: 1px solid #E8E6E1;
}

.work-method-title {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4A4A4A;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.work-method-text {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #6B6B6B;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

.slide-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 2rem;
    letter-spacing: -0.3px;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
}

.btn-modal-whatsapp, .btn-modal-consult {
    padding: 1rem 2rem;
    border: 2px solid transparent;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-modal-whatsapp {
    background: #8B4513;
    color: white;
    border-color: #8B4513;
}

.btn-modal-whatsapp:hover {
    background: transparent;
    color: #8B4513;
    border-color: #8B4513;
    transform: translateY(-2px);
}

.btn-modal-consult {
    background: transparent;
    color: #6B6B6B;
    border-color: #6B6B6B;
}

.btn-modal-consult:hover {
    background: #6B6B6B;
    color: white;
    transform: translateY(-2px);
}

/* === NAVEGACIÓN MODAL === */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #E8E6E1;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #8B4513;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.modal-nav:hover {
    background: #8B4513;
    color: white;
    border-color: #8B4513;
    transform: translateY(-50%) scale(1.05);
}

.modal-nav.prev {
    left: 1rem;
}

.modal-nav.next {
    right: 1rem;
}

.modal-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #F9F7F4;
    border-top: 1px solid #E8E6E1;
}

.modal-indicator {
    width: 30px;
    height: 3px;
    background: #D2B48C;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-indicator.active {
    background: #8B4513;
    width: 45px;
}

.modal-indicator:hover {
    background: rgba(139, 69, 19, 0.7);
}

/* === RESPONSIVE MÓVIL === */
@media (max-width: 768px) {
    .servicios-container {
        padding: 2.5rem 1rem;
    }
    
    .servicios-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .servicio-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .card-buttons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .btn-card-whatsapp, .btn-card-details {
        width: auto;
        max-width: 280px;
        padding: 0.85rem 1.8rem;
        font-size: 0.8rem;
        min-width: 200px;
    }
    
    /* MODAL - CORRECCIONES IMPORTANTES */
    .modal-container {
        width: 95%;
        max-width: 95vw;
        max-height: 90vh;
        margin: 5vh auto;
        padding: 1.5rem 1rem;
    }
    
    .modal-carousel {
        height: auto;
        min-height: 350px;
        max-height: calc(90vh - 100px);
        overflow-y: auto;
    }
    
    .modal-slide {
        flex-direction: column;
        padding: 1rem;
        gap: 1.2rem;
        text-align: center;
        height: auto;
        align-items: center;
        min-height: auto;
    }
    
    .slide-image-container {
        flex: none;
        width: 100%;
        max-width: 280px;
    }
    
    .slide-modal-image {
        height: 180px;
    }
    
    .slide-info {
        text-align: center;
        overflow-y: visible;
        max-height: none;
        padding-right: 0;
        width: 100%;
    }
    
    .slide-modal-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .slide-modal-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .slide-modal-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    /* BOTONES DEL MODAL - FIX CRÍTICO */
    .slide-buttons {
        display: flex !important;
        justify-content: center;
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    .btn-modal-whatsapp,
    .btn-modal-details {
        width: 100% !important;
        max-width: 280px;
        padding: 0.9rem 1.5rem !important;
        font-size: 0.8rem !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin: 0 auto;
    }
    
    /* Asegurar que los iconos se vean */
    .btn-modal-whatsapp::before,
    .btn-modal-details::before {
        display: inline-block !important;
        width: 14px;
        height: 14px;
    }
    
    .modal-nav {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    .modal-nav.prev {
        left: 0.5rem;
    }
    
    .modal-nav.next {
        right: 0.5rem;
    }
    
    .modal-indicators {
        bottom: 0.8rem;
        gap: 0.3rem;
    }
    
    .modal-indicator {
        width: 25px;
        height: 2px;
    }
    
    .modal-indicator.active {
        width: 35px;
    }
}

@media (max-width: 480px) {
    .servicios-container {
        padding: 2rem 0.8rem;
    }
    
    .servicios-title {
        font-size: 1.8rem;
    }
    
    .btn-card-whatsapp, .btn-card-details {
        padding: 0.8rem 1.5rem;
        font-size: 0.75rem;
        min-width: 180px;
        max-width: 260px;
    }
    
    .modal-container {
        width: 98%;
        max-width: 98vw;
        padding: 1rem 0.8rem;
        margin: 2vh auto;
    }
    
    .modal-slide {
        padding: 0.8rem;
        gap: 1rem;
    }
    
    .slide-image-container {
        max-width: 100%;
    }
    
    .slide-modal-image {
        height: 160px;
    }
    
    .slide-modal-title {
        font-size: 1.2rem;
    }
    
    .slide-modal-subtitle {
        font-size: 0.85rem;
    }
    
    .slide-modal-description {
        font-size: 0.85rem;
    }
    
    .btn-modal-whatsapp,
    .btn-modal-details {
        padding: 0.85rem 1.2rem !important;
        font-size: 0.75rem !important;
        max-width: 100%;
    }
    
    .modal-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}