/* ============================================
   Etiquetando - Creative & Modern CSS
   ============================================ */

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --secondary: #FF6584;
    --accent: #43E97B;
    --dark: #0F0F1A;
    --dark-light: #1A1A2E;
    --gray-900: #16213E;
    --gray-800: #1E2A3A;
    --gray-700: #2D3B4E;
    --gray-600: #4A5568;
    --gray-500: #718096;
    --gray-400: #A0AEC0;
    --gray-300: #CBD5E0;
    --gray-200: #E2E8F0;
    --gray-100: #F7FAFC;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #38F9D7 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --font-primary: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Preloader ---- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-wrap {
    text-align: center;
}

.loader-ring {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(108, 99, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.loader-text {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 2px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Text Gradient ---- */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-dark);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    left: 40%;
    animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-400);
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 450px;
}

.hero-card {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-1 {
    width: 240px;
    height: 320px;
    top: 20px;
    left: 30px;
    transform: rotate(-5deg);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.hero-card-2 {
    width: 220px;
    height: 300px;
    top: 60px;
    right: 10px;
    transform: rotate(5deg);
    animation: float 8s ease-in-out infinite reverse;
    z-index: 1;
}

.hero-floating-badge {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-glow);
    animation: float 4s ease-in-out infinite 1s;
    z-index: 3;
    white-space: nowrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--white);
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.1);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   MARQUEE SECTION
   ============================================ */
.marquee-section {
    background: var(--primary);
    padding: 0.8rem 0;
    overflow: hidden;
}

.marquee-track {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 3rem;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(108, 99, 255, 0.08);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 550px;
    margin: 0 auto;
}

/* ============================================
   FILTER BUTTONS
   ============================================ */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--gray-200);
    background: transparent;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    padding: 6rem 0;
    background: var(--gray-100);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 26, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.product-brand {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.product-size {
    font-size: 0.7rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.product-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    flex: 1;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.product-original-price {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-price {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid var(--gray-100);
}

.product-condition {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: rgba(67, 233, 123, 0.1);
    color: #16a34a;
}

.badge-used {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
}

.btn-buy {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
    color: var(--white);
}

/* Product hidden by filter */
.product-col {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-col.hidden {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

/* ============================================
   CTA / ABOUT SECTION
   ============================================ */
.cta-section {
    padding: 6rem 0;
    background: var(--white);
}

.cta-card {
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    top: -100px;
    right: -100px;
}

.cta-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--secondary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    bottom: -50px;
    left: -50px;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-text {
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-300);
    font-size: 0.9rem;
    font-weight: 500;
}

.cta-feature i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 6rem 0;
    background: var(--gray-100);
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-option {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-option:hover {
    background: var(--gray-100);
    transform: translateY(-4px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.contact-option:hover .contact-icon {
    background: var(--primary);
    color: var(--white);
}

.contact-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.contact-option:hover .contact-icon.whatsapp {
    background: #25D366;
    color: var(--white);
}

.contact-icon.instagram {
    background: rgba(225, 48, 108, 0.1);
    color: #E1306C;
}

.contact-option:hover .contact-icon.instagram {
    background: #E1306C;
    color: var(--white);
}

.contact-option h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.contact-option p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 4rem 0 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(108, 99, 255, 0.3);
}

.footer-brand h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links li a,
.footer-links li {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 2.5rem 0 1.5rem;
}

.footer-copy,
.footer-powered {
    font-size: 0.85rem;
    margin: 0;
}

.footer-powered a {
    color: var(--primary);
    font-weight: 600;
}

.footer-powered a:hover {
    color: var(--secondary);
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    text-decoration: none;
    animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-float:hover {
    background: #1ebc59;
    color: var(--white);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-tooltip {
    position: absolute;
    left: 70px;
    background: var(--dark);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: var(--transition);
    pointer-events: none;
    box-shadow: var(--shadow-sm);
}

.whatsapp-float-tooltip::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 4px 4px 4px 0;
    border-style: solid;
    border-color: transparent var(--dark) transparent transparent;
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .contact-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .cta-features {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .filter-buttons {
        gap: 0.3rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1rem;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--primary);
    color: var(--white);
}
