/**
 * ESTILOS ESPECÍFICOS PARA LA PÁGINA "NOSOTROS"
 * CPES N.º 38 "Juana Azurduy"
 */

/* ESTADÍSTICAS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
    color: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    transition: all 0.6s ease;
}

.stat-card:hover::before {
    top: -25%;
    right: -25%;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, var(--verde-turismo), #1e8449);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #E67E22, #D35400);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #8E44AD, #7D3C98);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* EQUIPO DIRECTIVO */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: white;
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border-top: 4px solid var(--verde-turismo);
    position: relative;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-top-width: 6px;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul-claro), var(--verde-turismo));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.team-member:hover .team-avatar {
    transform: scale(1.1) rotate(5deg);
}

.team-role {
    color: var(--verde-turismo);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.team-name {
    color: var(--azul-oscuro);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* VALORES */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.valor-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 5px solid var(--azul-claro);
}

.valor-card:hover {
    transform: translateX(8px);
    border-left-color: var(--verde-turismo);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.valor-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.valor-card h4 {
    color: var(--azul-oscuro);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

/* TIMELINE */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--azul-claro), var(--verde-turismo));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    width: calc(50% - 40px);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--verde-turismo);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--verde-turismo);
    z-index: 1;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    margin-bottom: 10px;
}

.timeline-content h4 {
    color: var(--azul-oscuro);
    margin-bottom: 10px;
}

/* SECCIONES GENERALES */
.main-padding {
    padding: 60px 0;
}

.historia-section,
.valores-section,
.equipo-section,
.timeline-section {
    margin: 70px 0;
}

.historia-container {
    max-width: 900px;
    margin: 0 auto;
}

.historia-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.historia-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

.historia-content strong {
    color: var(--azul-oscuro);
}

.team-description {
    color: #666;
    font-size: 0.9rem;
    margin-top: 12px;
}

/* LLAMADO A LA ACCIÓN */
.cta-section {
    margin: 70px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
    color: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-blanco {
    background: white;
    color: var(--azul-oscuro);
}

.btn-blanco:hover {
    background: var(--gris-fondo);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        padding-left: 50px;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .cta-box {
        padding: 40px 25px;
    }
    
    .cta-box h3 {
        font-size: 1.6rem;
    }
    
    .historia-content {
        padding: 30px 25px;
    }
}