/**
 * ORETANA LOGÍSTICA - Página Nosotros
 * Diseño consistente con home y servicios
 */

/* ==========================================
   BOTONES - Sin subrayado
   ========================================== */
[class*="btn-"],
[class*="btn-"]:hover,
[class*="btn-"]:focus,
[class*="btn-"]:active {
  text-decoration: none !important;
}

/* ========================================
   HERO NOSOTROS
   ======================================== */
.nosotros-hero {
    padding: 140px 0 100px;
    background: var(--color-gray-50);
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* Imagen de fondo difuminada en blanco y negro */
.nosotros-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/imagenes/flota_camiones.webp');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) blur(3px) opacity(0.15);
    z-index: 0;
}

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

[data-bs-theme="dark"] .nosotros-hero {
    background: var(--color-primary);
}

[data-bs-theme="dark"] .nosotros-hero::before {
    filter: grayscale(100%) blur(3px) opacity(0.08);
}

.nosotros-intro {
    animation: fadeInLeft 0.8s ease-out;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-success-light);
    color: var(--color-success);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

[data-bs-theme="dark"] .section-badge {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.nosotros-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-gray-900);
}

[data-bs-theme="dark"] .nosotros-hero-title {
    color: var(--color-white);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-success) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nosotros-hero-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-gray-600);
    margin-bottom: 2rem;
}

[data-bs-theme="dark"] .nosotros-hero-text {
    color: var(--color-gray-300);
}

.nosotros-commitment {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 24px;
    background: var(--color-white);
    border-left: 4px solid var(--color-success);
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .nosotros-commitment {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-gray-300);
}

.nosotros-commitment i {
    color: var(--color-success);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========================================
   STATS GRID - Compacto
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 480px;
    animation: fadeInRight 0.8s ease-out;
}

.stat-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Tarjetas de imagen */
.stat-image {
    aspect-ratio: 1;
}

.stat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.stat-item:hover img {
    transform: scale(1.1);
}

/* Tarjetas de número - SIN ICONOS */
.stat-number {
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1;
}

[data-bs-theme="dark"] .stat-number {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-number:hover {
    border-color: var(--color-accent);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 12px;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

[data-bs-theme="dark"] .stat-label {
    color: var(--color-gray-400);
}

/* Tarjeta destacada - mismo estilo que las otras */
.stat-featured {
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
}

[data-bs-theme="dark"] .stat-featured {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-featured:hover {
    border-color: var(--color-accent);
}

.stat-featured .stat-value {
    color: var(--color-accent);
}

.stat-featured .stat-label {
    color: var(--color-gray-600);
    text-transform: uppercase;
}

[data-bs-theme="dark"] .stat-featured .stat-label {
    color: var(--color-gray-400);
}

/* Animaciones escalonadas */
.stat-item:nth-child(1) { animation: zoomIn 0.5s ease-out 0.1s both; }
.stat-item:nth-child(2) { animation: zoomIn 0.5s ease-out 0.2s both; }
.stat-item:nth-child(3) { animation: zoomIn 0.5s ease-out 0.3s both; }
.stat-item:nth-child(4) { animation: zoomIn 0.5s ease-out 0.4s both; }
.stat-item:nth-child(5) { animation: zoomIn 0.5s ease-out 0.5s both; }
.stat-item:nth-child(6) { animation: zoomIn 0.5s ease-out 0.6s both; }

/* ========================================
   MISIÓN Y VISIÓN
   ======================================== */
.mision-vision-section {
    padding: 100px 0;
    background: var(--color-white);
    position: relative;
    z-index: 0;
}

[data-bs-theme="dark"] .mision-vision-section {
    background: var(--color-primary-light);
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-gray-900);
    margin-top: 1rem;
}

[data-bs-theme="dark"] .section-title {
    color: var(--color-white);
}

/* Tarjetas Misión/Visión */
.mv-card {
    background: var(--color-gray-50);
    border: 2px solid var(--color-gray-200);
    border-radius: 24px;
    padding: 45px 35px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .mv-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-success) 100%);
    border-radius: 24px 24px 0 0;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.mv-card:hover::before {
    transform: scaleX(1);
}

.mv-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .mv-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.mv-icon {
    width: 75px;
    height: 75px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-success) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.mv-card:hover .mv-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.mv-icon i {
    font-size: 34px;
    color: white;
}

.mv-icon .custom-icon {
    width: 34px;
    height: 34px;
    filter: brightness(0) invert(1);
}

.mv-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 16px;
}

[data-bs-theme="dark"] .mv-title {
    color: var(--color-white);
}

.mv-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-gray-600);
    margin: 0;
}

[data-bs-theme="dark"] .mv-text {
    color: var(--color-gray-300);
}

