/* ===== Design System — CSS Custom Properties ===== */
:root {
    --bg-base: #111111;
    --bg-surface: #1E1E1E;
    --bg-surface-hover: #2A2A2A;
    --accent-primary: #00e5ff;
    --accent-secondary: #3b82f6;
    --text-primary: #FFFFFF;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
    --font-family: 'Inter', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 24px rgba(0, 229, 255, 0.15);
    --transition-base: 0.2s ease;
    --bg-navbar: #0a0a0a;
}

/* ===== Base ===== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 0;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-family);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--accent-secondary);
}

/* ===== Navbar ===== */
.navbar-cfv {
    background-color: var(--bg-navbar);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.5rem 0;
}

.navbar-cfv .navbar-brand img {
    width: 56px;
    height: 56px;
    transition: transform var(--transition-base);
}

.navbar-cfv .navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-cfv .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-base), background-color var(--transition-base);
}

.navbar-cfv .nav-link:hover,
.navbar-cfv .nav-link.active {
    color: var(--text-primary);
    background-color: var(--bg-surface-hover);
}

/* Buscador en navbar */
.navbar-search {
    max-width: 260px;
    flex-shrink: 0;
}

.navbar-search .form-control {
    background-color: var(--bg-surface-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.navbar-search .form-control::placeholder {
    color: var(--text-muted);
}

.navbar-search .form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15);
}

/* Carrito en header */
.navbar-cart-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-base);
    cursor: pointer;
}

.navbar-cart-btn:hover {
    background-color: var(--bg-surface-hover);
}

.navbar-cart-badge {
    position: absolute;
    top: 0;
    right: -2px;
    background-color: var(--accent-primary);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar responsive mobile */
@media (max-width: 991.98px) {
    .navbar-cfv {
        padding: 0.4rem 0;
    }

    .navbar-cfv .navbar-brand img {
        width: 44px;
        height: 44px;
    }

    .navbar-cfv .navbar-collapse {
        background-color: var(--bg-navbar);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        padding: 0.75rem;
        margin-top: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .navbar-search {
        max-width: 100%;
    }
}

/* ===== Sidebar (Categorías) ===== */
.sidebar-categories {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-surface-hover) transparent;
}

.sidebar-categories::-webkit-scrollbar {
    width: 4px;
}

.sidebar-categories::-webkit-scrollbar-thumb {
    background-color: var(--bg-surface-hover);
    border-radius: 4px;
}

.sidebar-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem;
}

.sidebar-card .sidebar-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Filtro de categorías (input que luce como el título) */
.sidebar-filter-wrapper {
    position: relative;
    width: 100%;
}

.sidebar-filter-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0;
    padding-right: 24px;
    cursor: pointer;
    transition: color var(--transition-base);
}

.sidebar-filter-input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.sidebar-filter-input:focus {
    color: var(--text-primary);
    cursor: text;
}

.sidebar-filter-input:focus::placeholder {
    color: var(--text-muted);
    opacity: 0.4;
}

.sidebar-filter-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: var(--text-muted);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-base), color var(--transition-base);
}

.sidebar-filter-wrapper:hover .sidebar-filter-icon,
.sidebar-filter-input:focus ~ .sidebar-filter-icon {
    opacity: 1;
}

.sidebar-filter-input:focus ~ .sidebar-filter-icon {
    color: var(--accent-primary);
}

/* Animación de ocultar/mostrar categorías filtradas */
.nav-item.category-hidden {
    display: none;
}

.nav-item.category-highlight .nav-link > span:first-child {
    color: var(--accent-primary);
}

.sidebar-sub-list li.subitem-hidden {
    display: none;
}

/* Offcanvas filter */
.offcanvas-categories .sidebar-filter-input {
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.offcanvas-categories .sidebar-filter-input::placeholder {
    color: var(--text-primary);
}

.offcanvas-categories .sidebar-filter-icon {
    font-size: 0.8rem;
}

.sidebar-card .nav-pills .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-card .nav-pills .nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-surface-hover);
}

.sidebar-card .nav-pills .nav-link.active {
    color: var(--text-primary);
    background-color: transparent;
    border-left-color: var(--accent-primary);
}

/* Indicador + que rota a x */
.sidebar-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform var(--transition-base), color var(--transition-base);
    flex-shrink: 0;
}

.nav-link[aria-expanded="true"] .sidebar-toggle-icon {
    transform: rotate(45deg);
    color: var(--accent-primary);
}

/* Sub-items */
.sidebar-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-sub-list .nav-link {
    font-size: 0.85rem !important;
    padding-left: 1.5rem !important;
    color: var(--text-muted) !important;
    border-left: none !important;
}

.sidebar-sub-list .nav-link:hover {
    color: var(--text-secondary) !important;
}

/* Off-canvas mobile sidebar */
.offcanvas-categories {
    background-color: var(--bg-surface);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    max-width: 85vw;
    width: 320px;
}

.offcanvas-categories .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 1.25rem;
}

.offcanvas-categories .offcanvas-title {
    color: var(--text-primary);
    font-weight: 600;
}

.offcanvas-categories .btn-close {
    filter: invert(1);
}

/* ===== Product Cards ===== */
.product-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.product-card .product-img-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--bg-base);
}

.product-card .product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-card .product-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card .product-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.product-card .product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-card .product-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

/* Botón circular de carrito en card */
.btn-add-cart {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition-base), transform var(--transition-base);
    flex-shrink: 0;
}

.btn-add-cart:hover {
    background-color: #33ecff;
    transform: scale(1.1);
}

/* ===== Product Detail Ecommerce ===== */
.product-detail-page {
    min-height: calc(100vh - 120px);
}

.product-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(1rem, 4vw, 3rem);
    align-items: start;
}

