/* Estilos para la sección de servicios */
.services {
    padding: 5rem 1rem;
    background-color: var(--white);
}

.services h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(151, 71, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Modificar solo el ancho de la primera tarjeta */
.service-card:nth-child(1) {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(151, 71, 255, 0.05), rgba(151, 71, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(151, 71, 255, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--black);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
}

/* Estilo para el botón Ver más */
.ver-mas-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    margin-top: 1rem;
    padding: 5px 15px;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ver-mas-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    bottom: -2px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.ver-mas-btn:hover {
    color: #7935CC;
}

.ver-mas-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Asegurarnos que el botón no herede estilos no deseados */
.service-card .ver-mas-btn:focus {
    outline: none;
}

.service-card .ver-mas-btn:active {
    transform: translateY(0);
}

/* Estilos para el modal y galería */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 213, 255, 0.97), rgba(151, 71, 255, 0.95));
    z-index: 1000;
}

/* Cuando el modal está activo */
.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 30px;
    width: 85%;
    max-width: 1000px;
    max-height: 80vh;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(151, 71, 255, 0.2);
}

.galeria-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeria-imagen-actual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeria-imagen-actual img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para videos en el modal */
.galeria-imagen-actual video {
    max-width: 100%;
    max-height: 65vh;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Botones de navegación */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(151, 71, 255, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* Botón de cierre */
.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    background: rgba(151, 71, 255, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
}

.close-modal:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* Contador de imágenes */
.contador-imagenes {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(151, 71, 255, 0.1);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .services h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .prev-btn {
        left: 15px;
    }

    .next-btn {
        right: 15px;
    }

    .close-modal {
        right: 15px;
        top: 15px;
    }
}

.ver-mas-btn {
    background: linear-gradient(135deg, #9747FF, #7935CC);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(151, 71, 255, 0.3);
}

.ver-mas-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(151, 71, 255, 0.4);
    background: linear-gradient(135deg, #8A2BE2, #9747FF);
}

/* Eliminar el efecto de subrayado en hover */
.ver-mas-btn::after {
    display: none;
}

.ver-mas-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Asegurarnos que el botón no herede estilos no deseados */
.service-card .ver-mas-btn:focus {
    outline: none;
}

.service-card .ver-mas-btn:active {
    transform: translateY(0);
}

/* Estilos para el modal y galería */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 213, 255, 0.97), rgba(151, 71, 255, 0.95));
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 30px;
    width: 85%;
    max-width: 1000px;
    max-height: 80vh;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(151, 71, 255, 0.2);
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    background: rgba(151, 71, 255, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
}

.close-modal:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* Estilos del contenido del modal */
.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.modal-content ul {
    list-style-type: none;
    padding: 0;
}

.modal-content li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(151, 71, 255, 0.1);
    color: var(--secondary-color);
}

.modal-content li:last-child {
    border-bottom: none;
}

.galeria-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeria-imagen-actual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeria-imagen-actual img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para videos en el modal */
.galeria-imagen-actual video {
    max-width: 100%;
    max-height: 65vh;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Botones de navegación */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(151, 71, 255, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

/* Botón de cierre */
.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    background: rgba(151, 71, 255, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
}

.close-modal:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* Contador de imágenes */
.contador-imagenes {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(151, 71, 255, 0.1);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .services h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .prev-btn {
        left: 15px;
    }

    .next-btn {
        right: 15px;
    }

    .close-modal {
        right: 15px;
        top: 15px;
    }
}

.ver-mas-btn {
    background: linear-gradient(135deg, #9747FF, #7935CC);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(151, 71, 255, 0.3);
}

.ver-mas-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(151, 71, 255, 0.4);
    background: linear-gradient(135deg, #8A2BE2, #9747FF);
}

/* Eliminar el efecto de subrayado en hover */
.ver-mas-btn::after {
    display: none;
}

.ver-mas-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Asegurarnos que el botón no herede estilos no deseados */
.service-card .ver-mas-btn:focus {
    outline: none;
}

.service-card .ver-mas-btn:active {
    transform: translateY(0);
}

/* Estilos para el modal y galería */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 213, 255, 0.97), rgba(151, 71, 255, 0.95));
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    display: block;
    background-color: rgba(0, 0, 0, 0.8);
}

.galeria-imagen-actual {
    width: 100%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.galeria-imagen-actual img,
.galeria-imagen-actual video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal video {
    width: 100%;
    max-height: 80vh;
}

.close-modal:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* Contador de imágenes */
.contador-imagenes {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(151, 71, 255, 0.1);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .services h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .prev-btn {
        left: 15px;
    }

    .next-btn {
        right: 15px;
    }

    .close-modal {
        right: 15px;
        top: 15px;
    }
}