﻿.mi-flow-section {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
    padding: 70px 20px 80px;
    overflow: hidden;
}

.mi-flow-container {
    max-width: 1380px;
    margin: 0 auto;
    text-align: center;
}

.mi-flow-title {
    color: #172c57;
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 36px;
}

.mi-flow-card {
    position: relative;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 28px;
    align-items: center;
    background: #fff;
    border-radius: 28px;
    padding: 34px 30px;
    box-shadow: 0 24px 55px rgba(13, 35, 72, .13);
    overflow: hidden;
}

/* IZQUIERDA */

.mi-flow-left {
    position: relative;
    z-index: 20;
}

    .mi-flow-left h3,
    .mi-flow-right h3 {
        color: #172c57;
        font-size: 26px;
        font-weight: 900;
        text-transform: uppercase;
        margin: 0;
    }

    .mi-flow-left span {
        display: block;
        color: #333;
        font-size: 18px;
        margin-bottom: 20px;
        text-transform: uppercase;
    }

.mi-physical-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

    .mi-physical-stack img {
        width: 205px;
        height: 135px;
        object-fit: cover;
        border-radius: 18px;
        box-shadow: 0 12px 24px rgba(13, 35, 72, .16);
        transition: transform .35s ease, box-shadow .35s ease;
    }

        /* Segunda imagen completa */
        .mi-physical-stack img:nth-child(2) {
            object-fit: contain;
            background: #f2f2f2;
            padding: 4px;
        }

        .mi-physical-stack img:hover {
            transform: translateY(-6px) scale(1.03);
            box-shadow: 0 20px 36px rgba(13, 35, 72, .22);
        }

/* CENTRO */

.mi-flow-center {
    position: relative;
    z-index: 15;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mi-main-photo {
    position: relative;
    width: 100%;
    max-width: 690px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 45px rgba(13, 35, 72, .18);
}

    .mi-main-photo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 50% 70%, rgba(107, 221, 255, .35), transparent 38%), linear-gradient(180deg, transparent 0%, rgba(23,44,87,.08) 100%);
        pointer-events: none;
    }

    .mi-main-photo > img {
        width: 100%;
        height: 470px;
        object-fit: cover;
        display: block;
    }

/* LOGO CIRCULAR */

.mi-brand-orb {
    position: absolute;
    left: 88px;
    top: 50%;
    transform: translateY(-50%);
    width: 138px;
    height: 138px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, #243c70 0%, #12244c 100%);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 36px rgba(13,35,72,.30), 0 0 0 8px rgba(255,255,255,.70);
    animation: miOrbFloat 4s ease-in-out infinite;
}

    .mi-brand-orb img {
        width: 92px;
        height: auto;
        object-fit: contain;
        filter: brightness(0) invert(1);
    }

/* BURBUJAS */

.mi-floating-bubble {
    position: absolute;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    padding: 5px;
    background: rgba(255,255,255,.75);
    box-shadow: 0 12px 24px rgba(13,35,72,.20);
    z-index: 25;
    animation: miBubbleFloat 4.5s ease-in-out infinite;
}

    .mi-floating-bubble img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

.bubble-1 {
    right: 130px;
    top: 32px;
}

.bubble-2 {
    right: 20px;
    top: 110px;
    animation-delay: .5s;
}

.bubble-3 {
    right: 82px;
    bottom: 62px;
    animation-delay: 1s;
}

/* LINEAS INTERNAS FOTO */

.mi-light-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(80,190,255,.85), transparent);
    filter: drop-shadow(0 0 8px rgba(80,190,255,.75));
    z-index: 22;
    pointer-events: none;
    animation: miLightPulse 2.8s ease-in-out infinite;
}

.line-a {
    width: 55%;
    left: 18%;
    bottom: 130px;
    transform: rotate(12deg);
}

.line-b {
    width: 42%;
    right: 8%;
    top: 145px;
    transform: rotate(-16deg);
    animation-delay: .4s;
}

.line-c {
    width: 50%;
    left: 25%;
    top: 275px;
    transform: rotate(-5deg);
    animation-delay: .8s;
}

/* LINEAS DE OBJETO FISICO AL LOGO */

.mi-physical-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 30;
    pointer-events: none;
}

