:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --gold: #dfb256;
    --gold-dim: rgba(223, 178, 86, 0.2);
    --blue-neon: #38bdf8;
    --blue-glow: rgba(56, 189, 248, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --whatsapp: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Panel Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Header & Nav */
.glass-header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.02);
}

.logo-text h1,
.logo-text h2 {
    font-size: 2.2rem;
    letter-spacing: 1px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
    display: flex;
    align-items: center;
    margin: 0;
}

.gold-c {
    font-size: 2.8rem;
    color: var(--gold);
    display: inline-block;
    filter: drop-shadow(0 0 8px var(--gold-dim));
    margin-right: 2px;
}

.gold-pro {
    color: var(--gold);
    margin-left: 2px;
}

.slogan {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.gold {
    color: var(--gold);
}

/* Search Bar (Nueva Función) */
.search-bar {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    width: 300px;
    transition: width 0.3s;
}

.search-bar:focus-within {
    width: 350px;
    border-color: var(--blue-neon);
    box-shadow: 0 0 15px var(--blue-glow);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    margin-left: 0.5rem;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    color: var(--text-muted);
}

/* Navigation & Cart Badge */
nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-login {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--blue-neon);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-login:hover {
    background: var(--blue-neon) !important;
    color: #000 !important;
    box-shadow: 0 0 10px var(--blue-glow);
}

.mobile-bottom-nav .nav-item.logged-in {
    color: var(--blue-neon);
}

.cart-btn {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.3s, transform 0.3s;
}

.cart-btn:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--blue-neon);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Sidebar del Carrito (Nueva Función) */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(2px);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    border-radius: 0;
    border-left: 1px solid var(--glass-border);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    transition: right 0.4s ease;
}

.cart-sidebar.open {
    right: 0;
}

.close-cart {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--gold);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 10px;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 800;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.qty-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
    border-radius: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qty-btn:hover {
    background: var(--blue-neon);
    color: #000;
    border-color: var(--blue-neon);
}

.rm-btn {
    background: transparent;
    color: #ef4444;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: auto;
}

.rm-btn:hover {
    color: #f87171;
}

.cart-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.btn-whatsapp {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--whatsapp);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.trust-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Botones Principales */
.btn-primary,
.btn-neon {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--gold) 0%, #c09130 100%);
    color: var(--bg-darker);
    box-shadow: 0 4px 15px var(--gold-dim);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(223, 178, 86, 0.4);
}

.btn-neon {
    background: transparent;
    color: var(--blue-neon);
    border: 2px solid var(--blue-neon);
}

.btn-neon:hover {
    background: var(--blue-neon);
    color: #000;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 7rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.45) 0%, rgba(2, 6, 23, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
}

.hero-content h2 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin: 1.5rem 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero-content h2 span {
    background: linear-gradient(135deg, var(--blue-neon), #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 700px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--blue-neon);
    color: var(--blue-neon);
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Trust Bar (Nueva Función) */
.trust-bar {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    padding: 2rem 5%;
    background: rgba(2, 6, 23, 0.6);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--blue-neon);
}

.trust-item:hover {
    color: var(--text-main);
}

/* About Us Section */
.about-section {
    padding: 5rem 5% 2rem;
    position: relative;
    z-index: 2;
}

.about-container {
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--blue-neon);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.9));
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 800px;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 2px solid var(--gold);
    transition: transform 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-card h3 {
    font-size: 1.8rem;
    margin: 1rem 0;
    color: var(--text-main);
}

.about-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.why-choose-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--blue-neon);
    background: rgba(56, 189, 248, 0.05);
    border-color: var(--blue-neon);
    transition: transform 0.3s, background 0.3s;
}

.feature-item:hover .feature-icon-wrapper {
    transform: scale(1.1);
    background: rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 20px var(--blue-glow);
}

.feature-text h4 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.about-cta {
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    margin-top: 3rem;
}

