@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
    --spring-pink: #ff6b9d;
    --spring-yellow: #ffd93d;
    --spring-green: #6bcf7f;
    --spring-blue: #4ecdc4;
    --spring-purple: #a8e6cf;
    --spring-coral: #ffb3ba;
    --spring-mint: #bae1ff;
    --light-spring: #f8fffe;
    --white-flower: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, 
        var(--light-spring) 0%, 
        var(--spring-mint) 25%, 
        var(--spring-purple) 50%, 
        var(--spring-mint) 75%, 
        var(--light-spring) 100%);
    background-attachment: fixed;
    font-family: 'Quicksand', sans-serif;
    overflow-x: hidden;
}

/* Flores flotantes animadas */
.floating-flowers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.flower {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.flower:nth-child(1) { left: 10%; animation-delay: 0s; color: var(--spring-pink); }
.flower:nth-child(2) { left: 20%; animation-delay: 1s; color: var(--spring-yellow); }
.flower:nth-child(3) { left: 30%; animation-delay: 2s; color: var(--spring-green); }
.flower:nth-child(4) { left: 40%; animation-delay: 3s; color: var(--spring-blue); }
.flower:nth-child(5) { left: 50%; animation-delay: 4s; color: var(--spring-purple); }
.flower:nth-child(6) { left: 60%; animation-delay: 5s; color: var(--spring-coral); }
.flower:nth-child(7) { left: 70%; animation-delay: 0.5s; color: var(--spring-pink); }
.flower:nth-child(8) { left: 80%; animation-delay: 1.5s; color: var(--spring-yellow); }
.flower:nth-child(9) { left: 90%; animation-delay: 2.5s; color: var(--spring-green); }

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); }
    50% { transform: translateY(-10vh) rotate(180deg); }
}

.navbar {
    background: linear-gradient(135deg, 
        var(--spring-pink) 0%, 
        var(--spring-coral) 50%, 
        var(--spring-yellow) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.3);
    border-bottom: 3px solid var(--white-flower);
}

.navbar-brand {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 2rem;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.nav-link {
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 20px;
    margin: 0 5px;
    padding: 8px 15px !important;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.hero-section {
    background: linear-gradient(135deg, 
        var(--spring-yellow) 0%, 
        var(--spring-coral) 30%, 
        var(--spring-pink) 60%, 
        var(--spring-purple) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.3"/><circle cx="80" cy="40" r="3" fill="white" opacity="0.2"/><circle cx="40" cy="70" r="1" fill="white" opacity="0.4"/><circle cx="70" cy="80" r="2" fill="white" opacity="0.3"/><circle cx="10" cy="60" r="1.5" fill="white" opacity="0.5"/></svg>') repeat;
    animation: sparkle 4s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-100px) translateY(-100px); }
}

.hero-section h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.hero-section p {
    font-size: 1.4rem;
    opacity: 0.95;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.category-filter {
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.9) 0%, 
        rgba(186, 225, 255, 0.8) 100%);
    border-radius: 25px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 15px 35px rgba(255, 107, 157, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.category-filter h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--spring-pink);
    margin-bottom: 1.5rem;
}

.filter-btn {
    border: 3px solid transparent;
    background: linear-gradient(135deg, var(--spring-green), var(--spring-blue));
    color: white;
    border-radius: 30px;
    padding: 0.8rem 2rem;
    margin: 0.5rem;
    transition: all 0.4s ease;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--spring-pink), var(--spring-yellow));
    transition: left 0.4s ease;
    z-index: -1;
}

.filter-btn:hover::before, 
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover, 
.filter-btn.active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 107, 157, 0.4);
    border-color: var(--white-flower);
}

/* =============================================== */
/* ESTILOS MEJORADOS PARA LAS CARDS DE PRODUCTOS */
/* =============================================== */

.item-card {
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.98) 0%, 
        rgba(248, 255, 254, 0.95) 100%);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.12);
    transition: all 0.5s ease;
    margin-bottom: 2rem;
    height: 100%;
    border: 2px solid rgba(255, 107, 157, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(135deg, 
        var(--spring-pink), 
        var(--spring-yellow), 
        var(--spring-green), 
        var(--spring-blue));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.item-card:hover::before {
    opacity: 1;
}

.item-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(255, 107, 157, 0.25);
}

.item-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 23px 23px 0 0;
    background: linear-gradient(135deg, var(--spring-mint), var(--spring-purple));
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.4s ease;
}

.item-image img:hover {
    transform: scale(1.08);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.1) 0%, 
        transparent 40%, 
        transparent 60%, 
        rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 15px;
    pointer-events: none;
}

.item-category {
    background: linear-gradient(135deg, var(--spring-pink), var(--spring-coral));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    pointer-events: auto;
    text-transform: capitalize;
}

.item-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.95);
    border-radius: 0 0 23px 23px;
}

.item-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--spring-pink);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(255, 107, 157, 0.1);
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-description {
    color: #666;
    line-height: 1.5;
    font-weight: 400;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4rem;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 107, 157, 0.15);
}

