/* Estilos específicos para la página de servicios */
.servicios-container {
    padding: 120px 0 60px;
}

.servicios-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.categorias-servicios {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.categoria-servicios {
    padding: 10px 25px;
    background-color: #f1f1f1;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.categoria-servicios:hover {
    background-color: #e0e0e0;
}

.categoria-servicios.active {
    background-color: var(--accent-color);
    color: white;
}

.categoria-titulo {
    scroll-margin-top: 100px; /* Para cuando se salta a las categorías */
    margin-top: 50px;
    margin-bottom: 30px;
}

.categoria-titulo h2 {
    color: var(--primary-color);
    font-size: 2rem;
    text-align: left;
    margin-bottom: 0;
}

.categoria-titulo h2::after {
    left: 30px;
    transform: none;
}

.servicio-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 30px;
    transition: all 0.5s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    transform: translateY(0);
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.1), transparent);
    transition: height 0.5s ease;
    z-index: 0;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.servicio-card:hover::before {
    height: 100%;
}

.servicio-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
}

.servicio-card:hover .servicio-icon {
    transform: scale(1.2);
}

.servicio-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.servicio-card p {
    color: var(--text-color);
    margin-bottom: 15px;
}

/* Estilos para el botón de "Más información" */
.more-info {
    color: var(--accent-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-weight: 500;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.more-info i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.more-info:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.servicio-features {
    list-style: none;
    margin-bottom: 20px;
}

.servicio-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    position: relative;
    padding-left: 25px;
}

.servicio-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.precio {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.3rem;
    margin: auto 0 20px;
}

.add-to-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold-gradient);
    transition: 0.5s;
    z-index: -1;
}

.add-to-cart:hover::before {
    left: 0;
}

.add-to-cart:hover {
    color: #111;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Estilos para el dialog modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1050;
    overflow: auto;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    margin: 20px;
    max-width: 600px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gold-gradient);
}

.modal-header {
    padding: 20px 25px;
    background-color: var(--light-color);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    z-index: 5;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: 70vh;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-body h4 {
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.modal-body ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.modal-body ul li {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .servicios-container {
        padding-top: 100px;
    }
    
    .categoria-titulo h2 {
        font-size: 1.5rem;
    }
    
    .categoria-servicios {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
}