﻿/* ==========================================================================
   OPTIMIZACIÓN DE RENDIMIENTO Y ESTILOS HERO COLLAGE HORIZONTAL
   ========================================================================== */
.fs-7.5 {
    font-size: 0.9rem;
}

.fs-8 {
    font-size: 0.8rem;
}

.fw-black {
    font-weight: 900;
}

.tracking-tight {
    letter-spacing: -0.03em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* Botones Corporativos Estilizados */
.btn-corporate-red {
    background: linear-gradient(135deg, #e31919 0%, #b91c1c 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(227, 25, 25, 0.3);
}

    .btn-corporate-red:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(227, 25, 25, 0.45);
    }

.btn-corporate-blue {
    background: linear-gradient(135deg, #00b4ec 0%, #0284c7 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0, 180, 236, 0.28);
}

    .btn-corporate-blue:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(0, 180, 236, 0.4);
    }

.btn-corporate-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0, 180, 236, 0.28);
}

    .btn-corporate-dark:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.4);
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        color: #ffffff !important;
    }

.btn-corporate-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #ffffff !important;
    border-radius: 12px;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

    .btn-corporate-outline-white:hover {
        border-color: #ffffff;
        background: #ffffff;
        color: #0f172a !important;
        transform: translateY(-3px);
    }

.btn-corporate-outline {
    border: 2px solid #cbd5e1;
    color: #1e293b !important;
    border-radius: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

    .btn-corporate-outline:hover {
        border-color: #94a3b8;
        background: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    }

/* 1. HERO COLLAGE HORIZONTAL */
.hero-v10-section {
    position: relative;
    padding: 8.5rem 0 7.5rem 0;
    overflow: hidden;
    background: #0f172a;
    color: #ffffff;
}

.hero-collage-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 14px;
    z-index: 1;
    padding: 14px;
}

.hero-collage-item {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 20px;
    background-color: #1e293b;
    transition: flex 1s cubic-bezier(0.25, 1, 0.5, 1), filter 1s ease, opacity 0.7s ease;
    filter: brightness(0.85) contrast(105%);
}

    .hero-collage-item.col-expanded {
        flex: 2.3;
        filter: brightness(1.08) contrast(110%);
        z-index: 2;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    }

    .hero-collage-item.col-contracted {
        flex: 1;
        filter: brightness(0.55) contrast(100%);
    }

    .hero-collage-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1);
        transition: transform 6.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .hero-collage-item.col-expanded img {
        transform: scale(1.05);
    }

@media (max-width: 991.98px) {
    .hero-v10-section {
        padding: 6.5rem 0 5.5rem 0;
    }

    .hero-collage-bg {
        gap: 0;
        padding: 0;
    }

    .hero-collage-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.8s ease-in-out;
    }

        .hero-collage-item.mobile-active {
            opacity: 1;
            z-index: 2;
        }
}

.hero-overlay-dynamic {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.75) 55%, rgba(15, 23, 42, 0.45) 100%);
    z-index: 3;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .hero-overlay-dynamic {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.82) 100%);
    }
}

.hero-v10-content {
    position: relative;
    z-index: 4;
}

