html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

*{
    margin:     0px;
    padding:    0px;
    box-sizing: border-box;
    font-family: 'Marck Script', cursive;
}

.container{
    background-color: #ffcff1;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 179, 217, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.container::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 192, 224, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(30px);
    }
}

.background-texture {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 0;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.12;
    align-items: center;
    justify-items: center;
}

.icon-pattern {
    font-size: 50px;
    color: #8f5b66;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animal-deco {
    position: absolute;
    font-size: 60px;
    color: #8f5b66;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.animal-1 {
    top: 10%;
    left: 5%;
    animation: float 8s ease-in-out infinite;
}

.animal-2 {
    top: 60%;
    right: 8%;
    animation: float 7s ease-in-out infinite reverse;
}

.animal-3 {
    bottom: 15%;
    left: 10%;
    animation: float 9s ease-in-out infinite;
}

.animal-4 {
    top: 35%;
    right: 15%;
    animation: float 10s ease-in-out infinite reverse;
}

.animal-5 {
    bottom: 20%;
    right: 5%;
    animation: float 7.5s ease-in-out infinite;
}

.hidden {
    display: none !important;
}

.click-button {
    background-color: #8f5b66;
    border: 2px solid #b5728171;
    color: #fafafa;
    width: 220px;
    padding: 15px;
    font-size: 30px;
    border-radius: 50px;
    transition: all 0.3s ease-out;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: callAttention 1.5s ease-in-out infinite;
}

@keyframes callAttention {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
}

.click-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.click-button:hover::before {
    left: 100%;
}

.click-button::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -20px;
    font-size: 24px;
    animation: sparkle 1.5s ease-in-out infinite;
    z-index: 2;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-30px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0);
    }
}

.click-button:hover::before {
    left: 100%;
}

.click-button:hover {
    background-color: #c5918186;
    color: #8d5b66;
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in;
    animation: none;
}

.click-button:active {
    transform: scale(0.95);
}