.product-detail-image-card,
.product-detail-buybox {
    background: linear-gradient(145deg, var(--bg-surface), rgba(42, 42, 42, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.product-detail-image-card {
    padding: clamp(0.75rem, 3vw, 1.5rem);
    overflow: hidden;
}

.product-detail-image-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 6px);
    display: block;
}

.product-detail-buybox {
    padding: clamp(1.25rem, 4vw, 2rem);
    position: sticky;
    top: 1rem;
}

.product-detail-eyebrow {
    color: var(--accent-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-detail-buybox h1 {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.08;
    margin: 0.55rem 0 1rem;
    font-weight: 800;
}

.product-detail-price {
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.product-detail-price--muted {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.product-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--bg-surface-hover);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.product-detail-form {
    display: grid;
    gap: 1.15rem;
}

.product-detail-form .form-label {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.88rem;
}

.product-detail-input {
    min-height: 48px;
    background-color: var(--bg-surface-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}

.product-detail-customization,
.product-detail-logo-section {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.product-detail-customization h2,
.product-detail-logo-section h2 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.product-detail-logo-section p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.product-detail-logo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-detail-logo-button {
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    padding: 0.5rem 0.85rem;
    font-weight: 700;
}

.product-detail-logo-button.is-active {
    background: var(--accent-primary);
    color: #000;
}

.product-detail-logo-preview {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-top: 0.9rem;
    border-radius: var(--radius-md);
    background: #fff;
    padding: 0.5rem;
}

.product-detail-primary-action {
    min-height: 52px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent-primary);
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.product-detail-primary-action:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-hover);
}

.product-detail-primary-action:active,
.product-card:active {
    transform: scale(0.98);
}

.product-detail-recommendations {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: clamp(2rem, 5vw, 3.5rem);
}

.product-recommendation-section {
    display: grid;
    gap: 1rem;
}

.product-recommendation-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.product-recommendation-heading span {
    order: 2;
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-recommendation-heading h2 {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    font-weight: 800;
}

.product-recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.9rem;
}

.product-recommendation-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 44px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.product-recommendation-card:hover,
.product-recommendation-card:focus-visible {
    color: var(--text-primary);
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    outline: none;
}

.product-recommendation-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.product-recommendation-info {
    display: grid;
    align-content: space-between;
    gap: 0.5rem;
    padding: 0.8rem;
}

.product-recommendation-info h3 {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.25;
    font-weight: 750;
}

.product-recommendation-info p {
    margin: 0;
    color: var(--accent-primary);
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .product-detail-shell {
        grid-template-columns: 1fr;
    }

    .product-detail-buybox {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .product-recommendation-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .product-recommendation-heading span {
        order: 0;
    }

    .product-recommendation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

/* ===== Floating Buttons ===== */
.floating-button-w {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    font-size: 1.25rem;
}

.floating-button-w:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-button {
    background-color: #25d366;
    color: #fff;
    border: none;
}

/* Botón flotante de carrito (legacy - oculto si carrito está en header) */
.floating-button {
    display: none;
}

.floating-button-step {
    background-color: transparent;
    color: var(--accent-primary);
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color var(--transition-base);
}

.floating-button-step:hover {
    color: #33ecff;
}

/* ===== Modals (Tema Dark Unificado) ===== */
.modal-content {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.25rem;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1.25rem;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Modal para "Paso a Paso" */
.modal1 {
    display: none;
    position: fixed;
    z-index: 1055;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content1 {
    background-color: var(--bg-surface);
    margin: 4% auto;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    color: var(--text-primary);
}

.modal-footer1 button {
    background-color: var(--accent-primary);
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin: 0 6px;
    margin-bottom: 10px;
    font-weight: 600;
    transition: background-color var(--transition-base), transform var(--transition-base);
}

.modal-footer1 button:hover {
    background-color: #33ecff;
    transform: translateY(-1px);
}

.stepText {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Botón de cerrar (x) global */
.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color var(--transition-base);
}

.close:hover,
.close:focus {
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
}

/* Modal adelanto */
.modal-adelanto {
    display: none;
    position: fixed;
    z-index: 1060;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 229, 255, 0.15);
}

.modal-content-adelanto {
    margin: auto;
    display: block;
    max-width: 50%;
    max-height: 90vh;
    object-fit: contain;
    border: none;
    box-shadow: none;
    border-radius: var(--radius-md);
}

/* ===== Carousel ===== */
.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: var(--text-primary);
    padding: 2rem 1.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 1;
}

.carousel-item img {
    border-radius: 0;
}

/* ===== Formularios en modales ===== */
.modal .form-control,
.modal .form-select {
    background-color: var(--bg-surface-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}

.modal .form-control:focus,
.modal .form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.15);
}

.modal .form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
}

.modal .table {
    color: var(--text-primary);
}

.modal .table td,
.modal .table th {
    border-color: rgba(255, 255, 255, 0.08);
}

/* ===== Paginación ===== */
.pagination .page-link {
    background-color: var(--bg-surface);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.pagination .page-link:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    background-color: var(--bg-surface);
    border-color: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

/* ===== Información de paginado ===== */
.pagination-info {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Botones de categoría ===== */
.btn-categories {
    color: var(--text-muted);
    background-color: transparent;
    right: 0;
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
    border-color: var(--text-muted);
}

/* Botón de categoría destacado */
.btn-primary-category {
    background-color: var(--bg-surface) !important;
    border-color: var(--accent-primary) !important;
}

.btn-primary-category i {
    color: var(--accent-primary);
}

.btn-custom-blue {
    background-color: var(--accent-secondary);
    color: white;
    border-color: var(--accent-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.btn-custom-blue:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* Botón de búsqueda con acento cyan */
.btn-accent-search {
    background-color: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-weight: 600;
    transition: background-color var(--transition-base), transform var(--transition-base);
}

.btn-accent-search:hover {
    background-color: #33ecff;
    border-color: #33ecff;
    color: #000;
}

/* ===== Footer ===== */
.footer-cfv {
    background-color: var(--bg-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Card Container ===== */
.card-container {
    margin-left: auto;
    margin-right: auto;
}

/* ===== Select de page size ===== */
#pageSizeSelect {
    background-color: var(--bg-surface-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
    /* Sidebar oculto en mobile — se usa offcanvas */
    .sidebar-desktop {
        display: none !important;
    }

    .btn-toggle-categories {
        display: inline-flex !important;
    }

    .modal-content-adelanto {
        max-width: 95%;
    }

    .modal-content1 {
        width: 95%;
        margin: 8% auto;
    }

    .floating-button-w {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .btn-toggle-categories {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .product-card .product-info {
        padding: 0.5rem;
    }

    .product-card .product-name {
        font-size: 0.8rem;
    }

    .product-card .product-price {
        font-size: 0.95rem;
    }

    .btn-add-cart {
        width: 44px;
        height: 44px;
        font-size: 0.85rem;
    }
}

/* ===== RF-003: Category Buttons Bar ===== */
.category-buttons-bar {
    background-color: var(--bg-navbar);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 0;
}

.category-buttons-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-buttons-scroll::-webkit-scrollbar {
    display: none;
}

.category-buttons-wrapper {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: nowrap;
    justify-content: center;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-family);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.category-btn:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.category-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
}

/* Botón de categoría activo/seleccionado */
.category-btn--active {
    background-color: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    font-weight: 600;
}

.category-btn--active:hover {
    background-color: #33ecff;
    color: #000;
    border-color: #33ecff;
}

/* Botón Filtros */
.category-btn--filter {
    background-color: transparent;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.category-btn--filter:hover,
.category-btn--filter.active {
    background-color: var(--accent-primary);
    color: #000;
}

/* Botón ¿Cómo comprar? */
.category-btn--help {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--accent-primary);
    font-size: 0.8rem;
}

.category-btn--help:hover {
    background-color: rgba(0, 229, 255, 0.08);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ===== RF-003: Mega Menu ===== */
.mega-menu {
    background-color: #0d0d0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0;
}

.mega-menu-header {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mega-menu-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.mega-menu-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    transition: color var(--transition-base);
}

.mega-menu-search-input {
    width: 100%;
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full, 50px);
    color: var(--text-primary);
    font-size: 0.85rem;
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    outline: none;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.mega-menu-search-input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
}

.mega-menu-search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

.mega-menu-search-input:focus + .mega-menu-search-icon {
    color: var(--accent-primary);
}

.mega-menu-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mega-menu-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.mega-menu-close:hover {
    color: var(--text-primary);
    background-color: var(--bg-surface-hover);
}

.mega-menu-category-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.mega-menu-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 0.35rem 0 0.5rem;
    opacity: 1;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 0.15rem;
}

.mega-menu-link {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.3rem 0;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition-base), padding-left var(--transition-base);
    border-radius: var(--radius-sm);
}

.mega-menu-link:hover {
    color: var(--accent-primary);
    padding-left: 0.35rem;
    text-decoration: none;
}

.mega-menu-link i {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Transición suave al filtrar columnas del mega-menu */
.mega-menu-col {
    transition: opacity 0.2s ease;
}

.mega-menu-col[style*="display: none"] {
    opacity: 0;
}

.mega-menu-item {
    transition: opacity 0.15s ease;
}

/* ===== RF-003: Responsive — Botones de categoría ===== */
@media (max-width: 991.98px) {
    .category-buttons-wrapper {
        justify-content: flex-start;
        padding: 0 0.25rem;
    }
}

@media (max-width: 767.98px) {
    .category-buttons-bar {
        padding: 0.6rem 0;
    }

    .category-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .category-btn i {
        font-size: 0.75rem;
    }

    .mega-menu {
        padding: 1rem 0;
    }

    .mega-menu-category-title {
        font-size: 0.85rem;
    }

    .mega-menu-link {
        font-size: 0.8rem;
        padding: 0.25rem 0;
    }
}

@media (max-width: 575.98px) {
    .category-btn {
        padding: 0.35rem 0.85rem;
        font-size: 0.78rem;
    }

    .category-btn--help span {
        display: none;
    }

    .category-btn--help i {
        margin-right: 0 !important;
    }

    .mega-menu-search-wrapper {
        max-width: 100%;
    }

    .mega-menu-search-input {
        font-size: 0.8rem;
        padding: 0.45rem 0.85rem 0.45rem 2rem;
    }
}

/* =========================================================================
   "Perez Zeledon" landing (/PerezZeledon), copied from the "Por Llegar" one
   APPEND-ONLY BLOCK. Nothing above this line was modified.

   Design source of truth: the client's official HTML mockup. Tokens, values
   and class names are taken from it verbatim. Every rule is scoped under
   .pll-page (the body class of _LayoutPerezZeledon) so the other two catalogs,
   which share this stylesheet and reuse names like .product-card, .btn,
   .container, .price and .category, are left completely untouched.
   ========================================================================= */

.pll-page {
    --bg: #050607;
    --bg-2: #080b0d;
    --panel: #0b0f11;
    --panel-2: #0e1316;
    --text: #f4f7f8;
    --muted: #9ca8ad;
    --line: rgba(255,255,255,.10);
    --cyan: #08e3ed;
    --cyan-2: #37f5ff;
    --cyan-soft: rgba(8,227,237,.14);
    --cyan-line: rgba(8,227,237,.48);
    --shadow: 0 22px 70px rgba(0,0,0,.45);
    --max: 1440px;
    --radius: 18px;
}

body.pll-page {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 80% 4%, rgba(8,227,237,.08), transparent 28%),
        linear-gradient(180deg,#030405 0%,#07090a 42%,#040506 100%);
    background-attachment: fixed;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

body.pll-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .2;
    background-image:
        linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.015) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: linear-gradient(to bottom,rgba(0,0,0,.7),transparent 75%);
    mask-image: linear-gradient(to bottom,rgba(0,0,0,.7),transparent 75%);
    z-index: -1;
}

.pll-page * { box-sizing: border-box; }
.pll-page a { color: inherit; text-decoration: none; }
.pll-page button { font: inherit; }
.pll-page img { max-width: 100%; display: block; }

.pll-page .container {
    width: min(var(--max),calc(100% - 56px));
    max-width: none;
    margin: auto;
    padding: 0;
}

.pll-page .eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: .24em;
    font-size: 12px;
    font-weight: 800;
    color: var(--cyan);
}
.pll-page .eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--cyan); }

.pll-page .section { padding: 68px 0; }

.pll-page .section-title {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--cyan);
    font-size: 14px;
    letter-spacing: .34em;
    text-transform: uppercase;
    font-weight: 800;
    white-space: nowrap;
    margin: 0 0 28px;
}
.pll-page .section-title::after {
    content: "";
    height: 1px;
    background: linear-gradient(90deg,var(--cyan-line),transparent);
    flex: 1;
}
/* Secondary line under a section title (real counts, active filter). */
.pll-page .section-note {
    margin: -18px 0 26px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .04em;
}

.pll-page .btn {
    border: 1px solid rgba(255,255,255,.16);
    background: transparent;
    color: #fff;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .03em;
    transition: .25s ease;
    cursor: pointer;
}
.pll-page .btn:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    box-shadow: 0 14px 32px rgba(8,227,237,.12);
    color: #fff;
}
.pll-page .btn-primary {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #001416;
}
.pll-page .btn-primary:hover { background: #44f5fc; color: #001416; }
.pll-page .arrow-circle {
    width: 24px;
    height: 24px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
}

.pll-page :focus-visible {
    outline: 2px solid var(--cyan-2);
    outline-offset: 3px;
}

/* ---------------------------------------------------------------- header */
.pll-page .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: .3s ease;
    background: linear-gradient(180deg,rgba(3,4,5,.97),rgba(3,4,5,.76),transparent);
}
.pll-page .site-header.scrolled {
    background: rgba(3,5,6,.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.pll-page .nav { height: 82px; display: flex; align-items: center; gap: 32px; }
.pll-page .brand { width: 96px; flex: none; }
.pll-page .brand img { width: 100%; height: auto; filter: drop-shadow(0 0 13px rgba(8,227,237,.18)); }
.pll-page .menu { display: flex; align-items: center; gap: 31px; margin-left: auto; }
.pll-page .menu a {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
    color: #e8ecee;
    position: relative;
    padding: 10px 0;
}
.pll-page .menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: .25s;
}
.pll-page .menu a:hover::after,
.pll-page .menu a[aria-current="page"]::after { width: 100%; }
.pll-page .menu a[aria-current="page"] { color: var(--cyan); }
.pll-page .nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 14px; }
/* With many categories (the detail page lists 14) the menu used to push the icons to a second
   line, on top of the page. Above the mobile breakpoint it now shrinks and scrolls sideways,
   and the icons always stay on the bar. */
@media (min-width:821px) {
    .pll-page .menu { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
    .pll-page .menu::-webkit-scrollbar { display: none; }
    .pll-page .menu a { white-space: nowrap; flex: none; }
    /* Right-aligned like before while it fits; when it overflows the auto margin collapses to 0,
       so the first categories stay reachable (justify-content:flex-end would hide them). */
    .pll-page .menu a:first-child { margin-left: auto; }
    .pll-page .nav { flex-wrap: nowrap; } /* Bootstrap's .nav (loaded on the detail page) sets wrap */
    .pll-page .brand, .pll-page .nav-actions { flex: none; }
}
.pll-page .icon-btn {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    padding: 0;
}
.pll-page .icon-btn:hover { background: rgba(255,255,255,.06); }
.pll-page .icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.pll-page .cart-dot {
    position: absolute;
    right: 1px;
    top: 1px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    background: var(--cyan);
    color: #001416;
    font-size: 10px;
    font-weight: 900;
    border-radius: 12px;
}
.pll-page .whatsapp { color: #18e776; }
.pll-page .menu-toggle { display: none; }

/* "Pedidos por encargo": opens the catalog's por-encargo page. Same teal pill as the
   catalog's own button, on both themes. Narrow screens keep only the icon. */
.pll-page .encargo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 10px 14px;
    border-radius: 10px;
    background: #00c2cc;
    color: #001214;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}
.pll-page .encargo-btn:hover,
.pll-page .encargo-btn:focus-visible { background: #19d3dc; color: #001214; }
.pll-page .encargo-btn__icon { font-size: 16px; line-height: 1; }
/* Icon only where the text does not fit on the header's single row: phones under 641px,
   and desktops up to 1420px, where the inline menu takes the room (measured 2026-11-06). */
@media (max-width:640px), (min-width:821px) and (max-width:1420px) {
    .pll-page .encargo-btn { padding: 10px 12px; }
    .pll-page .encargo-btn__text { display: none; }
}
/* "Por Llegar" (products on the way): same pill as "Pedidos por encargo", beside it.
   The header container caps at 1440px, so on desktop the inline menu never leaves room for a
   second label: Por Llegar stays icon only from 821px, and "Pedidos por encargo" keeps its
   label only from 1491px, where label + icon still fit beside the menu (measured 2026-11-13). */
@media (min-width:821px) {
    .pll-page .encargo-btn--porllegar { padding: 10px 12px; }
    .pll-page .encargo-btn--porllegar .encargo-btn__text { display: none; }
}
@media (min-width:1421px) and (max-width:1490px) {
    .pll-page .encargo-btn { padding: 10px 12px; }
    .pll-page .encargo-btn__text { display: none; }
}

/* Header search, opened by the magnifier. Not in the mockup, but the real page
   needs the Search filter that the grid and the pager preserve. */
.pll-page .nav-search {
    border-top: 1px solid var(--line);
    background: rgba(3,5,6,.94);
    backdrop-filter: blur(18px);
}
.pll-page .nav-search[hidden] { display: none; }
.pll-page .nav-search form {
    display: flex;
    gap: 10px;
    padding: 14px 0 16px;
}
.pll-page .nav-search input {
    flex: 1;
    height: 46px;
    background: #101619;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #fff;
    padding: 0 14px;
    outline: none;
}
.pll-page .nav-search input:focus { border-color: var(--cyan); }

/* ------------------------------------------------------------------ hero */
.pll-page .hero { min-height: 760px; padding: 128px 0 58px; position: relative; overflow: hidden; }
.pll-page .hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,transparent,var(--cyan-line),transparent);
}
.pll-page .hero-grid {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    align-items: center;
    gap: 20px;
    min-height: 590px;
}
.pll-page .hero-copy { position: relative; z-index: 4; padding: 32px 0 20px; }
.pll-page .hero h1 {
    margin: 18px 0 18px;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    text-transform: uppercase;
    font-size: clamp(64px,7.6vw,118px);
    line-height: .84;
    letter-spacing: -.018em;
    font-weight: 900;
}
.pll-page .hero h1 .cyan { display: block; color: var(--cyan); }
.pll-page .hero p { max-width: 540px; color: #bcc5c8; font-size: 16px; line-height: 1.7; margin: 0 0 26px; }
.pll-page .hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.pll-page .trust-row {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    gap: 18px;
}
.pll-page .trust {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #dfe5e7;
    font-weight: 800;
    line-height: 1.35;
}
.pll-page .trust svg { width: 24px; height: 24px; stroke: var(--cyan); fill: none; stroke-width: 1.7; flex: none; }

.pll-page .hero-art { height: 590px; position: relative; isolation: isolate; transform: translateZ(0); }
/* The backdrop is a wide 1.78:1 plate. Painting it inside the hero-art column meant
   a near-square box, so `cover` ate its sides, and the negative bleed was then clipped
   by `.hero { overflow: hidden }`. It now spans the whole hero, where the aspect ratio
   almost matches, and fades out to the left so the headline stays readable. */
.pll-page .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('../img/perezzeledon/hero-backdrop.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 72% 38%;
    opacity: .72;
    mix-blend-mode: screen;
    filter: saturate(1.15);
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.35) 26%, #000 58%);
    mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.35) 26%, #000 58%);
}

/* Local glow that keeps the products sitting on light, independent of the plate. */
.pll-page .hero-overlay {
    position: absolute;
    inset: -60px -80px -55px -60px;
    z-index: -1;
    background: radial-gradient(ellipse at 58% 46%, rgba(8,227,237,.20) 0%, rgba(8,227,237,.07) 42%, transparent 72%);
    pointer-events: none;
}
.pll-page .hero-art::after {
    content: "";
    position: absolute;
    left: 6%;
    right: 2%;
    bottom: 5%;
    height: 20%;
    background: radial-gradient(ellipse at center,rgba(8,227,237,.22),rgba(8,227,237,.05) 40%,transparent 70%);
    filter: blur(18px);
    z-index: -1;
}
.pll-page .hero-product {
    position: absolute;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 28px 28px rgba(0,0,0,.52));
}
.pll-page .hero-black-jersey { width: 43%; left: 17%; top: 4%; z-index: 1; }
.pll-page .hero-white-jersey { width: 39%; right: 2%; top: 1%; z-index: 2; }
.pll-page .hero-cleats { width: 55%; left: 0; bottom: 4%; z-index: 5; }
.pll-page .hero-sneaker { width: 38%; right: 4%; bottom: 1%; z-index: 6; }
.pll-page .hero-backpack { width: 24%; right: -1%; top: 20%; z-index: 3; }
.pll-page .hero-bottle { width: 13%; right: -2%; bottom: 15%; z-index: 7; }
.pll-page .float-a { animation: pllFloatA 5.4s ease-in-out infinite; }
.pll-page .float-b { animation: pllFloatB 6.2s ease-in-out infinite; }
@keyframes pllFloatA { 50% { transform: translateY(-8px); } }
@keyframes pllFloatB { 50% { transform: translateY(7px); } }

/* -------------------------------------------------------------- products */
.pll-page .product-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 28px; }
.pll-page .product-card {
    position: relative;
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.012));
    border: 1px solid rgba(8,227,237,.32);
    border-radius: 12px;
    padding: 18px 18px 16px;
    transition: .28s ease;
    box-shadow: none;
}
.pll-page .product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 55% 30%,rgba(8,227,237,.08),transparent 30%);
    opacity: 0;
    transition: .3s;
}
.pll-page .product-card:hover,
.pll-page .product-card:focus-within {
    transform: translateY(-6px);
    border-color: var(--cyan);
    box-shadow: 0 24px 50px rgba(0,0,0,.34);
}
.pll-page .product-card:hover::before { opacity: 1; }

