@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&family=Rubik:wght@700;800&display=swap');

.wi-section {
    padding: 80px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.wi-header {
    margin: 0 auto 40px;
    padding: 0 8%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.wi-title {
    font-family: 'Rubik', sans-serif;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    color: black;
}

.wi-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    color: #000;
    max-width: 700px;
}

.wi-visual-container {
    position: relative;
    max-width: 100%;
    padding: 0 8%;
    margin: 0 auto;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    isolation: isolate;
}

.wi-bg-bowl {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1920px;
    z-index: 1;
    pointer-events: none;
}

.wi-bg-bowl img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
    filter: brightness(1.1) contrast(1.05); /* Empuja el fondo gris a blanco puro */
    /* Fix for iOS blend mode bug */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.wi-img-mobile {
    display: none !important;
}

.wi-grid-overlay {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1.5fr auto;
    width: 100%;
    box-sizing: border-box;
}

.wi-col {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.wi-col--left {
    text-align: right;
    align-items: flex-end;
}

.wi-col--right {
    text-align: left;
    align-items: flex-start;
}

.wi-item {
    display: flex;
    flex-direction: column;
    max-width: 220px;
    gap: 15px;
}

.wi-col--left .wi-item {
    align-items: flex-end;
}

.wi-col--right .wi-item {
    align-items: flex-start;
}



/* Circular illusion positioning (Desktop) */
.wi-item--0 { transform: translateX(60px); }  /* Top Left - Move in */
.wi-item--1 { transform: translateX(0); }     /* Mid Left - Stay out */
.wi-item--2 { transform: translateX(60px); }  /* Bottom Left - Move in */

.wi-item--3 { transform: translateX(-60px); } /* Top Right - Move in */
.wi-item--4 { transform: translateX(0); }     /* Mid Right - Stay out */
.wi-item--5 { transform: translateX(-60px); } /* Bottom Right - Move in */

.wi-item-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    color: #000;
    max-width: 125px;
    text-align: center;
}

/* Tablet / Intermediate */
@media (max-width: 1100px) {
    .wi-title { font-size: 42px; }
    .wi-bg-bowl { width: 80%; }
    .wi-col { gap: 60px; }
    .wi-visual-container { min-height: 500px; }
    .wi-item-text { font-size: 14px; }
}

@media (max-width: 900px) {
    .wi-bg-bowl { width: 90%; opacity: 1; }
    .wi-grid-overlay { grid-template-columns: 1fr 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
    .wi-section { padding: 60px 7%; }
    
    .wi-visual-container {
        flex-direction: column;
        min-height: auto;
    }

    .wi-bg-bowl {
        position: relative;
        transform: none;
        top: 0;
        left: 0;
        width: 100%;
        margin-bottom: 40px;
    }

    .wi-img-desktop {
        display: none !important;
    }

    .wi-img-mobile {
        display: block !important;
    }

    .wi-grid-overlay {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
        padding: 0;
    }

    .wi-col {
        display: contents; /* Desactiva la columna lateral para que los items entren al grid de 2 col */
    }

    .wi-center-spacer {
        display: none;
    }

    .wi-item {
        max-width: none;
        align-items: center !important;
        text-align: center !important;
        transform: translate(0) !important;
    }

    .wi-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    .wi-icon-wrapper img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .wi-item-text {
        font-size: 13px;
    }
}
