/* ==========================================================================
   Style Sheet: Flory Papel (E-commerce Style)
   Author: Senior Full Stack Architect
   Description: Style Architecture with Isolated Component CSS Variables
   ========================================================================== */

/* Import Base Variables & 10 Themes */
@import url('variables.css');
@import url('themes.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Dynamic Light/Dark Fallbacks */
:root {
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Styles */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--body-bg) !important;
    color: var(--body-text) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Loader Screen */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--body-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.spinner-premium {
    width: 60px;
    height: 60px;
    border: 4px solid var(--body-border);
    border-top: 4px solid var(--button-primary-bg);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--body-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--button-primary-bg);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--button-primary-hover);
}

/* Typography & Titles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--body-text);
}
.section-title {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 40px;
    font-size: 2.2rem;
    text-align: center;
    color: var(--body-text);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--button-primary-bg), var(--button-secondary-bg));
    border-radius: 2px;
}

/* ==========================================================================
   HEADER & MENÚ DE NAVEGACIÓN
   ========================================================================== */
.main-header {
    background: var(--header-bg) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--header-border);
    transition: var(--transition);
    z-index: 1020;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--header-logo-text) !important;
}
.navbar-brand img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
}
.nav-link {
    color: var(--menu-text) !important;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding: 8px 14px;
}
.nav-link:hover, .nav-link.active {
    color: var(--menu-text-hover) !important;
    border-bottom: 2px solid var(--menu-active) !important;
}

/* Glassmorphism Dropdown Menu (Elimina la franja blanca) */
.dropdown-menu {
    background-color: var(--menu-dropdown-bg) !important;
    backdrop-filter: var(--menu-dropdown-backdrop) !important;
    -webkit-backdrop-filter: var(--menu-dropdown-backdrop) !important;
    border: 1px solid var(--menu-dropdown-border) !important;
    box-shadow: var(--menu-dropdown-shadow) !important;
    border-radius: 14px;
    padding: 10px;
    margin-top: 10px;
}
.dropdown-item {
    color: var(--menu-dropdown-text) !important;
    font-weight: 500;
    border-radius: 8px;
    padding: 8px 16px;
    transition: var(--transition);
}
.dropdown-item:hover, .dropdown-item:focus {
    color: var(--menu-dropdown-hover) !important;
    background-color: var(--menu-dropdown-hover-bg) !important;
}

/* Search Container & AJAX Dropdown */
.search-container {
    position: relative;
}
#search-results-dropdown {
    position: absolute;
    top: 105%;
    left: 0;
    width: 100%;
    background-color: var(--menu-dropdown-bg);
    backdrop-filter: var(--menu-dropdown-backdrop);
    -webkit-backdrop-filter: var(--menu-dropdown-backdrop);
    border: 1px solid var(--menu-dropdown-border);
    border-radius: 12px;
    box-shadow: var(--menu-dropdown-shadow);
    z-index: 1050;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--body-border);
    text-decoration: none;
    color: var(--body-text);
    transition: var(--transition);
}
.search-result-item:hover {
    background-color: var(--menu-dropdown-hover-bg);
    color: var(--button-primary-bg);
}
.search-result-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
}