.mi-line {
    fill: none;
    stroke: #2aa7ff;
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(42,167,255,.75));
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: miDrawLine 2.4s ease forwards, miLineGlow 2.8s ease-in-out infinite;
}

.mi-line-1 {
    animation-delay: .1s;
}

.mi-line-2 {
    animation-delay: .35s;
}

.mi-line-3 {
    animation-delay: .6s;
}

.mi-line-dot {
    fill: #61c9ff;
    filter: drop-shadow(0 0 8px rgba(42,167,255,.95));
    animation: miDotPulse 2s ease-in-out infinite;
}

/* DERECHA */

.mi-flow-right {
    position: relative;
    z-index: 20;
}

.mi-phone-preview {
    position: relative;
    display: inline-block;
    animation: miPhoneFloat 4.8s ease-in-out infinite;
}

    .mi-phone-preview img {
        width: 245px;
        max-width: 100%;
        filter: drop-shadow(0 24px 28px rgba(13,35,72,.22));
    }

/* TEXTO */

.mi-flow-description {
    max-width: 1060px;
    margin: 38px auto 0;
    color: #111;
    font-size: 36px;
    line-height: 1.12;
    font-weight: 500;
}

/* ANIMACIONES */

@keyframes miOrbFloat {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-56%) scale(1.03);
    }
}

@keyframes miBubbleFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes miPhoneFloat {
    0%, 100% {
        transform: translateY(0) rotate(.5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-.5deg);
    }
}

@keyframes miLightPulse {
    0%, 100% {
        opacity: .45;
    }

    50% {
        opacity: 1;
    }
}

@keyframes miDrawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes miLineGlow {
    0%, 100% {
        opacity: .55;
    }

    50% {
        opacity: 1;
    }
}

@keyframes miDotPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .65;
    }
}

/* RESPONSIVE */

@media (max-width: 1199px) {
    .mi-flow-card {
        grid-template-columns: 240px 1fr 230px;
        gap: 20px;
    }

    .mi-main-photo > img {
        height: 420px;
    }

    .mi-phone-preview img {
        width: 215px;
    }

    .mi-flow-description {
        font-size: 30px;
    }

    .mi-brand-orb {
        left: -55px;
        width: 118px;
        height: 118px;
    }

        .mi-brand-orb img {
            width: 78px;
        }
}

@media (max-width: 991px) {
    .mi-flow-title {
        font-size: 38px;
    }

    .mi-flow-card {
        grid-template-columns: 1fr;
        padding: 30px 22px;
    }

    .mi-physical-lines {
        display: none;
    }

    .mi-flow-left {
        order: 1;
    }

    .mi-flow-center {
        order: 2;
        min-height: auto;
    }

    .mi-flow-right {
        order: 3;
    }

    .mi-physical-stack {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

        .mi-physical-stack img {
            width: 170px;
            height: 110px;
        }

    .mi-brand-orb {
        left: 18px;
        width: 115px;
        height: 115px;
    }

        .mi-brand-orb img {
            width: 78px;
        }

    .mi-flow-description {
        font-size: 26px;
    }
}

@media (max-width: 575px) {
    .mi-flow-section {
        padding: 52px 14px 60px;
    }

    .mi-flow-title {
        font-size: 32px;
    }

    .mi-flow-card {
        border-radius: 22px;
        padding: 24px 16px;
    }

    .mi-flow-left h3,
    .mi-flow-right h3 {
        font-size: 21px;
    }

    .mi-flow-left span {
        font-size: 15px;
    }

    .mi-main-photo > img {
        height: 280px;
    }

    .mi-brand-orb {
        width: 86px;
        height: 86px;
        left: 10px;
    }

        .mi-brand-orb img {
            width: 58px;
        }

    .mi-floating-bubble {
        width: 58px;
        height: 58px;
    }

    .bubble-1 {
        right: 70px;
        top: 20px;
    }

    .bubble-2 {
        right: 10px;
        top: 82px;
    }

    .bubble-3 {
        right: 48px;
        bottom: 28px;
    }

    .mi-phone-preview img {
        width: 185px;
    }

    .mi-flow-description {
        font-size: 22px;
        line-height: 1.18;
    }
}
