/* --- 5. NOSOTROS Y EQUIPO --- */
.nosotros-main {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    animation: fadeUp 0.8s ease both;
}
#nosotros .section-title h2 {
    color: #ffffff;
}

#nosotros .section-title {
    color: #ffffff;
}
.experience-badge {
    background: var(--accent);
    color: #ffffff; /* antes var(--secondary) para mejor contraste */
    display: inline-block;
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1px;
    animation: fadeUp 1s ease both;
}

/* GRID */
.nosotros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.nosotros-card {
    background: #ffffff; /* se mantiene blanco para contraste */
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo sutil */
.nosotros-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.6s;
}

.nosotros-card:hover::before {
    left: 100%;
}

.nosotros-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35); /* más acorde a fondo oscuro */
}

/* --- SECCIÓN EQUIPO --- */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex: 0 1 calc(33.333% - 30px); 
    min-width: 280px;
    position: relative;
}

/* Hover más moderno */
.team-card:hover { 
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.team-img { 
    height: 320px; 
    overflow: hidden; 
    position: relative;
}

/* Overlay oscuro suave */
.team-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: 0.4s;
}

.team-card:hover .team-img::after {
    opacity: 1;
}

.team-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.5s; 
}

.team-card:hover .team-img img { 
    transform: scale(1.1) rotate(1deg);
}

.team-info { 
    padding: 25px; 
    text-align: center;
    transition: 0.3s;
}

.team-info h4 {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    font-size: 1.2rem;
    transition: 0.3s;
    color: #1f2937; /* mejor legibilidad */
}

.team-card:hover h4 {
    color: var(--primary);
}

.team-info p { 
    color: var(--primary); 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.9rem;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* --- FONDO TÉCNICO AVANZADO PARA NOSOTROS --- */
#nosotros {
    background-color: #2d3436; /* 🔥 fondo aplicado */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    padding: 120px 8%;
    position: relative;
    overflow: hidden;
}

/* Elementos de "Circuito" Decorativos */
#nosotros::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.04) 21px
    );
    z-index: 0;
}

#nosotros::before {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -20px;
    width: 150px;
    height: 2px;
    background: var(--accent);
    box-shadow: 200px -150px 0 rgba(255, 255, 255, 0.08), 
                300px 100px 0 rgba(255, 255, 255, 0.08);
    z-index: 0;
}

/* Capa de suavizado */
.nosotros-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 20%, #2d3436 90%);
    pointer-events: none;
    z-index: 0;
}

.nosotros-container {
    position: relative;
    z-index: 2;
}

/* Tipografía */
.nosotros-main h3 {
    font-size: 2.5rem;
    color: #ffffff; /* antes var(--secondary) */
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.nosotros-main p {
    color: #d1d5db; /* gris claro */
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    background: rgba(0, 0, 0, 0.35); /* adaptado a fondo oscuro */
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

/* --- ANIMACIONES --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .team-card {
        flex: 0 1 calc(50% - 30px);
    }
}

@media (max-width: 650px) {
    .team-card {
        flex: 0 1 100%;
    }
}