/* Slider / Carousel */
.main-slider .carousel-item {
    height: 480px;
    background-color: #000;
}
.main-slider .carousel-item img {
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
}
.main-slider .carousel-caption {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* ==========================================================================
   BOTONES PROFESIONALES CON VARIABLES INDEPENDIENTES
   ========================================================================== */
.btn-primary {
    background-color: var(--button-primary-bg) !important;
    color: var(--button-primary-text) !important;
    border: none !important;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 24px;
    transition: var(--transition);
}
.btn-primary:hover {
    background-color: var(--button-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
}
.btn-secondary {
    background-color: var(--button-secondary-bg) !important;
    color: var(--button-secondary-text) !important;
    border: none !important;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 24px;
    transition: var(--transition);
}
.btn-secondary:hover {
    background-color: var(--button-secondary-hover) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   TARJETAS DE PRODUCTOS EN CATÁLOGO Y HOME
   ========================================================================== */
.product-card {
    background-color: var(--product-bg) !important;
    border: 1px solid var(--product-border) !important;
    border-radius: 16px;
    box-shadow: var(--product-shadow);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--product-shadow-hover);
}
.product-card-img-wrapper {
    position: relative;
    padding-top: 100%;
    background-color: var(--product-bg);
    overflow: hidden;
}
.product-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-card-img {
    transform: scale(1.08);
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 10;
}
.product-badge-nuevo {
    background-color: var(--button-secondary-bg);
    color: #ffffff;
}
.product-badge-oferta {
    background-color: var(--product-badge);
    color: #ffffff;
}
.product-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-brand {
    font-size: 0.8rem;
    color: var(--body-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-title a {
    color: var(--product-title) !important;
    text-decoration: none;
    transition: var(--transition);
}
.product-title a:hover {
    color: var(--button-primary-bg) !important;
}
.product-price-wrapper {
    margin-bottom: 15px;
}
.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--product-price) !important;
}
.product-old-price {
    font-size: 0.95rem;
    text-decoration: line-through;
    color: var(--product-old-price) !important;
    margin-left: 8px;
}
.product-card-footer {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

/* Category Circles */
.category-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--body-text);
    transition: var(--transition);
}
.category-circle-card:hover {
    color: var(--button-primary-bg);
    transform: translateY(-5px);
}
.category-circle-img-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--product-bg);
    border: 3px solid var(--product-border);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}
.category-circle-card:hover .category-circle-img-wrapper {
    border-color: var(--button-primary-bg);
    box-shadow: var(--shadow-hover);
}
.category-circle-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Filters */
.filter-card {
    background-color: var(--product-bg);
    border: 1px solid var(--product-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--product-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--body-text);
}
.filter-link {
    display: block;
    color: var(--body-text);
    text-decoration: none;
    padding: 6px 0;
    transition: var(--transition);
}
.filter-link:hover, .filter-link.active {
    color: var(--button-primary-bg);
    padding-left: 5px;
}

/* Product Detail Zoom & Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.product-main-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--product-border);
    cursor: zoom-in;
    background-color: var(--product-bg);
}
.product-main-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.1s ease-out;
}
.product-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.product-thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid var(--product-border);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.product-thumb-item.active, .product-thumb-item:hover {
    border-color: var(--button-primary-bg);
}
.product-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Widgets */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}
.whatsapp-float:hover {
    background-color: #128c7e;
    color: #ffffff;
    transform: scale(1.1);
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--button-primary-bg) !important;
    color: #ffffff !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    background-color: var(--button-primary-hover) !important;
    transform: translateY(-3px);
}

/* ==========================================================================
   FOOTER & PIE DE PÁGINA INDEPENDIENTE
   ========================================================================== */
.main-footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
    padding: 70px 0 30px 0;
    border-top: 1px solid var(--footer-border);
}
.main-footer p,
.main-footer span,
.main-footer div,
.main-footer li {
    color: var(--footer-text) !important;
}
.footer-title {
    color: var(--footer-title) !important;
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--button-primary-bg);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--footer-link) !important;
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--footer-link-hover) !important;
    padding-left: 5px;
}

/* Redes Sociales en Footer y Secciones */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}
.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--social-bg);
    color: var(--social-text) !important;
    border: 1px solid var(--social-border);
    font-size: 16px;
    transition: var(--transition);
    text-decoration: none;
}
.social-icons a:hover {
    background-color: var(--social-hover-bg);
    color: var(--social-hover) !important;
    border-color: var(--social-hover);
    transform: translateY(-3px);
}

/* Shopping Cart Offcanvas Drawer */
#cartOffcanvas {
    background-color: var(--cart-bg) !important;
    color: var(--cart-text) !important;
}
.cart-item {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--cart-border);
    padding: 12px 0;
}
.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-item-info {
    flex-grow: 1;
}
.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--cart-text);
}
.cart-item-price {
    font-size: 0.9rem;
    color: var(--cart-total);
    font-weight: 700;
}

/* Theme Toggle */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--header-icon) !important;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px 10px;
}
.theme-toggle-btn:hover {
    color: var(--header-icon-hover) !important;
}

/* Inputs & Form Control Scope */
.form-control, .form-select {
    background-color: var(--input-bg);
    color: var(--input-text);
    border-color: var(--input-border);
}
.form-control:focus, .form-select:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 139, 0.25);
}

