/* Importar estilos comunes */
@import url('common.css');

/* Estilos base de la página About */
.about-page {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--text-color);
    overflow-x: hidden;
}

.hero {
    position: relative;
    min-height: 110vh;
    padding-bottom: 10vh;
    background: #1a0a2e;
}

.finisher-header {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    overflow: hidden;
    min-height: 300px;
    z-index: 3;
}

#networkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;  /* Este valor (2) lo sitúa por encima del canvas de FinisherHeader */
    opacity: 1;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: -100%;  /* Aumentado de -50% a -100% para evitar bordes */
    width: 300%;   /* Aumentado de 200% a 300% */
    height: 300%;  /* Aumentado de 200% a 300% */
    animation: moveGradient 20s ease-in-out infinite alternate;
    background-size: 300% 300%;  /* Ajustado al nuevo tamaño */
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 40px;
    margin-bottom: 80px;
    border-radius: 20px;
    background: rgba(26, 10, 46, 0.15);
    backdrop-filter: blur(1px);
    box-shadow: 
        0 0 40px rgba(255, 0, 171, 0.2),
        inset 0 0 20px rgba(255, 0, 171, 0.1);
    border: 2px solid rgba(255, 0, 171, 0.1);
}

/* Efecto hover */
.hero-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(
        800px circle at var(--mouse-x, center) var(--mouse-y, center),
        rgba(255, 0, 171, 0.1) 0%,
        rgba(255, 0, 171, 0.05) 30%,
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.hero-content:hover::after {
    opacity: 1;
}

/* Título con gradiente animado */
.hero-content h1 {
    position: relative;
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(
        90deg,
        #fff 0%,
        #ff00ab 25%,
        #fff 50%,
        #ff00ab 75%,
        #fff 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 8s linear infinite;
    z-index: 2;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

@keyframes shimmer {
    0% {
        background-position: 200% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Separador */
.custom-shape-divider-bottom-1739968700 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 3; /* Asegúrate de que esté por encima */
}


.custom-shape-divider-bottom-1739968700 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.custom-shape-divider-bottom-1739968700 .shape-fill {
    fill: #0a0a0a; /* Puedes cambiar este color para que armonice con tu diseño */
}


/* Timeline Section */
.timeline-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.timeline-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--accent-color);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent,
        var(--accent-color),
        transparent
    );
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
    padding: 0 40px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    transform: translateX(50px);
}

.timeline-item:nth-child(even).animate-in {
    transform: translateX(0);
}

.timeline-content {
    position: relative;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.timeline-content::before {
    content: attr(data-year);
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    background: var(--accent-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -70px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -70px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.timeline-content p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Team Section */
.team-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}

.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--accent-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.member-photo {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.member-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.member-info span {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.member-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Values Section */
.values-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.values-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--accent-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    padding: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.value-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Mission Vision Section */
.mission-vision-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.mission, .vision {
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mission:hover, .vision:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.mission h2, .vision h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.mission p, .vision p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Join Section */
.join-section {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
}

.join-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 0, 171, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.join-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.join-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* Animaciones */
@keyframes pulseBg {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.2);
    }
}

@keyframes moveNodes {
    0% {
        background-position: 0 0, 150px 150px, 300px 300px;
    }
    100% {
        background-position: 300px 300px, 450px 450px, 600px 600px;
    }
}

@keyframes pulseLines {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
}

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

/* Media Queries */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        margin-left: 0 !important;
    }

    .timeline-item:nth-child(even) .timeline-content::before {
        left: -50px;
    }

    .section-split {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .value-card {
        padding: 20px;
    }
}
