/* About Hero Section */
.about-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
    margin-top: 140px;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4); /* Oscurece la imagen al 60% */
    transition: filter 0.5s ease;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(175, 104, 209, 0.1) 50%,
        rgba(10, 10, 10, 0.7) 100%
    );
    z-index: 2;
}

.about-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: aboutContentAppear 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

@keyframes aboutContentAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pre-title "Somos" */
.about-pre-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

/* Logo Container */
.about-logo-container {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.7s forwards;
}

.about-logo {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    animation: logoBreathing 3s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes logoBreathing {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 15px 40px rgba(175, 104, 209, 0.3));
    }
}

.about-logo-container:hover .about-logo {
    animation: none;
    transform: scale(1.08);
    filter: 
        drop-shadow(0 20px 50px rgba(175, 104, 209, 0.4))
        brightness(1.1);
}

/* Description */
.about-description {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

.about-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    padding: 0 1rem;
}

.about-text::before,
.about-text::after {
    content: '"';
    font-size: 2rem;
    color: rgba(175, 104, 209, 0.5);
    font-weight: bold;
    position: absolute;
    top: -10px;
}

.about-text::before {
    left: 0;
}

.about-text::after {
    right: 0;
    top: auto;
    bottom: -20px;
}

/* Efectos de fondo dinámicos */
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(175, 104, 209, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(43, 157, 237, 0.1) 0%, transparent 50%);
    z-index: 2;
    animation: backgroundFloat 15s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-10px, -5px) scale(1.02);
    }
    66% {
        transform: translate(5px, 10px) scale(0.98);
    }
}

/* Efectos de partículas */
.about-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, #AF68D1, #2B9DED);
    border-radius: 50%;
    opacity: 0.1;
    animation: particleFloat 6s ease-in-out infinite;
}

.particle-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.particle-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Animaciones base */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .about-hero {
        min-height: 600px;
    }
    
    .about-logo {
        max-width: 350px;
    }
    
    .about-text {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 768px) {
    .about-hero {
        height: 80vh;
        min-height: 500px;
        margin-top: 100px;
    }
    
    .about-pre-title {
        font-size: 1.3rem;
        letter-spacing: 3px;
        margin-bottom: 1.5rem;
    }
    
    .about-logo {
        max-width: 280px;
    }
    
    .about-logo-container {
        margin-bottom: 2.5rem;
    }
    
    .about-text {
        font-size: 1.1rem;
        line-height: 1.6;
        padding: 0 0.5rem;
    }
    
    .about-hero-content {
        padding: 0 1rem;
    }
}