/* ==========================================================================
   RESPONSIVE & MOBILE OVERRIDES (CORRECCIÓN FRANJA BLANCA)
   ========================================================================== */
@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
    /* FIX FRANJA BLANCA EN MENÚ MÓVIL */
    .navbar-collapse {
        max-height: 85vh;
        overflow-y: auto;
        background-color: var(--menu-dropdown-bg) !important;
        backdrop-filter: var(--menu-dropdown-backdrop) !important;
        -webkit-backdrop-filter: var(--menu-dropdown-backdrop) !important;
        border: 1px solid var(--menu-dropdown-border) !important;
        box-shadow: var(--menu-dropdown-shadow) !important;
        padding: 18px;
        border-radius: 16px;
        margin-top: 10px;
    }
    .main-slider .carousel-item {
        height: 350px;
    }
    .main-slider .carousel-caption {
        left: 5%;
        right: 5%;
        max-width: 100%;
        bottom: 10%;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }
    .main-slider .carousel-item {
        height: 250px;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    #back-to-top {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .product-card-body {
        padding: 12px;
    }
}

/* Infinite Marquee Ticker */
.brands-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.brands-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee-infinite 28s linear infinite;
    will-change: transform;
}
.brands-marquee-track:hover {
    animation-play-state: paused;
}
@keyframes marquee-infinite {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}
.brand-ticker-item {
    flex-shrink: 0;
    margin-right: 20px;
    padding: 10px 24px;
    background-color: var(--product-bg);
    border: 1px solid var(--product-border);
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}
.brand-ticker-item:hover {
    transform: translateY(-4px);
    border-color: var(--button-primary-bg);
    box-shadow: var(--shadow-hover);
}
.brand-ticker-item .brand-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--body-text);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ==========================================================================
   GLOBAL STOREFRONT ANIMATION ENGINE (Cards, Logos, Iconos, Títulos, Textos)
   ========================================================================== */

/* CARDS ANIMATIONS */
html[data-anim-cards="lift"] .product-card,
html[data-anim-cards="lift"] .category-circle-card { transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); }
html[data-anim-cards="lift"] .product-card:hover,
html[data-anim-cards="lift"] .category-circle-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 35px rgba(0,0,0,0.18) !important; }

html[data-anim-cards="zoom"] .product-card,
html[data-anim-cards="zoom"] .category-circle-card { transition: transform 0.35s ease; }
html[data-anim-cards="zoom"] .product-card:hover,
html[data-anim-cards="zoom"] .category-circle-card:hover { transform: scale(1.06); }

html[data-anim-cards="pulse"] .product-card:hover { animation: animPulse 1.5s infinite ease-in-out; }

html[data-anim-cards="glow"] .product-card:hover {
    box-shadow: 0 0 28px var(--button-primary-bg) !important;
    border-color: var(--button-primary-bg) !important;
}

html[data-anim-cards="float"] .product-card { animation: animFloating 4s infinite ease-in-out; }

html[data-anim-cards="flip-3d"] .product-card { transition: transform 0.6s; transform-style: preserve-3d; }
html[data-anim-cards="flip-3d"] .product-card:hover { transform: rotateY(15deg) scale(1.03); }

html[data-anim-cards="tilt-3d"] .product-card { transition: transform 0.4s ease; }
html[data-anim-cards="tilt-3d"] .product-card:hover { transform: perspective(1000deg) rotateX(6deg) rotateY(-6deg) scale(1.03); }

html[data-anim-cards="bounce"] .product-card:hover { animation: animSoftBounce 1s infinite ease-in-out; }

html[data-anim-cards="shimmer-border"] .product-card:hover {
    border-color: #ffb703 !important;
    animation: animGlowPulse 1.5s infinite ease-in-out;
}

html[data-anim-cards="shadow-expand"] .product-card { transition: box-shadow 0.4s ease, transform 0.4s ease; }
html[data-anim-cards="shadow-expand"] .product-card:hover { box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.35) !important; transform: translateY(-5px); }

html[data-anim-cards="scale-rotate"] .product-card { transition: all 0.35s ease; }
html[data-anim-cards="scale-rotate"] .product-card:hover { transform: scale(1.04) rotate(1.5deg); }

