@import url("https://fonts.googleapis.com/css?family=Montserrat:400,600,700");

/* ===== RESET GLOBAL ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background-color: #000000;
}

.blob-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 0;

    /* Imagen + Degradado específico para blob */
    background: var(--bg-image) center/cover no-repeat,
        radial-gradient(circle at 120% 100%, 
        #0062FF 0%, 
        #375fff 10%, 
        #000000 30%) 
        fixed;
}

/* ===============================
   SECCIÓN SPLIT TEXT (Abajo)
   =============================== */
.txp-split-text {
    position: relative;
    width: 100%;

    /* Ajusta según necesites */
    overflow: visible;
    z-index: 0;

    /* Imagen + Degradado específico para split text */
    background: var(--bg-image) center/cover no-repeat,       
    radial-gradient(circle at 120% 100%,       
    #0062FF 0%,       
    #375fff 10%,       
    #000000 27%)         
    fixed;
}

/* ===============================
   CONTENEDOR
   =============================== */
.blob-container {
    position: relative;
    width: 100%;
    max-width: 50vw;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

/* ===============================
   SVG
   =============================== */
.blob-svg {
    width: 90%;
    max-width: 70vw;
    max-height: 90vh;
    aspect-ratio: 1/1;
    display: block;
}

/* ===============================
   CLIPPATH ANIMATION
   =============================== */
.blob-svg #blobClip-xp {
    transform-origin: center;
    transition: transform 0.4s ease-out;
}

.blob-svg:hover #blobClip-xp {
    transform: scale(1.15);
}

/* ===============================
   TEXT STYLES
   =============================== */
.blob-svg .text-content {
    font: 700 10px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    fill: #ffffff;
    mix-blend-mode: normal;
    pointer-events: none;
    transition: fill 0.5s ease;
}

/* Hover effect */
.blob-svg:hover .text-content {
    fill: #ffffff;
    mix-blend-mode: overlay;
}

/* ===============================
   MOBILE OPTIMIZATION
   =============================== */
@media (max-width: 768px) {
    .blob-section {
        min-height: 90vh;
    }

    .blob-container {
        max-width: 100vw;
    }

    .blob-svg {
        max-width: 100vw;
        max-height: 70vh;
    }

    .blob-svg .text-content {
        font-size: 11px;
        letter-spacing: 1.2px;
    }
}

/* ===============================
        iPhone - Hover/Tap
   =============================== */
.blob-svg {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Para iPhone - activar al tocar */
.blob-svg:active #blobClip-xp {
    transform: scale(1.15);
    transition: transform 0.2s ease-out;
}

.blob-svg:active .text-content {
    fill: #ffffff;
    mix-blend-mode: overlay;
    transition: fill 0.2s ease;
}

/* Mantener hover para desktop */
@media (hover: hover) {
    .blob-svg:hover #blobClip-xp {
        transform: scale(1.15);
    }

    .blob-svg:hover .text-content {
        fill: #ffffff;
        mix-blend-mode: overlay;
    }
}

/* ===============================
   Left & Right Text
   =============================== */
.nav-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    z-index: 10;
    background: none;
    padding: 12px 20px;
    border-radius: none;
    backdrop-filter: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.left-text {
    left: 15px;
}

.right-text {
    right: 15px;
}

/* Hover efecto */
.nav-text:hover {
    background: none;
    transform: translateY(-50%) scale(1.05);
    letter-spacing: 4px;
}

/* ===============================
   AJUSTE MÓVIL
   =============================== */
@media (max-width: 768px) {
    .nav-text {
        font-size: 0.4rem;
        padding: 8px 15px;
        letter-spacing: 2px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        margin-top: -50px;
        margin-bottom: -50px;
    }

    .left-text {
        left: 5px;
        right: auto;
    }

    .right-text {
        right: 5px;
        left: auto;
    }

    .nav-text:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .txp-code-animation {
        position: relative;
        width: 100%;
        min-height: 100vh;
        display: flex;
        align-items: center;

        /* Centra verticalmente los hijos */
        justify-content: center;
    }
}
