/* assets/css/style.css - Pro-suplementos Apartadó (Dark & Red Premium App Theme) */
:root {
    --bg-dark: #0a0a0c;
    --bg-card: #141418;
    --bg-card-hover: #1c1c22;
    --red-primary: #e50914;
    --red-glow: rgba(229, 9, 20, 0.4);
    --red-hover: #ff1e27;
    --gold-accent: #ffd700;
    --green-accent: #00e676;
    --text-main: #ffffff;
    --text-muted: #a0a0aa;
    --border-color: #26262e;
    --font-heading: 'Oswald', 'Montserrat', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 75px; /* Espacio para la Barra Inferior App en Móvil */
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header & Navbar Desktop/Mobile */
.navbar {
    background-color: rgba(15, 15, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 16px;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo img {
    height: 42px;
    width: 42px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--red-primary);
    box-shadow: 0 0 10px var(--red-glow);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
}

.brand-tagline {
    font-size: 0.65rem;
    color: var(--red-primary);
    font-weight: 600;
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.cart-btn-nav {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 8px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn-nav:hover {
    border-color: var(--red-primary);
    box-shadow: 0 0 15px var(--red-glow);
}

.cart-badge {
    background: var(--red-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 12px;
}

/* Barra de Navegación Estilo App Móvil (Bottom Tab Bar) */
.mobile-app-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 65px;
    background: rgba(16, 16, 20, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
}

.app-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 500;
    gap: 2px;
    cursor: pointer;
    flex-grow: 1;
    position: relative;
}

.app-bar-item.active, .app-bar-item:active {
    color: var(--red-primary);
}

.app-bar-icon {
    font-size: 1.35rem;
}

.app-bar-badge {
    position: absolute;
    top: 2px;
    right: 25%;
    background: var(--red-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 40px 16px 35px;
    background: radial-gradient(circle at 50% 20%, rgba(229, 9, 20, 0.15) 0%, rgba(10, 10, 12, 1) 70%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: #fff;
}

.hero-title span {
    color: var(--red-primary);
    text-shadow: 0 0 20px var(--red-glow);
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 24px;
}

/* Goal Finder Widget App Style */
.goal-finder {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.goal-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red-primary);
    margin-bottom: 14px;
    font-weight: 700;
}

.goal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.goal-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 12px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.goal-card:hover, .goal-card.selected {
    border-color: var(--red-primary);
    background: rgba(229, 9, 20, 0.12);
    transform: translateY(-2px);
}

.goal-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.goal-name {
    font-size: 0.82rem;
    font-weight: 600;
}

/* Catalog Layout */
.container {
    max-width: 1280px;
    margin: 30px auto;
    padding: 0 16px;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--red-primary);
}

.filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 420px;
}

.search-input, .select-input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease;
}

.search-input:focus, .select-input:focus {
    border-color: var(--red-primary);
}

.category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill:hover, .pill.active {
    background: var(--red-primary);
    color: #fff;
    border-color: var(--red-primary);
    box-shadow: 0 0 10px var(--red-glow);
}

/* Product Cards Grid App Responsive */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: #101014;
    border: 1px solid #22222a;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #e50914;
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.25);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e50914;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.product-badge.out-stock {
    background: #444;
}

.product-img-wrap, .product-img-wrapper {
    height: 215px;
    background: radial-gradient(circle at center, #1e1e28 0%, #0c0c10 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.product-img-wrap img, .product-img-wrapper img, .product-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    max-height: 195px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.7));
}

.product-card:hover .product-img-wrap img,
.product-card:hover .product-img-wrapper img,
.product-card:hover .product-img {
    transform: scale(1.08);
}

.btn-buy-now {
    width: 100%;
    background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
    color: #0a0a0c;
    font-weight: 800;
    font-family: 'Oswald', sans-serif;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.3);
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #00c853 0%, #00b0ff 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 230, 118, 0.6);
}

.btn-add-cart-text {
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #ff4d4d;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-add-cart-text:hover {
    background: #e50914;
    color: #fff;
    border-color: #e50914;
}

.btn-share-text {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-share-text:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-share:hover {
    background: #00e676;
    border-color: #00e676;
    color: #000;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.4);
    transform: translateY(-2px);
}

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 2px 0 6px;
    color: #fff;
    line-height: 1.25;
}

.product-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold-accent);
}

.btn-buy-now {
    flex-grow: 1;
    background: #00e676;
    color: #0a0a0c;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.btn-buy-now:hover {
    background: #00c853;
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(0, 230, 118, 0.6);
}

.btn-buy-now:disabled {
    background: #444;
    color: #888;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-add-cart {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 38px;
}

.btn-add-cart:hover {
    background: var(--red-hover);
    box-shadow: 0 0 10px var(--red-glow);
}

.btn-add-cart:disabled {
    background: #333;
    color: #777;
    cursor: not-allowed;
    box-shadow: none;
}

/* Modals App Style */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 95%;
    max-width: 680px;
    padding: 20px;
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

/* Cart Slide Sidebar / Modal */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.02);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--gold-accent);
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-qty {
    background: #25252e;
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* Opciones de Pago Comparativas */
.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px 0;
}

.payment-card {
    background: #101014;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.payment-card.selected {
    border-color: var(--red-primary);
    background: rgba(229, 9, 20, 0.08);
    box-shadow: 0 0 15px var(--red-glow);
}

.payment-card.nequi-card.selected {
    border-color: var(--green-accent);
    background: rgba(0, 230, 118, 0.08);
}

.payment-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
}

.badge-save { background: var(--green-accent); color: #000; }
.badge-gateway { background: #29b6f6; color: #000; }

/* Toast Notificaciones "Lindo / Elegante" */
.toast-notification-premium {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #18181f 0%, #0d0d10 100%);
    border: 1px solid var(--red-primary);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.35);
    border-radius: 14px;
    padding: 12px 18px;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 360px;
}

@keyframes toastSlideIn {
    from { transform: translateY(-30px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.toast-icon-wrap {
    width: 38px;
    height: 38px;
    background: rgba(229, 9, 20, 0.15);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: var(--red-primary);
}

.toast-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #fff;
}

.toast-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Buttons App Style */
.btn-primary {
    background: var(--red-primary);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    min-height: 44px;
}

.btn-nequi {
    background: #e20074;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    transition: all 0.2s ease;
    min-height: 44px;
}

.footer {
    background: #060608;
    border-top: 1px solid var(--border-color);
    padding: 30px 16px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.footer-col p, .footer-col li {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    list-style: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.78rem;
    color: #555;
}

/* MEDIA QUERIES ESTILO APP MÓVIL */
@media (max-width: 768px) {
    .mobile-app-bar {
        display: flex; /* Mostrar barra inferior app en móvil */
    }

    .hero {
        padding: 30px 16px 20px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .nav-links {
        display: none;
    }

    .cart-btn-nav {
        display: none; /* Ocultar del header y pasar a la barra app inferior */
    }

    /* Grilla de productos de 2 columnas tipo App en móvil */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-img-wrap {
        height: 190px;
        padding: 0;
    }

    .product-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-info {
        padding: 8px;
    }

    .product-name {
        font-size: 0.82rem;
        height: 32px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-desc {
        display: none; /* Ocultar desc en catálogo móvil para maximizar espacio */
    }

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

    .btn-add-cart {
        padding: 6px 10px;
        font-size: 0.72rem;
        min-height: 34px;
    }

    .payment-methods-grid {
        grid-template-columns: 1fr;
    }

    .toast-notification-premium {
        left: 12px;
        right: 12px;
        top: 12px;
        max-width: none;
    }
}
