/* 🌌 Efecto galaxia en el hero */
.hero-nosotros {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.hero-content h1 {
    color: var(--blanco);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}
.hero-content p {
    color: var(--gris-blanco);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 1rem;
}
.highlight {
    color: var(--naranja);
    font-weight: bold;
}
.galaxy-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 119, 182, 0.1) 0%, transparent 50%);
    z-index: 1;
}

/* 📜 Línea de tiempo CORREGIDA */
.historia {
    padding: 4rem 5%;
    background: var(--gris-oscuro);
}
.historia h2 {
    color: var(--azul);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}
.historia h2 i {
    margin-right: 0.5rem;
}
.timeline {
    max-width: 1000px;
    margin: 0 auto;
    /* ELIMINADO: timeline::before (línea azul) */
}
.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    gap: 2rem;
    align-items: flex-start;
}
.timeline-img {
    width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid var(--gris-claro);
    flex-shrink: 0;
}
.timeline-text {
    flex: 1;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}
.timeline-year {
    color: var(--naranja);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.timeline-text h3 {
    color: var(--azul);
    margin-bottom: 0.5rem;
}
.timeline-text p {
    color: var(--gris-blanco);
    line-height: 1.6;
}

/* 👤 Equipo con hexágonos */
.equipo {
    padding: 4rem 5%;
    background: var(--negro);
}
.equipo-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.miembro {
    text-align: center;
    max-width: 250px;
    transition: transform 0.3s;
}
.miembro:hover {
    transform: translateY(-10px);
}
.hexagon {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
    transition: transform 0.5s;
}
.miembro:hover .hexagon {
    transform: rotate(15deg);
}
.hexagon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.miembro:hover .hexagon img {
    transform: scale(1.1);
}
.miembro h3 {
    color: var(--naranja);
    margin-bottom: 0.5rem;
}
.miembro .rol {
    color: var(--azul);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.miembro .desc {
    color: var(--gris-blanco);
    font-style: italic;
    margin-bottom: 1rem;
}
.redes {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.redes a {
    color: var(--blanco);
    font-size: 1.2rem;
    transition: color 0.3s;
}
.redes a:hover {
    color: var(--naranja);
}

/* 🎯 Valores con iconos animados */
.valores {
    padding: 4rem 5%;
    background: var(--gris-oscuro);
}
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.valor {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.valor:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.valor .icono {
    font-size: 2.5rem;
    color: var(--azul);
    margin-bottom: 1rem;
    transition: transform 0.5s;
}
.valor:hover .icono {
    transform: scale(1.2) rotate(10deg);
}
.valor h3 {
    color: var(--naranja);
    margin-bottom: 1rem;
}
.valor p {
    color: var(--gris-blanco);
    line-height: 1.6;
}

/* 💬 Testimonios en burbujas */
.testimonios {
    padding: 4rem 5%;
    background: var(--negro);
}
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.testimonio {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.burbuja {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.2), rgba(255, 107, 53, 0.1));
    border: 1px solid var(--azul);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    max-width: 300px;
}
.burbuja::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(0, 119, 182, 0.2);
}
.burbuja p {
    color: var(--blanco);
    font-style: italic;
    line-height: 1.6;
}
.cliente {
    text-align: center;
}
.cliente img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--naranja);
}
.cliente h4 {
    color: var(--azul);
    margin: 0.5rem 0 0.2rem;
}
.cliente p {
    color: var(--gris-blanco);
    font-size: 0.9rem;
}

/* ✨ Fondo animado con filtro naranja */
.filtered-gif {
    filter: hue-rotate(45deg) sepia(1);
    opacity: 0.15;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .hero-nosotros h1 {
        font-size: 2.5rem;
    }
    .timeline-item {
        flex-direction: column;
    }
    .timeline-text {
        padding-left: 0;
        margin-top: 1rem;
    }
    .equipo-grid {
        grid-template-columns: 1fr;
    }
    .valores-grid {
        grid-template-columns: 1fr;
    }
}
