/**
 * nosotros.css - Estilos específicos para la página Nosotros
 * Basado en 2.2-tabla-componentes-y-efectos-nosotros.md
 */

/* ==========================================================================
   Hero Nosotros
   ========================================================================== */
.hero-nosotros {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
}

.hero-nosotros::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-bg) center center/cover no-repeat;
    opacity: 0.4;
    z-index: 0;
    transition: all 0.5s ease;
}

.hero-nosotros:hover::before {
    transform: scale(1.05);
}

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

.hero-nosotros h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.hero-nosotros p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
}

/* ==========================================================================
   Historia Section
   ========================================================================== */
.historia-section {
    padding: 5rem 0;
}

.historia-content {
    position: relative;
}

.historia-content .year-highlight {
    display: inline-block;
    background: var(--donosti-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.historia-content .year-highlight:hover {
    transform: scale(1.05);
}

.historia-image {
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.historia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.historia-image:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Valores Section
   ========================================================================== */
.valores-section {
    background: var(--donosti-red);
    padding: 5rem 0;
    color: white;
}

.valores-section .section-title {
    color: white;
}

.valores-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.valores-section .section-title::after {
    background: white;
}

.valor-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 0.75rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.valor-card i {
    font-size: 3rem;
    color: var(--donosti-red);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.valor-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.valor-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.valor-card p {
    color: var(--donosti-gray);
    margin-bottom: 0;
}

/* ==========================================================================
   Equipo y Capacidades
   ========================================================================== */
.capacidades-section {
    padding: 5rem 0;
}

.capacidad-metric {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.capacidad-metric:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.capacidad-metric .metric-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--donosti-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.capacidad-metric .metric-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--donosti-dark);
    margin-bottom: 0;
}

/* ==========================================================================
   Timeline (opcional)
   ========================================================================== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--donosti-red);
    transform: translateX(-50%);
}

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

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

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

.timeline-content {
    flex: 0 0 45%;
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-marker {
    flex: 0 0 10%;
    display: flex;
    justify-content: center;
}

.timeline-marker span {
    width: 20px;
    height: 20px;
    background: var(--donosti-red);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--donosti-red);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 50px;
    }

    .timeline-content {
        flex: 1;
        width: 100%;
    }

    .timeline-marker {
        position: absolute;
        left: 0;
    }
}

/* ==========================================================================
   CTA Nosotros con Fondo
   ========================================================================== */
.cta-nosotros {
    position: relative;
    background: #1a1a1a;
    overflow: hidden;
    color: white;
}

.cta-nosotros::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cta-bg) center center/cover no-repeat;
    background-attachment: fixed;
    opacity: 0.5;
    z-index: 0;
}

.cta-nosotros h2,
.cta-nosotros p {
    color: white !important;
    position: relative;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .cta-nosotros::before {
        background-attachment: scroll;
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .hero-nosotros h1 {
        font-size: 2.25rem;
    }

    .hero-nosotros p {
        font-size: 1.125rem;
    }

    .historia-section,
    .valores-section,
    .capacidades-section {
        padding: 3rem 0;
    }
}