/* ===== SERVICIOS SECTION ===== */

.servicios {
    padding: 80px var(--spacing-lg);
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(145, 200, 122, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(178, 197, 229, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.servicios h2 {
    font-size: 3.5rem;
    margin-bottom: 70px;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-weight: 800;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== CONTENEDOR DE TARJETAS ===== */
.cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* ===== TARJETAS DE SERVICIOS ===== */
.card {
    width: 320px;
    border: 2px solid rgba(11, 31, 209, 0.1);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    color: var(--text-white);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left var(--transition-slow);
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* ===== ICONOS ===== */
.icono {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-lg);
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    
}



/* ===== TÍTULOS Y TEXTO ===== */
.card h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card p {
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== BOTONES DE TARJETAS ===== */
.card button {
    padding: 12px 25px;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.card button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-normal);
}

.card button:hover::before {
    left: 100%;
}

.card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== COLORES ESPECÍFICOS DE TARJETAS ===== */
.card-asesoria{
    background: linear-gradient(135deg, #d46464 0%, #c25353 100%);
    border-color: rgba(178, 197, 229, 0.3);
}

.card-asesoria button {
    background: linear-gradient(135deg, #f6d44a 0%, #feb326 100%);
    color: var(--text-white);
}

.card-asesoria button:hover {
    background: linear-gradient(135deg, #feb326 0%, #f6d44a 100%);
}

.card-contenido {
    background: linear-gradient(135deg, #b2c5e5 0%, #9bb7dd 100%);
    border-color: rgba(178, 197, 229, 0.3);
}

.card-contenido button {
    background: linear-gradient(135deg, #91c87a 0%, #7db968 100%);
    color: var(--text-white);
}

.card-contenido button:hover {
    background: linear-gradient(135deg, #7db968 0%, #6ba856 100%);
}

.card-gestion {
    background: linear-gradient(135deg, #91c87a 0%, #7db968 100%);
    border-color: rgba(145, 200, 122, 0.3);
}

.card-gestion button {
    background: linear-gradient(135deg, #b2c5e5 0%, #9bb7dd 100%);
    color: var(--text-white);
}

.card-gestion button:hover {
    background: linear-gradient(135deg, #9bb7dd 0%, #84a9d5 100%);
}

/* ===== MODALES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-white) 0%, #f8f9fa 100%);
    margin: 1.5% auto;
    padding: 0;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 860px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== HEADER DEL MODAL ===== */
.modal-header {
    padding: 30px 30px;
    text-align: center;
    color: var(--text-white);
    position: relative;
}

.modal-header.asesoria {
    background: linear-gradient(135deg, #d46464 0%, #b13131 100%);
}

.modal-header.contenido {
    background: linear-gradient(135deg, #b2c5e5 0%, #355997 100%);
}

.modal-header.gestion {
    background: linear-gradient(135deg, #91c87a 0%, #5c9745 100%);
}

/* ===== BOTÓN CERRAR ===== */
.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* ===== CONTENIDO DEL MODAL ===== */
.modal-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    display: inline-block;
    max-width: 200px;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-price {
    font-size: 1.4rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    display: inline-block;
    backdrop-filter: blur(10px);
}

.modal-body {
    padding: 25px 30px;
    color: var(--text-primary);
    line-height: 20px;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

/* ===== LISTA DE CARACTERÍSTICAS ===== */
.features-list {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 40px;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.3rem;
    top: 12px;
}

.features-list li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.features-list li:last-child {
    border-bottom: none;
}

/* ===== BOTÓN COTIZAR ===== */
.cotizar-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.cotizar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-normal);
}

.cotizar-btn:hover::before {
    left: 100%;
}

.cotizar-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .servicios {
        padding: 60px var(--spacing-md);
    }
    
    .servicios h2 {
        font-size: 2.8rem;
        margin-bottom: 50px;
    }
    
    .cards-container {
        gap: 40px;
    }
    
    .card {
        width: 300px;
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .servicios {
        padding: 50px var(--spacing-sm);
    }
    
    .servicios h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .cards-container {
        gap: 30px;
    }
    
    .card {
        width: 280px;
        padding: 30px 20px;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 30px 20px;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .servicios h2 {
        font-size: 1.8rem;
    }
    
    .card {
        width: 100%;
        max-width: 280px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-price {
        font-size: 1.1rem;
    }
    
    .cotizar-btn {
        font-size: 1rem;
        padding: 15px;
    }
}