/* ========================================
   VALUES SECTION
======================================== */
.values-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.values-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 60px;
    position: relative;
}

.values-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-green);
    border-radius: 2px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-green), var(--color-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-image-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.value-card:hover .value-image-container {
    transform: scale(1.1);
    border-color: var(--color-green);
    box-shadow: 0 8px 25px rgba(148, 195, 83, 0.3);
}

.value-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.value-card:hover .value-image {
    transform: scale(1.1);
}

.value-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
    position: relative;
}

.value-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--color-green);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.value-card:hover .value-subtitle::after {
    width: 50px;
}

.value-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Efectos de animación individual para cada tarjeta */
.value-card:nth-child(1) {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.value-card:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.4s both;
}

.value-card:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.6s both;
}

/* ========================================
   RESPONSIVE VALUES
======================================== */
@media (max-width: 1024px) {
    .values-grid {
        gap: 30px;
    }
    
    .value-card {
        padding: 35px 25px;
    }
    
    .value-image-container {
        width: 110px;
        height: 110px;
    }
    
    .value-subtitle {
        font-size: 20px;
    }
    
    .value-description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .values-section {
        padding: 60px 0;
    }
    
    .values-title {
        font-size: 32px;
        margin-bottom: 50px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .value-card {
        padding: 40px 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .value-image-container {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .value-subtitle {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .value-description {
        font-size: 15px;
        line-height: 1.5;
    }
}

@media (max-width: 600px) {
    .values-section {
        padding: 50px 0;
    }
    
    .values-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .values-grid {
        gap: 25px;
    }
    
    .value-card {
        padding: 35px 25px;
    }
    
    .value-image-container {
        width: 90px;
        height: 90px;
        margin-bottom: 18px;
    }
    
    .value-subtitle {
        font-size: 18px;
    }
    
    .value-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .values-section {
        padding: 40px 0;
    }
    
    .values-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .values-grid {
        gap: 20px;
    }
    
    .value-card {
        padding: 30px 20px;
    }
    
    .value-image-container {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
        border-width: 3px;
    }
    
    .value-subtitle {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    .value-description {
        font-size: 13px;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .value-card {
        padding: 25px 15px;
    }
    
    .value-image-container {
        width: 70px;
        height: 70px;
    }
    
    .value-subtitle {
        font-size: 16px;
    }
    
    .value-description {
        font-size: 12px;
    }
}

/* Animaciones mejoradas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de brillo en hover */
.value-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.5s ease;
}

.value-card:hover::after {
    left: 100%;
}