/* 1. Setup the Environment */
.liquid-hero-bg {
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000, #000000);
    overflow: hidden;
    perspective: 1000px;
    z-index: 0;
}

.gooey-container {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: url(#goo);
    z-index: 0;
}

/* 2. Background Blobs (to show off the refraction) */
.background-shape {
    position: absolute;
    border-radius: 50%;
    animation: move 6s infinite ease-in-out alternate;
    mix-blend-mode: screen;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #528502;
    top: 50%;
    left: 50%;
    transform: translate(-100%, -50%);
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #000000;
    top: 50%;
    left: 50%;
    transform: translate(0%, -50%);
    animation-delay: -3s;
}

/* 3. The Liquid Glass Object */
.liquid-glass {
    position: relative;
    z-index: 1;
    width: 110%;
    /* Lo abrimos 10% extra del marco estricto original para que luzca grande */
    max-width: 100vw;
    /* Jamás romperá la pantalla horizontal */
    min-height: 470px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 50px 40px 50px 80px; /* 80px a la izquierda para alejarlo de la curva */
    color: rgba(255, 255, 255, 0.9);

    /* The Glass Magic (Optimized for ultra-fast performance) */
    background: rgba(18, 18, 18, 0.85);

    /* Lighting and Depth */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    
    /* Single smooth shadow (Zero-GPU cost) */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);

    /* The Liquid Shape */
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    animation: liquid-morph 8s ease-in-out infinite;
    transition: all 0.3s ease;
    /* overflow: hidden; eliminado para que las letras no se corten en la orilla */
}

.liquid-glass:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

/* Floating Particles */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Shatter Effects */
.shattered {
    animation: shatter 0.5s forwards ease-out;
    cursor: pointer;
}

.shattered * {
    pointer-events: none !important;
}

.reconstruct {
    animation: reconstruct 0.6s forwards ease-in;
}

.shard {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 10;
    pointer-events: none;
}

/* Content Styling */
.liquid-glass h2 {
    margin: 0 0 15px 0;
    font-size: 2.6rem; /* Reducido (antes 3.2rem) para que quepa perfecto */
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.liquid-glass p {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 4. Animations */
@keyframes liquid-morph {
    0% {
        border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
        transform: translateY(0);
    }
    25% {
        border-radius: 40% 60% 54% 46% / 49% 60% 40% 51%;
    }
    50% {
        border-radius: 54% 46% 38% 62% / 49% 70% 30% 51%;
        transform: translateY(-15px);
    }
    75% {
        border-radius: 61% 39% 55% 45% / 61% 38% 62% 39%;
    }
    100% {
        border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
        transform: translateY(0);
    }
}

@keyframes move {
    0% {
        transform: translate(-120%, -50%);
    }

    100% {
        transform: translate(20%, -50%);
    }
}

@keyframes shatter {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes reconstruct {
    0% {
        transform: scale(1.4);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}