@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: rgba(255,255,255,0.05);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0b0;
    --glass-border: rgba(255,255,255,0.08);
    --glass-shadow: rgba(0,0,0,0.3);
    --accent: #e94560;
    --accent2: #6c5ce7;
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

body::-webkit-scrollbar {
    width: 6px;
}
body::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
body::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* ─── GLASS CARD ─── */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--glass-shadow);
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a1a2e 100%);
}

#hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: rgba(233, 69, 96, 0.15);
    border: 1px solid rgba(233, 69, 96, 0.3);
    color: var(--accent);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
    font-family: var(--font-title);
    font-weight: 900;
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), #ff9ff3, var(--accent2));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 4s ease infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 25px rgba(233, 69, 96, 0.4);
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(233, 69, 96, 0.6);
    color: #fff;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 13px;
    position: relative;
}

.scroll-indicator .mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ─── STACKED CARDS ─── */
.stacked-section {
    padding: 4rem 0;
    position: relative;
}

.stacked-card {
    position: sticky;
    top: 30px;
    height: 80vh;
    min-height: 450px;
    max-height: 650px;
    margin-bottom: 2rem;
    border-radius: 24px;
    padding: 4rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
}

.stacked-card-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.stacked-card .card-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.3;
    background: radial-gradient(circle at 30% 50%, var(--card-color, #e94560), transparent 70%);
    transition: opacity 0.5s ease;
}

.stacked-card .card-img-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transition: opacity 0.5s ease;
    filter: brightness(0.6);
}

.stacked-card:hover .card-img-bg {
    opacity: 0.4;
    filter: brightness(0.75);
}

.stacked-card .card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.stacked-card h2 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.stacked-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.stacked-card .card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.stacked-card .card-cta:hover {
    background: rgba(255,255,255,0.2);
    gap: 1rem;
    color: #fff;
}

.stacked-card .card-number {
    position: absolute;
    top: -20px;
    right: 0;
    z-index: 1;
    font-family: var(--font-title);
    font-weight: 900;
    font-size: clamp(6rem, 12vw, 12rem);
    opacity: 0.06;
    line-height: 1;
    user-select: none;
}

/* ─── MARQUEE ─── */
.marquee-section {
    padding: 5rem 0;
    overflow: hidden;
    background: var(--bg-secondary);
}

.marquee-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-family: var(--font-title);
    font-weight: 700;
    white-space: nowrap;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.marquee-item:hover {
    color: var(--text-primary);
}

.marquee-item .marquee-icon {
    font-size: 2.5rem;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ─── COUNTERS ─── */
.counters-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.counter-item {
    text-align: center;
    padding: 2rem;
}

.counter-number {
    font-family: var(--font-title);
    font-weight: 900;
    font-size: clamp(3rem, 5vw, 4.5rem);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.counter-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* ─── PRODUCT GRID ─── */
.section-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.section-header h2 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.product-card .card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    background: #1a1a2e;
}

.product-card:hover .card-img {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card .card-categoria {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.product-card .card-title {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-card .card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.product-card .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-card .card-overlay a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.product-card .card-overlay a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

/* ─── CATEGORY HEADER ─── */
.cat-header {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.cat-header .cat-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background: radial-gradient(circle at 50% 50%, var(--cat-color, #e94560), transparent 60%);
}

.cat-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.cat-header-content .cat-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cat-header-content h1 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.cat-header-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* ─── PRODUCT DETAIL ─── */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.detail-gallery {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #1a1a2e;
    aspect-ratio: 1 / 1;
    max-height: 600px;
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-info .breadcrumb {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.detail-info .breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.detail-info .breadcrumb a:hover {
    color: var(--accent);
}

.detail-info h1 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.detail-info .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.detail-info .description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.detail-info .caracteristicas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.detail-info .caracteristica {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.detail-info .caracteristica::before {
    content: '✦';
    color: var(--accent);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-contacto {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.btn-contacto:hover {
    transform: translateY(-3px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
}

.btn-whatsapp:hover {
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    color: #fff;
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc, #006994);
    color: #fff;
}

.btn-telegram:hover {
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.4);
    color: #fff;
}

.btn-email {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-email:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ─── NAVBAR ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: transparent;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.6rem 2rem;
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: var(--accent);
}

.navbar-brand .brand-icon {
    font-size: 1.8rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.navbar-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar-links a:hover {
    color: #fff;
}

.navbar-links a:hover::after {
    width: 100%;
}

/* ─── FOOTER ─── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.footer-brand {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer p {
    font-size: 0.9rem;
}

/* ─── ADMIN ─── */
.admin-body {
    background: #f5f5f5;
    color: #333;
    font-family: var(--font-body);
}

.admin-body .navbar {
    background: #1a1a2e;
    position: static;
    backdrop-filter: none;
}

.admin-body .navbar-brand {
    color: #fff;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.admin-card h2 {
    font-family: var(--font-title);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #666;
}

.admin-table td {
    color: #333;
}

.admin-table tr:hover {
    background: #f8f8ff;
}

.admin-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.admin-btn-primary {
    background: #6c5ce7;
    color: #fff;
}

.admin-btn-primary:hover {
    background: #5a4bd1;
    color: #fff;
}

.admin-btn-edit {
    background: #f0f0ff;
    color: #6c5ce7;
}

.admin-btn-edit:hover {
    background: #e0e0ff;
    color: #5a4bd1;
}

.admin-btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.admin-btn-danger:hover {
    background: #fecaca;
}

.admin-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.admin-form input, .admin-form textarea, .admin-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.admin-form textarea {
    min-height: 120px;
    resize: vertical;
}

.login-box {
    max-width: 400px;
    margin: 5rem auto;
    background: #fff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.login-box h1 {
    font-family: var(--font-title);
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.login-box p {
    color: #666;
    margin-bottom: 2rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
        padding: 0 1rem 3rem;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .stacked-card {
        padding: 2rem;
        min-height: 400px;
    }

    .detail-info .caracteristicas {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .btn-contacto {
        justify-content: center;
    }
}