.about-cta p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        padding: 1.5rem;
    }
}

/* Products Layout */
.products-section {
    padding: 5rem 1.5% 6rem;
    /* Se redujo drásticamente el padding lateral del 5% al 1.5% para ocupar todo el ancho */
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
}

.section-title h2 span {
    color: var(--gold);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--blue-neon);
    border-color: var(--blue-neon);
    color: #000;
    font-weight: 600;
    box-shadow: 0 0 15px var(--blue-glow);
}

.no-results {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--glass-border);
}

.hidden {
    display: none !important;
}

/* Product Grid Container */
.product-grid {
    display: block;
    /* Contenedor principal para las diferentes secciones */
}

/* Category Headers */
.category-row-title {
    font-size: 2.2rem;
    color: var(--text-main);
    margin: 3rem 0 1.5rem 1.5%;
    /* Cambio de margen lateral para que empate con el catálogo expandido */
    padding-left: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.category-row-title span {
    color: var(--gold);
    background: transparent;
    -webkit-text-fill-color: initial;
    text-shadow: 0 4px 15px var(--gold-dim);
}

.icon-3d {
    display: inline-block;
    color: var(--gold);
    font-size: 2.4rem;
    filter: drop-shadow(0px 10px 15px rgba(223, 178, 86, 0.4));
    animation: float3D 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes float3D {
    0% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
    }

    25% {
        transform: translateY(-8px) rotateX(10deg) rotateY(-10deg) scale(1.05);
    }

    50% {
        transform: translateY(-12px) rotateX(0deg) rotateY(0deg) scale(1.1);
    }

    75% {
        transform: translateY(-8px) rotateX(-10deg) rotateY(10deg) scale(1.05);
    }

    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
    }
}

/* Product Carousel (Horizontal Scroll for Desktop & Mobile) */
.product-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem 1.5% 3rem 1.5%;
    /* Expandir el inicio y fin del carrusel hasta los bordes */
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.product-carousel::-webkit-scrollbar {
    height: 6px;
}

.product-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 0 1.5%;
    /* Ajuste de barra de scroll para el nuevo ancho */
}

.product-carousel::-webkit-scrollbar-thumb {
    background: var(--blue-neon);
    border-radius: 10px;
}

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    border: 1px solid var(--blue-neon);
    color: var(--blue-neon);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
    z-index: 10;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
}

.carousel-btn:hover {
    background: var(--blue-neon);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0.5%;
    /* Botón prev pegado a la orilla real */
}

.carousel-btn.next {
    right: 0.5%;
    /* Botón next pegado a la orilla real */
}

.carousel-btn.show {
    opacity: 1;
    visibility: visible;
}

.product-card {
    flex: 0 0 85%;
    /* En móvil y pantallas pequeñas ocupa casi todo */
    max-width: 320px;
    /* En pantallas grandes mantiene un límite lógico */
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid #ef4444;
    z-index: 2;
}

.product-image-container {
    width: 100%;
    height: 220px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    border-radius: 8px;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-category {
    font-size: 0.8rem;
    color: var(--blue-neon);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
}

.product-original-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Solución Product-Card (Focus) */
.product-solution {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-left: 3px solid var(--blue-neon);
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    color: var(--text-main);
    position: relative;
    transition: all 0.3s ease;
}

.product-solution:hover {
    background: rgba(56, 189, 248, 0.1);
    box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.05);
}

.solution-label {
    display: block;
    color: var(--blue-neon);
    font-weight: 800;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}


.card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: auto;
}

