@font-face {
    font-family: Rowdies;
    src: url('/fonts/Rowdies-Light.woff2') format('woff2'), url('/fonts/Rowdies-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Rowdies;
    src: url('/fonts/Rowdies-Regular.woff2') format('woff2'), url('/fonts/Rowdies-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Rowdies;
    src: url('/fonts/Rowdies-Bold.woff2') format('woff2'), url('/fonts/Rowdies-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html,
body {
    background: #000;
    color: #fff;
    min-height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rowdies', Arial, sans-serif;
    font-weight: 400;
}
*,
*:before,
*:after {
    box-sizing: inherit;
}
strong,
b {
    font-weight: 700;
}
button,
input,
textarea,
select,
.buy-btn,
.filtro-btn,
.language-option,
.filtro-menu-item {
    font-family: inherit;
    font-size: 1em;
}
input,
textarea,
select {
    font-family: 'Rowdies', Arial, sans-serif;
}
.main-header {
    width: 100%;
    background: #181a20;
    color: #fff;
    padding: 0;
    box-shadow: 0 2px 22px #000a;
    border-bottom: 2px solid #23242a;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 32px 0 18px;
    max-width: 1600px;
    margin: 0 auto;
    flex-wrap: nowrap;
}
.header-logo img {
    height: 100%;
    max-height: 90px;
    width: auto;
    display: block;
}
.header-login-avatar { display: flex; align-items: center; }
.header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #23242a;
    background: #fff;
    box-shadow: 0 2px 8px #0009;
}
.header-actions { display: flex; align-items: center; gap: 20px; }
.language-dropdown { position: relative; }
.header-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    margin-left: 10px;
}
.header-cart svg {
    width: 28px;
    height: 28px;
    display: block;
    color: #fff;
    transition: color .2s, transform .15s;
}
.header-cart:hover svg {
    transform: scale(1.1);
    color: #ddd;
}
.header-secondary {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 15px 0;
}
.header-secondary .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.search-bar-container {
    max-width: 700px;
    margin: 0 auto 20px;
}
.search-bar-form {
    position: relative;
    display: flex;
    align-items: center;
}
.search-bar-input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: border-color 0.3s;
}
.search-bar-input:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.2);
}
.search-bar-icon {
    position: absolute;
    left: 18px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.categories-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.category-item {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
    position: relative;
}
.category-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}
.category-item.active {
    background-color: white;
    color: #333;
}
.category-dropdown {
    position: relative;
    display: inline-block;
}
.category-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.category-dropdown:hover .category-dropdown-menu {
    display: block;
}
.category-dropdown-item {
    display: block;
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}
.category-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.category-dropdown-item.active {
    background-color: white;
    color: #333;
}
.category-arrow {
    margin-left: 6px;
    font-size: 12px;
}
.filtros-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    border: none;
}
.filtros-main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
}
.filtros-left {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
    width: 100%;
}
.filtros-grid {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
    width: 100%;
}
.filtros-title,
.filtros-subtitle {
    text-align: center;
}
.filtros-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}
.filtros-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}
.filtros-right {
    display: none;
}
.filtro-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.filtro-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}
.filtro-select {
    position: relative;
    min-width: 160px;
}
.filtro-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.filtro-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}
.filtro-btn.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}
.filtro-arrow {
    transition: transform 0.2s ease;
    opacity: 0.7;
    flex-shrink: 0;
    margin-left: 8px;
}
.filtro-select.active .filtro-arrow {
    transform: rotate(180deg);
}
.filtro-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.filtro-menu::-webkit-scrollbar {
    display: none;
}
.filtro-select.active .filtro-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.filtro-option {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.filtro-option:hover {
    background: rgba(255, 255, 255, 0.1);
}
.filtro-option.active {
    background: rgba(255, 255, 255, 0.15);
    color: #5FC855;
}
.filtro-option.active::before {
    content: "✓";
    margin-right: 8px;
    color: #5FC855;
    font-weight: 600;
}
.range-input {
    display: flex;
    align-items: center;
    gap: 12px;
}
.range-input input {
    width: 80px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    text-align: center;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}
.range-input input::-webkit-outer-spin-button,
.range-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.range-input input[type=number] {
    -moz-appearance: textfield;
}
.range-input input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}
.range-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.range-input span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
}
.filtros-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 0;
    padding: 0;
    border: none;
}
.filtros-results {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}
@media (max-width: 1200px) {
    .filtros-main {
        padding: 16px 20px;
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    .filtros-left {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
    }
    .filtros-grid {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: flex-start;
        width: 100%;
    }
    .filtro-select {
        min-width: 140px;
    }
}
@media (max-width: 768px) {
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 2000;
        border-radius: 0;
    }
    html, body {
        padding-top: 58px;
    }
    .filtros-main {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 6px 0 6px;
        gap: 10px;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }
    .search-bar-container {
        margin-top: 0;
        margin-bottom: 8px;
    }
    .filtros-grid {
        flex-direction: column;
        gap: 6px;
        width: 100%;
        justify-content: flex-start;
    }
    .filtro-group {
        width: 100%;
    }
    .filtro-select {
        min-width: unset;
        width: 100%;
    }
    .filtro-btn {
        width: 100%;
        min-height: 44px;
        font-size: 1.05em;
        border-radius: 8px;
        background: transparent;
        border: 1.5px solid rgba(255,255,255,0.15);
    }
    .filtro-menu {
        max-height: 220px;
        border-radius: 8px;
    }
    .range-input {
        flex-direction: column;
        gap: 2px;
        width: 100%;
    }
    .range-input input {
        width: 100%;
        min-height: 40px;
        font-size: 1em;
        border-radius: 7px;
    }
    .filtros-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .filtros-results {
        text-align: center;
    }
    .categories-nav {
        gap: 12px;
    }
    .category-item {
        font-size: 14px;
        padding: 6px 8px;
    }
    .pack-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 10px;
        padding: 0 4px;
        width: 100%;
    }
    .pack-card {
        max-width: 100%;
        min-width: 0;
        margin: 0;
        border-radius: 12px;
        padding: 12px 5px 12px 5px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        height: 100%;
    }
}
@media (max-width: 600px) {
    .pack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 5px;
        padding: 0 2px;
        width: 100%;
    }
    .pack-card {
        padding: 8px 2px 8px 2px;
        border-radius: 10px;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }
    .pack-img-main, .pack-img-placeholder {
        width: 70px;
        height: 70px;
        margin-top: 6px;
        margin-bottom: 4px;
    }
}
.pack-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    width: 100%;
}
.btn-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    background: linear-gradient(90deg, #23242a 60%, #181a20 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px #0006;
    transition: background .16s, box-shadow .16s, transform .1s, color .18s;
    text-decoration: none !important;
    line-height: 1;
}
.btn-icon:hover,
.btn-icon:focus {
    background: #fff !important;
    color: #181a20 !important;
    transform: scale(1.1);
    box-shadow: 0 4px 15px #000a;
    outline: none;
}
.btn-icon svg {
    display: block;
}
.add-to-cart-btn[disabled] svg circle {
    stroke: currentColor;
}
.add-to-cart-btn svg.icon-tabler-check {
    stroke: #4CAF50;
}
.add-to-cart-btn:hover svg.icon-tabler-check,
.add-to-cart-btn:focus svg.icon-tabler-check {
    stroke: #388E3C;
}
.header-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: pointer;
    box-sizing: content-box;
    transition: none;
    overflow: hidden;
}
.header-cart > svg,
.header-cart > lottie-player {
    display: block;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}
