/* assets/css/style.css */

/* --- GLOBAL --- */
html {
    scroll-behavior: smooth;
}

body {
    background: #FFFFFF;
    color: #111111;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#waves-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- ANIMACIONES GLOBALES --- */

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Logos moviéndose */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- PÁGINA MÉTODO --- */
/* Línea de tiempo animada */
@keyframes flowDynamic {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 200%;
    }
}

#timeline-line {
    width: 2px;
    height: 0%;
    background: linear-gradient(180deg, #d4d4d4 0%, #F58220 50%, #d4d4d4 100%);
    background-size: 100% 200%;
    animation: flowDynamic 4s linear infinite;
    transition: height 2.5s ease-out, box-shadow 2.5s ease-out;
    border-radius: 4px;
}

#timeline-line.draw-active {
    height: 100%;
    box-shadow: 0px 0px 15px rgba(245, 130, 32, 0.6);
}

/* Items del Timeline */
.timeline-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.timeline-item.item-active {
    opacity: 1;
    transform: translateY(0);
}

/* --- EFECTO TERMINAL MÉTODO --- */

@keyframes terminal-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cursor-blink {
    animation: terminal-blink 1s step-end infinite;
    display: inline-block;

}

@keyframes line-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-line {
    opacity: 0;
    animation: line-appear 0.6s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 1.2s;
}

.delay-3 {
    animation-delay: 2.2s;
}

.delay-4 {
    animation-delay: 3.5s;
}

.delay-5 {
    animation-delay: 5.0s;
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 8s infinite ease-in-out;
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.animate-gradient-text {
    background-size: 200% auto;
    animation: textShine 4s linear infinite;
}

/* Servicios */

/* --- ANIMACIONES --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes grid-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 30px 30px;
    }
}

/* --- ANIMACIONES HORIZONTALES --- */
@keyframes flow-horizontal-1 {
    0% {
        left: 20%;
        opacity: 0;
        transform: scale(0.5);
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    80% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        left: 48%;
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Partícula del Nodo */
@keyframes flow-horizontal-2 {
    0% {
        left: 52%;
        opacity: 0;
        transform: scale(0.5);
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    80% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        left: 80%;
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Latido nodos activos */
@keyframes node-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0px rgba(255, 152, 0, 0);
    }

    50% {
        box-shadow: 0 0 15px 0px rgba(255, 152, 0, 0.2);
    }
}

/* --- ANIMACIONES TERMINAL IA  --- */
@keyframes type-line {
    0% {
        width: 0;
        opacity: 0.5;
    }

    100% {
        width: 100%;
        opacity: 1;
    }
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- ANIMACIONES PROCESADOR  --- */
@keyframes drop-in {
    0% {
        transform: translateY(-150%);
        opacity: 0;
    }

    40% {
        transform: translateY(0);
        opacity: 1;
    }

    45% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(0.9);
        opacity: 1;
    }
}

@keyframes drop-out {
    0% {
        transform: translateY(0) scale(0.9);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(150%);
        opacity: 0;
    }
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 148, 3, 0);
    }

    50% {
        transform: scale(1.09);
        box-shadow: 0 0 15px rgba(255, 148, 3, 0.4);
        filter: brightness(1.1);

    }
}

/* SOBRE TYM */

body {
    font-family: 'Inter', sans-serif;
}

/* TIMELINE */
.map-point {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    box-shadow: 0 0 0 4px #fff;
    transform-origin: center;
}

.map-milestone.active .map-point {
    background-color: #F58220;
    border-color: #F58220;
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(245, 130, 32, 0.2);
}

.map-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.map-milestone.active .map-content {
    opacity: 1;
    transform: translateY(0);
}

.floating-imgs {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    transition: all 0.8s ease-out 0.2s;
}

.map-milestone.active .floating-imgs {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.photo-stack img {
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: sepia(30%) contrast(1.1);
}

.photo-stack:hover img {
    transform: rotate(0deg) scale(1.05) !important;
    filter: none;
    z-index: 20;
}

.employee-card img {
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.employee-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.employee-card:hover h4 {
    color: #F58220;
}


@keyframes map-pulse {
    0% {
        box-shadow: 0 0 0 0px rgba(245, 130, 32, 0.7);
        transform: translateX(-50%) scale(1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(245, 130, 32, 0);
        transform: translateX(-50%) scale(1);
    }

    100% {
        box-shadow: 0 0 0 0px rgba(245, 130, 32, 0);
        transform: translateX(-50%) scale(1);
    }
}

.animate-map-point {
    animation: map-pulse 1s infinite;
}


.tym-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    ;

}

.custom-world-map {
    display: block;
    width: 100%;
    height: auto;
}

.geo-marker {
    position: absolute;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
}

.geo-dot {
    width: 8px;
    height: 8px;
    background-color: #ff9403;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.geo-pulse {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #ff9403;
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse-animation 2s infinite;
    z-index: 1;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}


.info-card {
    position: absolute;
    z-index: 30;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    border-radius: 6px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-out;
}

.info-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-head {
    background-color: #ff9403;
    color: white;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: right;
}

.card-body {
    background-color: #ffffff;
    color: #111111;
    padding: 8px 12px;
}

.card-body h4 {
    font-weight: 700;
    font-size: 14px;
    margin: 0;
    line-height: 1.2;
    color: #666666;
}

.card-body span {
    font-size: 10px;
    font-weight: 500;
    color: #666666;
}


.map-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.connector-path {
    fill: none;
    stroke: #9ca3af;
    stroke-width: 1.5;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-out;
}

.connector-path.visible {
    stroke-dashoffset: 0;
}