html[data-anim-cards="slide-up-content"] .product-card .card-body { transition: transform 0.3s ease; }
html[data-anim-cards="slide-up-content"] .product-card:hover .card-body { transform: translateY(-4px); }

html[data-anim-cards="blur-reveal"] .product-card { transition: all 0.4s ease; }
html[data-anim-cards="blur-reveal"] .product-card:hover { filter: contrast(1.05) brightness(1.03); transform: scale(1.02); }

html[data-anim-cards="glassmorphism-glow"] .product-card:hover {
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

html[data-anim-cards="rubber-band"] .product-card:hover { animation: animRubberBand 1s ease; }
@keyframes animRubberBand {
    0% { transform: scale3d(1, 1, 1); }
    30% { transform: scale3d(1.15, 0.85, 1); }
    40% { transform: scale3d(0.85, 1.15, 1); }
    50% { transform: scale3d(1.08, 0.92, 1); }
    65% { transform: scale3d(0.95, 1.05, 1); }
    75% { transform: scale3d(1.02, 0.98, 1); }
    100% { transform: scale3d(1, 1, 1); }
}

html[data-anim-cards="jello"] .product-card:hover { animation: animJello 0.9s ease; }
@keyframes animJello {
    11.1% { transform: translate3d(0, 0, 0); }
    22.2% { transform: skewX(-12.5deg) skewY(-12.5deg); }
    33.3% { transform: skewX(6.25deg) skewY(6.25deg); }
    44.4% { transform: skewX(-3.125deg) skewY(-3.125deg); }
    55.5% { transform: skewX(1.5625deg) skewY(1.5625deg); }
    66.6% { transform: skewX(-0.78125deg) skewY(-0.78125deg); }
    77.7% { transform: skewX(0.390625deg) skewY(0.390625deg); }
    88.8% { transform: skewX(-0.1953125deg) skewY(-0.1953125deg); }
    100% { transform: translate3d(0, 0, 0); }
}


/* TITLES ANIMATIONS */
html[data-anim-titulos="fade-up"] .section-title,
html[data-anim-titulos="fade-up"] h1,
html[data-anim-titulos="fade-up"] h2 { animation: animSlideInUp 0.8s ease forwards; }

html[data-anim-titulos="slide-left"] .section-title { animation: animSlideInLeft 0.8s ease forwards; }
html[data-anim-titulos="slide-right"] .section-title { animation: animSlideInRight 0.8s ease forwards; }
html[data-anim-titulos="zoom-in"] .section-title { animation: animZoomIn 0.8s ease forwards; }
html[data-anim-titulos="bounce"] .section-title { animation: animBounceIn 1s ease forwards; }
html[data-anim-titulos="glow-pulse"] .section-title { animation: animGlowText 2s infinite ease-in-out; }

html[data-anim-titulos="letter-spacing"] .section-title {
    animation: animLetterSpacing 1s ease forwards;
}
@keyframes animLetterSpacing { from { letter-spacing: -2px; opacity: 0; } to { letter-spacing: 2px; opacity: 1; } }

html[data-anim-titulos="flip-x"] .section-title { animation: animFlipX 0.8s ease forwards; }
@keyframes animFlipX { from { opacity: 0; transform: perspective(400deg) rotateX(90deg); } to { opacity: 1; transform: perspective(400deg) rotateX(0deg); } }

html[data-anim-titulos="shimmer"] .section-title {
    background: linear-gradient(90deg, var(--button-primary-bg), #ffb703, var(--button-primary-bg));
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animShimmer 3s infinite linear;
}
@keyframes animShimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

html[data-anim-titulos="gradient-rainbow"] .section-title {
    background: linear-gradient(132deg, #ff4770, #ffb703, #4ea8de, #9d4edd);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animRainbowGradient 8s ease infinite;
}
@keyframes animRainbowGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

html[data-anim-titulos="text-shadow-3d"] .section-title {
    text-shadow: 1px 1px 0 #ff6b8b, 2px 2px 0 #4ea8de, 3px 3px 0 #ffb703;
    transition: text-shadow 0.3s ease;
}

html[data-anim-titulos="float-wave"] .section-title { animation: animFloating 3s infinite ease-in-out; }

html[data-anim-titulos="glitch"] .section-title { animation: animGlitch 2.5s infinite; }
@keyframes animGlitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

html[data-anim-titulos="underline-grow"] .section-title {
    position: relative;
    display: inline-block;
}
html[data-anim-titulos="underline-grow"] .section-title::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: -4px;
    left: 0;
    background-color: var(--button-primary-bg);
    transform-origin: bottom right;
    transition: transform 0.4s ease-out;
}
html[data-anim-titulos="underline-grow"] .section-title:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


/* LOGOS ANIMATIONS */
html[data-anim-logos="pulse"] .navbar-brand img,
html[data-anim-logos="pulse"] .footer-logo img { animation: animPulse 3s infinite ease-in-out; }

html[data-anim-logos="bounce"] .navbar-brand img { animation: animSoftBounce 2s infinite ease-in-out; }
html[data-anim-logos="glow"] .navbar-brand img { filter: drop-shadow(0 0 10px var(--button-primary-bg)); }
html[data-anim-logos="float"] .navbar-brand img { animation: animFloating 3s infinite ease-in-out; }
html[data-anim-logos="spin-slow"] .navbar-brand img { animation: animSpin 20s infinite linear; }
html[data-anim-logos="heartbeat"] .navbar-brand img { animation: animHeartbeat 2s infinite ease-in-out; }
html[data-anim-logos="shake"] .navbar-brand img { animation: animShake 3s infinite ease-in-out; }
html[data-anim-logos="shimmer"] .navbar-brand img { animation: animGlowPulse 2.5s infinite ease-in-out; }

html[data-anim-logos="wobble"] .navbar-brand img { animation: animWobble 3s infinite ease-in-out; }
@keyframes animWobble {
    0%, 100% { transform: translateX(0%) rotate(0deg); }
    15% { transform: translateX(-6px) rotate(-6deg); }
    30% { transform: translateX(5px) rotate(5deg); }
    45% { transform: translateX(-3px) rotate(-3deg); }
    60% { transform: translateX(2px) rotate(2deg); }
    75% { transform: translateX(-1px) rotate(-1deg); }
}

html[data-anim-logos="zoom-pulse"] .navbar-brand img { animation: animZoomPulse 3s infinite ease-in-out; }
@keyframes animZoomPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

html[data-anim-logos="halo-ring"] .navbar-brand img {
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 107, 139, 0.7);
    animation: animHaloRing 2s infinite;
}
@keyframes animHaloRing {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 139, 0.7); }
    70% { box-shadow: 0 0 0 14px rgba(255, 107, 139, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 139, 0); }
}

