* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Comfortaa', sans-serif; }
body { background: #07111f; color: #fff; }
body.index-page { padding-top: 70px; padding-bottom: 40px; }
body.product-page { padding-top: 90px; padding-bottom: 40px; }
body.random-gallery-page { padding-top: 90px; padding-bottom: 40px; }
body.quiniela-page { padding-top: 90px; padding-bottom: 40px; }
body.admin-page { padding: 90px 40px 40px; }
body.storeInfo-page { padding-top: 90px; padding-bottom: 40px; }
body.page-is-loading { overflow: hidden; }

/* LOADING OVERLAY */
.page-loading-overlay,
.loader-overlay { display: none; position: fixed; z-index: 9999; inset: 0; width: 100%; height: 100%; background: rgba(5,13,24,.92); flex-direction: column; justify-content: center; align-items: center; gap: 14px; color: white; text-align: center; }
.page-loading-overlay.active,
.loader-overlay.active { display: flex; }
.page-loading-gif { width: 128px; height: 128px; object-fit: contain; }
.page-loading-text { color: #d9e5f5; font-size: 22px; font-weight: 700; letter-spacing: 0; text-transform: lowercase; }

/* NAVEGACIÓN */
.navbar { position: fixed; top: 0; left: 0; width: 100%; height: 70px; background: #0b1729; border-bottom: 1px solid #1d314d; display: flex; align-items: center; padding: 0 30px; z-index: 1000; justify-content: space-between; }
.menu-toggle { width: 44px; height: 44px; border-radius: 12px; background: #07111f; border: 1px solid #1d314d; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: 0 0 44px; }
.menu-toggle span { width: 20px; height: 2px; border-radius: 999px; background: #d9e5f5; display: block; }
.nav-brand { display: flex; align-items: center; gap: 15px; }
.nav-home-link { color: inherit; text-decoration: none; min-width: 0; }
.nav-text-container { display: flex; align-items: left; gap: 20px; }
.nav-logo-picture { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.nav-logo { height: 55px; width: 55px; object-fit: contain; }
.nav-title { font-size: 20px; font-weight: 700; color: #2490ff; white-space: nowrap; }
.nav-slogan { margin: 0; color: white; font-weight: normal; }
.nav-social-link { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #07111f; border: 1px solid #1d314d; flex: 0 0 44px; overflow: hidden; }
.nav-social-icon { width: 24px !important; height: 24px !important; object-fit: contain; }

/* MENÚ LATERAL */
.side-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.62); z-index: 1090; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.side-menu { position: fixed; top: 0; left: 0; height: 100vh; width: min(330px, 86vw); background: #081426; border-right: 1px solid #1f3350; z-index: 1100; transform: translateX(-100%); transition: transform .24s ease; box-shadow: 16px 0 40px rgba(0,0,0,.45); padding: 22px; display: flex; flex-direction: column; }
.side-menu.open { transform: translateX(0); }
.side-menu-overlay.open { opacity: 1; pointer-events: auto; }
.side-menu-header { display: flex; align-items: center; justify-content: space-between; font-size: 20px; font-weight: 700; padding-bottom: 18px; border-bottom: 1px solid #1a2d46; }
.side-menu-close { width: 40px; height: 40px; border-radius: 10px; background: #142238; color: #d9e5f5; font-size: 28px; line-height: 1; border:none; cursor:pointer;}
.side-menu-links { display: grid; gap: 10px; padding-top: 18px; }
.side-menu-links a { color: #d9e5f5; text-decoration: none; background: #0a1728; border: 1px solid #1b2f49; border-radius: 12px; padding: 15px 16px; font-weight: 700; line-height: 1.25; }
.side-menu-links a:hover { border-color: #2490ff; background: #10233c; }

/* ACORDEÓN MENÚ */
.side-menu-accordion { width: 100%; }
.side-menu-accordion summary { cursor: pointer; padding: 15px 25px; color: #d9e5f5; font-size: 16px; font-weight: 600; border-bottom: 1px solid #1f3350; list-style: none; }
.side-menu-accordion summary::-webkit-details-marker { display: none; }
.accordion-content { background: #050d18; display: flex; flex-direction: column; }
.accordion-content a { padding: 12px 25px 12px 45px !important; font-size: 14px !important; color: #9eb1ca !important; border-bottom: 1px solid #0a1728 !important; margin-top:3px; }
.menu-icon-link { display: flex !important; align-items: center; gap: 12px; }
.menu-icon { width: 24px; height: 24px; object-fit: contain; }

/* BOTONES */
button { border: none; cursor: pointer; transition: .2s ease; }
button:disabled { opacity: .55; cursor: not-allowed; }
.primary-btn, .add-btn { background: #2490ff; color: white; padding: 14px 22px; border-radius: 12px; font-weight: 700; }
.secondary-btn { background: #142238; color: white; padding: 14px 22px; border-radius: 12px; font-weight: 600; border: 1px solid #23344f; }
.danger-btn { background: #d64545; color: white; padding: 14px 24px; border-radius: 14px; font-weight: 700; }
.warning-btn { background: #f1a733; color: #081426; padding: 14px 24px; border-radius: 14px; font-weight: 700; }
.cancel-btn { background: transparent; color: #d2dbea; padding: 14px 20px; font-weight: 600; }
.ws-icon-btn { background: #25d366; color: white; display: flex; align-items: center; justify-content: center; width: 45px; border-radius: 12px; }
.ws-btn-image img { width: 100%; max-width: 220px; transition: transform 0.2s ease; }

/* CONTENEDOR Y FILTROS */
.container { padding: 0 20px; max-width: 1200px; margin: 0 auto; }
.home-search-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 22px; padding: 16px; background: #081426; border: 1px solid #1f3350; border-radius: 16px; }
.home-search-field { min-width: 0; }
.home-search-btn { min-height: 47px; white-space: nowrap; }
.catalog-controls { margin-bottom: 24px; }
.catalog-search-row { display: flex; flex-wrap: nowrap; gap: 12px; align-items: end; }
.catalog-search-field { flex: 1 1 auto; min-width: 0; }
.filter-toggle-btn { flex: 0 0 45px; width: 45px; height: 45px; min-height: 45px; padding: 0; border-radius: 12px; }
.secondary-btn.filter-toggle-btn { margin: 0; }
.filter-icon { width: 22px; display: inline-flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.filter-icon span { display: block; height: 2px; border-radius: 999px; background: #d9e5f5; }
.filter-icon span:nth-child(1) { width: 22px; }
.filter-icon span:nth-child(2) { width: 16px; }
.filter-icon span:nth-child(3) { width: 10px; }
.filter-toggle-btn[aria-expanded="true"] .filter-icon span { background: #2490ff; }
.advanced-filters { margin-top: 14px; background: #0b1729; border: 1px solid #1d314d; border-radius: 16px; padding: 18px; }
.advanced-filters[hidden] { display: none !important; }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; align-items: end; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 14px; color: #d9e5f5; font-weight: 600; }
input, select, textarea { background: #07101d; border: 1px solid #203552; color: white; padding: 14px 16px; border-radius: 14px; outline: none; width: 100%; }
.sticky-header { position: sticky; top: 70px; z-index: 99; background: #050d18; padding-top: 15px; margin-bottom: 10px; }
.home-message-group { text-align: center; padding: 10px; }
.home-message-group h2 { font-size: 24px; color: #d9e5f5; }
.home-message-group label2 { font-size: 24px; color: #2490ff; font-weight: 600; }
.sticky-subtitle-stack { position: relative; min-height: 32px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sticky-subtitle { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #2490ff; font-size: 24px; font-weight: 600; line-height: 1.2; text-align: center; transition: opacity .26s ease, transform .26s ease; }
.sticky-address { opacity: 1; transform: translateY(0); }
.sticky-category { opacity: 0; transform: translateY(10px); }
.sticky-header.show-category-title .sticky-address { opacity: 0; transform: translateY(-10px); }
.sticky-header.show-category-title .sticky-category { opacity: 1; transform: translateY(0); }

/* PIE DE PÁGINA */
.site-footer { margin: 44px auto 0; padding: 24px 20px 32px; border-top: 1px solid #1d314d; background: #050d18; color: #d9e5f5; display: flex; justify-content: center; align-items: center; }
.site-footer-content { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; line-height: 1.2; }
.guatemala-flag { width: 34px; height: 22px; display: grid; grid-template-columns: 1fr 1fr 1fr; overflow: hidden; border: 1px solid rgba(217,229,245,.65); border-radius: 3px; box-shadow: 0 4px 12px rgba(0,0,0,.24); flex: 0 0 auto; }
.guatemala-flag span:nth-child(1),
.guatemala-flag span:nth-child(3) { background: #4997d0; }
.guatemala-flag span:nth-child(2) { background: #f7fbff; }

/* CINTILLO MARQUEE */
.slider-container { width: 100%; overflow: hidden; padding: 10px 0 25px 0; }
.slider-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.slider-track:hover { animation-play-state: paused; }
.slider-group { display: flex; gap: 20px; padding-right: 20px; }
.slider-group img { width: 180px; height: 140px; object-fit: cover; border-radius: 12px; border: 1px solid #1b2f49; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* TARJETAS DE CATEGORÍA */
.category-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 40px; }
.cat-card { position: relative; height: 160px; border-radius: 18px; overflow: hidden; cursor: pointer; background-size: cover; background-position: center; border: 1px solid #1b2f49; transition: transform 0.2s ease; }
.cat-card:hover { transform: translateY(-5px); border-color: #2490ff; }
.cat-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 100%); }
.cat-card h3 { position: absolute; bottom: 20px; left: 20px; color: #fff; font-size: 22px; font-weight: 700; z-index: 2; margin: 0; }
.active-category-header { display: grid; grid-template-columns: 45px minmax(0, 1fr) 45px; align-items: center; gap: 12px; margin-bottom: 20px; }
#currentCategoryTitle { width: 100%; margin: 0; color: #2490ff; text-align: center; justify-self: center; min-width: 0; line-height: 1.2; overflow-wrap: break-word; }
.category-back-btn { width: 45px; height: 45px; min-height: 45px; padding: 0; justify-self: start; }
.secondary-btn.category-back-btn { margin: 0; padding: 0; }
.category-header-spacer { width: 45px; height: 45px; }

/* GRILLA INVENTARIO */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.catalog-state { grid-column: 1 / -1; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; color: #d9e5f5; background: #081426; border: 1px solid #1b2f49; border-radius: 18px; padding: 30px; }
.catalog-state img { width: min(180px, 56vw); height: auto; object-fit: contain; }
.catalog-state.empty img { width: min(360px, 78vw); border-radius: 12px; }
.catalog-state p { font-size: 18px; font-weight: 700; line-height: 1.35; }
.card { background: #081426; border: 1px solid #1b2f49; border-radius: 24px; overflow: hidden; position: relative; display: flex; flex-direction: column; transition: .2s; }
.card:hover { transform: translateY(-5px); }
.card-image-container { position: relative; width: 100%; height: 300px; background: #0a1728; }
.card-image { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px; flex-grow: 1; display: flex; flex-direction: column; }
.badge { position: absolute; top: 14px; padding: 8px 14px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.badge-type { right: 14px; background: rgba(35, 47, 67, 0.85); color: white; }
.price { font-size: 20px; font-weight: 700; margin: 10px 0; color: #d9e5f5; }

/* MODAL Y ADMIN */
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); justify-content: center; align-items: center; padding: 20px; overflow: auto; }
.modal-content { background: #081426; width: 100%; max-width: 950px; border-radius: 22px; border: 1px solid #1f3350; padding: 28px; position: relative; max-height: 95vh; overflow: auto; }
.close { position: absolute; right: 25px; top: 20px; color: #8aa4c7; font-size: 28px; cursor: pointer; z-index: 10; }
.upload-box { border: 2px dashed #274160; border-radius: 18px; min-height: 230px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 20px; background: #0a1728; cursor: pointer; transition: .2s; overflow: hidden; }
.upload-box.dragover { border-color: #2490ff; background: #10233c; }
.preview-img { width: 100%; max-height: 230px; object-fit: cover; border-radius: 14px; margin-top: 10px; }
.existing-images { display: flex; flex-wrap: wrap; gap: 10px; background: #0a1728; border: 1px solid #1b2f49; border-radius: 14px; padding: 12px; }
.existing-images img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid #1f3350; background: #07111f; }
.hidden { display: none !important; }
.spinner { width: 60px; height: 60px; border: 6px solid #1f3350; border-top-color: #2490ff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.top-buttons { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-title { color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 18px; padding-right: 36px; }
.helper-text,
.status-text { color: #9eb1ca; font-size: 14px; font-weight: 700; line-height: 1.45; margin-bottom: 14px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.checkbox-row input,
.category-checkbox input { width: 18px; height: 18px; padding: 0; flex: 0 0 auto; accent-color: #2490ff; }
.product-category-picker { grid-column: 1 / -1; }
.category-checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.category-checkbox { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; color: #d9e5f5; background: #07101d; border: 1px solid #203552; border-radius: 12px; font-size: 13px; line-height: 1.2; cursor: pointer; }
.category-checkbox:has(input:checked) { border-color: #2490ff; background: #10233c; }
.admin-inline-panel { margin-top: 18px; padding: 16px; background: #0a1728; border: 1px solid #1b2f49; border-radius: 16px; }
.admin-inline-panel h3 { color: #fff; font-size: 18px; line-height: 1.25; margin-bottom: 8px; }
.admin-inline-panel p { color: #9eb1ca; font-size: 13px; font-weight: 700; line-height: 1.45; margin-bottom: 14px; }
.sku-summary { margin-top: 4px; }
.small-modal { max-width: 520px; }

/* RESPONSIVE */
@media (max-width: 850px) {
  .form-grid, .two-cols { grid-template-columns: 1fr; }
  .category-checkbox-grid { grid-template-columns: 1fr; }
  .filters-grid { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } 
  .card-image-container { height: 200px; } 
  .slider-group img { width: 120px; height: 90px; }
  .nav-slogan { display: none; }
  .category-cards-grid { grid-template-columns: 1fr 1fr; }
  .home-search-panel { grid-template-columns: 1fr; }
  .home-search-btn { width: 100%; }
}

@media (max-width: 768px) {
  body.index-page { padding-top: 64px; }
  body.product-page { padding-top: 82px; }
  body.random-gallery-page { padding-top: 82px; }
  .navbar { height: 64px; padding: 6px 14px; gap: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .menu-toggle { width: 40px; height: 40px; justify-self: start; }
  .nav-brand { justify-self: center; gap: 0; min-width: 0; }
  .nav-text-container { display: none; }
  .nav-logo { width: 78px; height: 52px; object-fit: contain; }
  .nav-social-link { width: 40px; height: 40px; justify-self: end; }
  .cat-card { height: 120px; }
  .cat-card h3 { font-size: 16px; bottom: 12px; left: 12px; }
  .sticky-header { top: 64px; }
  .home-message-group h2 { font-size: 16px; line-height: 1.25; }
  .sticky-subtitle-stack { min-height: 26px; }
  .sticky-subtitle { font-size: 16px; }
  .site-footer { margin-top: 34px; padding-bottom: 26px; }
}

/* LOADER START*/
.catalog-loader-wrapper {width: 100%;  min-height: 220px;  display: flex;  align-items: center;  justify-content: center;}
.loader {  height: 60px;  aspect-ratio: 2;  border-bottom: 3px solid #524656;  position: relative;  overflow: hidden;}
.loader:before {  content: "";  position: absolute;  inset: auto 42.5% 0;  aspect-ratio: 1;  border-radius: 50%;  background: #CF4647;  animation: l1-0 .5s cubic-bezier(0,900,1,900) infinite, l1-1 2s linear infinite;}

@keyframes l1-0 {0%,2% { bottom: 0%; }98%,to { bottom: .1%; }}
@keyframes l1-1 {0% { translate: -500%; }to { translate: 500%; }}
/* LOADER END*/

.secondary-btn { display: inline-flex; align-items: center; justify-content: center; margin: 15px; }
.secondary-btn.filter-toggle-btn { flex: 0 0 45px; width: 45px; height: 45px; margin: 0; padding: 0; }
.btn-icon {width: 40px; height: 20px; object-fit: contain;}
#prevPageBtn .btn-icon {transform: rotate(180deg);}
.back-icon { transform: rotate(180deg); }
.pagination-controls { align-items: center; justify-content: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.pagination-nav { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.pagination-controls .secondary-btn { width: 54px; height: 45px; min-height: 45px; margin: 0; padding: 0; }
#pageIndicator { min-width: 72px; color: #d9e5f5; font-weight: 700; text-align: center; }
.pagination-summary { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 8px 6px 16px; background: rgba(8, 20, 38, .88); border: 1px solid #1f3350; border-radius: 12px; color: #d9e5f5; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
#paginationSummary { font-size: 14px; font-weight: 700; white-space: nowrap; }
.pagination-show-all-btn { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; padding: 0 13px; background: #2490ff; color: white; font-size: 13px; font-weight: 800; white-space: nowrap; }
.pagination-show-all-btn:hover { background: #3ca0ff; transform: translateY(-1px); }
.pagination-controls.is-expanded .pagination-summary { padding-right: 16px; }

/* GALERÍA RANDOM */
.random-gallery-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.random-gallery-shell { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); grid-template-areas: "stage info" "strip strip"; gap: 18px; align-items: stretch; }
.random-gallery-stage { grid-area: stage; min-height: 620px; position: relative; display: flex; align-items: center; justify-content: center; background: #050d18; border: 1px solid #1f3350; border-radius: 18px; overflow: hidden; }
.random-main-image-frame { width: 100%; height: 100%; min-height: 620px; display: flex; align-items: center; justify-content: center; padding: 24px; }
.random-main-image-frame img { width: 100%; height: 100%; max-height: 600px; object-fit: contain; opacity: 0; transform: scale(.985); transition: opacity .22s ease, transform .22s ease; }
.random-main-image-frame img.is-loaded { opacity: 1; transform: scale(1); }
.random-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 14px; background: rgba(20,34,56,.88); border: 1px solid #23344f; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.random-gallery-arrow:hover { background: #1b3150; border-color: #2490ff; }
.random-gallery-arrow img { width: 34px; height: 18px; object-fit: contain; }
.random-gallery-prev { left: 18px; }
.random-gallery-prev img { transform: rotate(180deg); }
.random-gallery-next { right: 18px; }
.random-info-panel { grid-area: info; background: #081426; border: 1px solid #1f3350; border-radius: 18px; padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 18px; min-width: 0; }
.random-counter { color: #9eb1ca; font-size: 13px; font-weight: 800; }
.random-info-panel h1 { color: #fff; font-size: 34px; line-height: 1.1; overflow-wrap: anywhere; }
.random-price { color: #2490ff; font-size: 30px; font-weight: 800; line-height: 1.2; }
.random-quick-details { display: grid; gap: 10px; }
.random-quick-details div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #172a43; }
.random-quick-details dt { color: #9eb1ca; font-size: 13px; font-weight: 800; }
.random-quick-details dd { color: #d9e5f5; font-size: 15px; margin: 0; overflow-wrap: anywhere; }
.random-whatsapp-btn { width: fit-content; margin-top: 4px; }
.random-thumb-strip { grid-area: strip; display: flex; gap: 10px; overflow-x: auto; padding: 12px; background: #081426; border: 1px solid #1f3350; border-radius: 16px; scroll-snap-type: x proximity; }
.random-thumb { width: 82px; height: 82px; flex: 0 0 82px; border-radius: 10px; border: 2px solid #1f3350; background: #050d18; overflow: hidden; scroll-snap-align: center; opacity: .72; }
.random-thumb:hover,
.random-thumb.active { opacity: 1; border-color: #2490ff; transform: translateY(-2px); }
.random-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* PRODUCT DETAIL PAGE */
.product-page-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.product-page-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 20px; }
.product-page-actions .secondary-btn { min-height: 45px; margin: 0; padding: 0 14px; text-align: center; text-decoration: none; white-space: nowrap; }
.product-back-btn { gap: 8px; }
.product-back-icon { width: 28px; height: 16px; object-fit: contain; transform: rotate(180deg); flex: 0 0 auto; }
.product-gallery-shell { margin-top: 0; }
.product-main-gallery-layout { width: 100%; height: 100%; min-height: 620px; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: stretch; }
.product-image-strip { position: relative; z-index: 4; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 16px 10px 16px 16px; background: rgba(8,20,38,.74); border-right: 1px solid #1f3350; }
.product-image-thumb { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 10px; border: 2px solid #1f3350; background: #050d18; overflow: hidden; opacity: .72; }
.product-image-thumb:hover,
.product-image-thumb.active { opacity: 1; border-color: #2490ff; transform: translateY(-1px); }
.product-image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-main-gallery-frame { min-height: 620px; padding: 24px 76px 24px 18px; }
.product-gallery-stage .random-gallery-prev { left: 112px; }
.product-stage-arrow.is-disabled { opacity: .35; pointer-events: none; }
.product-info-panel-v2 { justify-content: flex-start; }
.product-gallery-price-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.product-full-details { gap: 8px; }
.product-gallery-notes { margin-bottom: 0; }
.product-context-strip { grid-area: strip; display: flex; gap: 10px; overflow-x: auto; padding: 12px; background: #081426; border: 1px solid #1f3350; border-radius: 16px; scroll-snap-type: x proximity; }
.product-context-thumb { width: 94px; height: 106px; flex: 0 0 94px; padding: 5px; display: flex; flex-direction: column; gap: 6px; color: #d9e5f5; text-decoration: none; background: #050d18; border: 2px solid #1f3350; border-radius: 10px; opacity: .72; overflow: hidden; scroll-snap-align: center; }
.product-context-thumb:hover,
.product-context-thumb.active { opacity: 1; border-color: #2490ff; transform: translateY(-2px); }
.product-context-thumb img { width: 100%; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
.product-context-thumb span { font-size: 10px; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 28px; align-items: start; }
.product-gallery-panel,
.product-info-panel { background: #081426; border: 1px solid #1f3350; border-radius: 18px; overflow: hidden; }
.product-main-image-frame { min-height: 520px; background: #050d18; display: flex; align-items: center; justify-content: center; }
.product-main-image-frame img { width: 100%; max-height: 540px; object-fit: contain; padding: 20px; }
.product-thumbnails { display: flex; gap: 12px; overflow-x: auto; padding: 16px; background: #07111f; border-top: 1px solid #1a2d46; }
.product-thumbnails.is-hidden { display: none; }
.product-thumb { width: 76px; height: 76px; object-fit: contain; border: 2px solid #1f3350; border-radius: 8px; cursor: pointer; background: #050d18; flex: 0 0 76px; }
.product-thumb.active { border-color: #2490ff; }
.product-info-panel { padding: 30px; }
.product-page-sku { color: #9eb1ca; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.product-heading-row { margin-bottom: 14px; }
.product-info-panel h1 { color: #fff; font-size: 30px; line-height: 1.18; margin-bottom: 0; min-width: 0; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.product-page-price { color: #2490ff; font-size: 30px; font-weight: 700; min-width: 0; margin-bottom: 0; overflow-wrap: anywhere; }
.product-detail-list { display: grid; gap: 10px; margin: 0 0 22px; }
.product-detail-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid #172a43; }
.product-detail-row dt { color: #9eb1ca; font-size: 13px; font-weight: 700; }
.product-detail-row dd { color: #d9e5f5; font-size: 15px; margin: 0; overflow-wrap: anywhere; }
.product-notes { background: #0a1728; border: 1px solid #1b2f49; border-radius: 12px; padding: 16px; margin-bottom: 22px; }
.product-notes h2 { color: #d9e5f5; font-size: 15px; margin-bottom: 8px; }
.product-notes p { color: #9eb1ca; font-size: 14px; line-height: 1.55; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ws-detail-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #07111f; background: #25d366; border-radius: 12px; padding: 13px 18px; font-weight: 700; }
.ws-detail-btn img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.product-consult-btn { flex: 0 0 auto; padding: 11px 14px; white-space: nowrap; }
.product-sibling-nav { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 12px; }
.product-sibling-btn { min-height: 64px; padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; gap: 5px; color: #d9e5f5; text-decoration: none; background: #0a1728; border: 1px solid #1f3350; border-radius: 12px; transition: transform .2s ease, border-color .2s ease, background .2s ease; min-width: 0; }
.product-sibling-btn:hover { transform: translateY(-2px); border-color: #2490ff; background: #10233c; }
.product-sibling-btn span { color: #9eb1ca; font-size: 12px; font-weight: 700; }
.product-sibling-btn strong { font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-sibling-btn.is-prev { text-align: left; align-items: flex-start; }
.product-sibling-btn.is-next { text-align: right; align-items: flex-end; }
.product-sibling-btn.is-disabled { opacity: .45; pointer-events: none; }
.product-sibling-count { min-width: 74px; display: inline-flex; align-items: center; justify-content: center; color: #9eb1ca; font-size: 13px; font-weight: 800; }
.product-swipe-hint { display: none; }

/* QUINIELA CAS */
.quiniela-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.quiniela-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr); gap: 18px; align-items: end; margin-bottom: 18px; }
.quiniela-title-block { min-width: 0; }
.quiniela-kicker { display: inline-flex; align-items: center; width: fit-content; min-height: 28px; padding: 0 10px; margin-bottom: 8px; color: #07111f; background: #d9e5f5; border-radius: 8px; font-size: 12px; font-weight: 800; }
.quiniela-title-block h1 { color: #fff; font-size: 42px; line-height: 1.05; letter-spacing: 0; }
.quiniela-score-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 10px; background: #081426; border: 1px solid #1f3350; border-radius: 16px; }
.quiniela-score-strip div { min-height: 78px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; background: #0a1728; border: 1px solid #172a43; border-radius: 10px; text-align: center; min-width: 0; }
.quiniela-score-strip span { color: #2490ff; font-size: 23px; font-weight: 800; line-height: 1; }
.quiniela-score-strip small { color: #9eb1ca; font-size: 11px; font-weight: 800; line-height: 1.2; }
.quiniela-player-panel { display: grid; grid-template-columns: minmax(220px, .35fr) minmax(0, 1fr); gap: 14px; align-items: end; margin-bottom: 16px; padding: 16px; background: #081426; border: 1px solid #1f3350; border-radius: 16px; }
.quiniela-name-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.quiniela-name-form .primary-btn { min-height: 47px; white-space: nowrap; }
.quiniela-login-panel { align-items: center; }
.quiniela-login-panel p { margin-top: 8px; color: #9eb1ca; font-size: 14px; font-weight: 700; line-height: 1.4; }
.quiniela-login-panel .primary-btn { min-height: 47px; white-space: nowrap; }
.quiniela-auth-panel { grid-template-columns: minmax(220px, .32fr) minmax(0, 1fr); align-items: start; }
.quiniela-auth-intro { min-width: 0; }
.quiniela-auth-forms { display: grid; grid-template-columns: minmax(0, 460px); gap: 12px; align-items: start; }
.quiniela-auth-form { display: grid; gap: 12px; min-width: 0; padding: 14px; background: #07111f; border: 1px solid #172a43; border-radius: 12px; }
.quiniela-auth-form h3 { color: #fff; font-size: 16px; line-height: 1.25; }
.quiniela-auth-form .primary-btn { width: 100%; min-height: 44px; }
.quiniela-link-btn { width: fit-content; padding: 0; color: #9eb1ca; background: transparent; font-size: 12px; font-weight: 900; text-align: left; }
.quiniela-link-btn:hover { color: #2490ff; }
.quiniela-auth-switch { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: #9eb1ca; font-size: 12px; font-weight: 800; line-height: 1.35; }
.quiniela-auth-switch .quiniela-link-btn { color: #2490ff; font-size: 12px; }
.quiniela-auth-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.quiniela-auth-user img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; border: 1px solid #23344f; background: #07111f; flex: 0 0 auto; }
.quiniela-auth-user div { display: grid; gap: 5px; min-width: 0; }
.quiniela-auth-user strong { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiniela-auth-user span { width: fit-content; color: #07111f; background: #d9e5f5; border-radius: 7px; padding: 5px 8px; font-size: 11px; font-weight: 900; }
.quiniela-verify-panel { align-items: center; }
.quiniela-verify-actions { display: grid; gap: 12px; min-width: 0; }
.quiniela-verify-actions p { color: #9eb1ca; font-size: 13px; font-weight: 700; line-height: 1.45; }
.quiniela-verify-actions div { display: flex; gap: 10px; flex-wrap: wrap; }
.quiniela-compact-secondary { min-height: 44px; margin: 0; white-space: nowrap; }
.quiniela-signout-btn { width: fit-content; min-height: 36px; margin: 2px 0 0; padding: 0 12px; white-space: nowrap; }
.quiniela-play-content { display: grid; gap: 18px; }
.quiniela-play-content .quiniela-player-panel { margin-bottom: 0; padding: 0 0 18px; background: transparent; border: 0; border-bottom: 1px solid #1f3350; border-radius: 0; }
.quiniela-play-save-sticky { display: flex; justify-content: flex-end; margin: -4px 0 16px; }
.quiniela-play-save-sticky .primary-btn { min-height: 44px; padding: 0 18px; }
.quiniela-tabs { display: inline-flex; gap: 8px; max-width: 100%; padding: 6px; margin-bottom: 16px; background: #081426; border: 1px solid #1f3350; border-radius: 14px; overflow-x: auto; }
.quiniela-tab { min-height: 42px; padding: 0 16px; border-radius: 10px; background: transparent; color: #9eb1ca; font-weight: 800; white-space: nowrap; }
.quiniela-tab.active { background: #2490ff; color: #fff; }
.quiniela-notice { display: none; margin-bottom: 14px; padding: 12px 14px; color: #d9e5f5; background: rgba(37, 211, 102, .12); border: 1px solid rgba(37, 211, 102, .45); border-radius: 12px; font-size: 14px; font-weight: 800; }
.quiniela-notice.active { display: block; }
.quiniela-panel { background: #081426; border: 1px solid #1f3350; border-radius: 18px; padding: 18px; }
.quiniela-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.quiniela-panel-header h2 { color: #fff; font-size: 24px; line-height: 1.2; }
.quiniela-panel-header p { margin-top: 6px; color: #9eb1ca; font-size: 13px; font-weight: 700; line-height: 1.35; }
.quiniela-panel-header .primary-btn { min-height: 44px; padding: 0 18px; white-space: nowrap; }
.quiniela-instructions { display: grid; gap: 16px; }
.quiniela-instruction-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quiniela-instruction-card { min-height: 176px; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #0a1728; border: 1px solid #1b2f49; border-radius: 12px; }
.quiniela-instruction-card strong { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #07111f; background: #d9e5f5; border-radius: 9px; font-size: 16px; font-weight: 900; }
.quiniela-instruction-card h3,
.quiniela-rules h3 { color: #fff; font-size: 16px; line-height: 1.25; }
.quiniela-instruction-card p { color: #9eb1ca; font-size: 13px; font-weight: 700; line-height: 1.45; }
.quiniela-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quiniela-rules div { padding: 16px; background: #07111f; border: 1px solid #172a43; border-radius: 12px; }
.quiniela-rules ul { display: grid; gap: 9px; margin-top: 12px; padding-left: 18px; color: #9eb1ca; font-size: 13px; font-weight: 700; line-height: 1.45; }
.quiniela-rules li::marker { color: #2490ff; }
.quiniela-rules strong { color: #d9e5f5; }
.quiniela-groups { display: grid; gap: 12px; }
.quiniela-group { background: #0a1728; border: 1px solid #1b2f49; border-radius: 14px; overflow: hidden; }
.quiniela-group[data-prediction-group-current="true"] { scroll-margin-top: 24px; }
.quiniela-group[open] { border-color: #2490ff; }
.quiniela-group summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 16px; color: #d9e5f5; cursor: pointer; list-style: none; }
.quiniela-group summary::-webkit-details-marker { display: none; }
.quiniela-group summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid #9eb1ca; border-bottom: 2px solid #9eb1ca; transform: rotate(45deg); transition: transform .18s ease; flex: 0 0 auto; }
.quiniela-group[open] summary::after { transform: rotate(225deg); }
.quiniela-group summary span { color: #fff; font-size: 16px; font-weight: 900; }
.quiniela-group summary strong { margin-left: auto; color: #2490ff; font-size: 13px; font-weight: 900; white-space: nowrap; }
.quiniela-group .quiniela-match-list { padding: 0 12px 12px; }
.quiniela-match-list { display: grid; gap: 12px; }
.quiniela-match-card { display: grid; grid-template-columns: minmax(170px, .32fr) minmax(0, 1fr); gap: 14px; align-items: center; min-height: 118px; padding: 14px; background: #07111f; border: 1px solid #172a43; border-radius: 12px; }
.quiniela-match-meta { display: grid; gap: 6px; align-content: center; min-width: 0; }
.quiniela-match-meta span { width: fit-content; max-width: 100%; padding: 6px 8px; color: #d9e5f5; background: #142238; border: 1px solid #23344f; border-radius: 8px; font-size: 11px; font-weight: 800; line-height: 1.1; }
.quiniela-match-meta strong { color: #9eb1ca; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.quiniela-fixture { display: grid; grid-template-columns: minmax(0, 1fr) 58px 32px 58px minmax(0, 1fr); gap: 10px; align-items: center; }
.quiniela-fixture span { color: #fff; font-size: 15px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.quiniela-fixture span:first-child { text-align: right; }
.quiniela-fixture span:last-child { text-align: left; }
.quiniela-fixture b { color: #9eb1ca; font-size: 12px; text-align: center; }
.quiniela-fixture input { height: 48px; padding: 0 8px; border-radius: 10px; text-align: center; font-size: 18px; font-weight: 800; }
.quiniela-score-input { text-align: center; font-variant-numeric: tabular-nums; }
.quiniela-match-footer { grid-column: 2; display: flex; justify-content: space-between; gap: 12px; color: #9eb1ca; font-size: 12px; font-weight: 700; }
.quiniela-match-footer strong { color: #2490ff; white-space: nowrap; }
.quiniela-final-check { grid-column: 2; width: fit-content; display: inline-flex; align-items: center; gap: 8px; color: #d9e5f5; font-size: 13px; font-weight: 800; }
.quiniela-final-check input { width: 18px; height: 18px; padding: 0; }
.quiniela-prediction-card { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
.quiniela-prediction-meta { color: #9eb1ca; font-size: 12px; font-weight: 900; line-height: 1.25; text-align: center; }
.quiniela-prediction-fixture { display: grid; grid-template-columns: minmax(92px, 1fr) 58px 34px 58px minmax(92px, 1fr); gap: 10px; align-items: center; }
.quiniela-team-block { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.quiniela-team-flag { width: 46px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #d9e5f5; background: #0a1728; border: 1px solid #23344f; border-radius: 8px; font-size: 24px; line-height: 1; }
.quiniela-team-flag.is-placeholder { color: #9eb1ca; font-size: 11px; font-weight: 900; letter-spacing: 0; }
.quiniela-team-block strong { color: #fff; font-size: 13px; font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; }
.quiniela-prediction-fixture b { color: #9eb1ca; font-size: 12px; font-weight: 900; text-align: center; }
.quiniela-prediction-box { width: 58px; height: 52px; justify-self: center; padding: 0; border-radius: 8px; font-size: 20px; text-align: center; }
.quiniela-prediction-box:disabled { color: #7f91aa; background: #111c2b; border-color: #1b2f49; }
.quiniela-prediction-footer { min-height: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.quiniela-prediction-status { color: #2490ff; font-size: 13px; font-weight: 900; line-height: 1.3; text-align: center; text-transform: lowercase; }
.quiniela-prediction-footer .quiniela-prediction-status { grid-column: 2; }
.quiniela-prediction-points { grid-column: 3; justify-self: end; min-height: 26px; display: inline-flex; align-items: center; padding: 0 9px; color: #07111f; background: #f3c44e; border: 1px solid rgba(255, 230, 146, .85); border-radius: 8px; font-size: 12px; font-weight: 950; line-height: 1; white-space: nowrap; box-shadow: 0 8px 18px rgba(0,0,0,.28); }
.quiniela-result-footer { min-height: 28px; display: flex; justify-content: center; }
.result-card.quiniela-prediction-card .quiniela-final-check { grid-column: auto; width: auto; justify-self: center; }
.quiniela-admin-badge { width: fit-content; margin: -4px 0 14px; padding: 8px 10px; color: #07111f; background: #d9e5f5; border-radius: 8px; font-size: 12px; font-weight: 900; }
.quiniela-save-bar { position: sticky; bottom: 10px; z-index: 30; display: flex; justify-content: flex-end; margin-top: 14px; padding: 10px; background: rgba(5,13,24,.9); border: 1px solid #1f3350; border-radius: 14px; box-shadow: 0 16px 34px rgba(0,0,0,.38); backdrop-filter: blur(10px); }
.quiniela-save-bar .primary-btn { min-height: 44px; padding: 0 18px; }
.quiniela-ranking { display: grid; gap: 10px; }
.quiniela-ranking-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; background: #0a1728; border: 1px solid #1b2f49; border-radius: 14px; }
.quiniela-ranking-row.top-rank { border-color: rgba(36,144,255,.78); background: linear-gradient(135deg, #0a1728, #10233c); }
.quiniela-rank-number { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; color: #07111f; background: #d9e5f5; border-radius: 10px; font-weight: 900; }
.quiniela-rank-person { display: grid; min-width: 0; }
.quiniela-rank-person strong { color: #fff; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiniela-rank-stats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.quiniela-rank-stats span { min-width: 72px; min-height: 44px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 10px; color: #2490ff; background: #07111f; border: 1px solid #172a43; border-radius: 10px; font-size: 18px; font-weight: 900; }
.quiniela-rank-stats small { color: #9eb1ca; font-size: 10px; font-weight: 800; }

@media (max-width: 850px) {
  .random-gallery-container { width: min(100% - 24px, 1180px); }
  .random-gallery-shell { grid-template-columns: 1fr; grid-template-areas: "stage" "info" "strip"; gap: 12px; }
  .random-gallery-stage,
  .random-main-image-frame { min-height: 430px; }
  .random-main-image-frame { padding: 16px; }
  .random-main-image-frame img { max-height: 410px; }
  .random-info-panel { padding: 20px; gap: 14px; }
  .random-info-panel h1 { font-size: 26px; }
  .random-price { font-size: 25px; }
  .random-gallery-arrow { width: 44px; height: 44px; border-radius: 12px; }
  .random-gallery-prev { left: 10px; }
  .random-gallery-next { right: 10px; }
  .random-thumb { width: 70px; height: 70px; flex-basis: 70px; }
  .product-main-gallery-layout { min-height: 430px; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .product-main-gallery-frame { min-height: 350px; padding: 16px 62px; }
  .product-image-strip { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 10px; border-right: 0; border-top: 1px solid #1f3350; }
  .product-image-thumb { width: 60px; height: 60px; flex-basis: 60px; }
  .product-gallery-stage .random-gallery-prev { left: 10px; }
  .product-context-thumb { width: 78px; height: 92px; flex-basis: 78px; }
  .product-context-thumb img { height: 58px; }
  .product-detail { grid-template-columns: 1fr; }
  .product-main-image-frame { min-height: 360px; }
  .product-info-panel h1 { font-size: 24px; }
  .product-page-price { font-size: 26px; }
  .product-sibling-nav { position: sticky; bottom: 10px; z-index: 40; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 8px; background: rgba(5,13,24,.9); border: 1px solid #1f3350; border-radius: 14px; box-shadow: 0 16px 34px rgba(0,0,0,.38); backdrop-filter: blur(10px); }
  .product-sibling-count { display: none; }
  .product-sibling-btn { min-height: 54px; padding: 10px 12px; }
  .product-sibling-btn span { font-size: 11px; }
  .product-sibling-btn strong { font-size: 12px; }
  .product-swipe-hint { display: block; margin: 10px 0 0; text-align: center; color: #9eb1ca; font-size: 12px; font-weight: 700; }
  .quiniela-container { width: min(100% - 24px, 1180px); }
  .quiniela-top,
  .quiniela-player-panel,
  .quiniela-match-card { grid-template-columns: 1fr; }
  .quiniela-title-block h1 { font-size: 34px; }
  .quiniela-auth-panel,
  .quiniela-auth-forms { grid-template-columns: 1fr; }
  .quiniela-instruction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiniela-match-footer,
  .quiniela-final-check { grid-column: auto; }
}

@media (max-width: 520px) {
  body.quiniela-page { --quiniela-tabs-top: 119px; --quiniela-save-top: 171px; --quiniela-group-scroll-margin: 216px; }
  body.quiniela-page.quiniela-scrolled { --quiniela-tabs-top: 106px; --quiniela-save-top: 158px; --quiniela-group-scroll-margin: 203px; }
  body.random-gallery-page { padding-top: 82px; }
  body.quiniela-page { padding-top: 82px; }
  .random-gallery-stage,
  .random-main-image-frame { min-height: 360px; }
  .random-main-image-frame img { max-height: 340px; }
  .random-quick-details div { grid-template-columns: 64px minmax(0, 1fr); }
  .random-whatsapp-btn { width: 100%; justify-content: center; }
  .product-main-gallery-layout { min-height: 360px; }
  .product-main-gallery-frame { min-height: 300px; padding: 14px 58px; }
  .product-context-strip { padding: 10px; }
  .product-gallery-price-row .product-consult-btn { flex: 1 1 auto; justify-content: center; }
  .product-page-container { width: min(100% - 24px, 1120px); }
  .product-info-panel { padding: 20px; }
  .product-detail-row { grid-template-columns: 1fr; gap: 5px; }
  .pagination-controls { gap: 8px; }
  .pagination-nav { gap: 4px; }
  .pagination-controls .secondary-btn { width: 34px; height: 38px; min-height: 38px; }
  .pagination-controls .btn-icon { width: 28px; height: 15px; }
  #pageIndicator { display: none; }
  .pagination-summary { min-height: 38px; gap: 5px; padding: 4px 4px 4px 7px; }
  #paginationSummary { font-size: 10px; }
  .pagination-show-all-btn { min-height: 28px; padding: 0 6px; font-size: 10px; }
  .product-page-actions { gap: 8px; }
  .product-page-actions .secondary-btn { font-size: 13px; padding: 0 10px; }
  .product-consult-btn { padding: 10px 12px; }
  .quiniela-top { position: sticky; top: 64px; z-index: 60; display: block; padding: 8px 0 10px; margin-bottom: 10px; background: rgba(7,17,31,.94); border-bottom: 1px solid #1f3350; backdrop-filter: blur(10px); }
  .quiniela-kicker,
  .quiniela-score-strip { display: none; }
  .quiniela-title-block h1 { font-size: 28px; line-height: 1.12; transition: font-size .18s ease; }
  body.quiniela-scrolled .quiniela-title-block h1 { font-size: 22px; }
  .quiniela-score-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiniela-score-strip div { min-height: 68px; }
  .quiniela-player-panel,
  .quiniela-panel { padding: 12px; }
  .quiniela-name-form { grid-template-columns: 1fr; }
  .quiniela-login-panel .primary-btn,
  .quiniela-name-form .primary-btn,
  .quiniela-panel-header .primary-btn,
  .quiniela-compact-secondary { width: 100%; }
  .quiniela-verify-actions div { flex-direction: column; }
  .quiniela-save-bar { position: static; bottom: auto; margin-top: 12px; }
  .quiniela-save-bar .primary-btn { width: 100%; }
  .quiniela-tabs { position: sticky; top: var(--quiniela-tabs-top); z-index: 55; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; margin-bottom: 12px; border-radius: 12px; }
  .quiniela-tabs.has-admin { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .quiniela-tabs.has-admin .quiniela-tab { font-size: 10px; line-height: 1.05; }
  .quiniela-tab { width: 100%; min-width: 0; min-height: 40px; flex: initial; padding: 0 6px; font-size: 11px; }
  .quiniela-panel-header { align-items: stretch; flex-direction: column; }
  .quiniela-play-save-sticky { position: sticky; top: var(--quiniela-save-top); z-index: 54; padding: 8px; margin: -4px 0 12px; background: rgba(7,17,31,.94); border: 1px solid #1f3350; border-radius: 12px; backdrop-filter: blur(10px); }
  .quiniela-play-save-sticky .primary-btn { width: 100%; }
  .quiniela-instruction-grid,
  .quiniela-rules { grid-template-columns: 1fr; }
  .quiniela-instruction-card { min-height: 0; }
  .quiniela-group[data-prediction-group-current="true"] { scroll-margin-top: var(--quiniela-group-scroll-margin); }
  .quiniela-group summary { min-height: 54px; padding: 0 12px; }
  .quiniela-group summary span { font-size: 14px; }
  .quiniela-group summary strong { font-size: 11px; }
  .quiniela-prediction-card { padding: 12px; }
  .quiniela-prediction-fixture { grid-template-columns: minmax(58px, 1fr) 44px 22px 44px minmax(58px, 1fr); gap: 6px; }
  .quiniela-team-flag { width: 38px; height: 28px; border-radius: 7px; font-size: 20px; }
  .quiniela-team-flag.is-placeholder { font-size: 10px; }
  .quiniela-team-block { gap: 6px; }
  .quiniela-team-block strong { font-size: 11px; }
  .quiniela-prediction-box { width: 44px; height: 44px; font-size: 18px; }
  .quiniela-fixture { grid-template-columns: minmax(0, 1fr) 46px 22px 46px minmax(0, 1fr); gap: 6px; }
  .quiniela-fixture span { font-size: 12px; }
  .quiniela-fixture input { height: 42px; font-size: 16px; }
  .quiniela-match-footer { flex-direction: column; gap: 4px; }
  .quiniela-ranking-row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
  .quiniela-rank-number { width: 28px; height: 28px; border-radius: 7px; font-size: 12px; }
  .quiniela-rank-person strong { font-size: 14px; }
  .quiniela-rank-stats { flex-wrap: nowrap; gap: 5px; justify-content: flex-end; }
  .quiniela-rank-stats span { min-width: 46px; min-height: 30px; flex-direction: row; gap: 2px; padding: 4px 6px; font-size: 13px; }
  .quiniela-rank-stats small { font-size: 8px; }
}

@media (max-width: 360px) {
  .pagination-summary { width: 100%; }
  .product-page-actions .secondary-btn { font-size: 11px; padding: 0 6px; }
  .product-back-btn { gap: 5px; }
  .product-back-icon { width: 22px; height: 14px; }
  .quiniela-ranking-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px; padding: 8px; }
  .quiniela-rank-number { width: 24px; height: 24px; font-size: 11px; }
  .quiniela-rank-person strong { font-size: 13px; }
  .quiniela-rank-stats span { min-width: 42px; padding: 4px; font-size: 12px; }
}