/* Real Avify photos each carry their own background (studio grey, grass,
   fabric). The photo fills the square frame edge to edge (`cover`): a little
   of the edges may be cropped, but never the small letterboxed picture. */
.pll-page .product-image {
    position: relative;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    overflow: hidden;
    background: #05070d;
    margin: -18px -18px 14px;
    border-bottom: 1px solid rgba(8,227,237,.14);
}
.pll-page .product-image img {
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: none;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: none;
    transition: transform .5s ease;
}
.pll-page .product-card:hover .product-image img { transform: scale(1.04); }
.pll-page .product-image--empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    background:
        radial-gradient(circle at 50% 38%, rgba(8,227,237,.10), transparent 58%),
        #05070d;
    color: #5d6b70;
}
.pll-page .product-image--empty svg { width: 42px; height: 42px; stroke: var(--cyan-line); fill: none; stroke-width: 1.4; }
.pll-page .product-image--empty span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 800;
    color: #7d8a8f;
}

/* Contextual badge over the photo. Only OFERTA / MUNDIAL / ENCARGO exist:
   a badge carried by 100% of the cards would carry no information. */
.pll-page .badge-ribbon {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--cyan);
    color: #001416;
}
.pll-page .badge-ribbon--outline {
    background: rgba(3,5,6,.78);
    border: 1px solid var(--cyan-line);
    color: var(--cyan);
    backdrop-filter: blur(6px);
}