html[data-anim-logos="perspective-spin"] .navbar-brand img { animation: animPerspectiveSpin 6s infinite ease-in-out; }
@keyframes animPerspectiveSpin {
    0% { transform: perspective(400deg) rotateY(0deg); }
    50% { transform: perspective(400deg) rotateY(180deg); }
    100% { transform: perspective(400deg) rotateY(360deg); }
}


/* ICONS ANIMATIONS */
html[data-anim-iconos="bounce"] .social-icon:hover,
html[data-anim-iconos="bounce"] .navbar i:hover,
html[data-anim-iconos="bounce"] .product-card i:hover,
html[data-anim-iconos="bounce"] .btn i:hover { transform: translateY(-5px) scale(1.25); transition: all 0.2s ease; }

html[data-anim-iconos="rotate-360"] .social-icon:hover,
html[data-anim-iconos="rotate-360"] .navbar i:hover,
html[data-anim-iconos="rotate-360"] .product-card i:hover { transform: rotate(360deg); transition: transform 0.6s ease; }

html[data-anim-iconos="shake"] .social-icon:hover,
html[data-anim-iconos="shake"] .btn i:hover { animation: animShake 0.8s ease; }

html[data-anim-iconos="glow"] .social-icon:hover,
html[data-anim-iconos="glow"] .navbar i:hover { filter: drop-shadow(0 0 12px #ffb703); }

html[data-anim-iconos="pop"] .social-icon:hover,
html[data-anim-iconos="pop"] .btn i:hover { transform: scale(1.4); transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

html[data-anim-iconos="flip"] .social-icon:hover { transform: rotateY(180deg); transition: transform 0.5s ease; }

html[data-anim-iconos="float"] .social-icon { animation: animFloating 3s infinite ease-in-out; }
html[data-anim-iconos="pulse"] .social-icon:hover { animation: animPulse 1.2s infinite ease-in-out; }
html[data-anim-iconos="swing"] .social-icon:hover { animation: animSwing 1s ease forwards; }

html[data-anim-iconos="spin-fast"] .social-icon:hover { transform: rotate(720deg); transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); }

html[data-anim-iconos="morph-circle"] .social-icon:hover {
    border-radius: 50% !important;
    background-color: var(--button-primary-bg);
    color: #fff !important;
    transition: all 0.3s ease;
}

html[data-anim-iconos="orbit"] .social-icon:hover { animation: animOrbit 0.8s ease; }
@keyframes animOrbit {
    0% { transform: rotate(0deg) translateX(0px) rotate(0deg); }
    50% { transform: rotate(180deg) translateX(4px) rotate(-180deg); }
    100% { transform: rotate(360deg) translateX(0px) rotate(-360deg); }
}

html[data-anim-iconos="drop-shadow-burst"] .social-icon:hover {
    filter: drop-shadow(0 0 15px #ff4770) drop-shadow(0 0 25px #ffb703);
    transition: filter 0.3s ease;
}


/* TEXTS ANIMATIONS */
html[data-anim-textos="fade-in"] .lead,
html[data-anim-textos="fade-in"] .product-short-desc { animation: animFadeIn 1s ease forwards; }

html[data-anim-textos="slide-right"] .lead { animation: animSlideInRight 0.8s ease forwards; }
html[data-anim-textos="slide-up"] .lead { animation: animSlideInUp 0.8s ease forwards; }
html[data-anim-textos="glow"] .lead { text-shadow: 0 0 10px rgba(255, 107, 139, 0.5); }

html[data-anim-textos="blur-in"] .lead { animation: animBlurIn 1s ease forwards; }

html[data-anim-textos="typing-cursor"] .lead {
    border-right: 2px solid var(--button-primary-bg);
    white-space: nowrap;
    overflow: hidden;
    animation: animTyping 3.5s steps(40, end), animBlinkCursor 0.75s step-end infinite;
}
@keyframes animTyping { from { width: 0; } to { width: 100%; } }
@keyframes animBlinkCursor { from, to { border-color: transparent; } 50% { border-color: var(--button-primary-bg); } }

html[data-anim-textos="highlight-sweep"] .lead {
    background: linear-gradient(120deg, rgba(255, 230, 109, 0) 0%, rgba(255, 230, 109, 0.6) 50%, rgba(255, 230, 109, 0) 100%);
    background-size: 200% 100%;
    animation: animHighlightSweep 3s infinite;
}
@keyframes animHighlightSweep { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

html[data-anim-textos="color-cycle"] .lead { animation: animColorCycle 6s infinite ease-in-out; }
@keyframes animColorCycle {
    0%, 100% { color: inherit; }
    33% { color: #ff4770; }
    66% { color: #4ea8de; }
}

html[data-anim-textos="fade-down"] .lead { animation: animSlideInDown 0.8s ease forwards; }
@keyframes animSlideInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }


/* REUSABLE ANIMATION KEYFRAMES FOR FRONTEND */
@keyframes animPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes animFloating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes animSoftBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes animSlideInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes animSlideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes animSlideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes animZoomIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes animBounceIn { 0% { opacity: 0; transform: scale(0.3); } 50% { opacity: 1; transform: scale(1.05); } 70% { transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }
@keyframes animFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes animShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes animGlowPulse { 0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 107, 139, 0.4)); } 50% { filter: drop-shadow(0 0 15px rgba(255, 183, 3, 0.9)); } }
@keyframes animGlowText { 0%, 100% { text-shadow: 0 0 5px rgba(79, 70, 229, 0.4); } 50% { text-shadow: 0 0 20px rgba(255, 107, 139, 0.9); } }
@keyframes animSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes animHeartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.15); } 28% { transform: scale(1); } 42% { transform: scale(1.15); } 70% { transform: scale(1); } }
@keyframes animBlurIn { from { filter: blur(8px); opacity: 0; } to { filter: blur(0); opacity: 1; } }