.pack-descuento {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: bold;
    text-align: center;
    margin-top: 4px;
}
.precio-con-descuento-inline {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.precio-original-tachado {
    text-decoration: line-through;
    color: #888;
    font-size: 0.85em;
}
.precio-descuento {
    color: #5FC855;
    font-weight: bold;
    font-size: 1em;
}
.search-spinner {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
}
.spinner {
    border: 4px solid #333;
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}

.pack-grid {
    display: grid;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}
.pack-card {
    max-width: 320px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    background: linear-gradient(145deg, #181a20 90%, #23242a 100%);
    border: 2px solid #32343c;
    border-radius: 16px;
    box-shadow: 0 6px 25px #0009, 0 1px 0 #23242a;
    padding: 20px 15px 18px 15px;
    box-sizing: border-box;
    position: relative;
    text-align: center;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    margin-bottom: 0;
    height: 100%;
}
.pack-card.mejor-oferta {
    border-color: #fc4;
    box-shadow: 0 0 20px #fc47, 0 6px 25px #0009;
}
.pack-card.mas-vendido {
    border-color: #3c4;
    box-shadow: 0 0 20px #3c47, 0 6px 25px #0009;
}
.pack-card:hover {
    transform: scale(1.03) rotate(-.5deg);
    box-shadow: 0 12px 40px #000b, 0 1px 0 #fff2;
    border-color: #999;
    z-index: 5;
}
.pack-card.mejor-oferta:hover {
    border-color: #fd5;
    box-shadow: 0 8px 30px #fc4a, 0 0 0 3px #fd53, 0 12px 40px #000b;
}
.pack-card.mas-vendido:hover {
    border-color: #4d5;
    box-shadow: 0 8px 30px #3c4a, 0 0 0 3px #4d53, 0 12px 40px #000b;
}
.pack-img-main,
.pack-img-placeholder {
    width: 140px;
    height: 140px;
    margin-bottom: 15px;
    margin-top: 40px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}
.pack-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border: 1px dashed #444;
    border-radius: 8px;
    font-size: .8em;
}
.pack-ogrinas {
    font-size: 1.6em;
    color: #fff;
    margin: 8px 0;
    text-shadow: 0 1px 8px #000a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-height: 2.5em;
    line-height: 1.1;
}
.pack-ogrinas .ogrinas-number {
    display: block;
    font-weight: 700;
    white-space: nowrap;
}
.pack-ogrinas .ogrinas-nombre {
    font-size: .65em;
    font-weight: 400;
    white-space: normal;
    display: block;
    max-width: 95%;
}
.pack-categoria {
    display: block;
    font-size: .7em;
    color: #999;
    margin-top: 4px;
    min-height: 1em;
    text-transform: uppercase;
    letter-spacing: .3px;
    font-weight: 300;
}
.pack-label-bar {
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    min-height: 34px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    z-index: 10;
    pointer-events: none;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 12px #0007;
    border-bottom: none;
    transition: box-shadow .18s, border-color .18s;
}
.pack-label-bar span {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1em;
    letter-spacing: .5px;
    margin: 0;
    padding: 8px 5px;
    background: #23242a;
    color: #fff;
    border: 2px solid #32343c;
    border-bottom: none;
    text-shadow: 0 1px 0 #0009;
    opacity: .98;
    pointer-events: auto;
    text-align: center;
    transition: background .18s, border-color .18s, color .18s;
}
.pack-card.mejor-oferta .pack-label-bar {
    box-shadow: 0 0 20px #fc47, 0 6px 25px #0009;
    border-color: #fc4;
}
.pack-card.mas-vendido .pack-label-bar {
    box-shadow: 0 0 20px #3c47, 0 6px 25px #0009;
    border-color: #3c4;
}
.pack-label-bar .mas-vendido {
    background: #303d30;
    border-color: transparent;
    color: #e0ffe0;
}
.pack-label-bar .mejor-oferta {
    background: #3a302a;
    border-color: transparent;
    color: #fff5e0;
}
.pack-precio {
    font-size: 1.1em;
    color: #fff;
    margin: 10px 0 8px 0;
    letter-spacing: .8px;
    text-shadow: 0 1px 0 #0005;
    font-weight: 400;
}
.pack-bonus {
    display: block;
    font-size: .9em;
    color: #8cf9dc;
    font-weight: 700;
    margin-top: 5px;
    text-shadow: 0 1px 0 #0008;
}
.pack-total {
    display: block;
    font-size: .95em;
    color: #bbb;
    margin-top: 6px;
    text-shadow: 0 1px 0 #fff1;
    font-weight: 400;
}
.pack-promocion {
    display: block;
    margin-top: 10px;
    background: #23242a;
    color: #fff;
    font-size: .85em;
    padding: 5px 8px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid #32343c;
    animation: promo-blink 1.1s linear infinite alternate;
    box-shadow: 0 1px 8px #0004;
}
@keyframes promo-blink {
    0% { opacity: 1; }
    100% { opacity: .81; }
}
.pack-spacer {
    display: block;
    flex-grow: 1;
}
@media (max-width: 900px) {
    .pack-img-main, .pack-img-placeholder {
        width: 100px;
        height: 100px;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .pack-card {
        padding: 16px 8px 15px 8px;
        border-radius: 12px;
    }
}
@media (max-width: 768px) {
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 2000;
        border-radius: 0;
    }
    html, body {
        padding-top: 58px;
    }
    .filtros-main {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 6px 0 6px;
        gap: 10px;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }
    .search-bar-container {
        margin-top: 0;
        margin-bottom: 8px;
    }
    .filtros-grid {
        flex-direction: column;
        gap: 6px;
        width: 100%;
        justify-content: flex-start;
    }
    .filtro-group {
        width: 100%;
    }
    .filtro-select {
        min-width: unset;
        width: 100%;
    }
    .filtro-btn {
        width: 100%;
        min-height: 44px;
        font-size: 1.05em;
        border-radius: 8px;
        background: transparent;
        border: 1.5px solid rgba(255,255,255,0.15);
    }
    .filtro-menu {
        max-height: 220px;
        border-radius: 8px;
    }
    .range-input {
        flex-direction: column;
        gap: 2px;
        width: 100%;
    }
    .range-input input {
        width: 100%;
        min-height: 40px;
        font-size: 1em;
        border-radius: 7px;
    }
    .filtros-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .filtros-results {
        text-align: center;
    }
    .categories-nav {
        gap: 12px;
    }
    .category-item {
        font-size: 14px;
        padding: 6px 8px;
    }
    .pack-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 10px;
        padding: 0 4px;
        width: 100%;
    }
    .pack-card {
        max-width: 100%;
        min-width: 0;
        margin: 0;
        border-radius: 12px;
        padding: 12px 5px 12px 5px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        height: 100%;
    }
}
@media (max-width: 600px) {
    .pack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 5px;
        padding: 0 2px;
        width: 100%;
    }
    .pack-card {
        padding: 8px 2px 8px 2px;
        border-radius: 10px;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }
    .pack-img-main, .pack-img-placeholder {
        width: 70px;
        height: 70px;
        margin-top: 6px;
        margin-bottom: 4px;
    }
}