.btn-view {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-view:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-add-cart {
    background: var(--blue-neon);
    border: none;
    color: #000;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
}

.btn-add-cart:hover {
    box-shadow: 0 0 15px var(--blue-glow);
    background: #7dd3fc;
}

/* Modal Completo Mejorado (Tipo Landing de Producto) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.modal.fade-in {
    display: flex;
    animation: fadeInModal 0.4s forwards;
}

.modal-content {
    background: var(--bg-dark);
    max-width: 1100px;
    width: 95%;
    max-height: 95vh;
    border-radius: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 0;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s, transform 0.3s;
}

.close-modal:hover {
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
    border-bottom: 1px solid var(--glass-border);
}

@media (max-width: 900px) {
    .modal-body {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

/* Galería Interactiva */
.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-img-container {
    background: transparent;
    border-radius: 16px;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.main-img-container img,
.product-main-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.thumbnails {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.thumb {
    width: 70px;
    height: 70px;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid var(--glass-border);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
}

.thumb:hover,
.thumb.active {
    border-color: var(--blue-neon);
    opacity: 1;
}

.thumb img,
.thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 2;
}

/* Info del Modal y Tabs */
.modal-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modal-rating {
    display: flex;
    gap: 10px;
    color: var(--gold);
    margin-bottom: 1.5rem;
    align-items: center;
    font-size: 1rem;
}

.modal-rating span.reviews-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-price-box {
    background: rgba(223, 178, 86, 0.05);
    border: 1px solid rgba(223, 178, 86, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-price-box .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.modal-price-box .old-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

.tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: color 0.3s;
}

.tab-btn.active {
    color: var(--blue-neon);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--blue-neon);
    box-shadow: 0 0 10px var(--blue-neon);
}

.tab-content {
    display: none;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-height: 200px;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

.tab-content ul {
    list-style: none;
    padding-left: 0;
}

.tab-content li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    align-items: center;
}

.tab-content li i {
    color: var(--gold);
}

/* Reviews Progress Bars Fake */
.review-stats {
    margin-top: 1rem;
}

.review-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.progress {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-filled {
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
}

.modal-buy-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* Related Products en el Modal */
.related-products-section {
    padding: 3rem;
    background: rgba(2, 6, 23, 0.4);
}

.related-products-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.related-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.related-card {
    min-width: 220px;
    background: var(--glass-bg);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: 0.3s;
}

.related-card:hover {
    border-color: var(--blue-neon);
    transform: translateY(-5px);
}

.related-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.related-card h4 {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.related-card p {
    color: var(--gold);
    font-weight: 800;
}

/* Floating WhatsApp & Toast */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
    text-decoration: none;
    transform-style: preserve-3d;
    animation: whatsapp3D 3s infinite;
}

.floating-whatsapp i {
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2));
}

.floating-whatsapp:hover {
    animation: none;
    transform: scale(1.15) rotate(10deg);
}

@keyframes whatsapp3D {
    0% {
        transform: translateY(0) rotateX(0) rotateY(0) scale(1);
        box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    }

    33% {
        transform: translateY(-8px) rotateX(15deg) rotateY(-15deg) scale(1.1);
        box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
    }

    66% {
        transform: translateY(-4px) rotateX(-15deg) rotateY(15deg) scale(1.05);
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    }

    100% {
        transform: translateY(0) rotateX(0) rotateY(0) scale(1);
        box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    }
}

.toast {
    position: fixed;
    bottom: -100px;
    right: 30px;
    padding: 15px 25px;
    border-left: 4px solid var(--whatsapp);
    color: #fff;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    bottom: 30px;
}

/* Mobile Bottom Navigation (Aliexpress Style) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    justify-content: space-around;
    padding: 0.5rem 0 0.8rem 0;
    /* Extra padding bottom for iOS safe area */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    gap: 4px;
    cursor: pointer;
    position: relative;
    flex: 1;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--blue-neon);
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
}

/* Adjust Toast and backtotop positions for bottom nav */
.toast.show {
    bottom: 80px;
}

