/* =============================================
   VARIABLES GLOBALES
   ============================================= */
:root {
    --bg: #1a1a1a;
    --surface: #222;
    --border: #2f2f2f;
    --text: #f5f5f5;
    --text2: #bdbdbd;
    --brand: #f3c300;
    --r: 22px;
}

/* =============================================
   RESET Y BASE
   ============================================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Montserrat, system-ui;
    background: radial-gradient(900px 420px at 70% 10%, rgba(243, 195, 0, .12), transparent 60%),
                radial-gradient(700px 520px at 12% 70%, rgba(255, 255, 255, .06), transparent 60%),
                var(--bg);
    color: var(--text);
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px;
}

.section {
    padding: 40px 0;
}

.section-head {
    text-align: left;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 0 10px;
}

/* =============================================
   TIPOGRAFÍA
   ============================================= */
.-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
}

.price {
    font-weight: 900;
    color: var(--brand);
}

.price.big {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.5px;
}

/* =============================================
   BOTONES
   ============================================= */
.btn {
    border: none;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .15s ease, filter .15s ease;
}

.btn.primary {
    background: var(--brand);
    color: #000;
    box-shadow: 0 4px 15px rgba(243, 195, 0, 0.3);
    border: none;
}

.btn.outline {
    background: transparent;
    border: 1px solid rgba(243, 195, 0, .7);
    color: var(--brand);
}

.btn.sm {
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
}

.btn:hover {
    transform: scale(1.04);
}

.btn-add-cart {
    background: var(--surface);
    border: 1px solid var(--border);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-cart:hover {
    background: var(--brand);
    color: #000;
    border-color: var(--brand);
}

/* =============================================
   BADGES Y TAGS
   ============================================= */
.tag-circle {
    width: auto;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    margin-bottom: 14px;
}

.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: 12px;
}

.badge-new {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--brand);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
}

/* =============================================
   PLACEHOLDERS DE IMAGEN
   ============================================= */
.img-ph {
    background: #141414;
    border: 1px dashed #333;
    border-radius: 18px;
    height: 320px;
}

.img-ph.small { height: 220px; }
.img-ph.tiny {
    height: 90px;
    width: 90px;
    border-radius: 14px;
}

/* =============================================
   CARDS GENÉRICAS
   ============================================= */
.card {
    background: linear-gradient(180deg, var(--surface), #1f1f1f);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
}

/* =============================================
   LISTAS
   ============================================= */
.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    text-decoration: none;
    color: var(--text2);
    background: rgba(0, 0, 0, .12);
}

.list-item:hover {
    color: var(--text);
    border-color: rgba(243, 195, 0, .35);
}

.li-title { font-weight: 900; }
.li-sub {
    color: var(--text2);
    font-size: 12px;
    margin-top: 2px;
}

/* =============================================
   ARTÍCULOS / BLOG
   ============================================= */
.article { padding: 10px 0 18px; }

.article-title {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 40px);
    font-weight: 900;
}

.article-short {
    margin: 0 0 12px;
    color: var(--text2);
}

.article-img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #111;
}

.article-long {
    margin-top: 12px;
    line-height: 1.6;
}

.article-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* =============================================
   FORMULARIOS
   ============================================= */
.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field label {
    display: block;
    color: var(--text2);
    font-size: 13px;
    margin-bottom: 6px;
}

.input {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(18, 18, 18, .85);
    color: var(--text);
    border-radius: 18px;
    padding: 16px 20px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.input:focus {
    border-color: rgba(243, 195, 0, .7);
}

.qty {
    width: 90px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #141414;
    color: var(--text);
    padding: 10px;
}

/* =============================================
   UTILIDADES
   ============================================= */
.hidden { display: none; }

.line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.total {
    font-weight: 900;
    color: var(--brand);
}

.total-line {
    border-bottom: none;
    padding-top: 14px;
}

.checkout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 14px;
}

/* =============================================
   BUSCADOR
   ============================================= */
.search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 50px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
}

.sr-sec { padding: 8px; }
.sr-title { font-weight: 800; margin: 0 0 6px; }
.sr-item {
    display: block;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text2);
}
.sr-item:hover {
    background: rgba(243, 195, 0, .08);
    color: var(--text);
}
@media (min-width: 769px) {
    .logo-mobile {
        display: none !important;
    }
}
/* =============================================
   LOGO DEL HOME — AJUSTE PARA MÓVIL
   ============================================= */
@media (max-width: 768px) {
    .header-logo svg {
        width: 160px !important;
        height: auto !important;
        display: block;
        margin: 0;
    }
    /* =============================================
   GRID DE PRODUCTOS
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* =============================================
   PRODUCTOS — 1 POR FILA EN MÓVIL
   ============================================= */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}