.pll-page .tag {
    color: var(--cyan);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 8px;
}
.pll-page .product-card h3 { font-size: 16px; line-height: 1.25; margin: 0 0 8px; font-weight: 700; min-height: 40px; }
.pll-page .meta { font-size: 12px; color: #a5afb2; line-height: 1.65; margin-bottom: 8px; }
.pll-page .price { font-size: 22px; font-weight: 800; margin: 3px 0 14px; }
.pll-page .price--muted { color: var(--muted); font-size: 16px; font-weight: 700; }
/* Offer (Avify salePrice), on the cards and the detail: the regular price struck through in
   grey, the offer price in red. */
.pll-page .price--offer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pll-page .price-old {
    color: var(--muted);
    font-size: .7em;
    font-weight: 700;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}
.pll-page .price-new { color: #ff5c5c; }
/* The sizes with units, right under the price, so the card answers "is my size here?". */
.pll-page .card-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: -6px 0 14px;
}
.pll-page .card-sizes li {
    min-width: 26px;
    padding: 3px 7px;
    border: 1px solid var(--cyan-line);
    border-radius: 6px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}
.pll-page .product-card .btn { width: 100%; min-height: 44px; color: var(--cyan); border-color: var(--cyan-line); margin-top: auto; }
.pll-page .product-card .btn:hover { background: var(--cyan); color: #001416; }
/* "Pedir por WhatsApp" (combos): the header's WhatsApp green instead of the cyan. */
.pll-page .btn.btn-whatsapp,
.pll-page .product-card .btn.btn-whatsapp { color: #18e776; border-color: rgba(24,231,118,.55); }
.pll-page .btn.btn-whatsapp:hover,
.pll-page .product-card .btn.btn-whatsapp:hover { background: #18e776; color: #001416; }
.pll-page .btn.btn-whatsapp svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; }
.pll-page .product-card .card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.pll-page .product-card .product-body { position: relative; z-index: 2; pointer-events: none; display: flex; flex-direction: column; flex: 1; }
.pll-page .product-card .product-body .btn { pointer-events: auto; }

/* ------------------------------------------------- shipment aggregates */
/* Same visual treatment as the mockup's stats panel (panel, big numbers,
   cyan labels) but fed only by figures the controller measured over the real
   Avify shipment. No progress bar and no stock percentage: that data does
   not exist. */
.pll-page .claimed {
    margin-top: 24px;
    padding: 26px 30px;
    border: 1px solid var(--cyan-line);
    border-radius: 11px;
    background:
        linear-gradient(90deg,rgba(8,227,237,.045),transparent 38%),
        rgba(255,255,255,.015);
    display: grid;
    /* The title takes the wide track; every real aggregate the controller produced
       gets one equal column after it, however many there are. */
    grid-template-columns: 1.4fr;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0,1fr);
    align-items: center;
    gap: 28px;
}
.pll-page .claimed-title {
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold",sans-serif;
    text-transform: uppercase;
    font-size: 42px;
    line-height: .92;
    letter-spacing: .01em;
}
.pll-page .claimed-title span { color: var(--cyan); }
.pll-page .claimed small,
.pll-page .stat small {
    display: block;
    color: #9da8ac;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .14em;
    margin-top: 6px;
}
.pll-page .stat small:first-child { margin-top: 0; margin-bottom: 6px; color: var(--cyan); }
.pll-page .stat { border-left: 1px solid var(--line); padding-left: 28px; }
.pll-page .stat strong { font-size: 38px; line-height: 1; font-weight: 500; }

/* --------------------------------------------------------------- toolbar */
.pll-page .toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
}
.pll-page .toolbar .field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #101619;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 6px 0 14px;
    min-height: 46px;
}
.pll-page .toolbar input {
    background: transparent;
    border: 0;
    outline: none;
    color: #fff;
    min-width: 240px;
    height: 44px;
}
.pll-page .toolbar select {
    background: #101619;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #fff;
    min-height: 46px;
    padding: 0 12px;
    outline: none;
}
.pll-page .toolbar select:focus,
.pll-page .toolbar .field:focus-within { border-color: var(--cyan); }
.pll-page .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--cyan-line);
    border-radius: 999px;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.pll-page .chip:hover { background: var(--cyan-soft); }

