/* Contenedor Principal */
.mision-vision-container {
    min-height: 100vh;
    position: relative;
    background: radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--uesca-primary) 12%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--uesca-accent) 10%, transparent) 0%, transparent 50%),
        linear-gradient(135deg, var(--uesca-light) 0%, var(--uesca-neutral) 100%);
    padding: 6rem 2rem;
    overflow: hidden;
}

/* Fondo Animado */
.mv-fondo-animado {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.mv-particula {
    position: absolute;
    background: var(--uesca-primary);
    border-radius: 50%;
    opacity: 0.06;
    animation: flotar-mv 30s linear infinite;
}

.mv-particula:nth-child(1) {
    width: 4px;
    height: 4px;
    left: 10%;
    animation-delay: 0s;
}

.mv-particula:nth-child(2) {
    width: 6px;
    height: 6px;
    left: 40%;
    animation-delay: 5s;
}

.mv-particula:nth-child(3) {
    width: 5px;
    height: 5px;
    left: 70%;
    animation-delay: 10s;
}

.mv-particula:nth-child(4) {
    width: 3px;
    height: 3px;
    left: 90%;
    animation-delay: 15s;
}

@keyframes flotar-mv {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10%,
    90% {
        opacity: 0.06;
    }

    50% {
        opacity: 0.12;
    }
}

/* Formas Decorativas */
.mv-forma-decorativa {
    position: absolute;
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-accent));
    border-radius: 50%;
    opacity: 0.05;
    top: 5%;
    right: -225px;
    z-index: 1;
    animation: rotar-mv 35s linear infinite;
}

.mv-forma-decorativa-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(-135deg, var(--uesca-secondary), var(--uesca-primary-light));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.04;
    bottom: 10%;
    left: -150px;
    z-index: 1;
    animation: rotar-mv 25s linear infinite reverse;
}

@keyframes rotar-mv {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Contenido Principal */
.mv-contenido-principal {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Header */
.mv-header {
    text-align: center;
    margin-bottom: 5rem;
    animation: aparecer-arriba 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mv-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--uesca-primary) 10%, transparent);
    color: var(--uesca-primary);
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--uesca-primary) 20%, transparent);
}

.mv-titulo {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--uesca-primary) 0%, var(--uesca-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.mv-subtitulo {
    font-size: 1.2rem;
    color: var(--uesca-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Grid de Misión y Visión */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

/* Tarjetas */
.mv-tarjeta {
    background: var(--uesca-light);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(134, 47, 46, 0.08);
    border: 1px solid color-mix(in srgb, var(--uesca-primary) 15%, transparent);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: aparecer-escala 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mv-tarjeta:nth-child(1) {
    animation-delay: 0.2s;
}

.mv-tarjeta:nth-child(2) {
    animation-delay: 0.4s;
}

.mv-tarjeta:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(134, 47, 46, 0.15);
}

/* Decoración de la tarjeta */
.mv-tarjeta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, color-mix(in srgb, var(--uesca-primary) 8%, transparent), transparent);
    border-radius: 50%;
    transform: translate(50%, -50%);
    transition: all 0.5s ease;
}

.mv-tarjeta:hover::before {
    transform: translate(50%, -50%) scale(1.5);
    opacity: 0.5;
}

/* Icono */
.mv-icono-container {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(134, 47, 46, 0.25);
    transition: all 0.4s ease;
}

.mv-tarjeta:hover .mv-icono-container {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 15px 40px rgba(134, 47, 46, 0.35);
}

.mv-icono {
    font-size: 2.5rem;
    filter: brightness(0) invert(1);
}

/* Título de la tarjeta */
.mv-tarjeta-titulo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--uesca-dark);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    letter-spacing: -0.01em;
}

/* Descripción */
.mv-tarjeta-descripcion {
    color: var(--uesca-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

/* Línea decorativa */
.mv-linea-decorativa {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--uesca-primary), var(--uesca-accent));
    border-radius: 10px;
    margin: 1.5rem 0;
    position: relative;
    z-index: 2;
}

/* Sección de Valores */
.mv-valores-section {
    margin-top: 6rem;
    text-align: center;
    animation: aparecer-arriba 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    opacity: 0;
}

.mv-valores-titulo {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--uesca-dark);
    margin-bottom: 3rem;
}

.mv-valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mv-valor-item {
    background: var(--uesca-light);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(134, 47, 46, 0.06);
    transition: all 0.3s ease;
    border: 1px solid color-mix(in srgb, var(--uesca-primary) 10%, transparent);
}

.mv-valor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(134, 47, 46, 0.12);
}

.mv-valor-icono {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mv-valor-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--uesca-primary);
    margin-bottom: 0.8rem;
}

.mv-valor-descripcion {
    color: var(--uesca-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Animaciones */
@keyframes aparecer-arriba {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aparecer-escala {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mision-vision-container {
        padding: 4rem 1.5rem;
    }

    .mv-titulo {
        font-size: 2.2rem;
    }

    .mv-subtitulo {
        font-size: 1.05rem;
    }

    .mv-tarjeta {
        padding: 2rem;
    }

    .mv-tarjeta-titulo {
        font-size: 1.6rem;
    }

    .mv-valores-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .mv-header {
        margin-bottom: 3rem;
    }

    .mv-titulo {
        font-size: 1.8rem;
    }

    .mv-icono-container {
        width: 70px;
        height: 70px;
    }

    .mv-icono {
        font-size: 2rem;
    }
}