/* Estilos para la sección "Por qué elegirnos" */
.why-choose-section {
    padding: 90px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos de fondo */
.why-choose-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 84, 80, 0.03) 0%, rgba(12, 35, 64, 0.03) 100%);
    z-index: 1;
}

.why-choose-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 84, 80, 0.03) 0%, rgba(12, 35, 64, 0.03) 100%);
    z-index: 1;
}

/* Encabezado de la sección */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 600;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-accent);
    line-height: 1.8;
}

/* Contenido principal en dos columnas */
.why-choose-content {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* Columna de imagen */
.why-choose-image-column {
    position: relative;
}

.image-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    height: 70%;
    margin-bottom: 30px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.03);
}

.image-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 4px solid var(--secondary-color);
    border-radius: 8px;
    z-index: -1;
}

/* Compromiso destacado */
.commitment-container {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(12, 35, 64, 0.15);
    height: calc(30% - 30px);
}

.commitment-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.commitment-text h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.commitment-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Columna de contenido */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.value-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--secondary-color);
}

.value-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 84, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.value-icon i {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.value-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.value-description {
    font-size: 0.9rem;
    color: var(--gray-accent);
    line-height: 1.6;
    margin: 0;
}

/* Enfoque profesional */
.approach-container {
    margin-top: 30px;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.approach-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.approach-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.approach-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.approach-item:hover {
    background-color: rgba(0, 84, 80, 0.05);
}

.approach-icon {
    width: 28px;
    height: 28px;
    background-color: rgba(0, 84, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.approach-icon i {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.approach-text {
    font-size: 0.95rem;
    color: var(--gray-accent);
}

/* Botón de acción */
.action-button {
    margin-top: 30px;
    text-align: center;
}

.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 84, 80, 0.2);
}

.btn-primary i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(5px);
}

/* Estilos responsivos */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .why-choose-content {
        gap: 30px;
    }
    
    .value-item {
        padding: 15px;
    }
    
    .value-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .why-choose-section {
        padding: 70px 0;
    }
    
    .why-choose-content {
        grid-template-columns: 1fr;
    }
    
    .why-choose-image-column {
        order: 2;
    }
    
    .why-choose-content-column {
        order: 1;
    }
    
    .image-wrapper {
        flex-direction: column;
    }
    
    .image-container {
        height: 400px;
        margin-bottom: 20px;
    }
    
    .commitment-container {
        height: auto;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    .image-container {
        height: 350px;
    }
    
    .commitment-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .commitment-icon {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .why-choose-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .image-container {
        height: 300px;
    }
    
    .image-decoration {
        width: 80px;
        height: 80px;
        bottom: -10px;
        right: -10px;
    }
    
    .value-item {
        padding: 15px;
    }
    
    .approach-item {
        padding: 8px;
    }
    
    .btn-primary {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Animaciones y efectos interactivos */
.value-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top 0.3s ease;
    border-top: 3px solid transparent;
}

.value-icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.value-item:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(0, 84, 80, 0.2);
}

.approach-item {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.approach-item:hover {
    transform: translateX(5px);
}

.approach-item:hover .approach-icon {
    background-color: var(--secondary-color);
}

.approach-item:hover .approach-icon i {
    color: #ffffff;
}

.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(12, 35, 64, 0) 70%, rgba(12, 35, 64, 0.1) 100%);
    pointer-events: none;
}

/* Animación de entrada para elementos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-header {
    animation: fadeInUp 0.8s ease forwards;
}

.why-choose-image-column {
    animation: fadeInLeft 0.8s ease 0.2s forwards;
    opacity: 0;
}

.why-choose-content-column {
    animation: fadeInRight 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* Efecto de enfoque en la imagen al hacer hover en la sección */
.why-choose-section:hover .image-container img {
    filter: saturate(1.1);
}

/* Efecto de pulso para el botón de acción */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 84, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 84, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 84, 80, 0);
    }
}

.btn-primary {
    animation: pulse 2s infinite;
}

.btn-primary:hover {
    animation: none;
}
