/* Estilos modernos para la sección de Áreas de Práctica */

.practice-section {
    padding: 120px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos sutiles */
.practice-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-color: rgba(12, 35, 64, 0.02);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.practice-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

/* Encabezado de la sección con diseño moderno */
.practice-header {
    margin-bottom: 80px;
    max-width: 800px;
}

.practice-subtitle {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    padding-left: 60px;
}

.practice-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 1px;
    background-color: var(--secondary-color);
    transform: translateY(-50%);
}

.practice-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.2;
}

.practice-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-accent);
}

/* Contenedor de pestañas moderno */
.practice-tabs-container {
    display: flex;
    margin-bottom: 80px;
}

/* Navegación de pestañas */
.practice-tabs-nav {
    width: 30%;
    padding-right: 40px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.practice-tab-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
}

.practice-tab-button.active {
    background-color: rgba(0, 84, 80, 0.05);
}

.practice-tab-button::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: var(--secondary-color);
    border-radius: 8px 0 0 8px;
    transition: all 0.3s ease;
}

.practice-tab-button.active::after {
    width: 4px;
}

.tab-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 50%;
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.practice-tab-button.active .tab-icon {
    background-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0, 84, 80, 0.2);
}

.tab-icon i {
    font-size: 20px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.practice-tab-button.active .tab-icon i {
    color: #ffffff;
}

.tab-text {
    flex: 1;
}

.tab-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.practice-tab-button.active .tab-title {
    color: var(--secondary-color);
}

.tab-subtitle {
    font-size: 14px;
    color: var(--gray-accent);
}

/* Contenido de las pestañas */
.practice-tabs-content {
    width: 70%;
    padding-left: 60px;
}

.practice-tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.practice-tab-content.active {
    display: block;
}

.tab-content-header {
    margin-bottom: 30px;
}

.tab-content-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.tab-content-description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray-accent);
    margin-bottom: 30px;
}

/* Imagen de la pestaña */
.tab-image {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tab-image img {
    width: 100%;
    height:125%;
    object-fit: cover;
    object-position: center 95%;
    transition: all 0.5s ease;
    
}

.tab-image:hover img {
    transform: scale(1.05);
}

/* Lista de servicios */
.tab-services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.tab-service-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.service-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: rgba(0, 84, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 16px;
    color: var(--secondary-color);
}

.service-text {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.5;
}

/* Botón de acción */
.tab-action {
    margin-top: 40px;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tab-button i {
    font-size: 14px;
    transition: all 0.3s ease;
}

.tab-button:hover i {
    transform: translateX(5px);
}

/* Sección de consulta moderna */
.practice-cta {
    margin-top: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    display: flex;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cta-content {
    padding: 60px;
    width: 60%;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Añadir esta regla específica para el botón CTA en la sección de prácticas */
.practice-cta .cta-button {
    background-color: var(--green-accent);
    color: var(--light-text);
    border: none;
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.practice-cta .cta-button:hover {
    background-color: var(--green-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 84, 80, 0.2);
}

.cta-image {
    width: 40%;
    background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
}

/* Estilos responsivos */
@media (max-width: 1200px) {
    .practice-section {
        padding: 100px 0;
    }
    
    .practice-title {
        font-size: 42px;
    }
    
    .tab-content-title {
        font-size: 28px;
    }
    
    .cta-content {
        padding: 50px;
    }
    
    .cta-title {
        font-size: 32px;
    }
}

@media (max-width: 992px) {
    .practice-section {
        padding: 80px 0;
    }
    
    .practice-tabs-container {
        flex-direction: column;
    }
    
    .practice-tabs-nav {
        width: 100%;
        padding-right: 0;
        border-right: none;
        margin-bottom: 40px;
    }
    
    .practice-tabs-content {
        width: 100%;
        padding-left: 0;
    }
    
    .tab-services-list {
        grid-template-columns: 1fr;
    }
    
    .practice-cta {
        flex-direction: column;
    }
    
    .cta-content {
        width: 100%;
    }
    
    .cta-image {
        width: 100%;
        height: 300px;
        order: -1;
    }
}

@media (max-width: 768px) {
    .practice-section {
        padding: 60px 0;
    }
    
    .practice-title {
        font-size: 36px;
    }
    
    .practice-subtitle {
        padding-left: 40px;
    }
    
    .practice-subtitle::before {
        width: 30px;
    }
    
    .tab-content-title {
        font-size: 24px;
    }
    
    .cta-content {
        padding: 40px 30px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}
 .all-services-button {
        text-align: center;
        margin-top: 50px;
    }
    
    .all-services-button .tab-button {
        background-color: var(--primary-color);
        padding: 18px 36px;
        font-size: 16px;
    }
    

    
    @media (max-width: 768px) {
        .all-services-button .tab-button {
            width: 100%;
            max-width: 300px;
        }
    }