img {
    max-width: 300px;
    animation: zoomInRotate 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3)) brightness(1.05) contrast(1.1) saturate(1.1);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(214, 91, 126, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 30px rgba(214, 91, 126, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.6);
    position: relative;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

@keyframes zoomInRotate {
    from {
        opacity: 0;
        transform: scale(0.3) rotateZ(-15deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateZ(0deg);
    }
}

.modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.modal-content {
    background: linear-gradient(135deg, #FFB3D9 0%, #FFC0E0 100%);
    padding: 50px 80px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 
        0 40px 80px rgba(214, 91, 126, 0.4),
        0 0 40px rgba(255, 192, 224, 0.3),
        inset 0 1px 20px rgba(255, 255, 255, 0.3);
    animation: grandEntrance 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    max-width: 90vw;
    width: auto;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 20px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes grandEntrance {
    0% {
        opacity: 0;
        transform: scale(0.1) translateY(100px);
        filter: blur(20px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.08) translateY(-20px);
    }
    75% {
        transform: scale(0.98) translateY(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}

.congratulations {
    font-family: 'Playfair Display', serif;
    font-size: 90px;
    color: #D65B7E;
    text-shadow: 
        4px 4px 0px #FFD9E8,
        8px 8px 0px #FFB3D9,
        12px 12px 25px rgba(0, 0, 0, 0.25);
    letter-spacing: 3px;
    font-weight: 900;
    margin: 0;
    animation: luxuryPulse 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 10;
}

@keyframes luxuryPulse {
    0% {
        opacity: 0;
        transform: translateY(60px) scaleY(0.3);
    }
    30% {
        opacity: 1;
        transform: translateY(0) scaleY(1.05);
    }
    50% {
        transform: scaleY(0.98);
    }
    70% {
        transform: scaleY(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

.pulga-text {
    font-size: 50px;
    color: #8f5b66;
    text-shadow: 
        3px 3px 0px #FFB3D9,
        6px 6px 0px #FFD9E8,
        9px 9px 20px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 20px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
    backdrop-filter: blur(5px);
    display: inline-block;
    letter-spacing: 1px;
    font-weight: bold;
}

.pulga-text::before {
    content: '✨';
    position: relative;
    font-size: 28px;
    animation: twinkle 1.5s infinite;
    margin-right: 8px;
}

.pulga-text::after {
    content: '✨';
    position: relative;
    font-size: 28px;
    animation: twinkle 1.5s infinite 0.5s;
    margin-left: 8px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* RESPONSIVE DESIGN */

/* Tablet (768px y menos) */
@media (max-width: 768px) {
    .container {
        gap: 20px;
    }

    .container::before {
        width: 300px;
        height: 300px;
        top: -30%;
        right: -5%;
    }

    .container::after {
        width: 250px;
        height: 250px;
        bottom: -10%;
    }

    .background-texture {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(6, 1fr);
    }

    .icon-pattern {
        font-size: 35px;
    }

    .click-button {
        width: 180px;
        padding: 12px;
        font-size: 24px;
        border-radius: 40px;
    }

    @keyframes callAttention {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        }
        50% {
            transform: scale(1.04);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
        }
    }

    img {
        max-width: 250px;
    }

    .modal-content {
        padding: 40px 60px;
        border-radius: 25px;
    }

    .congratulations {
        font-size: 70px;
        letter-spacing: 2px;
        text-shadow: 
            3px 3px 0px #FFD9E8,
            6px 6px 0px #FFB3D9,
            10px 10px 20px rgba(0, 0, 0, 0.2);
    }

    .pulga-text {
        font-size: 40px;
        padding: 15px 30px;
        border-radius: 12px;
        text-shadow: 
            2px 2px 0px #FFB3D9,
            4px 4px 0px #FFD9E8,
            6px 6px 15px rgba(0, 0, 0, 0.15);
    }
}

/* Mobile (480px y menos) */
@media (max-width: 480px) {
    .container {
        gap: 12px;
        padding: 0;
        width: 100vw;
        height: 100vh;
    }

    .container::before {
        width: 150px;
        height: 150px;
        top: -5%;
        right: -5%;
    }

    .container::after {
        width: 150px;
        height: 150px;
        bottom: -5%;
        left: -5%;
    }

    .background-texture {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(10, 1fr);
    }

    .icon-pattern {
        font-size: 18px;
    }

    .click-button {
        width: 130px;
        padding: 10px;
        font-size: 16px;
        border: 1.5px solid #b5728171;
        border-radius: 28px;
    }

    .click-button::after {
        display: none;
    }

    img {
        max-width: 240px;
        width: 90%;
        border: 2px solid rgba(255, 255, 255, 0.6);
    }

    .modal {
        inset: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }

    .modal-content {
        padding: 12px 14px;
        border-radius: 10px;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        box-shadow: 0 10px 25px rgba(214, 91, 126, 0.3);
        margin: 0 auto;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .congratulations {
        font-size: 32px;
        letter-spacing: 0;
        text-shadow: 
            1px 1px 0px #FFD9E8,
            2px 2px 0px #FFB3D9,
            3px 3px 8px rgba(0, 0, 0, 0.2);
        word-wrap: break-word;
        word-break: break-word;
        white-space: normal;
    }

    .pulga-text {
        font-size: 22px;
        padding: 6px 10px;
        border-radius: 6px;
        text-shadow: 
            0.5px 0.5px 0px #FFB3D9,
            1px 1px 0px #FFD9E8,
            2px 2px 4px rgba(0, 0, 0, 0.1);
    }

    .pulga-text::before {
        content: '✨';
        font-size: 14px;
        margin-right: 5px;
        animation: twinkle 1.5s infinite;
    }

    .pulga-text::after {
        content: '✨';
        font-size: 14px;
        margin-left: 5px;
        animation: twinkle 1.5s infinite 0.5s;
    }
}