/* ========================================
   VALORES
   ======================================== */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.valor-item {
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
    border-radius: 20px;
    padding: 35px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .valor-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.valor-item:hover {
    border-color: var(--color-success);
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .valor-item:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.valor-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--color-success-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.valor-item:hover .valor-icon {
    background: var(--color-success);
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.valor-icon i {
    font-size: 30px;
    color: var(--color-success);
    transition: color 0.3s ease;
}

.valor-icon .custom-icon {
    width: 30px;
    height: 30px;
    filter: invert(64%) sepia(59%) saturate(458%) hue-rotate(99deg) brightness(94%) contrast(86%);
    transition: filter 0.3s ease;
}

.valor-item:hover .valor-icon i {
    color: white;
}

.valor-item:hover .valor-icon .custom-icon {
    filter: brightness(0) invert(1);
}

.valor-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 12px;
}

[data-bs-theme="dark"] .valor-title {
    color: var(--color-white);
}

.valor-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-gray-600);
    margin: 0;
}

[data-bs-theme="dark"] .valor-desc {
    color: var(--color-gray-400);
}

/* ========================================
   HISTORIA - ESTILO MODERNO CON CÍRCULOS SUPERIORES
   ======================================== */
.historia-section {
    padding: 0;
    background: var(--color-white);
    position: relative;
    overflow: visible;
    min-height: auto;
}

[data-bs-theme="dark"] .historia-section {
    background: var(--color-primary-light);
}

/* Historia Content - Todo unificado */
.historia-content {
    padding: 100px 0;
    background: var(--color-white);
    position: relative;
    z-index: 1;
}

[data-bs-theme="dark"] .historia-content {
    background: var(--color-primary-light);
}

/* Intro de historia */
.historia-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-gray-600);
    max-width: 700px;
    margin: 0 auto 60px;
}

[data-bs-theme="dark"] .historia-intro {
    color: var(--color-gray-300);
}

.timeline-wrapper {
    position: relative;
    padding: 0;
    margin-bottom: 40px;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.historia-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* FORZAR 4 columnas */
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Timeline Item */
.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

/* Animación escalonada */
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Círculo superior con año */
.timeline-dot {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-success) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
    margin-bottom: -50px;
    z-index: 2;
    position: relative;
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5);
}

/* Variaciones de color - COLORES DEL LOGO ORETANA */
.timeline-item:nth-child(1) .timeline-dot {
    background: linear-gradient(135deg, #2563eb, #10b981);
}

.timeline-item:nth-child(2) .timeline-dot {
    background: linear-gradient(135deg, #10b981, #2563eb);
}

.timeline-item:nth-child(3) .timeline-dot {
    background: linear-gradient(135deg, #2563eb, #10b981);
}

.timeline-item:nth-child(4) .timeline-dot {
    background: linear-gradient(135deg, #10b981, #2563eb);
}

.timeline-year {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1;
}

/* Tarjeta principal */
.timeline-card {
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
    border-radius: 24px;
    padding: 70px 32px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    width: 100%;
    text-align: center;
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

[data-bs-theme="dark"] .timeline-card {
    background: var(--color-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.timeline-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-success));
    border-radius: 0 0 24px 24px;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.timeline-card:hover::before {
    transform: scaleX(1);
}

.timeline-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--color-success);
}

[data-bs-theme="dark"] .timeline-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Título de la tarjeta */
.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 16px;
    line-height: 1.3;
}

[data-bs-theme="dark"] .timeline-title {
    color: var(--color-white);
}

/* Texto descriptivo */
.timeline-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-600);
    margin-bottom: 0;
}

[data-bs-theme="dark"] .timeline-text {
    color: var(--color-gray-400);
}

.timeline-text strong {
    color: var(--color-success);
    font-weight: 600;
}

[data-bs-theme="dark"] .timeline-text strong {
    color: var(--color-success);
}

/* Línea horizontal conectando - VERDE - Por el centro de las tarjetas */
.timeline-line-horizontal {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-success);
    z-index: 0;
    pointer-events: none;
    transform: translateY(-50%);
}

[data-bs-theme="dark"] .timeline-line-horizontal {
    background: var(--color-success);
}

/* Stats destacadas */
.historia-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.historia-stat-card {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-success) 100%);
    border-radius: 24px;
    padding: 45px 35px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
    transition: all 0.4s ease;
}

.historia-stat-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.4);
}

.historia-stat-icon {
    font-size: 52px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.historia-stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1;
}

.historia-stat-label {
    font-size: 1.0625rem;
    font-weight: 600;
    opacity: 0.95;
}

/* ========================================
   ANIMACIONES
   ======================================== */
