/* about.css - Estilos optimizados para la página Nosotros */

/* ===== VARIABLES Y RESET ===== */
:root {
    --primary-color: #001632;
    --accent-color: #FC4303;
    --white: #FFFFFF;
    --gray-light: #f8f9fa;
    --gray-medium: #666;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== HERO SECTION - NOSOTROS ===== */
.about-hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--white);
}

.about-hero-bg,
.about-hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.about-hero-bg {
    z-index: 1;
}

.about-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.about-hero-bg .overlay {
    background: linear-gradient(135deg, rgba(0, 22, 50, 0.8) 0%, rgba(252, 67, 3, 0.3) 100%);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(252, 67, 3, 0.9);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    margin: 0 auto 3rem;
    max-width: 600px;
    line-height: 1.5;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(25px, 3vw, 40px);
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--white);
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ===== SECCIÓN HISTORIA ===== */
.history-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
    position: relative;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.02"><polygon fill="%23001632" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    padding-left: 50px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    position: absolute;
    left: -70px;
    top: 0;
    width: 100px;
    height: 40px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    z-index: 2;
}

.timeline-content {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 22, 50, 0.05);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-content p {
    color: var(--gray-medium);
    line-height: 1.6;
    margin: 0;
}

/* ===== MISIÓN Y VISIÓN ===== */
.mission-vision-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.mv-card {
    background: var(--white);
    padding: clamp(30px, 5vw, 50px) clamp(25px, 4vw, 40px);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(252, 67, 3, 0.05), rgba(0, 22, 50, 0.05));
    transition: left 0.6s ease;
    z-index: 0;
}

.mv-card:hover::before {
    left: 0;
}

.mission-card {
    border-color: rgba(252, 67, 3, 0.2);
}

.vision-card {
    border-color: rgba(0, 22, 50, 0.2);
}

.mv-icon {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.mv-card:hover .mv-icon {
    transform: scale(1.1) rotate(5deg);
}

.mv-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.mv-card p {
    color: var(--gray-medium);
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* ===== VALORES CORPORATIVOS ===== */
.values-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
    position: relative;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.02"><polygon fill="%23001632" points="0,0 1000,1000 0,1000"/></svg>');
    background-size: cover;
}

.values-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 40px;
    margin-top: 60px;
    padding: 0 10px;
}

.value-card {
    background: var(--white);
    padding: clamp(30px, 4vw, 45px) clamp(20px, 3vw, 35px);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition-slow);
    border: 1px solid rgba(0, 22, 50, 0.05);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    transition: var(--transition);
    opacity: 0;
}

.value-card:hover::before {
    opacity: 1;
}

.value-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(252, 67, 3, 0.15);
    border-color: rgba(252, 67, 3, 0.3);
}

.value-icon {
    margin-bottom: 25px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.value-card:hover .value-icon {
    transform: scale(1.15) rotate(8deg);
}

.value-card h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.value-card p {
    color: var(--gray-medium);
    line-height: 1.7;
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    position: relative;
    z-index: 2;
}

.value-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(252, 67, 3, 0.03), rgba(0, 22, 50, 0.03));
    transition: left 0.6s ease;
    z-index: 1;
}

.value-card:hover::after {
    left: 0;
}

/* ===== EQUIPO / COMPROMISO ===== */
.team-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a2a4a 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(252, 67, 3, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(252, 67, 3, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.team-section .container {
    position: relative;
    z-index: 2;
}

.team-section .section-header h2 {
    color: var(--white);
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.team-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #ff6b35);
    border-radius: 2px;
}

.team-section .section-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto 0;
}

.team-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 70px;
    padding: 0 10px;
}

.team-commitment {
    background: rgba(255, 255, 255, 0.05);
    padding: clamp(35px, 4vw, 50px) clamp(20px, 3vw, 35px);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    z-index: 2;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-commitment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(252, 67, 3, 0.5), rgba(255, 255, 255, 0.1), rgba(0, 22, 50, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-commitment:hover::before {
    opacity: 1;
}

.team-commitment::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(252, 67, 3, 0.1), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.team-commitment:hover::after {
    left: 100%;
}

.team-commitment:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(252, 67, 3, 0.4);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(252, 67, 3, 0.1);
}

.commitment-icon {
    margin-bottom: 25px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.team-commitment:hover .commitment-icon {
    transform: scale(1.15) rotate(5deg);
}

.commitment-icon svg {
    color: var(--accent-color);
    filter: drop-shadow(0 4px 8px rgba(252, 67, 3, 0.3));
}

.team-commitment h3 {
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.team-commitment p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.1rem);
    position: relative;
    z-index: 2;
}

/* ===== ANIMACIONES CONTADORES ===== */
.stat-number.completed {
    animation: counterPulse 0.5s ease;
    color: var(--accent-color);
}

@keyframes counterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.stat-number::before {
    content: '+';
    display: inline-block;
    opacity: 0;
    margin-right: -10px;
    transition: var(--transition);
}

.stat-number.completed[data-count="2500"]::before,
.stat-number.completed[data-count="15"]::before {
    opacity: 1;
    margin-right: 5px;
}

.stat-number[data-count="100"]::after {
    content: '%';
    display: inline-block;
    opacity: 0;
    margin-left: -10px;
    transition: var(--transition);
}

.stat-number.completed[data-count="100"]::after {
    opacity: 1;
    margin-left: 5px;
}

/* ===== MEDIA QUERIES OPTIMIZADAS ===== */
@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 100%;
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (min-width: 1200px) {
    .team-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 60vh;
        min-height: 500px;
    }
    
    .history-timeline {
        padding-left: 30px;
    }
    
    .history-timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-year {
        position: relative;
        left: 0;
        top: 0;
        margin-bottom: 15px;
        width: 80px;
    }
    
    .timeline-item::before {
        left: -20px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .mv-grid,
    .values-grid {
        gap: 30px;
    }
    
    .team-grid {
        gap: 30px;
    }
    
    .team-section .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .values-grid-container,
    .team-grid-container {
        padding: 0 10px;
    }
    
    .team-commitment {
        min-height: auto;
    }
}

/* ===== MISIÓN Y VISIÓN - HEADER ESPECÍFICO ===== */
.about-section.mission-vision-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.about-section.mission-vision-section .section-badge {
    display: inline-block !important;
    background: rgba(252, 67, 3, 0.1);
    color: #FC4303;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-section.mission-vision-section .section-header h2 {
    font-size: 2.5rem;
    color: #001632;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.about-section.mission-vision-section .section-subtitle {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}