.text-gradient-red-bright {
    background: linear-gradient(135deg, #ff8080 0%, #f87171 50%, #e31919 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-experience-hero {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
}

/* MINI TARJETAS CORPORATIVAS */
.hero-brand-mini-card {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px;
    padding: 16px 20px;
    backdrop-filter: blur(14px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
    transform: scale(0.97);
}

    .hero-brand-mini-card.active-toyo {
        background: rgba(227, 25, 25, 0.18) !important;
        border: 2px solid #e31919 !important;
        box-shadow: 0 10px 30px rgba(227, 25, 25, 0.35) !important;
        opacity: 1 !important;
        transform: translateY(-4px) scale(1.02) !important;
    }

    .hero-brand-mini-card.active-sakura {
        background: rgba(0, 180, 236, 0.18) !important;
        border: 2px solid #00b4ec !important;
        box-shadow: 0 10px 30px rgba(0, 180, 236, 0.35) !important;
        opacity: 1 !important;
        transform: translateY(-4px) scale(1.02) !important;
    }

    .hero-brand-mini-card.active-mt {
        background: rgba(255, 255, 255, 0.18) !important;
        border: 2px solid #ffffff !important;
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3) !important;
        opacity: 1 !important;
        transform: translateY(-4px) scale(1.02) !important;
    }

/* ==========================================================================
   LIENZO CONTINUO Y ESTILOS REDISEÑADOS PARA TRAYECTORIA
   ========================================================================== */

.content-wrapper-continuous {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.identity-v10-section,
.unidades-section-v10,
.history-bright-section {
    background: transparent !important;
    padding: 6rem 0;
    position: relative;
}

.glow-blue-intense, .glow-red-intense, .glow-cyan-intense {
    will-change: transform;
    pointer-events: none;
}

.glow-blue-intense {
    background: #3b82f6;
    opacity: 0.12;
    filter: blur(120px);
}

.glow-red-intense {
    background: #ef4444;
    opacity: 0.1;
    filter: blur(120px);
}

.glow-cyan-intense {
    background: #06b6d4;
    opacity: 0.1;
    filter: blur(120px);
}

/* REDISEÑO ESPECÍFICO DE TRAYECTORIA (HITO HISTÓRICO PREMIUM) */
.history-card-premium {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-radius: 36px;
    padding: 4rem 3.5rem;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

    .history-card-premium::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, #e31919, #00b4ec);
    }

@keyframes hitoZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(15px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tab-pane.fade.show.active .history-card-premium {
    animation: hitoZoomIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.timeline-nav-wrapper-modern {
    background: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    border-radius: 60px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    display: inline-flex;
    backdrop-filter: blur(15px);
}

.timeline-tab-btn-modern {
    background: transparent;
    border: none;
    color: #475569;
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

    .timeline-tab-btn-modern:hover {
        color: #e31919;
    }

    .timeline-tab-btn-modern.active {
        background: linear-gradient(135deg, #e31919 0%, #b91c1c 100%);
        color: #ffffff !important;
        box-shadow: 0 8px 22px rgba(227, 25, 25, 0.35);
        transform: scale(1.05);
    }

/* BARRA DE PROGRESO / LÍNEA DE TIEMPO INTERACTIVA */
.timeline-progress-container {
    width: 100%;
    max-width: 680px;
    position: relative;
    padding: 14px 0;
    cursor: pointer;
}

.timeline-progress-track {
    height: 8px;
    background: #e2e8f0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
}

.timeline-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e31919, #00b4ec);
    width: 0%;
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-nodes {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 15px;
    pointer-events: none;
}

.timeline-node-dot {
    width: 16px;
    height: 16px;
    background: #cbd5e1;
    border: 3px solid #ffffff;
    border-radius: 50%;
    transform: translateY(9px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

    .timeline-node-dot.active-node {
        background: #e31919;
        transform: translateY(7px) scale(1.35);
        box-shadow: 0 0 16px rgba(227, 25, 25, 0.55);
    }

/* Estilos globales de empresa cards */
.card-enterprise-v10 {
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.04);
}

    .card-enterprise-v10:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
    }

    .card-enterprise-v10::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
    }

    .card-enterprise-v10.toyo-accent::before {
        background: linear-gradient(90deg, #e31919, #ff4d4d);
    }

    .card-enterprise-v10.sakura-accent::before {
        background: linear-gradient(90deg, #00b4ec, #38bdf8);
    }

    .card-enterprise-v10.mt-accent::before {
        background: linear-gradient(90deg, #0f172a, #334155);
    }

.enterprise-header-box-v10 {
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    border-radius: 20px;
}

.header-toyo-gradient {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
}

.header-sakura-gradient {
    background: linear-gradient(135deg, #f0faff 0%, #e0f2fe 100%);
}

.header-mt-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
