/* =============================================================================
   ESTILOS ESPECÍFICOS PARA PÁGINA NOSOTROS - nosotros.css (VERSIÓN ZIGZAG)
   ============================================================================= */

/* HERO SECTION */
.about-hero {
    background-image: url('/img/equipo.png');     
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.about-hero h3 {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* HISTORIA SECTION - ZIGZAG TIMELINE */
.our-story {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.our-story h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 5rem;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    z-index: 10;
}

.our-story h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 2px;
}

/* CABLE DE FIBRA ÓPTICA ANIMADO - CORREGIDO PARA SOLO HISTORIA */
.fiber-cable {
    position: absolute;
    left: 50%;
    top: 150px;
    width: 8px;
    background: linear-gradient(
        to bottom,
        #ff6b35 0%,
        #f7931e 10%,
        #ffd700 20%,
        #32cd32 30%,
        #00bfff 40%,
        #4169e1 50%,
        #8a2be2 60%,
        #ff1493 70%,
        #ff6347 80%,
        #ff4500 90%,
        #dc143c 100%
    );
    transform: translateX(-50%);
    z-index: 5;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    transition: height 0.1s ease-out;
    height: 0;
    opacity: 0;
    visibility: hidden;
    /* IMPORTANTE: Solo existe dentro de .our-story */
    max-height: calc(100% - 200px);
}

.fiber-cable::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 12px solid #ff6b35;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.8));
}

.fiber-cable::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #fff 30%, #ff6b35 70%);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateX(-50%) scale(1.3);
        opacity: 0.7;
    }
}

/* TIMELINE ZIGZAG */
.story-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #3498db, #2980b9, #8e44ad, #e74c3c);
    border-radius: 2px;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0.3;
}

.story-milestone {
    position: relative;
    margin-bottom: 4rem;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 45%;
    opacity: 0;
    transform: translateY(50px);
}

/* ALTERNANCIA IZQUIERDA/DERECHA */
.story-milestone:nth-child(odd) {
    margin-left: 0;
    border-left: 4px solid #3498db;
    transform: translateX(-50px) translateY(50px);
}

.story-milestone:nth-child(even) {
    margin-left: 55%;
    border-right: 4px solid #8e44ad;
    transform: translateX(50px) translateY(50px);
}

/* CÍRCULOS DE LA TIMELINE */
.story-milestone::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3498db, #8e44ad);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
}

.story-milestone:nth-child(odd)::before {
    right: -62px;
}

.story-milestone:nth-child(even)::before {
    left: -62px;
}

/* ANIMACIÓN DE ENTRADA */
.story-milestone.animate-in {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.story-milestone:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.story-milestone:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 0 8px rgba(52, 152, 219, 0.4);
}

/* CONECTORES CURVOS */
.story-milestone::after {
    content: '';
    position: absolute;
    top: 50px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    z-index: 1;
}

.story-milestone:nth-child(odd)::after {
    right: -40px;
}

.story-milestone:nth-child(even)::after {
    left: -40px;
}

.story-milestone h4 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-milestone h4::before {
    content: '🚀';
    font-size: 1.2rem;
}

.story-milestone:nth-child(even) h4::before {
    content: '⚡';
}

.story-milestone:nth-child(4) h4::before {
    content: '🌐';
}

.story-milestone:nth-child(6) h4::before {
    content: '💪';
}

.story-milestone:nth-child(7) h4::before {
    content: '👑';
}

.story-milestone p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* MISIÓN, VISIÓN Y VALORES */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 80px 0;
}

.mission-card {
    background: rgba(255,255,255,0.95);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid rgba(52, 152, 219, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mission-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255,255,255,1);
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #8e44ad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.mission-card:hover .card-icon {
    transform: rotateY(360deg);
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

.mission-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.mission-card p {
    color: #666;
    line-height: 1.6;
}

.values-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.values-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.values-list i {
    color: #4ade80;
}

/* EQUIPO SECTION */
.our-team {
    padding: 80px 0;
    background: #f8f9fa;
}

.our-team h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    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.6s;
}

.team-member:hover::before {
    left: 100%;
}

.team-member:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.member-photo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.team-member:hover .member-photo {
    transform: rotateY(180deg);
}

.member-photo i {
    font-size: 3rem;
    color: white;
}

.team-member h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.member-role {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.team-member p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-5px);
}



/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(44, 62, 80, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
/* HEADER AL ESCROLLEAR */
.header.hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* CONTENIDO DEL HEADER */
.header-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .about-hero {
        background-attachment: scroll;
        padding: 80px 0 60px;
    }
    
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .about-hero h3 {
        font-size: 1.1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* TIMELINE MÓVIL */
    .story-timeline::before {
        left: 30px;
        transform: none;
    }

    .story-milestone {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .story-milestone:nth-child(odd),
    .story-milestone:nth-child(even) {
        border-left: 4px solid #3498db;
        border-right: none;
        transform: translateX(-30px) translateY(50px);
    }

    .story-milestone.animate-in {
        transform: translateX(0) translateY(0);
    }

    .story-milestone::before {
        left: -50px !important;
        right: auto !important;
    }

    .story-milestone::after {
        left: -30px !important;
        right: auto !important;
        width: 30px;
    }

    .our-story {
        padding: 60px 0;
    }

    .our-story h2 {
        font-size: 2.2rem;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .our-story h2 {
        font-size: 1.8rem;
    }

    .story-milestone h4 {
        font-size: 1.2rem;
    }

    .mission-card {
        padding: 2rem;
    }

    .team-member {
        padding: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}

/* UTILIDADES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}