.pll-page .empty {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.015);
    padding: 60px 24px;
    text-align: center;
}
.pll-page .empty h3 {
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold",sans-serif;
    text-transform: uppercase;
    font-size: 30px;
    margin: 14px 0 8px;
}
.pll-page .empty p { color: var(--muted); font-size: 13px; margin: 0 0 20px; }

/* ---------------------------------------------------------------- pager */
.pll-page .pager {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.pll-page .pager a,
.pll-page .pager span {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #dfe5e7;
}
.pll-page .pager a:hover { border-color: var(--cyan); color: var(--cyan); }
.pll-page .pager .current { background: var(--cyan); border-color: var(--cyan); color: #001416; }

/* --------------------------------------------------------------- process */
.pll-page .steps {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.pll-page .step { padding: 30px 28px 30px 24px; display: grid; grid-template-columns: 42px 1fr; gap: 14px; position: relative; }
.pll-page .step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 30px;
    bottom: 30px;
    width: 1px;
    background: var(--line);
}
.pll-page .step svg { width: 35px; height: 35px; stroke: var(--cyan); fill: none; stroke-width: 1.6; }
.pll-page .step .n { color: #dbe2e4; font-size: 12px; margin-bottom: 7px; }
.pll-page .step h4 { font-size: 14px; margin: 0 0 7px; }
.pll-page .step p { margin: 0; color: #949fa3; font-size: 11px; line-height: 1.55; }

/* ------------------------------------------------------------ categories */
.pll-page .category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.pll-page .category {
    min-height: 225px;
    border: 1px solid rgba(8,227,237,.32);
    border-radius: 11px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg,#0c1012,#080b0d);
    display: block;
}
.pll-page .category img {
    position: absolute;
    inset: 12px 8px 40px;
    width: calc(100% - 16px);
    height: calc(100% - 52px);
    object-fit: contain;
    transition: .35s ease;
    filter: drop-shadow(0 20px 20px rgba(0,0,0,.5));
}
.pll-page .category::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,transparent 42%,rgba(4,6,7,.9) 82%);
}
.pll-page .category:hover img { transform: scale(1.05) translateY(-4px); }
.pll-page .category--active { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan-line) inset; }
.pll-page .category-copy { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.pll-page .category-copy strong { display: block; font-size: 16px; text-transform: uppercase; letter-spacing: .05em; }
.pll-page .category-copy span { font-size: 11px; color: #b4bec1; }

/* ------------------------------------------------------------------- CTA */
.pll-page .cta {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg,transparent 0%,rgba(8,227,237,.03) 60%,rgba(8,227,237,.08) 100%);
    position: relative;
    overflow: hidden;
}
.pll-page .cta::after {
    content: "CFV";
    position: absolute;
    right: -30px;
    bottom: -70px;
    font-family: Impact,sans-serif;
    font-size: 240px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(8,227,237,.08);
    transform: skewX(-10deg);
    pointer-events: none;
}
.pll-page .cta-inner { min-height: 170px; display: grid; grid-template-columns: 1.3fr .65fr .52fr; align-items: center; gap: 28px; }
.pll-page .cta h2 {
    margin: 0;
    font-family: Impact,Haettenschweiler,"Arial Narrow Bold",sans-serif;
    text-transform: uppercase;
    font-size: 46px;
    line-height: .96;
    font-weight: 900;
}
.pll-page .cta h2 span { color: var(--cyan); display: block; }
.pll-page .cta p { color: #aab4b7; font-size: 13px; line-height: 1.55; margin: 0; }

/* ---------------------------------------------------------------- footer */
.pll-page .site-footer { padding: 40px 0 28px; }
.pll-page .footer-grid { display: grid; grid-template-columns: 1.3fr .58fr .78fr .85fr .9fr; gap: 36px; }
.pll-page .footer-brand img { width: 95px; height: auto; margin-bottom: 14px; }
.pll-page .footer-brand p { color: #9da7aa; max-width: 275px; font-size: 11px; line-height: 1.55; }
.pll-page .location { font-size: 11px; color: var(--cyan); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pll-page .footer-brand .location { margin-top: 10px; }
.pll-page .socials { display: flex; gap: 8px; margin-top: 14px; }
.pll-page .socials a {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
}
.pll-page .socials a:hover { border-color: var(--cyan); color: var(--cyan); }
.pll-page .site-footer h5 { color: var(--cyan); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 13px; }
.pll-page .site-footer ul { list-style: none; padding: 0; margin: 0; }
.pll-page .site-footer li { color: #a1abad; font-size: 11px; line-height: 1.85; }
.pll-page .site-footer li a:hover { color: var(--cyan); }
.pll-page .pay { display: flex; align-items: center; gap: 12px; font-weight: 800; margin-bottom: 18px; font-size: 12px; }
.pll-page .visa { font-size: 22px; }
.pll-page .mc { display: flex; }
.pll-page .mc i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.pll-page .mc i:first-child { background: #eb001b; }
.pll-page .mc i:last-child { background: #f79e1b; margin-left: -8px; opacity: .95; }
.pll-page .copyright {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 28px;
    text-align: center;
    color: #687378;
    font-size: 10px;
}

/* --------------------------------------------------------------- detail */
.pll-page .detail { padding: 128px 0 20px; }
.pll-page .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pll-page .detail-media {
    overflow: hidden;
    border: 1px solid rgba(8,227,237,.32);
    border-radius: 12px;
    background: #05070d;
}
/* The whole photo, never cropped (contain): the frame follows the photo's own shape, and a
   photo taller than the cap gets side bars instead of losing its edges. Capped so it never
   fills the screen (see the <=820px rule for phones). */
.pll-page .detail-media img { width: 100%; height: auto; max-height: min(72vh, 640px); object-fit: contain; }
.pll-page .detail-media--empty {
    aspect-ratio: 4 / 5;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: #5d6b70;
    background:
        radial-gradient(circle at 50% 38%, rgba(8,227,237,.10), transparent 58%),
        #05070d;
}
.pll-page .detail-media--empty svg { width: 60px; height: 60px; stroke: var(--cyan-line); fill: none; stroke-width: 1.3; }
.pll-page .detail-media--empty span { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; }
.pll-page .detail-title {
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    text-transform: uppercase;
    font-size: clamp(34px,4.4vw,60px);
    line-height: .9;
    margin: 14px 0 0;
    font-weight: 900;
}
.pll-page .detail-title + .section-note { margin-top: 14px; } /* the note's -18px is for section titles; this title leaves no gap */
.pll-page .detail-price { font-size: 38px; font-weight: 800; margin: 22px 0 4px; }
.pll-page .detail-desc { color: #aab4b7; font-size: 13px; line-height: 1.7; }
.pll-page .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pll-page .tags .pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 800;
    color: #cfd7d9;
}
.pll-page .detail-form { display: grid; grid-template-columns: 160px 1fr; gap: 12px; margin-top: 26px; align-items: end; }
.pll-page .detail-form label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 7px;
}
.pll-page .detail-form input {
    width: 100%;
    height: 48px;
    background: #101619;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #fff;
    padding: 0 12px;
    outline: none;
}
.pll-page .detail-form input:focus { border-color: var(--cyan); }
.pll-page .detail-form .full { grid-column: 1/-1; }

/* Sizes as buttons, like the catalog: each one a radio of the "plSize" group whose face shows
   the size and its units. A size without units is shown in red and cannot be picked. */
.pll-page .detail-form .pll-size-picker { border: 0; margin: 0; padding: 0; min-width: 0; }
.pll-page .detail-form .pll-size-picker legend {
    float: none;
    width: auto;
    padding: 0;
    margin-bottom: 7px;
    font-size: 10px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 800;
    color: var(--muted);
}
.pll-page .pll-size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
}
.pll-page .detail-form .pll-size {
    position: relative;
    display: block;
    margin: 0;
    font-size: inherit;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text);
    cursor: pointer;
}
.pll-page .detail-form .pll-size input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.pll-page .pll-size__face {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 64px;
    padding: 10px 6px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    background: #101619;
    text-align: center;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.pll-page .pll-size__value { font-size: 18px; font-weight: 800; line-height: 1.1; }
.pll-page .pll-size__stock { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pll-page .pll-size:hover input:not(:disabled) + .pll-size__face { border-color: var(--cyan-line); }
.pll-page .pll-size input:checked + .pll-size__face {
    border-color: var(--cyan);
    background: var(--cyan-soft);
    box-shadow: 0 0 0 2px rgba(8,227,237,.22);
}
.pll-page .pll-size input:checked + .pll-size__face .pll-size__stock { color: var(--text); }
.pll-page .pll-size input:focus-visible + .pll-size__face { outline: 2px solid var(--cyan-2); outline-offset: 2px; }
.pll-page .detail-form .pll-size input:disabled { cursor: not-allowed; }
.pll-page .pll-size input:disabled + .pll-size__face {
    border-color: rgba(255,107,107,.45);
    background: rgba(255,107,107,.08);
    color: #ff8f8f;
}
.pll-page .pll-size input:disabled + .pll-size__face .pll-size__stock { color: #ff8f8f; }
@media (prefers-reduced-motion: reduce) {
    .pll-page .pll-size__face { transition: none; }
}

.pll-page .alert-avify {
    border: 1px solid rgba(255,196,0,.4);
    background: rgba(255,196,0,.07);
    color: #ffd979;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 12px;
    line-height: 1.6;
}

/* --------------------------------------------------------------- reveal */
.pll-page .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease,transform .6s ease; }
.pll-page .reveal.on { opacity: 1; transform: none; }

/* ------------------------------------------------------------ diagnostic */
.pll-page .debug-panel {
    border: 1px dashed var(--cyan-line);
    border-radius: 12px;
    background: rgba(8,227,237,.03);
    padding: 22px 24px;
}
.pll-page .debug-panel h5 { color: var(--cyan); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 8px; }
.pll-page .debug-panel p { color: var(--muted); font-size: 12px; }
.pll-page .debug-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 20px; margin-top: 16px; }
.pll-page .debug-grid strong { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #cfd7d9; }
.pll-page .debug-tag {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 10px;
    color: #b6c0c3;
}
.pll-page .debug-tag.is-active { border-color: var(--cyan); color: var(--cyan); }
.pll-page .debug-panel pre {
    max-height: 320px;
    overflow: auto;
    background: #05070d;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    font-size: 10px;
    color: #8f9a9e;
    margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .pll-page .float-a,
    .pll-page .float-b { animation: none !important; }
    .pll-page .reveal { opacity: 1; transform: none; transition: none; }
    .pll-page .product-card,
    .pll-page .btn,
    .pll-page .category img,
    .pll-page .product-image img { transition: none !important; }
    .pll-page .product-card:hover { transform: none; }
}

@media (max-width:1280px) {
    .pll-page .product-grid { grid-template-columns: repeat(4,1fr); gap: 24px; }
}
@media (max-width:1120px) {
    .pll-page .menu { gap: 18px; }
    .pll-page .nav .btn { display: none; }
    .pll-page .hero-grid { grid-template-columns: 1fr 1fr; }
    .pll-page .hero-art { height: 520px; }
    .pll-page .product-grid { grid-template-columns: repeat(3,1fr); }
    .pll-page .category-grid { grid-template-columns: repeat(2,1fr); }
    .pll-page .claimed { grid-template-columns: 1fr 1fr; grid-auto-flow: row; grid-auto-columns: auto; }
    .pll-page .footer-grid { grid-template-columns: 1.4fr repeat(2,1fr); }
    .pll-page .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width:820px) {
    .pll-page .container { width: min(100% - 32px,var(--max)); }
    .pll-page .nav { height: 70px; }
    .pll-page .brand { width: 78px; }
    .pll-page .menu {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        padding: 18px;
        background: #080c0e;
        border: 1px solid var(--line);
        border-radius: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    .pll-page .menu.open { display: flex; }
    .pll-page .menu-toggle { display: grid; }
    .pll-page .nav-actions { margin-left: auto; }
    .pll-page .hero { padding-top: 90px; }
    .pll-page .hero-grid { grid-template-columns: 1fr; min-height: auto; }
    .pll-page .hero-copy { padding-bottom: 0; }
    .pll-page .hero h1 { font-size: clamp(62px,18vw,98px); }
    .pll-page .hero-art { height: 480px; }
    .pll-page .trust-row { grid-template-columns: repeat(2,1fr); }
    .pll-page .product-grid,
    .pll-page .category-grid { grid-template-columns: 1fr 1fr; }
    .pll-page .steps { grid-template-columns: 1fr 1fr; }
    .pll-page .step:nth-child(2)::after { display: none; }
    .pll-page .cta-inner { grid-template-columns: 1fr; padding: 32px 0; }
    .pll-page .footer-grid { grid-template-columns: 1fr 1fr; }
    .pll-page .detail { padding-top: 96px; }
    .pll-page .detail-media img { max-height: 50vh; }
}
@media (max-width:560px) {
    .pll-page .site-header .icon-btn.search { display: none; }
    .pll-page .hero { min-height: auto; }
    .pll-page .hero-art { height: 390px; }
    .pll-page .hero-black-jersey { width: 46%; left: 14%; }
    .pll-page .hero-white-jersey { width: 43%; }
    .pll-page .hero-cleats { width: 61%; left: -5%; }
    .pll-page .hero-sneaker { width: 42%; }
    .pll-page .hero-backpack { width: 27%; }
    .pll-page .hero-bottle { width: 15%; }
    .pll-page .category-grid,
    .pll-page .steps,
    .pll-page .claimed,
    .pll-page .footer-grid { grid-template-columns: 1fr; }
    .pll-page .claimed { grid-auto-flow: row; grid-auto-columns: auto; }
    .pll-page .product-card { min-height: auto; }
    /* Phones: two compact cards per row, like the catalog (square photo, name, price, action). */
    .pll-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .pll-page .product-card { padding: 10px 10px 12px; }
    .pll-page .product-image { margin: -10px -10px 10px; }
    .pll-page .badge-ribbon { left: 8px; top: 8px; padding: 4px 8px; font-size: 9px; }
    .pll-page .product-card .tag { font-size: 9px; margin-bottom: 4px; }
    .pll-page .product-card h3 { font-size: 14px; line-height: 1.3; min-height: 0; margin-bottom: 6px; }
    .pll-page .product-card .meta { display: none; }
    .pll-page .product-card .price { font-size: 17px; margin: 2px 0 10px; }
    .pll-page .product-card .price--muted { font-size: 13px; }
    .pll-page .card-sizes { gap: 3px; margin: -4px 0 10px; }
    .pll-page .card-sizes li { min-width: 22px; padding: 2px 5px; font-size: 10px; }
    .pll-page .product-card .btn { min-height: 40px; padding: 0 8px; gap: 6px; font-size: 11px; letter-spacing: 0; }
    .pll-page .claimed .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
    .pll-page .step::after { display: none !important; }
    .pll-page .step:not(:last-child) { border-bottom: 1px solid var(--line); }
    .pll-page .cta h2 { font-size: 38px; }
    .pll-page .detail-form { grid-template-columns: 1fr; }
    .pll-page .toolbar input { min-width: 0; }
}
/* Phones (2026-11-07). Bootstrap's .nav wraps, so at 360px the icons fell under the bar and the
   open menu covered them. Logo, icons and hamburger now stay on one row down to 320px, and the
   menu opens as a sheet attached to the bottom of the header: same background, full width, and
   it scrolls when it is taller than the screen. Closing it lives in the layout's script. */
@media (max-width:820px) {
    .pll-page .nav { flex-wrap: nowrap; gap: 12px; }
    .pll-page .brand, .pll-page .nav-actions { flex: none; }
    .pll-page .nav-actions { gap: 4px; }
    .pll-page .menu {
        left: 0;
        right: 0;
        top: 100%;
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 4px 24px 12px;
        gap: 0;
        align-items: stretch;
        background: #05080a; /* opaque: under the header's backdrop-filter a translucent one let the page show through */
        border: 0;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        border-radius: 0 0 14px 14px;
        box-shadow: 0 18px 40px rgba(0,0,0,.5);
    }
    .pll-page .menu a { padding: 14px 2px; border-bottom: 1px solid var(--line); }
    .pll-page .menu a:last-child { border-bottom: 0; }
    .pll-page .menu a::after { display: none; }
    .pll-page .site-header.menu-open { background: #05080a; }
}
@media (max-width:400px) {
    .pll-page .nav { gap: 8px; }
    .pll-page .brand { width: 68px; }
    .pll-page .nav-actions { gap: 2px; }
    .pll-page .encargo-btn { padding: 10px; }
}
@media (max-width:350px) {
    .pll-page .brand { width: 60px; }
    .pll-page .nav-actions .icon-btn { width: 40px; height: 40px; }
    /* The one-line spaced titles ("CÓMO FUNCIONA TU RESERVA") widened the page past 320px. */
    .pll-page .section-title { letter-spacing: .24em; white-space: normal; }
}

/* =========================================================================
   "Por Llegar" reservations: visible cart drawer + reservation form.
   APPEND-ONLY BLOCK. Nothing above this line was modified.
   Everything is scoped under .pll-page / .pll-* so the other two catalogs
   that share this stylesheet are untouched. Tokens reuse the ones declared
   by .pll-page (--cyan, --radius, --panel, --line, ...).
   ========================================================================= */

/* ---- Drawer shell -------------------------------------------------------- */

.pll-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2,4,5,.72);
    backdrop-filter: blur(2px);
    z-index: 900;
}

.pll-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(430px, 100%);
    display: flex;
    flex-direction: column;
    background: var(--panel, #0b0f11);
    border-left: 1px solid var(--line, rgba(255,255,255,.10));
    box-shadow: -22px 0 70px rgba(0,0,0,.55);
    color: var(--text, #f4f7f8);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    z-index: 950;
}

.pll-cart-drawer[hidden],
.pll-cart-overlay[hidden] { display: none; }

body.pll-cart-open { overflow: hidden; }

.pll-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line, rgba(255,255,255,.10));
}

.pll-cart-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pll-cart-close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid var(--line, rgba(255,255,255,.10));
    border-radius: 12px;
    color: inherit;
    cursor: pointer;
}
.pll-cart-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
}
.pll-cart-close:hover { border-color: var(--cyan-line, rgba(8,227,237,.48)); color: var(--cyan, #08e3ed); }

.pll-cart-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 22px;
}

.pll-cart-empty {
    margin: 24px 0;
    color: var(--muted, #9ca8ad);
    font-size: 14px;
}

.pll-cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

/* ---- One cart line ------------------------------------------------------ */

.pll-cart-item {
    display: grid;
    grid-template-columns: 64px 1fr 44px;
    gap: 12px;
    align-items: start;
    padding: 12px;
    background: var(--panel-2, #0e1316);
    border: 1px solid var(--line, rgba(255,255,255,.10));
    border-radius: 14px;
}

.pll-cart-thumb {
    width: 64px;
    height: 80px;
    overflow: hidden;
    border-radius: 10px;
    background: #05070a;
    display: grid;
    place-items: center;
}
.pll-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pll-cart-thumb--empty {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    color: var(--muted, #9ca8ad);
}

.pll-cart-item-body { min-width: 0; }

.pll-cart-item-body h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.pll-cart-sku,
.pll-cart-price {
    font-size: 11px;
    color: var(--muted, #9ca8ad);
    letter-spacing: .04em;
}
.pll-cart-price { color: var(--cyan, #08e3ed); font-weight: 800; font-size: 13px; margin-top: 2px; }

.pll-cart-stepper {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pll-cart-step {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid var(--line, rgba(255,255,255,.10));
    border-radius: 10px;
    color: inherit;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}
.pll-cart-step:hover { border-color: var(--cyan-line, rgba(8,227,237,.48)); color: var(--cyan, #08e3ed); }

.pll-cart-qty {
    width: 62px;
    height: 44px;
    text-align: center;
    background: #05070a;
    border: 1px solid var(--line, rgba(255,255,255,.10));
    border-radius: 10px;
    color: inherit;
    font: inherit;
    font-weight: 700;
}

.pll-cart-remove {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--muted, #9ca8ad);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.pll-cart-remove:hover { color: #ff6b6b; border-color: rgba(255,107,107,.4); }

/* ---- Drawer footer ------------------------------------------------------ */

.pll-cart-foot {
    flex: 0 0 auto;
    padding: 18px 22px 22px;
    border-top: 1px solid var(--line, rgba(255,255,255,.10));
    display: grid;
    gap: 10px;
    background: var(--panel, #0b0f11);
}

.pll-cart-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted, #9ca8ad);
}
.pll-cart-total strong {
    font-size: 22px;
    letter-spacing: 0;
    color: var(--text, #f4f7f8);
}

.pll-cart-foot .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--line, rgba(255,255,255,.10));
    background: transparent;
    color: inherit;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}
.pll-cart-foot .btn.btn-primary {
    background: var(--cyan, #08e3ed);
    border-color: var(--cyan, #08e3ed);
    color: #04191b;
}
.pll-cart-foot .btn.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.pll-cart-foot form { margin: 0; }

.pll-cart-clear {
    background: none;
    border: 0;
    color: var(--muted, #9ca8ad);
    font-size: 12px;
    text-decoration: underline;
    min-height: 44px;
    cursor: pointer;
}
.pll-cart-clear:hover { color: #ff6b6b; }

.pll-cart-drawer :focus-visible,
.pll-page .pll-cart-overlay:focus-visible {
    outline: 2px solid var(--cyan, #08e3ed);
    outline-offset: 2px;
}

/* ---- Reservation page --------------------------------------------------- */

.pll-page .pll-reserve { padding-top: 128px; }

.pll-page .pll-reserve-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 26px;
    align-items: start;
    margin-top: 26px;
}

.pll-page .pll-reserve-items,
.pll-page .pll-reserve-form {
    background: var(--panel, #0b0f11);
    border: 1px solid var(--line, rgba(255,255,255,.10));
    border-radius: var(--radius, 18px);
    padding: 22px;
}

.pll-page .pll-reserve-items h2,
.pll-page .pll-reserve-form h2 {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cyan, #08e3ed);
}

.pll-page .pll-reserve-item {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line, rgba(255,255,255,.10));
}

.pll-page .pll-reserve-thumb {
    width: 84px;
    height: 105px;
    overflow: hidden;
    border-radius: 12px;
    background: #05070a;
    display: grid;
    place-items: center;
}
.pll-page .pll-reserve-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pll-page .pll-reserve-thumb--empty {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    color: var(--muted, #9ca8ad);
}

.pll-page .pll-reserve-item-body h3 {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}
.pll-page .pll-reserve-sku {
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--muted, #9ca8ad);
}
.pll-page .pll-reserve-price {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 900;
    color: var(--cyan, #08e3ed);
}

.pll-page .pll-reserve-qty { display: grid; gap: 6px; justify-items: start; }
.pll-page .pll-reserve-qty label {
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted, #9ca8ad);
}
.pll-page .pll-reserve-qty input {
    width: 84px;
    min-height: 44px;
    text-align: center;
    background: #05070a;
    border: 1px solid var(--line, rgba(255,255,255,.10));
    border-radius: 10px;
    color: var(--text, #f4f7f8);
    font: inherit;
    font-weight: 700;
}

.pll-page .pll-reserve-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-top: 18px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted, #9ca8ad);
}
.pll-page .pll-reserve-total strong {
    font-size: 26px;
    letter-spacing: 0;
    color: var(--text, #f4f7f8);
}

/* ---- SINPE deposit instructions ---------------------------------------- */

.pll-page .pll-sinpe {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line, rgba(255,255,255,.10));
}
.pll-page .pll-sinpe h3 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cyan, #08e3ed);
}
.pll-page .pll-sinpe-amount {
    display: grid;
    gap: 2px;
    padding: 16px 18px;
    border: 1px solid var(--cyan-line, rgba(8,227,237,.48));
    background: var(--cyan-soft, rgba(8,227,237,.14));
    border-radius: 14px;
    margin-bottom: 16px;
}
.pll-page .pll-sinpe-amount span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted, #9ca8ad);
}
.pll-page .pll-sinpe-amount strong {
    font-size: 30px;
    line-height: 1.1;
    color: var(--text, #f4f7f8);
}
.pll-page .pll-sinpe-amount small { font-size: 12.5px; color: #c7d0d3; }

.pll-page .pll-sinpe-steps {
    margin: 0 0 14px;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #c7d0d3;
}
.pll-page .pll-sinpe-steps strong { color: var(--text, #f4f7f8); }

.pll-page .pll-sinpe-warn {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255,207,143,.45);
    border-radius: 12px;
    background: rgba(255,207,143,.10);
    color: #ffcf8f;
    font-size: 13px;
    line-height: 1.5;
}
.pll-page .pll-sinpe-warn strong { color: #ffe0b0; }

.pll-page .pll-sinpe-wa { width: 100%; min-height: 48px; }

.pll-page .pll-field { display: grid; gap: 6px; margin-bottom: 14px; }
.pll-page .pll-field label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted, #9ca8ad);
}
.pll-page .pll-optional { text-transform: none; letter-spacing: 0; font-weight: 500; }

.pll-page .pll-field input,
.pll-page .pll-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: #05070a;
    border: 1px solid var(--line, rgba(255,255,255,.10));
    border-radius: 12px;
    color: var(--text, #f4f7f8);
    font: inherit;
}
.pll-page .pll-field textarea { min-height: 92px; resize: vertical; }
.pll-page .pll-field input:focus,
.pll-page .pll-field textarea:focus {
    outline: none;
    border-color: var(--cyan-line, rgba(8,227,237,.48));
    box-shadow: 0 0 0 3px var(--cyan-soft, rgba(8,227,237,.14));
}
.pll-page .pll-field input.input-validation-error,
.pll-page .pll-field textarea.input-validation-error { border-color: #ff6b6b; }

.pll-page .pll-field-error {
    display: block;
    color: #ff8f8f;
    font-size: 12px;
}
.pll-page .pll-field-error ul { margin: 0; padding-left: 18px; }
.pll-page .pll-field-error:empty { display: none; }

.pll-page .pll-reserve-submit { width: 100%; min-height: 52px; margin-top: 6px; }

.pll-page .pll-reserve-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Result panels ----------------------------------------------------- */

.pll-page .pll-result {
    margin: 24px 0 0;
    padding: 24px;
    border-radius: var(--radius, 18px);
    border: 1px solid var(--line, rgba(255,255,255,.10));
    background: var(--panel, #0b0f11);
}
.pll-page .pll-result h1,
.pll-page .pll-result h2 { margin: 0 0 10px; font-size: 26px; font-weight: 900; }
.pll-page .pll-result p { margin: 0 0 8px; color: #c7d0d3; font-size: 14px; line-height: 1.6; }

.pll-page .pll-result--ok {
    border-color: var(--cyan-line, rgba(8,227,237,.48));
    box-shadow: 0 0 0 1px var(--cyan-soft, rgba(8,227,237,.14)) inset;
}
.pll-page .pll-result--ok h1 { color: var(--cyan, #08e3ed); }
.pll-page .pll-result-order { font-size: 20px; color: var(--text, #f4f7f8) !important; }

.pll-page .pll-result--error { border-color: rgba(255,107,107,.45); }
.pll-page .pll-result--error h2 { color: #ff8f8f; }

.pll-page .pll-result-warn { color: #ffcf8f !important; }

@media (prefers-reduced-motion: reduce) {
    .pll-cart-drawer,
    .pll-cart-overlay,
    .pll-cart-step,
    .pll-cart-close,
    .pll-page .pll-field input,
    .pll-page .pll-field textarea { transition: none !important; animation: none !important; }
}

@media (max-width:1120px) {
    .pll-page .pll-reserve-grid { grid-template-columns: 1fr; }
}

@media (max-width:560px) {
    .pll-cart-drawer { width: 100%; }
    .pll-cart-item { grid-template-columns: 56px 1fr 44px; }
    .pll-cart-thumb { width: 56px; height: 70px; }
    .pll-page .pll-reserve { padding-top: 104px; }
    .pll-page .pll-reserve-item { grid-template-columns: 64px 1fr; }
    .pll-page .pll-reserve-thumb { width: 64px; height: 80px; }
    .pll-page .pll-reserve-qty { grid-column: 1 / -1; }
}

/* ---- "We remembered you" notice (per-device convenience, not authentication) ---- */

.pll-page .pll-recall {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--cyan-line, rgba(8,227,237,.48));
    background: var(--cyan-soft, rgba(8,227,237,.14));
    border-radius: 12px;
    font-size: 12.5px;
    color: #d6eef0;
}

.pll-page .pll-recall[hidden] { display: none; }

.pll-page .pll-recall button {
    background: none;
    border: 0;
    padding: 0 4px;
    min-height: 44px;
    color: var(--cyan, #08e3ed);
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}
.pll-page .pll-recall button:hover { color: var(--cyan-2, #37f5ff); }

/* Combo photos (js/combo-fotos.js): the photos of a combo sit on top of each other in the same
   frame and crossfade; only the one with .is-on shows. The card keeps its square frame; the
   detail page gets a square one with the whole photo (contain), dots and swipe. */
.pll-page .combo-rotator { position: relative; }
.pll-page .combo-rotator > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .7s ease, transform .5s ease;
}
.pll-page .combo-rotator > img.is-on { opacity: 1; }
.pll-page .detail-media.combo-rotator { aspect-ratio: 1 / 1; max-height: min(72vh, 640px); }
.pll-page .detail-media.combo-rotator > img { max-height: none; object-fit: contain; }
.pll-page .combo-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.pll-page .combo-dot {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.pll-page .combo-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    box-shadow: 0 0 0 1px rgba(0,0,0,.35);
    transition: background .2s ease, transform .2s ease;
}
.pll-page .combo-dot[aria-current="true"]::before { background: var(--cyan); transform: scale(1.3); }
.pll-page .combo-dot:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; border-radius: 50%; }

/* "Puede escoger de:" on a combo's detail page: each kind of item with a few of its photos. */
.pll-page .combo-choices { margin: 1.25rem 0 1rem; }
.pll-page .combo-choices__title {
    margin: 0 0 10px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.pll-page .combo-choices__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pll-page .combo-choice { display: grid; gap: 6px; }
.pll-page .combo-choice__label { font-size: 13px; font-weight: 800; }
.pll-page .combo-choice__thumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pll-page .combo-choice__thumbs img,
.pll-page .combo-choice__more {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #05070d;
}
.pll-page .combo-choice__thumbs img { object-fit: cover; }
.pll-page .combo-choice__more {
    display: grid;
    place-items: center;
    border-color: var(--cyan-line);
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
}
@media (max-width:820px) {
    .pll-page .detail-media.combo-rotator { max-height: 50vh; }
}
@media (prefers-reduced-motion: reduce) {
    .pll-page .combo-rotator > img { transition: none; }
}
