/* css/visual-addons.css */

/* =========================================
   1. NOTIFICACIÓN FLOTANTE (HERO)
   ========================================= */
.hero-notify-wrapper {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 20;
    perspective: 1000px;
    pointer-events: none; /* Para que no tape clics si pasa por encima */
}

.hero-notify-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 280px;
    transform-origin: bottom right;
    animation: notifyEnter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.notify-icon-box {
    width: 40px;
    height: 40px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notify-content h6 {
    font-size: 0.85rem;
    font-weight: 800;
    margin: 0;
    color: #333;
}

.notify-content p {
    font-size: 0.75rem;
    margin: 0;
    color: #666;
}

.notify-time {
    font-size: 0.65rem;
    color: #999;
    margin-left: auto;
    font-weight: 600;
}

/* Animaciones de entrada y salida */
@keyframes notifyEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9) rotateX(10deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}

@keyframes notifyExit {
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

.hero-notify-card.exiting {
    animation: notifyExit 0.5s forwards ease-in;
}

/* Modo Oscuro */
body.dark-mode .hero-notify-card {
    background: rgba(22, 23, 29, 0.9);
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .notify-content h6 {
    color: #fff;
}

body.dark-mode .notify-content p {
    color: #aaa;
}


/* =========================================
   2. TIMELINE VERTICAL (PROCESO)
   ========================================= */
.timeline-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(to bottom, #fcfcfc, #f1f3f5);
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0,0,0,0.05);
    transform: translateX(-50%);
}

/* La línea que se "llena" de color */
.timeline-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    background: linear-gradient(to bottom, #C62828, #ff5252);
    transform: translateX(-50%);
    height: 0%; /* JS controlará esto */
    transition: height 0.5s ease-out;
    max-height: 100%;
}

.timeline-step {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
    padding-right: 40px;
    text-align: right;
    opacity: 0.3; /* Apagado por defecto */
    transform: translateY(20px);
    transition: all 0.6s ease;
}

    .timeline-step:nth-child(even) {
        margin-left: 50%;
        padding-right: 0;
        padding-left: 40px;
        text-align: left;
    }

    .timeline-step.active {
        opacity: 1;
        transform: translateY(0);
    }

/* El punto central (Nodo) */
.timeline-dot {
    position: absolute;
    top: 0;
    right: -11px; /* Ajuste fino para centrar en línea de 2px */
    width: 22px;
    height: 22px;
    background: #fff;
    border: 4px solid #ddd;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.4s;
}

.timeline-step:nth-child(even) .timeline-dot {
    right: auto;
    left: -11px;
}

.timeline-step.active .timeline-dot {
    border-color: #C62828;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.2);
    transform: scale(1.2);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0,0,0,0.05);
    position: absolute;
    top: -20px;
    right: 0;
    line-height: 1;
}

.timeline-step:nth-child(even) .step-number {
    right: auto;
    left: 0;
}

/* Modo Oscuro Timeline */
body.dark-mode .timeline-section {
    background: #0a0b10;
}

body.dark-mode .timeline-line {
    background: rgba(255,255,255,0.05);
}

body.dark-mode .timeline-dot {
    background: #16171d;
    border-color: #333;
}

body.dark-mode .step-number {
    color: rgba(255,255,255,0.03);
}


/* =========================================
   3. FOOTER MAP (FONDO INTERACTIVO)
   ========================================= */
.footer-map-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.15;
}

/* Patrón de puntos (CSS puro, sin imagen) */
.map-pattern {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Puntos de ciudades */
.map-hotspot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #C62828; /* Rojo marca */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(198, 40, 40, 0.8);
}

    /* Onda de expansión */
    .map-hotspot::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 1px solid #C62828;
        animation: mapPulse 2s infinite;
    }

@keyframes mapPulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    100% {
        width: 400%;
        height: 400%;
        opacity: 0;
    }
}

/* Coordenadas aproximadas (visuales) */
.spot-denver {
    top: 35%;
    left: 20%;
}

.spot-slc {
    top: 30%;
    left: 15%;
}

.spot-chicago {
    top: 32%;
    left: 65%;
}

.spot-texas {
    top: 60%;
    left: 45%;
}

/* Líneas conectoras (SVG simulado con CSS rotation) */
.map-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(to right, rgba(198,40,40,0), rgba(198,40,40,0.5), rgba(198,40,40,0));
    transform-origin: left center;
    width: 0;
    animation: drawLine 3s infinite ease-in-out;
}

@keyframes drawLine {
    0% {
        width: 0;
        opacity: 0;
    }

    50% {
        width: 150px;
        opacity: 1;
    }

    100% {
        width: 0;
        opacity: 0;
        left: 150px;
    }
    /* Efecto viaje */
}

/* Responsivo Timeline */
@media (max-width: 768px) {
    .hero-notify-wrapper {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }

    .timeline-line, .timeline-progress {
        left: 30px;
    }

    .timeline-step {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left;
    }

        .timeline-step:nth-child(even) {
            margin-left: 0;
            padding-left: 70px;
        }

    .timeline-dot {
        left: 19px !important;
        right: auto !important;
    }

    .step-number {
        left: 70px !important;
        right: auto !important;
    }
}
