/* Shared navigation and a practical, quieter starting point. */
:root {
    --primary: #176044;
    --primary-dark: #104b34;
    --primary-light: #277555;
    --primary-50: #edf4ed;
    --primary-100: #dfece0;
    --bg: #f6f7f2;
    --bg-muted: #eef1e9;
    --text: #23352b;
    --text-secondary: #536157;
    --text-muted: #68756b;
    --border: #dfe5db;
    --border-hover: #bbcbbb;
    --bg-dark: #23352b;
}
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
button, input, select, textarea { font-family: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:is(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid #357c5b; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.header { box-shadow: none; border-bottom: 1px solid var(--border); }
.header-inner { min-height: 78px; padding-top: 12px; padding-bottom: 12px; }
.logo { color: inherit; flex-shrink: 0; }
.logo-icon { box-shadow: none; }
.logo-text { font-size: 21px; font-weight: 700; }
.nav { gap: 3px; }
.nav-btn { min-height: 44px; border-radius: 9px; font-weight: 500; color: var(--text-secondary); padding: 10px 13px; transition: background-color 150ms ease, color 150ms ease; }
.nav-btn.active { color: var(--primary); background: var(--primary-50); font-weight: 700; }
.nav-icon { width: 19px; height: 19px; }
.nav-menu-btn[aria-expanded="true"] { background: var(--primary-100); color: var(--primary); }
.main { padding: 32px 0 56px; }
#main-content:focus { outline: none; }
.hero-title, .view-title { letter-spacing: -.035em; }
.hero-title .gradient-text { background: none; -webkit-text-fill-color: var(--primary); color: var(--primary); }
.hero-stats { box-shadow: none; border: 1px solid var(--border); }
.search-container { box-shadow: var(--shadow-xs); }
body:not([data-view="home"]) .seo-content { display: none; }
body[data-view="expenses"] .promo-bar { display: none; }
.home-container { max-width: 1120px; }
.home-search-panel { max-width: 740px; }
.home-search-panel h1 { font: 600 clamp(22px, 3vw, 28px)/1.2 'DM Sans', sans-serif; letter-spacing: -.035em; }
.home-search-panel .home-search { margin-top: 16px; background: white; }
.home-shortcuts { display: flex; gap: 9px; margin: 14px 0 28px; flex-wrap: wrap; }
.home-shortcuts button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text-secondary); font-size: 13px; cursor: pointer; }
.home-shortcuts button:hover { background: white; color: var(--primary); border-color: var(--border-hover); }
#home-offers-slot .offers-section { margin-top: 18px; }
@media (max-width: 699px) {
    #home-offers-slot .product-image-wrapper,
    #home-offers-slot .skeleton-image { height: 155px; }
}
#offers-section .section-header { flex-wrap: wrap; gap: 10px; }
#offers-section .section-title { font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
#refresh-offers-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 44px; padding: 10px 15px; border-radius: 8px; background: var(--primary); border: 1px solid var(--primary); color: white; font-size: 13px; font-weight: 600; }
#refresh-offers-btn:hover:not(:disabled) { background: var(--primary-dark); }
#refresh-offers-btn:disabled { opacity: .65; cursor: wait; }
#refresh-offers-btn.spinning { animation: none; }
#refresh-offers-btn.spinning svg { animation: spin 1s linear infinite; }
.offers-error { padding: 12px 14px; margin-bottom: 14px; background: #fff2e8; color: #864229; border-radius: 8px; font-size: 13px; }
.home-about summary { color: var(--text-secondary); font-size: 13px; cursor: pointer; min-height: 44px; padding: 10px 0; }
.home-about[open] summary { margin-bottom: 15px; }
body[data-view="home"] .seo-content, body[data-view="home"] .footer-contact { padding-top: 18px; padding-bottom: 18px; }
@media (max-width: 768px) {
    .home-shortcuts { gap: 6px; margin-bottom: 22px; }
    .home-shortcuts button { padding: 9px 10px; font-size: 12px; gap: 6px; }
    #offers-section .section-title { font-size: 18px; }
    #offers-updated { display: none; }
    .home-search-panel .home-search { flex-wrap: nowrap; }
    .home-search-panel .home-search input { min-width: 0; }
    .home-search-panel .home-search button { width: auto; }
}
.home-intro { padding: 8px 0 30px; }
.home-location { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); margin-bottom: 17px; }
.home-intro h1 { font-family: 'Lora', Georgia, serif; font-size: clamp(31px, 3.7vw, 48px); font-weight: 500; line-height: 1.18; letter-spacing: -.045em; }
.home-intro h1 span { color: var(--primary); }
.home-lead { color: var(--text-secondary); font-size: 16px; margin-top: 17px; }
.home-workspace { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; }
.home-compare { padding: 32px; border: 1px solid var(--border); border-radius: 18px; background: white; min-width: 0; display: flex; flex-direction: column; }
.home-eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--text-secondary); margin-bottom: 10px; }
.home-compare h2 { font-size: 25px; letter-spacing: -.035em; line-height: 1.25; font-weight: 600; }
.home-compare > p { color: var(--text-secondary); font-size: 14px; margin-top: 9px; }
.home-search { display: flex; align-items: center; gap: 9px; padding: 6px 6px 6px 13px; border: 1px solid #acbead; border-radius: 10px; margin-top: 28px; background: #fafbf8; }
.home-search:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.home-search > svg { flex-shrink: 0; color: var(--primary); }
.home-search input { width: 0; min-width: 0; flex: 1; border: 0; background: transparent; font-size: 14px; outline: none; color: var(--text); min-height: 42px; }
.home-search input:focus-visible { outline: none; }
.home-search input::placeholder { color: #707d71; }
.home-search button { min-height: 44px; border: 0; background: var(--primary); color: white; border-radius: 7px; font-size: 13px; font-weight: 600; padding: 0 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.home-search button:hover { background: var(--primary-dark); }
.home-search-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 12px; font-size: 12px; color: var(--text-secondary); }
.home-search-examples > span { margin-right: 4px; }
.home-search-examples button { border: 0; background: #f1f4ed; border-radius: 6px; color: var(--text-secondary); min-height: 36px; padding: 5px 11px; cursor: pointer; font-size: 12px; }
.home-search-examples button:hover { background: var(--primary-100); color: var(--primary); }
.home-compare-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 30px; padding-top: 18px; font-size: 11px; color: var(--text-secondary); }
.home-compare-foot button { border: 0; background: transparent; color: var(--primary); font-size: 12px; font-weight: 600; cursor: pointer; min-height: 36px; }
.home-expenses { background: #176044; color: #fff; border-radius: 18px; padding: 27px 30px; display: flex; flex-direction: column; align-items: flex-start; }
.home-expenses-icon { color: #cbe5bd; margin-bottom: 14px; }
.home-expenses .home-eyebrow { color: #cbe5bd; }
.home-expenses h2 { font-family: 'Lora', Georgia, serif; font-size: 28px; font-weight: 400; letter-spacing: -.035em; line-height: 1.22; }
.home-expenses p { color: #e0ebdf; font-size: 13px; line-height: 1.65; margin: 14px 0 22px; max-width: 30ch; }
.home-expenses-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; background: #e4efd8; border: 0; color: #164b35; width: 100%; border-radius: 8px; font-weight: 700; padding: 13px 16px; min-height: 46px; font-size: 13px; cursor: pointer; margin-top: auto; }
.home-expenses-cta:hover { background: #f1f7eb; }
.home-expenses-note { color: #d7e5d6; font-size: 10px; margin-top: 11px; }
.home-planning { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 27px 0; margin-top: 10px; border-bottom: 1px solid var(--border); }
.home-planning .home-eyebrow { margin-bottom: 5px; }
.home-planning h2 { font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.home-planning p { margin-top: 6px; font-size: 13px; color: var(--text-secondary); }
.shell-outline-button { display: inline-flex; align-items: center; gap: 12px; background: transparent; border: 1px solid #a6bba6; color: var(--primary); border-radius: 8px; padding: 12px 17px; min-height: 46px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; }
.shell-outline-button:hover { background: var(--primary-50); }
.home-categories { padding-top: 26px; }
.home-section-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-section-label h2 { font-size: 15px; font-weight: 600; letter-spacing: -.025em; }
.home-section-label > span { font-size: 11px; color: var(--text-secondary); }
.home-category-links { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 13px; }
.home-category-links a { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--text-secondary); background: transparent; text-decoration: none; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: 12px; min-height: 44px; }
.home-category-links a:hover { color: var(--primary); border-color: #a6bba6; background: white; }
.shell-menu { margin: 0 0 0 auto; width: min(400px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; padding: max(25px, env(safe-area-inset-top)) 25px max(25px, env(safe-area-inset-bottom)); border: 0; border-left: 1px solid var(--border); background: #fafbf7; color: var(--text); overflow-y: auto; overscroll-behavior: contain; }
.shell-menu::backdrop { background: rgba(21, 36, 27, .38); }
.shell-menu-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 10px; }
.shell-menu-heading .home-eyebrow { margin-bottom: 5px; }
.shell-menu-heading h2 { font-family: 'Lora', Georgia, serif; font-weight: 500; font-size: 28px; letter-spacing: -.035em; }
.shell-close { display: grid; place-items: center; background: white; border: 1px solid var(--border); border-radius: 50%; width: 44px; height: 44px; flex-shrink: 0; color: var(--text-secondary); cursor: pointer; }
.shell-link { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 15px; min-height: 46px; padding: 11px 13px; color: var(--text-secondary); background: transparent; border: 0; text-decoration: none; cursor: pointer; text-align: left; font-size: 14px; border-radius: 7px; }
.shell-link:hover { background: var(--bg-muted); color: var(--primary); }
.shell-link[aria-current="page"] { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.shell-home-link { margin-bottom: 15px; }
.shell-menu-group { border-top: 1px solid var(--border); }
.shell-menu-group summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; padding: 19px 3px; min-height: 52px; font-size: 14px; font-weight: 600; }
.shell-menu-group summary::-webkit-details-marker { display: none; }
.shell-menu-group summary svg { color: var(--text-muted); transition: transform 150ms ease; }
.shell-menu-group[open] summary svg { transform: rotate(180deg); }
.shell-group-content { padding: 0 0 13px; }
.shell-menu-note { color: var(--text-secondary); border-top: 1px solid var(--border); margin-top: 10px; padding: 24px 3px 0; font-size: 12px; line-height: 1.7; }
@media (max-width: 960px) {
    .header-inner { gap: 10px; }
    .nav-btn { padding: 10px; gap: 5px; }
    .logo-text { font-size: 19px; }
    .home-workspace { grid-template-columns: 1.4fr 1fr; }
    .home-compare, .home-expenses { padding: 25px; }
    .home-category-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .header-inner { min-height: 65px; }
    .logo-text { font-size: 19px; }
    .logo-icon { width: 31px; height: 31px; }
    .main { padding-top: 21px; padding-bottom: 32px; }
    .nav { height: auto; min-height: calc(64px + env(safe-area-inset-bottom)); padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); box-shadow: none; background: #fff; gap: 2px; }
    .nav-btn { padding: 7px 5px 5px; gap: 4px; flex: 1; min-width: 0; min-height: 54px; border-radius: 8px; }
    .nav-icon { width: 22px; height: 22px; }
    .nav-label { font-size: 10px; line-height: 1.3; }
    .nav-btn.active { background: #eef4ec; }
    .home-intro { padding-top: 3px; padding-bottom: 25px; }
    .home-location { font-size: 11px; margin-bottom: 14px; }
    .home-intro h1 { font-size: clamp(28px, 5.2vw, 40px); }
    .home-lead { font-size: 14px; margin-top: 14px; max-width: 39ch; }
    .home-workspace { grid-template-columns: 1fr; gap: 15px; }
    .home-compare { padding: 23px; border-radius: 13px; }
    .home-compare h2 { font-size: 23px; }
    .home-compare > p { font-size: 13px; }
    .home-search { margin-top: 21px; }
    .home-search input { font-size: 16px; }
    .home-search button { padding: 0 12px; gap: 8px; }
    .home-compare-foot { margin-top: 19px; padding-top: 12px; }
    .home-expenses { border-radius: 13px; padding: 23px; display: grid; grid-template-columns: 1fr auto; column-gap: 15px; }
    .home-expenses-icon { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: start; }
    .home-expenses .home-eyebrow { grid-column: 1; font-size: 9px; }
    .home-expenses h2 { grid-column: 1; font-size: 25px; }
    .home-expenses h2 br { display: none; }
    .home-expenses p { grid-column: 1 / -1; max-width: 45ch; margin: 12px 0 18px; }
    .home-expenses-cta { grid-column: 1 / -1; }
    .home-expenses-note { grid-column: 1 / -1; }
    .home-planning { align-items: flex-start; flex-direction: column; padding: 25px 0; gap: 16px; }
    .home-planning h2 { font-size: 18px; max-width: 26ch; }
    .home-section-label > span { display: none; }
    .home-category-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .home-category-links a { padding: 10px; font-size: 11px; }
    .shell-menu { padding-left: 21px; padding-right: 21px; }
    .promo-bar { padding-bottom: 20px; }
}
@media (max-width: 360px) {
    .home-compare { padding: 19px; }
    .home-search { flex-wrap: wrap; gap: 7px; padding: 8px; }
    .home-search input { min-width: 160px; }
    .home-search button { width: 100%; justify-content: space-between; }
    .home-intro h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.header-menu-btn { flex:0 0 auto; margin-left:12px; min-width:44px; }
.shell-link[hidden] { display:none; }
.home-local-feature { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; padding:16px 20px; margin-bottom:24px; background:var(--primary-50); color:var(--primary); border:1px solid var(--border-hover); border-radius:12px; text-align:left; cursor:pointer; min-height:64px; }
.home-local-feature strong, .home-local-feature small { display:block; }
.home-local-feature strong { font-size:18px; }
.home-local-feature small { font-size:13px; margin-top:4px; }
.home-media-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.home-media-actions button { min-height:44px; padding:8px 12px; background:white; border:1px solid var(--border); border-radius:8px; color:var(--primary); cursor:pointer; }
.search-privacy-note { margin:10px 0 18px; font-size:12px; color:var(--text-secondary); max-width:65ch; }
.local-search-card .local-search-meta { font-size:13px; color:var(--text-secondary); margin-top:8px; }
.local-search-card .local-search-detail { margin-top:14px; min-height:44px; padding:8px 12px; border:1px solid var(--primary); border-radius:8px; color:var(--primary); background:white; cursor:pointer; }
@media(max-width:768px) { .header-menu-btn { margin-left:auto; flex:0 0 auto; min-height:44px; padding:10px; flex-direction:row; } .header-menu-btn .nav-label { font-size:12px; } }

:root { --otros: #526b61; }
.chip.active[data-supermarket="otros"] { background: var(--otros); border-color: var(--otros); }
.store-dot.otros { background: var(--otros); }
@media (max-width: 640px) {
    .hero-stats .stat-item { flex: 0 0 auto; min-width: 82px; max-width: 100%; }
    .hero-stats .stat-number, .hero-stats .stat-label { white-space: nowrap; }
}

.home-search-wrap { position:relative; }
.home-search-wrap .search-suggestions { top:100%; }
