:root {
    /* Hello Kitty Color Palette - Updated */
    --color-1: #FFE5EC;
    --color-2: #FFC2D1;
    --color-3: #FFB3C6;
    --color-4: #FF8FAB;
    --color-5: #FB6F92;
    --primary-pink: var(--color-3);
    --secondary-pink: var(--color-4);
    --accent-pink: var(--color-2);
    --neon-pink: var(--color-5);
    --soft-white: #FFF5F8;
    --background: var(--color-1);
    --text-dark: #4A4A4A;
    --shadow-pink: rgba(251, 111, 146, 0.3);
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, var(--color-1) 0%, var(--color-2) 50%, var(--color-3) 100%);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Floating Decorations */
.floating-decoration {
    position: fixed;
    font-size: 2rem;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.bow-1 {
    top: 22%;
    left: 5%;
    animation-delay: 0s;
}

.bow-2 {
    top: 70%;
    right: 8%;
    animation-delay: 2s;
}

.sparkle-1 {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
    font-size: 1.5rem;
}

.sparkle-2 {
    top: 60%;
    left: 10%;
    animation-delay: 3s;
    font-size: 1.2rem;
}

.sparkle-3 {
    top: 85%;
    right: 20%;
    animation-delay: 4s;
    font-size: 1.8rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Header */
.header {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    z-index: 10;
}

.hello-kitty-bow {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo-bow {
    position: absolute;
    top: -30px;
    right: -40px;
    font-size: 4rem;
    animation: bowFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(255, 105, 180, 0.4));
    z-index: 10;
}

@keyframes bowFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-10deg);
    }

    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

.logo {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 10vw, 5.5rem);
    color: var(--neon-pink);
    text-shadow:
        0 0 10px rgba(255, 20, 147, 0.8),
        0 0 20px rgba(255, 105, 180, 0.6),
        0 0 30px rgba(255, 182, 217, 0.4),
        0 0 40px rgba(255, 192, 203, 0.2);
    margin-bottom: var(--spacing-md);
    letter-spacing: 3px;
    animation: glow 3s ease-in-out infinite;
    position: relative;
    display: inline-block;
    font-weight: 400;
}

.logo-text {
    display: flex;
    animation: fadeInUp 0.7s ease-in-out, titleFloat 3s ease-in-out infinite;
    margin-bottom: -50px;
}

@keyframes titleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes underlineDraw {
    from {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }

    to {
        stroke-dasharray: 1000;
        stroke-dashoffset: 0;
    }
}

@keyframes underlineFloat {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-3px);
    }
}

@keyframes glow {

    0%,
    100% {
        text-shadow:
            0 0 10px rgba(255, 20, 147, 0.8),
            0 0 20px rgba(255, 105, 180, 0.6),
            0 0 30px rgba(255, 182, 217, 0.4);
    }

    50% {
        text-shadow:
            0 0 15px rgba(255, 20, 147, 1),
            0 0 30px rgba(255, 105, 180, 0.8),
            0 0 45px rgba(255, 182, 217, 0.6),
            0 0 60px rgba(255, 192, 203, 0.4);
    }
}

@keyframes fadeInUp {

    /* Estado inicial (0%): El elemento es invisible y está ligeramente por debajo de su posición final */
    from {
        opacity: 0;
        transform: translateY(20px);
        /* Mueve el elemento 20px hacia abajo */
    }

    /* Estado final (100%): El elemento es totalmente visible y vuelve a su posición original */
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-underline {
    animation: fadeInUp 0.7s ease-in-out, titleFloat 3s ease-in-out infinite;
}

.tagline {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    color: var(--secondary-pink);
    font-weight: 500;
    letter-spacing: 1px;
    animation: fadeInUp 0.7s ease-in-out;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    padding: var(--spacing-md);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

/* Product Card */
.product-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px var(--shadow-pink);
    position: relative;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
}

.product-card.animate {
    animation: productEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.product-card::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 2;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 182, 217, 0.3) 0%, rgba(255, 192, 203, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
    animation: sparkleRotate 0.6s ease;
}

.product-card:hover::after {
    opacity: 1;
}

@keyframes sparkleRotate {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }
}

.product-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow:
        0 10px 30px var(--shadow-pink),
        0 0 20px rgba(255, 105, 180, 0.2);
}

@keyframes productEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9) rotate(-2deg);
    }

    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05) rotate(1deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #FFE4F0 0%, #FFF5F8 100%);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-info {
    padding: var(--spacing-md);
    text-align: center;
}

.product-number {
    font-size: 1rem;
    color: var(--secondary-pink);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-pink);
    text-shadow: 0 2px 10px rgba(255, 20, 147, 0.3);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    overflow: hidden;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 182, 217, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(255, 20, 147, 0.4);
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--neon-pink);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--secondary-pink);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
}

.modal-image {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
}

.modal-info {
    text-align: center;
}

.modal-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--secondary-pink);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.modal-price {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    color: var(--neon-pink);
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 15px rgba(255, 20, 147, 0.3);
}

.whatsapp-order-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: all var(--transition-smooth);
    animation: pulse 2s ease-in-out infinite;
    text-decoration: none;
    color: white;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-bow {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    }

    50% {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.8);
    }
}

/* Responsive Design - Mobile First */
@media (min-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .modal-body {
        flex-direction: row;
        align-items: center;
    }

    .modal-image {
        width: 50%;
    }

    .modal-info {
        width: 50%;
        text-align: left;
        padding-left: var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .main-content {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .logo-text {
        margin-bottom: -30px;
    }

    .logo-bow {
        top: -12px;
        right: -20px;
        font-size: 2rem;
    }

    .whatsapp-order-btn {
        padding: var(--spacing-xs) var(--spacing-lg);
        border-radius: var(--radius-md);
    }
}

/* Stagger animation delays for product cards - triggered on scroll (reduced delays) */
.product-card.animate:nth-child(1) {
    animation-delay: 0s;
}

.product-card.animate:nth-child(2) {
    animation-delay: 0.05s;
}

.product-card.animate:nth-child(3) {
    animation-delay: 0.1s;
}

.product-card.animate:nth-child(4) {
    animation-delay: 0.15s;
}

.product-card.animate:nth-child(5) {
    animation-delay: 0.2s;
}

.product-card.animate:nth-child(6) {
    animation-delay: 0.05s;
}

.product-card.animate:nth-child(7) {
    animation-delay: 0.1s;
}

.product-card.animate:nth-child(8) {
    animation-delay: 0.15s;
}

.product-card.animate:nth-child(9) {
    animation-delay: 0.2s;
}

.product-card.animate:nth-child(10) {
    animation-delay: 0.25s;
}

.product-card.animate:nth-child(11) {
    animation-delay: 0.05s;
}

.product-card.animate:nth-child(12) {
    animation-delay: 0.1s;
}

.product-card.animate:nth-child(13) {
    animation-delay: 0.15s;
}

.product-card.animate:nth-child(14) {
    animation-delay: 0.2s;
}

.product-card.animate:nth-child(15) {
    animation-delay: 0.25s;
}

.product-card.animate:nth-child(16) {
    animation-delay: 0.05s;
}

.product-card.animate:nth-child(17) {
    animation-delay: 0.1s;
}

.product-card.animate:nth-child(18) {
    animation-delay: 0.15s;
}

.product-card.animate:nth-child(19) {
    animation-delay: 0.2s;
}

.product-card.animate:nth-child(20) {
    animation-delay: 0.25s;
}

.product-card.animate:nth-child(21) {
    animation-delay: 0.3s;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}