.item-code {
    background: linear-gradient(135deg, var(--spring-blue), var(--spring-green));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
    letter-spacing: 0.5px;
}

.item-date {
    color: var(--spring-blue);
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
    background: rgba(78, 205, 196, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    max-height: 3rem;
    overflow: hidden;
}

.tag {
    background: linear-gradient(135deg, var(--spring-yellow), var(--spring-mint));
    color: var(--spring-blue);
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255, 211, 61, 0.25);
    transition: all 0.3s ease;
    text-transform: lowercase;
    white-space: nowrap;
}

.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 211, 61, 0.35);
}

/* =============================================== */
/* RESTO DE ESTILOS */
/* =============================================== */

.contact-btn {
    background: linear-gradient(135deg, 
        var(--spring-pink) 0%, 
        var(--spring-coral) 50%, 
        var(--spring-yellow) 100%);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--spring-blue), var(--spring-green));
    transition: left 0.4s ease;
    z-index: -1;
}

.contact-btn:hover::before {
    left: 0;
}

.contact-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.4);
    color: white;
}

.admin-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--spring-pink), var(--spring-coral));
    color: white;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    transition: all 0.4s ease;
    z-index: 1000;
    cursor: pointer;
}

.admin-btn:hover {
    background: linear-gradient(135deg, var(--spring-yellow), var(--spring-green));
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.6);
}

.footer {
    background: linear-gradient(135deg, 
        var(--spring-purple) 0%, 
        var(--spring-blue) 50%, 
        var(--spring-green) 100%);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 L60 30 L80 25 L65 45 L85 60 L60 55 L50 75 L40 55 L15 60 L35 45 L20 25 L40 30 Z" fill="white" opacity="0.1"/></svg>') repeat;
    background-size: 100px 100px;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 157, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border: 5px solid white;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.stats-section {
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.9) 0%, 
        rgba(168, 230, 207, 0.7) 100%);
    padding: 3rem;
    border-radius: 25px;
    margin: 3rem 0;
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--spring-pink), var(--spring-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--spring-blue);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.cookie-banner {
    background: linear-gradient(135deg, var(--spring-mint), var(--spring-purple));
    border: 3px solid var(--spring-pink);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.spring-glow {
    box-shadow: 0 0 20px var(--spring-yellow), 0 0 40px var(--spring-pink), 0 0 60px var(--spring-green);
}

/* Animación de entrada */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading spinner personalizado */
.spinner-border {
    border: 4px solid var(--spring-mint);
    border-top-color: var(--spring-pink);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================== */
/* RESPONSIVE DESIGN */
/* =============================================== */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .filter-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
        margin: 0.3rem;
    }

    .floating-flowers {
        display: none;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .category-filter h3 {
        font-size: 2rem;
    }

    .item-image {
        height: 220px;
    }

    .item-title {
        font-size: 1.3rem;
        min-height: 2.4rem;
    }

    .item-description {
        font-size: 0.85rem;
        min-height: 3.5rem;
    }

    .item-content {
        padding: 1.2rem;
    }

    .admin-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 4rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .stats-section {
        padding: 2rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .category-filter {
        padding: 1.5rem;
    }

    .contact-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .item-image {
        height: 200px;
    }

    .item-title {
        font-size: 1.2rem;
        min-height: 2.2rem;
    }

    .item-content {
        padding: 1rem;
    }

    .tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
}

/* =============================================== */
/* ANIMACIONES ADICIONALES */
/* =============================================== */

@keyframes slideInUp {
    from { 
        transform: translateY(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

@keyframes slideOutDown {
    from { 
        transform: translateY(0); 
        opacity: 1; 
    }
    to { 
        transform: translateY(100%); 
        opacity: 0; 
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =============================================== */
/* ESTILOS PARA FORMULARIOS Y COMPONENTES */
/* =============================================== */

.form-control {
    border: 2px solid var(--spring-purple);
    border-radius: 15px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
}

.form-control:focus {
    border-color: var(--spring-pink);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.25);
    background: white;
}

.form-label {
    color: var(--spring-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.alert-success {
    background: linear-gradient(135deg, var(--spring-green), var(--spring-mint));
    border: 2px solid var(--spring-green);
    color: white;
    border-radius: 15px;
}

.alert-danger {
    background: linear-gradient(135deg, var(--spring-coral), var(--spring-pink));
    border: 2px solid var(--spring-coral);
    color: white;
    border-radius: 15px;
}

.alert-info {
    background: linear-gradient(135deg, var(--spring-blue), var(--spring-purple));
    border: 2px solid var(--spring-blue);
    color: white;
    border-radius: 15px;
}

.modal-content {
    border-radius: 25px;
    border: 3px solid var(--spring-pink);
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.98) 0%, 
        rgba(186, 225, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.modal-header {
    border-bottom: 2px solid var(--spring-purple);
    border-radius: 25px 25px 0 0;
    background: linear-gradient(135deg, var(--spring-mint), var(--spring-purple));
}

.modal-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--spring-pink);
}

.btn-close {
    background: var(--spring-coral);
    border-radius: 50%;
    opacity: 1;
}