.back-to-top {
    bottom: 90px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
        /* Space for bottom nav */
    }

    /* Mostrar navbar inferior y ocultar la superior */
    .mobile-bottom-nav {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    /* Ocultar botón flotante de Whatsapp porque ya está en el navbar */
    .floating-whatsapp {
        display: none;
    }

    /* Header Compacto tipo App */
    .glass-header {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
        justify-content: flex-start;
    }

    .logo-text h1,
    .logo-text h2 {
        font-size: 1.4rem;
    }

    .gold-c {
        font-size: 1.8rem;
    }

    .logo-text .slogan {
        display: none;
        /* Ocultar slogan para ahorrar espacio */
    }

    .search-bar {
        width: 100%;
        margin-left: 10px;
        padding: 0.4rem 0.8rem;
    }

    .search-bar:focus-within {
        width: 100%;
    }

    /* Hero más compacto */
    .hero {
        padding-top: 6rem;
        padding-bottom: 2rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    /* Ajuste para que el scroll horizontal se vea natural hasta el borde */
    .products-section {
        padding-left: 0;
        padding-right: 0;
    }

    .section-title,
    .filters,
    .category-row-title {
        padding-left: 2%;
        padding-right: 2%;
        margin-left: 0;
    }

    /* Carrusel de productos (Scroll Horizontal en móvil) */
    .product-carousel {
        padding: 1rem 2% 2rem 2%;
        gap: 1rem;
    }

    /* Botones de navegación (flechas) adaptados para móvil */
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        background: rgba(30, 41, 59, 0.9);
        top: 35%;
    }

    /* Redimensionar las Tarjetas al tamaño "Mobile App" (2 a la vez) */
    .product-card {
        flex: 0 0 45%;
        /* Hacemos que entren 2 tarjetas en pantalla */
        min-width: 150px;
        max-width: 180px;
        padding: 0.8rem;
    }

    .product-badge {
        font-size: 0.65rem;
        padding: 3px 6px;
        top: 10px;
        right: 10px;
    }

    .product-image-container {
        height: 110px;
        margin-bottom: 0.8rem;
    }

    .product-title {
        font-size: 0.85rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        height: 2.8em;
        margin-bottom: 0.3rem;
    }

    .product-price {
        font-size: 1.05rem;
    }

    .product-original-price {
        font-size: 0.70rem;
    }

    .product-price-container {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0.5rem;
    }

    /* Solución visible pero compacta en móvil */
    .product-solution {
        display: none;
        /* Hide in grid */
    }

    .modal-info .product-solution {
        display: block;
        /* Show in modal */
        font-size: 0.85rem;
        margin-bottom: 1rem;
        padding: 0.8rem;
    }

    .card-actions {
        display: flex;
        /* En vez de grilla, flex en móviles muy pequeños */
        gap: 5px;
        flex-direction: row;
        width: 100%;
    }

    .btn-view {
        padding: 5px;
        font-size: 0.85rem;
    }

    .btn-add-cart {
        font-size: 0.85rem;
        padding: 5px;
        flex: 1;
        /* Para que ocupe el resto del botón */
    }

    .trust-item {
        font-size: 0.75rem;
        flex-basis: 45%;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .cart-sidebar {
        width: 85%;
        right: -100%;
    }
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Minimalist Video Section */
.minimal-video-section {
    padding: 2rem 5% 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .vision-grid {
        grid-template-columns: 1fr;
    }
}

.video-wrapper,
.map-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    background: var(--bg-darker);
    aspect-ratio: 16 / 9;
}

.video-wrapper video,
.animated-map {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.5s;
}

.animated-map {
    animation: zoomMapInOut 15s infinite alternate ease-in-out;
}

@keyframes zoomMapInOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.3);
    }
}

.video-wrapper:hover video,
.map-wrapper:hover .animated-map {
    opacity: 1;
}

.vision-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.7);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.vision-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.vision-overlay p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gold);
}

/* Scroll Arriba */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--blue-neon);
    color: var(--blue-neon);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--blue-neon);
    color: #000;
    transform: translateY(-5px);
}

/* Animaciones al Scrollear */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}