/* services.css - Versión mejorada con texto blanco */
.services-hero {
    height: 35vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
    padding: 0 5%;
}

.services-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.services-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
}

.service-category {
    padding: 80px 5%;
    background: #f9f9f9;
}

.service-category:nth-child(even) {
    background: white;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-header i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.category-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.category-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.category-header p {
    color: var(--gray);
    max-width: 700px;
    margin: 20px auto 0;
    text-align: justify;
    hyphens: auto;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--primary); /* Cambiado a color primario para mejor contraste con texto blanco */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card-header {
    background: var(--secondary);
    color: white;
    padding: 20px;
    text-align: center;
}

.service-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h3 {
    color: white; /* Cambiado a blanco */
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    text-align: justify;
    hyphens: auto;
    margin-bottom: 15px;
    color: white; /* Cambiado a blanco */
}

.service-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.service-card ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    color: white; /* Cambiado a blanco */
}

.service-card ul li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    margin-right: 10px;
}

.price-tag {
    background: var(--accent);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin: 10px 0;
    font-size: 1.1rem;
}

.service-cta {
    text-align: center;
    margin-top: 20px;
}

.service-cta .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.comparison-table {
    overflow-x: auto;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background: #f8f9fa;
}

tr:hover {
    background: rgba(26, 82, 118, 0.05);
}

.region-selector {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: var(--light);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.region-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.region-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.region-btn.active {
    background: var(--accent);
}

.region-content {
    display: none;
}

.region-content.active {
    display: block;
}

/* Estilos responsive */
@media (max-width: 768px) {
    .services-hero {
        height: 40vh;
    }
    
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .services-hero p {
        font-size: 1rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .region-btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .category-header h2 {
        font-size: 1.8rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 10px;
    }
}