/* Estilos para la sección de Misión, Visión y Valores */
.mission-vision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 70px 0 50px;
}

.mission-box, .vision-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    color: var(--black);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
    border-image-slice: 1;
}

.mission-box:hover, .vision-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.mission-box::after, .vision-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
    transition: width 0.5s ease;
}

.mission-box:hover::after, .vision-box:hover::after {
    width: 100%;
}

.mission-box .section-title, .vision-box .section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    color: transparent;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
}

.mission-box .section-title::after, .vision-box .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
    transition: width 0.3s ease;
}

.mission-box:hover .section-title::after, .vision-box:hover .section-title::after {
    width: 100%;
}

.mission-box p, .vision-box p {
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    color: #555;
}

.motto {
    text-align: center;
    margin: 60px 0;
    padding: 30px 40px;
    border-radius: 50px;
    background-color: var(--white);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transform: scale(1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.motto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.motto:hover {
    transform: scale(1.03);
}

.motto:hover::before {
    opacity: 1;
}

.motto h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    color: #333;
    position: relative;
    z-index: 1;
    transition: color 0.5s ease;
}

.motto:hover h3 {
    color: var(--white);
}

.values-section {
    margin: 60px 0;
}

.values-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    position: relative;
    color: var(--primary-blue);
    font-weight: 700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-item {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    transform: translateY(0);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.value-item:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
    left: 0;
    bottom: 0;
    transition: all 0.4s ease;
    z-index: -1;
    opacity: 0;
    border-radius: 15px;
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    color: var(--white);
}

.value-item:hover:before {
    height: 100%;
    opacity: 1;
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.value-item:hover i {
    color: var(--white);
}

.value-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.4s ease;
    color: #333;
}

.value-item:hover h3 {
    color: var(--white);
}

/* Animaciones */
.mission-box, .vision-box, .value-item {
    opacity: 0;
    transform: translateY(30px);
}

.mission-box.animate, .vision-box.animate, .value-item.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.mission-box.animate {
    animation-delay: 0.2s;
}

.vision-box.animate {
    animation-delay: 0.4s;
}

.motto.animate {
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.value-item:nth-child(1) { animation-delay: 0.1s; }
.value-item:nth-child(2) { animation-delay: 0.2s; }
.value-item:nth-child(3) { animation-delay: 0.3s; }
.value-item:nth-child(4) { animation-delay: 0.4s; }
.value-item:nth-child(5) { animation-delay: 0.5s; }
.value-item:nth-child(6) { animation-delay: 0.6s; }
.value-item:nth-child(7) { animation-delay: 0.7s; }
.value-item:nth-child(8) { animation-delay: 0.8s; }
.value-item:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsivo */
@media (max-width: 992px) {
    .mission-vision-container {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}
