.landing-hero {
                text-align: center;
                padding: 60px 20px;
            }
            .landing-title {
                font-size: 42px;
                font-weight: 900;
                margin-bottom: 15px;
                color: var(--ink);
            }
            .landing-subtitle {
                font-size: 18px;
                color: var(--muted);
                max-width: 600px;
                margin: 0 auto 40px;
            }
            .verticals-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 20px;
                max-width: 1000px;
                margin: 0 auto;
            }
            .vertical-card {
                background: var(--panel);
                border: 2px solid transparent;
                border-radius: 16px;
                padding: 30px;
                text-align: center;
                cursor: pointer;
                transition: all 0.2s ease;
                box-shadow: 0 10px 28px rgba(18, 33, 38, 0.07);
            }
            .vertical-card:hover {
                transform: translateY(-5px);
                border-color: var(--brand);
                box-shadow: 0 15px 35px rgba(18, 33, 38, 0.12);
            }
            .vertical-card.disabled {
                opacity: 0.6;
                cursor: not-allowed;
                filter: grayscale(100%);
            }
            .vertical-card.disabled:hover {
                transform: none;
                border-color: transparent;
            }
            .vertical-icon {
                font-size: 48px;
                margin-bottom: 15px;
                color: var(--brand);
            }
            .vertical-name {
                font-size: 24px;
                font-weight: 800;
                margin-bottom: 10px;
            }
            .vertical-desc {
                font-size: 14px;
                color: var(--muted);
            }
        
        .compare-note {
            display: flex; align-items: center; gap: .45rem;
            padding: .5rem .7rem; margin: .4rem 0 .2rem;
            font-size: .8rem; line-height: 1.35;
            color: var(--text-muted, #5b6472);
            background: rgba(125, 145, 175, .1);
            border-radius: .5rem;
        }
        .compare-note i { width: 1rem; height: 1rem; flex: 0 0 auto; }
        .reference-price.comparing {
            font-weight: 700;
            color: var(--text, #1f2733);
        }

/* Portada del comparador de mascotas */
.pet-home { max-width: 1240px; margin: 0 auto; display: grid; gap: clamp(28px, 4vw, 58px); }
.pet-hero { display: grid; grid-template-columns: 1fr .94fr; align-items: center; gap: clamp(24px, 5vw, 76px); }
.pet-hero-copy { min-width: 0; }
.pet-hero-copy h2 { font-size: clamp(36px, 4.65vw, 70px); line-height: 1.01; letter-spacing: -.062em; font-weight: 750; color: var(--ink); max-width: 12.8em; margin: 0 0 28px; text-wrap: balance; }
.pet-portrait { width: 100%; height: auto; aspect-ratio: 1.52; object-fit: cover; border-radius: 34px 34px 92px 34px; }
.pet-search { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 15px; border: 1px solid var(--brand); border-radius: 16px; background: var(--panel); }
.pet-search input { color: var(--ink); min-width: 0; width: 100%; background: transparent; border: none; padding: 9px 0; font-size: 16px; }
.pet-search input::placeholder { color: var(--muted); }
.pet-search .btn-go { padding-inline: 20px; min-height: 46px; }
.pet-shortcuts, .pet-dialog-actions, .pet-alert-actions, .pet-saved-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pet-shortcuts { margin-top: 15px; }
.pet-shortcuts button, .pet-categories button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; font-weight: 600; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.pet-shortcuts button:hover, .pet-categories button:hover { background: var(--brand-soft); border-color: var(--brand); }
.pet-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.pet-section-head h2 { font-size: clamp(23px, 2.5vw, 34px); font-weight: 700; letter-spacing: -.045em; margin: 0; }
.pet-categories, .pet-saved-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 12px; }
.pet-categories button { min-height: 82px; text-align: left; padding: 14px 20px; font-size: 16px; }
.pet-categories button svg { background: var(--brand-soft); color: var(--brand); border-radius: 12px; width: 46px; height: 46px; padding: 10px; }
.pet-categories button span { color: var(--brand); margin-left: auto; }
.pet-rubros summary { width: fit-content; padding: 10px 0; color: var(--muted); cursor: pointer; }
.pet-rubros .verticals-grid { margin-top: 12px; }
body .pet-best { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; margin: 7px 0 0; color: var(--brand); }
.pet-best strong { font-size: clamp(23px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -.05em; }
.pet-best span, body .product-meta { font-size: 13px; color: var(--muted); }
body .product-name { margin-bottom: 3px; line-height: 1.23; }
body .prices-header, body .price-row { grid-template-columns: minmax(0,1fr) minmax(90px, .42fr) minmax(120px, .63fr); }
body .price-row { padding-block: 9px; }
body .price-row .buy-btn { white-space: normal; text-align: center; min-height: 44px; font-size: 13px; }
body .offer-date { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; }
body .price-history-btn { min-height: 44px; }
body .lista-vacia .total-line, body .lista-vacia > button, body .side-panel:has(.lista-vacia) article:has(#historialTexto) { display: none; }
.pet-alert-dialog form { float: none; margin: 0; display: grid; gap: 12px; }
.pet-alert-dialog p { color: var(--muted); margin: 0; }
.pet-alert-dialog .form-control { font-size: 16px; }
.pet-dialog-actions { justify-content: flex-end; margin-top: 8px; }
.pet-dialog-actions button, .pet-alert-actions button, .pet-saved-actions button { min-height: 44px; padding-inline: 12px; }
body .saved-item { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 14px; }
body .saved-item img { width: 72px; height: 80px; object-fit: contain; background: white; border-radius: 9px; }
.pet-saved-grid .saved-item { grid-template-columns: 72px minmax(0,1fr); }
.pet-saved-grid .pet-saved-actions { grid-column: 1 / -1; }
body .saved-meta { margin: 2px 0 0; color: var(--muted); }
@media(max-width:760px) {
    .pet-hero { grid-template-columns: 1fr; gap: 16px; }
    .pet-hero-copy h2 { margin-bottom: 16px; font-size: clamp(32px, 7.8vw, 47px); max-width: 15em; }
    .pet-portrait { aspect-ratio: 2.25; object-position: 50% 52%; border-radius: 18px 18px 48px 18px; }
    .pet-categories { grid-template-columns: 1fr; gap: 8px; }
    .pet-categories button { min-height: 58px; padding: 8px 12px; }
    .pet-categories button svg { width: 39px; height: 39px; padding: 8px; }
    .pet-search { gap: 7px; padding-left: 10px; }
    .pet-search .btn-go { padding-inline: 12px; }
    body .product-info,body.dark .product-info { grid-template-columns: 88px minmax(0,1fr); gap: 8px 12px; padding: 12px; }
    body .product-image-box,body.dark .product-image-box { width: 88px; height: 102px; }
    body .product-image { height: 86px; }
    body .secondary-label { display: inline; }
    body .product-actions { gap: 5px; }
    body .product-actions .details-btn { min-height: 44px; padding: 6px 8px; }
    body .prices-header,body .price-row { grid-template-columns: minmax(0,1fr) auto; }
    body .price-row { gap: 2px 8px; padding: 8px 12px; grid-template-areas: "store amount" "date action"; }
    body .offer-date { gap: 0 6px; }
    body .price-row .buy-btn { max-width: 170px; padding-inline: 9px; }
    body .saved-item { grid-template-columns: 64px minmax(0,1fr); }
    .pet-saved-actions, .pet-alert-actions { grid-column: 1 / -1; }
    body .alert-item { display: grid; grid-template-columns: auto minmax(0,1fr); }
}
.pet-saved-price { margin: 6px 0; font-size: 13px; color: var(--muted); }
.pet-saved-price strong { display: inline-block; margin-left: 4px; font-size: 21px; color: var(--ink); }
.pet-saved-target { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; margin: 0; font-size: 13px; border-radius: 6px; color: var(--brand); background: var(--brand-soft); }
.pet-saved-target svg { width: 15px; height: 15px; }
body .pet-nav-saved { display: none; }
@media(max-width:1024px) {
    body .pet-nav-saved { display: inline-flex; width: auto; padding-inline: 10px; gap: 5px; color: var(--brand); font-size: 12px; }
}
@media(max-width:420px) {
    body .theme-toggle span { display: none; }
    body .pet-nav-saved { padding-inline: 7px; }
}
@media(max-width:355px) {
    body .pet-nav-saved span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* Tarjeta compacta (revisión de diseño 2026-11-25): el precio y el ahorro
   primero, una fila corta por tienda y las acciones secundarias como íconos. */
body .results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
body .results-head .frescura { margin: 0; font-size: 12px; color: var(--muted); }
body .filter-block:has(#subcategoria:disabled) { display: none; }
body .results-list { gap: 14px; }
body .product-info, body.dark .product-info { grid-template-columns: 88px minmax(0,1fr) auto; gap: 4px 18px; padding: 18px 20px 14px; }
body .product-image-box, body.dark .product-image-box { grid-row: 1; width: 88px; height: 88px; padding: 6px; }
body .product-image { height: 76px; max-height: 76px; }
body .product-name { margin: 0 0 2px; font-size: 16px; line-height: 1.35; }
body .product-meta { margin: 0 0 6px; color: var(--muted); }
body .pet-best { margin: 0; }
body .pet-best strong { font-size: 24px; font-weight: 700; letter-spacing: -.5px; color: var(--brand); font-variant-numeric: tabular-nums; }
body .product-savings { display: inline-block; margin: 4px 0 0; padding: 3px 8px; border-radius: 6px; background: var(--success-soft); color: var(--ink); font-size: 13px; line-height: 1.4; }
body .product-savings strong { color: var(--brand); font-weight: 650; }
body .product-savings.neutral { padding: 0; background: transparent; color: var(--muted); }
body .product-actions { grid-column: 3; grid-row: 1; align-self: start; flex-wrap: nowrap; gap: 4px; }
body .product-actions .details-btn { min-width: 38px; min-height: 38px; padding: 8px; justify-content: center; }
body .secondary-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body .prices-header, body .price-row { grid-template-columns: minmax(0,1fr) auto auto; gap: 2px 16px; padding: 10px 20px; }
body .price-row { grid-template-areas: "store amount action"; align-items: center; }
body .offer-store { align-self: center; }
body .offer-amount { text-align: right; }
body .offer-date { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-size: 12px; }
body .stale-date { color: var(--warning); }
body .price-history-btn { min-height: 24px; padding: 0; font-size: 12px; color: var(--muted); }
body .price-history-btn:hover { color: var(--brand); }
body .store-name { display: inline; font-size: 14px; }
body .price-value { font-size: 16px; }
body .buy-btn, body.dark .buy-btn { min-height: 36px; padding: 6px 12px; font-size: 12px; white-space: nowrap; }
body .single-store .price-row.is-best { background: transparent; box-shadow: none; }
body .load-more { display: block; width: 100%; min-height: 48px; margin-top: 4px; font-weight: 600; }
@media (max-width: 767px) {
    body .product-info, body.dark .product-info { grid-template-columns: 72px minmax(0,1fr); gap: 2px 12px; padding: 14px 14px 10px; }
    body .product-image-box, body.dark .product-image-box { grid-row: 1 / 3; width: 72px; height: 72px; padding: 5px; }
    body .product-image { height: 62px; max-height: 62px; }
    body .product-name { font-size: 15px; }
    body .pet-best strong { font-size: 22px; }
    body .product-savings { font-size: 12px; }
    body .product-actions { grid-column: 2; grid-row: 2; justify-content: flex-start; margin-top: 6px; }
    body .product-actions .details-btn { min-width: 40px; min-height: 40px; }
    body .prices-header, body .price-row { grid-template-columns: minmax(0,1fr) auto auto; gap: 2px 10px; padding: 10px 14px; }
    body .price-row { grid-template-areas: "store amount action"; }
    body .offer-store, body .offer-amount { align-self: center; }
    body .price-value { font-size: 16px; }
    body .price-row .buy-btn { min-height: 40px; padding-inline: 10px; font-size: 12px; }
    body .unconfirmed-offer { max-width: 14ch; }
}

/* Ronda 2 de la revisión de diseño (2026-11-25): encabezado con dos destinos,
   un solo "Guardar", Mis productos como lista con totales, portada y categorías. */
body .topbar { display: flex; align-items: center; justify-content: space-between; }
body .top-actions { display: flex; gap: 8px; }
body .nav-link-app, body.dark .nav-link-app { position: relative; display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 0 12px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink); }
body .nav-link-app.active, body.dark .nav-link-app.active { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
body .nav-link-app:hover { color: var(--brand); border-color: var(--brand); }
body .nav-link-app .cart-badge { position: static; display: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--action); color: var(--on-action); font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
body .nav-link-app .cart-badge.show { display: inline-block; }
@media (max-width: 600px) {
    body .nav-link-app, body.dark .nav-link-app { padding: 0 10px; }
    body .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    body .theme-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    body .theme-toggle, body.dark .theme-toggle { width: 40px; padding: 0; justify-content: center; }
    body .brand-subtitle { display: none; }
}

/* Guardar: un botón con texto; guardado se marca relleno. */
body .product-actions .save-btn, body.dark .product-actions .save-btn { gap: 6px; padding: 8px 12px; color: var(--brand); font-weight: 600; }
body .save-btn.saved, body.dark .save-btn.saved { background: var(--brand-soft); border-color: transparent; }
body .save-btn.saved svg { fill: currentColor; }

/* Portada */
body .pet-trust { margin: 10px 0 18px; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 46ch; }
body .pet-recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
body .pet-recent .suggestion-chip { min-height: 34px; padding: 4px 12px; }
body .pet-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body .pet-categories button { display: flex; align-items: center; gap: 12px; }
body .pet-categories button svg.pet-cat-arrow { width: 20px; height: 20px; padding: 0; margin-left: auto; background: none; border-radius: 0; color: var(--muted); }
@media (max-width: 767px) { body .pet-categories { grid-template-columns: 1fr; } }

/* Resultados sin panel lateral vacío */
body .side-panel:not(:has(> :not([hidden]))) { display: none; }
@media (min-width: 1025px) {
    body .content-grid:has(.side-panel:not(:has(> :not([hidden])))) { grid-template-columns: 208px minmax(0, 1fr); }
}

/* Mis productos */
body .saved-intro { margin: 0 0 18px; max-width: 60ch; }
body .saved-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
body .saved-layout:has(.saved-summary[hidden]) { grid-template-columns: minmax(0, 1fr); }
body .saved-list-card { padding: 4px 20px; }
body .saved-summary { position: sticky; top: 20px; }
body .saved-summary .total-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
body .optimal-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
body .optimal-item:last-child { border-bottom: 0; }
body .optimal-item img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 4px; }
body .optimal-name { font-size: 15px; font-weight: 600; line-height: 1.35; }
body .optimal-meta { font-size: 12px; color: var(--muted); }
body .optimal-side { display: grid; justify-items: end; gap: 8px; }
body .optimal-price { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
body .optimal-see { margin-top: 4px; padding: 0; font-size: 12px; }
body .price-change { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
body .price-change.down { background: var(--success-soft); color: var(--brand); }
body .price-change.up { background: var(--warning-soft); color: var(--warning); }
body .saved-empty { display: grid; justify-items: center; gap: 8px; padding: 32px 12px; border: 0; }
body .saved-empty svg { width: 28px; height: 28px; color: var(--brand); }
body .saved-empty p { margin: 0 0 6px; max-width: 40ch; }
body .compraPanel.lista-vacia, body #compraPanel.lista-vacia { padding: 0; }
@media (max-width: 900px) {
    body .saved-layout { grid-template-columns: minmax(0, 1fr); }
    body .saved-summary { position: static; order: -1; }
}

/* Categorías: la tarjeta entera abre la categoría. */
body .category-card { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 14px; align-content: start; min-height: 0; }
body .category-card .category-icon { grid-row: 1 / 3; }
body .category-card h3 { margin: 0; }
body .category-card p { grid-column: 2; margin: 2px 0 0; }
body .category-open { display: block; min-height: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 17px; font-weight: 600; text-align: left; }
body .category-open::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
body .category-open:focus-visible { outline: none; }
body .category-card:has(.category-open:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
body .category-chip-row { position: relative; z-index: 1; grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
body .category-arrow { grid-column: 3; grid-row: 1; width: 18px; height: 18px; color: var(--muted); }
body .saved-list-card .optimal-list { display: block; padding: 0; border: 0; }
body .optimal-name { overflow: visible; white-space: normal; text-overflow: clip; }
body .optimal-main { min-width: 0; text-align: left; }
body .optimal-see { display: block; text-align: left; }
@media (max-width: 600px) {
    body .saved-list-card { padding: 0 14px; }
    body .optimal-item { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; }
    body .optimal-item img { width: 48px; height: 48px; }
    body .optimal-side { grid-column: 2; display: flex; align-items: center; justify-content: space-between; }
}
body .category-card, body.dark .category-card { row-gap: 0; }