@media screen and (max-width: 480px) {
    .about-hero {
        height: 70vh;
        min-height: 400px;
    }
    
    .about-pre-title {
        font-size: 1.1rem;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }
    
    .about-logo {
        max-width: 220px;
    }
    
    .about-logo-container {
        margin-bottom: 2rem;
    }
    
    .about-text {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .about-text::before,
    .about-text::after {
        font-size: 1.5rem;
    }
    
    .particle {
        display: none; /* Ocultar partículas en móviles pequeños */
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .about-logo {
        animation: none;
    }
    
    .about-hero::before,
    .particle {
        animation: none;
    }
    
    .about-hero-content,
    .about-pre-title,
    .about-logo-container,
    .about-description {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .about-logo-container:hover .about-logo {
        transform: scale(1.02);
        filter: drop-shadow(0 10px 20px rgba(175, 104, 209, 0.3));
    }
}

/* Mission & Vision Section */
.mission-vision {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.mission-vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(175, 104, 209, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(43, 157, 237, 0.05) 0%, transparent 50%);
    z-index: 1;
}

/* Navigation - SIEMPRE EN LA PARTE SUPERIOR */
.mv-nav {
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
    /* Aseguramos que esté arriba de todo */
    order: 1;
}

.mv-nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.mv-nav-item {
    margin: 0;
}

.mv-nav-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.4rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.mv-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.mv-nav-link:hover::before {
    left: 100%;
}

.mv-nav-link:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.mv-nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(175, 104, 209, 0.3);
    transform: translateY(-3px);
}

/* Content */
.mv-content {
    display: none;
    animation: mvContentAppear 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    position: relative;
    z-index: 2;
    /* Aseguramos que esté después de la navegación */
    order: 2;
}

.mv-content.active {
    display: block;
}

@keyframes mvContentAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.mv-text-content {
    text-align: center;
}

.mv-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateX(-50px);
    animation: titleSlideIn 0.8s ease 0.3s forwards;
}

@keyframes titleSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mv-image-container {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: imageAppear 0.8s ease 0.5s forwards;
}

@keyframes imageAppear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mv-image {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.mv-image:hover {
    transform: translateY(-10px) scale(1.05);
    filter: 
        drop-shadow(0 25px 40px rgba(175, 104, 209, 0.3))
        brightness(1.1);
}

.mv-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mv-image:hover::before {
    opacity: 0.3;
}

/* Description */
.mv-description {
    opacity: 0;
    transform: translateX(50px);
    animation: descriptionSlideIn 0.8s ease 0.7s forwards;
}

@keyframes descriptionSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mv-text {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mv-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(175, 104, 209, 0.1), transparent);
    transition: left 0.6s ease;
}

.mv-text:hover::before {
    left: 100%;
}

.mv-text:hover {
    border-color: rgba(175, 104, 209, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.mv-text p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.mv-text p:last-child {
    margin-bottom: 0;
}

.mv-text p:first-child::first-letter {
    font-size: 1.5em;
    font-weight: bold;
    color: #AF68D1;
    margin-right: 2px;
}

/* RESPONSIVE DESIGN - CORREGIDO */
@media screen and (max-width: 1024px) {
    .mv-grid {
        gap: 3rem;
    }
    
    .mv-title {
        font-size: 3.2rem;
    }
    
    .mv-text {
        padding: 2rem;
    }
    
    .mv-image {
        max-width: 350px;
    }
}

@media screen and (max-width: 768px) {
    .mission-vision {
        padding: 4rem 0;
        /* Hacemos que el contenedor sea flex para controlar el orden */
        display: flex;
        flex-direction: column;
    }
    
    .container {
        display: flex;
        flex-direction: column;
    }
    
    /* NAVEGACIÓN SIEMPRE ARRIBA */
    .mv-nav {
        order: 1;
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .mv-nav-list {
        gap: 1.5rem;
    }
    
    .mv-nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }
    
    /* CONTENIDO SIEMPRE DEBAJO DE LA NAVEGACIÓN */
    .mv-content {
        order: 2;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        /* Orden específico para móviles */
        grid-template-areas: 
            "title"
            "image"
            "description";
    }
    
    .mv-text-content {
        grid-area: title;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .mv-image-container {
        grid-area: image;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .mv-description {
        grid-area: description;
    }
    
    .mv-title {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .mv-image {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .mv-text {
        padding: 1.8rem;
    }
    
    .mv-text p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .mission-vision {
        padding: 3rem 0;
    }
    
    .mv-nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mv-nav-link {
        width: 100%;
        justify-content: center;
    }
    
    .mv-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .mv-image {
        max-width: 224px;
    }
    
    .mv-text {
        padding: 1.5rem;
    }
    
    .mv-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .mv-content,
    .mv-title,
    .mv-image-container,
    .mv-description {
        animation: none;
        transition: none;
    }
    
    .mv-content.active {
        opacity: 1;
        transform: none;
    }
    
    .mv-title {
        opacity: 1;
        transform: none;
    }
    
    .mv-image-container {
        opacity: 1;
        transform: none;
    }
    
    .mv-description {
        opacity: 1;
        transform: none;
    }
    
    .mv-image:hover {
        transform: none;
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    }
    
    .mv-text:hover {
        transform: none;
    }
}