/* ============================================================
   YOGURT GRIEGO — Editorial Design System
   Inspired by premium news sites (Houston Chronicle style)
   ============================================================ */

:root {
    --blue:        #1d4ed8;
    --blue-dark:   #1e3a8a;
    --blue-light:  #dbeafe;
    --green:       #059669;
    --red:         #dc2626;
    --amber:       #d97706;
    --text:        #111827;
    --text-md:     #374151;
    --text-light:  #6b7280;
    --text-muted:  #9ca3af;
    --bg:          #ffffff;
    --bg-warm:     #fafaf9;
    --bg-alt:      #f3f4f6;
    --border:      #e5e7eb;
    --border-dark: #d1d5db;
    --shadow-sm:   0 1px 2px rgba(0,0,0,.06);
    --shadow:      0 2px 8px rgba(0,0,0,.09);
    --shadow-lg:   0 8px 24px rgba(0,0,0,.12);
    --max-w:       1240px;
    --serif:       Georgia, 'Times New Roman', serif;
    --sans:        'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm:   4px;
    --radius:      6px;
    --radius-lg:   10px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-dark); }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--serif);
    line-height: 1.25;
    font-weight: 700;
    color: var(--text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: .75rem; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); margin-bottom: .6rem; }
h3 { font-size: 1.2rem; margin-bottom: .4rem; }
h4 { font-size: 1rem; font-family: var(--sans); }
p { margin-bottom: 1rem; }

/* ── Layout ──────────────────────────────────────────────── */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }
.grid   { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }

/* ── Top bar ─────────────────────────────────────────────── */
.top-bar {
    background: var(--blue-dark);
    color: rgba(255,255,255,.8);
    font-size: .75rem;
    padding: .35rem 0;
    letter-spacing: .03em;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: rgba(255,255,255,.75); }
.top-bar a:hover { color: #fff; }

/* ── Site Header ─────────────────────────────────────────── */
.site-header {
    background: var(--bg);
    border-bottom: 3px solid var(--blue);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
}
.logo { display: flex; align-items: center; }
.logo img, .logo svg { height: 46px; width: auto; }

/* ── Navigation ──────────────────────────────────────────── */
.main-nav { display: flex; align-items: center; }
.nav-menu  { display: flex; list-style: none; gap: 0; }
.nav-menu > li > a {
    display: block;
    padding: .5rem .85rem;
    color: var(--text-md);
    font-weight: 600;
    font-size: .875rem;
    font-family: var(--sans);
    letter-spacing: .02em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}
.has-submenu { position: relative; }
.submenu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--blue);
    box-shadow: var(--shadow-lg);
    list-style: none;
    min-width: 230px;
    z-index: 300;
    padding: .5rem 0;
}
.has-submenu:hover .submenu { display: block; }
.submenu li a {
    display: block;
    padding: .55rem 1.1rem;
    color: var(--text-md);
    font-size: .875rem;
    font-family: var(--sans);
    border-left: 3px solid transparent;
    transition: background .12s, border-color .12s;
}
.submenu li a:hover {
    background: var(--bg-alt);
    color: var(--blue);
    border-left-color: var(--blue);
}
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: .4rem .5rem;
    flex-direction: column;
    gap: 4px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 1px; transition: .25s;
}

/* ── Country Selector ────────────────────────────────────── */
.country-selector select {
    padding: .4rem .65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: .8rem;
    font-family: var(--sans);
    color: var(--text-md);
    cursor: pointer;
    font-weight: 500;
}
.country-selector select:focus { outline: 2px solid var(--blue); }

/* ── Section headers (editorial style) ──────────────────── */
.section-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--text);
}
.section-header h2 {
    font-size: 1.25rem;
    letter-spacing: -.01em;
    margin: 0;
    text-transform: uppercase;
    font-family: var(--sans);
    font-weight: 800;
}
.section-header-accent {
    width: 4px;
    height: 22px;
    background: var(--blue);
    border-radius: 2px;
    flex-shrink: 0;
}
.section { padding: 2.5rem 0; }
.section-sm { padding: 1.25rem 0; }
.section-alt { background: var(--bg-warm); }
.section-blue { background: var(--blue); color: white; }
.section-blue h2 { color: white; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .875rem;
    font-family: var(--sans);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .15s;
    line-height: 1;
    text-align: center;
}
.btn-primary  { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue); color: #fff; }
.btn-outline { background: transparent; color: var(--text-md); border-color: var(--border-dark); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: .35rem .8rem; font-size: .8rem; }
.btn-lg { padding: .8rem 1.75rem; font-size: 1rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #3b82f6 100%);
    color: #fff;
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4.5vw, 3rem); color: #fff; line-height: 1.15; margin-bottom: .75rem; }
.hero-subtitle { font-size: 1.05rem; opacity: .9; max-width: 560px; line-height: 1.65; }
.hero-cta { margin-top: 1.75rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--blue); border-color: #fff; }
.hero .btn-primary:hover { background: var(--blue-light); border-color: var(--blue-light); color: var(--blue-dark); }
.hero .btn-secondary { border-color: rgba(255,255,255,.6); color: #fff; }
.hero .btn-secondary:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

/* ── Featured Hero (editorial layout) ───────────────────── */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.featured-main {
    position: relative;
    min-height: 380px;
    background: var(--bg-alt);
}
.featured-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; inset: 0;
}
.featured-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    color: #fff;
}
.featured-main-overlay .tag { background: var(--blue); color: #fff; }
.featured-main-overlay h2 { font-size: 1.65rem; color: #fff; margin: .4rem 0; }
.featured-main-overlay p { font-size: .9rem; opacity: .85; font-family: var(--sans); font-weight: 400; margin: 0; }
.featured-side { display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.featured-side-item {
    flex: 1;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    border-bottom: 1px solid var(--border);
}
.featured-side-item:last-child { border-bottom: none; }
.featured-side-item:hover { background: var(--bg-alt); }
.featured-side-item h3 { font-size: .95rem; line-height: 1.3; font-family: var(--serif); }
.featured-side-item p { font-size: .8rem; color: var(--text-light); font-family: var(--sans); margin: 0; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
a.card { color: var(--text); }
a.card:hover { color: var(--text); }
.card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1rem; line-height: 1.35; margin-bottom: .4rem; font-family: var(--serif); }

/* ── Tags / Badges ───────────────────────────────────────── */
.tag {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 3px;
    font-size: .72rem;
    font-weight: 700;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .04em;
    background: var(--blue-light);
    color: var(--blue-dark);
    margin-bottom: .4rem;
}
.tag-green  { background: #d1fae5; color: #065f46; }
.tag-amber  { background: #fef3c7; color: #92400e; }
.tag-red    { background: #fee2e2; color: #991b1b; }
.tag-gray   { background: var(--bg-alt); color: var(--text-md); }
.badge-top {
    background: var(--blue); color: #fff;
    font-size: .7rem; font-weight: 700; font-family: var(--sans);
    padding: .2rem .65rem; border-radius: 99px;
    text-transform: uppercase; letter-spacing: .05em;
    display: inline-block; margin-bottom: .6rem;
}

/* ── Post / Article cards ────────────────────────────────── */
.post-card .card-body { gap: .3rem; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--blue); }
.post-excerpt { font-size: .875rem; color: var(--text-light); line-height: 1.55; margin-top: .3rem; flex: 1; }
.post-meta-small { font-size: .75rem; color: var(--text-muted); display: flex; gap: .75rem; margin-top: auto; padding-top: .6rem; }

/* ── Country cards ───────────────────────────────────────── */
.country-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text);
    gap: .4rem;
    border-bottom: 3px solid transparent;
}
.country-card:hover { border-bottom-color: var(--blue); }
.country-flag { font-size: 2.25rem; }
.country-card h3 { font-size: .95rem; font-family: var(--sans); font-weight: 700; }
.country-card p   { font-size: .8rem; color: var(--text-light); margin: 0; }

/* ── Brand cards ─────────────────────────────────────────── */
.brand-card .card-body { padding: 1rem; }
.brand-card h3 { font-size: .95rem; }
.nutrition-highlight { font-size: .8rem; color: var(--green); font-weight: 600; margin: .3rem 0; }
.rating { color: var(--amber); font-weight: 700; font-size: .875rem; }
.rating-lg { color: var(--amber); font-weight: 800; font-size: 1.4rem; }

/* ── Objective / Use-case cards ──────────────────────────── */
.objective-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
    color: var(--text);
    border-top: 3px solid transparent;
}
.objective-card:hover { border-top-color: var(--blue); }
.objective-icon { font-size: 2.25rem; display: block; margin-bottom: .75rem; }
.objective-card h3 { font-size: 1rem; font-family: var(--sans); font-weight: 700; margin-bottom: .25rem; }
.objective-card p  { font-size: .85rem; color: var(--text-light); margin: 0; }

/* ── Compare link cards ──────────────────────────────────── */
.compare-link-card { padding: 1.35rem; color: var(--text); }
.compare-link-card:hover { border-left: 3px solid var(--blue); }
.compare-link-card h3 { font-size: 1rem; }
.compare-link-card p  { font-size: .85rem; color: var(--text-light); margin: 0; }

/* ── Method cards ────────────────────────────────────────── */
.method-card { text-align: center; padding: 1.5rem 1.25rem; }
.method-icon { font-size: 2rem; display: block; margin-bottom: .75rem; }
.method-card h3 { font-size: 1rem; font-family: var(--sans); font-weight: 700; margin-bottom: .4rem; }
.method-card p  { font-size: .875rem; color: var(--text-light); margin: 0; }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumbs {
    padding: .6rem 0;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border);
    font-size: .8rem;
    color: var(--text-light);
}
.breadcrumbs ol { display: flex; list-style: none; flex-wrap: wrap; gap: 0; }
.breadcrumbs li::after { content: '›'; margin: 0 .4rem; color: var(--text-muted); }
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs a { color: var(--blue); }
.breadcrumbs li:last-child span { color: var(--text-light); }

/* ── Page header ─────────────────────────────────────────── */
.page-header {
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.page-header h1 { margin-bottom: .4rem; }
.lead { font-size: 1.05rem; color: var(--text-md); max-width: 680px; line-height: 1.7; font-family: var(--sans); margin: 0; }
.section-subtitle { font-size: 1rem; color: var(--text-light); margin-bottom: 1.75rem; max-width: 620px; font-family: var(--sans); }
.section-cta { text-align: center; margin-top: 2rem; }

/* ── Quick answer block ──────────────────────────────────── */
.quick-answer-section { background: #eff6ff; padding: 1.75rem 0; border-bottom: 1px solid #bfdbfe; }
.quick-answer {
    background: #fff;
    border-left: 4px solid var(--blue);
    padding: 1.1rem 1.4rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: .975rem;
    line-height: 1.75;
    box-shadow: var(--shadow-sm);
}
.quick-answer strong { color: var(--blue-dark); }

/* ── Table ───────────────────────────────────────────────── */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
    font-family: var(--sans);
}
.table th, .table td {
    padding: .65rem .85rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th { background: var(--bg-alt); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-md); }
.table tbody tr:hover { background: var(--bg-warm); }
.table-responsive { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table-simple { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .875rem; }
.table-simple th, .table-simple td { padding: .65rem 1rem; border: 1px solid var(--border); }
.table-simple th { background: var(--bg-alt); font-weight: 700; }
.comparison-table th, .comparison-table td { white-space: nowrap; }

/* ── Content layouts ─────────────────────────────────────── */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}
.sidebar { position: sticky; top: 84px; }
.widget {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.widget h3 {
    font-size: .85rem;
    font-family: var(--sans);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .85rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--text);
    color: var(--text);
}
.widget ul { list-style: none; }
.widget ul li { padding: .4rem 0; border-bottom: 1px solid var(--border); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { font-size: .875rem; color: var(--text-md); }
.widget ul li a:hover { color: var(--blue); }
.widget-cta ul, .widget-countries ul { list-style: none; padding: 0; }
.widget-cta li, .widget-countries li { padding: .35rem 0; border-bottom: 1px solid var(--border); }
.widget-cta a, .widget-countries a { color: var(--text-md); font-size: .875rem; }
.widget-cta a:hover, .widget-countries a:hover { color: var(--blue); }

/* ── Blog post ───────────────────────────────────────────── */
.post-header { margin-bottom: 1.75rem; }
.post-meta-top {
    display: flex; flex-wrap: wrap; gap: .6rem;
    align-items: center; margin-bottom: .6rem;
    font-size: .8rem; color: var(--text-muted); font-family: var(--sans);
}
.post-author { font-size: .85rem; color: var(--text-light); margin-bottom: .75rem; }
.author-name { color: var(--blue); font-weight: 600; }
.post-date   { font-weight: 600; color: var(--text-md); }
.post-updated { font-style: italic; }
.reading-time { color: var(--green); font-weight: 600; }
.post-image   { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }
.post-image img { width: 100%; object-fit: cover; max-height: 480px; }
.post-footer  { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--border); }
.post-sources { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.sources-list { font-size: .8rem; color: var(--text-muted); font-family: var(--sans); }
.editorial-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: .9rem 1.1rem;
    border-radius: var(--radius);
    font-size: .875rem;
    color: var(--text-md);
    font-style: italic;
}

/* ── Prose (article content) ─────────────────────────────── */
.prose h2 { margin-top: 2.25rem; margin-bottom: .65rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: .5rem; font-size: 1.175rem; }
.prose p   { margin-bottom: 1.1rem; line-height: 1.8; font-size: .975rem; color: var(--text-md); }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.6rem; }
.prose li  { margin-bottom: .5rem; font-size: .975rem; line-height: 1.7; color: var(--text-md); }
.prose strong { font-weight: 700; color: var(--text); }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .875rem; }
.prose table th { background: var(--bg-alt); padding: .6rem .85rem; font-weight: 700; border-bottom: 2px solid var(--border-dark); text-align: left; }
.prose table td { padding: .55rem .85rem; border-bottom: 1px solid var(--border); }
.prose table tr:last-child td { border-bottom: none; }
.prose blockquote {
    border-left: 4px solid var(--blue);
    margin: 1.5rem 0;
    padding: .75rem 1.25rem;
    background: var(--blue-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--blue-dark);
    font-style: italic;
}
.prose a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(29,78,216,.3); }
.prose a:hover { text-decoration-color: var(--blue); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    border-left: 3px solid transparent;
    transition: border-color .15s;
}
.faq-item[open], .faq-item:hover { border-left-color: var(--blue); }
.faq-item summary {
    padding: 1rem 1.1rem;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--sans);
    background: var(--bg-warm);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .925rem;
}
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--blue); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: .925rem; margin: 0; font-family: var(--sans); font-weight: 600; }
.faq-answer p { padding: .9rem 1.1rem; margin: 0; font-size: .9rem; color: var(--text-md); line-height: 1.7; border-top: 1px solid var(--border); }
.faq-home details { background: white; border: 1px solid var(--border); }
.faq-home details[open] summary { color: var(--blue); }

/* ── Health disclaimer ───────────────────────────────────── */
.health-disclaimer {
    display: flex; gap: .75rem; align-items: flex-start;
    background: #fefce8;
    border: 1px solid #fde047;
    border-left: 4px solid var(--amber);
    border-radius: var(--radius);
    padding: .9rem 1.1rem;
    margin: 1.5rem 0;
    font-size: .875rem;
    line-height: 1.65;
    font-family: var(--sans);
}
.disclaimer-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }

/* ── Pros / Cons ─────────────────────────────────────────── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0; }
.pros, .cons { padding: 1rem; border-radius: var(--radius); }
.pros { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons { background: #fff1f2; border: 1px solid #fecdd3; }
.pros h4 { color: var(--green); font-size: .875rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .65rem; }
.cons h4 { color: var(--red);   font-size: .875rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .65rem; }
.pros ul, .cons ul { list-style: none; padding: 0; }
.pros li { padding: .3rem 0; font-size: .875rem; }
.cons li { padding: .3rem 0; font-size: .875rem; }
.pros li::before { content: '✓ '; color: var(--green); font-weight: 800; }
.cons li::before { content: '✗ '; color: var(--red);   font-weight: 800; }

/* ── Nutrition badges ────────────────────────────────────── */
.nutrition-badges { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.nutrition-badge {
    text-align: center;
    padding: .85rem 1.1rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    min-width: 90px;
}
.nutrition-badge .value { display: block; font-size: 1.25rem; font-weight: 800; color: var(--blue); font-family: var(--sans); }
.nutrition-badge .label { display: block; font-size: .75rem; color: var(--text-muted); font-family: var(--sans); margin-top: .1rem; }

/* ── Brand pages ─────────────────────────────────────────── */
.brand-header-detail {
    display: flex; gap: 2rem; align-items: flex-start;
    margin-bottom: 2rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.brand-logo-lg { border-radius: var(--radius); flex-shrink: 0; }
.brand-analysis { padding: 1.5rem; margin-bottom: 1.25rem; }
.brand-analysis-content { display: flex; gap: 1.5rem; }
.brand-thumb { border-radius: var(--radius-sm); flex-shrink: 0; }
.highlights { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.highlights li {
    background: var(--blue-light);
    color: var(--blue-dark);
    padding: .25rem .75rem;
    border-radius: 99px;
    font-size: .8rem;
    font-family: var(--sans);
    font-weight: 600;
}
.where-to-buy { margin: 1.25rem 0; padding: 1rem 1.1rem; background: var(--bg-alt); border-radius: var(--radius); border-left: 3px solid var(--green); }

/* ── Recipe pages ────────────────────────────────────────── */
.recipe-header { text-align: center; margin-bottom: 2rem; }
.recipe-meta { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; color: var(--text-light); font-size: .875rem; font-family: var(--sans); }
.recipe-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.recipe-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; margin: 1.5rem 0; }
.ingredients ul { list-style: none; padding: 0; }
.ingredients li { padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.instructions ol { padding-left: 1.5rem; }
.instructions li { padding: .6rem 0; line-height: 1.65; font-size: .9rem; }

/* ── Compare pages ───────────────────────────────────────── */
.compare-header { text-align: center; margin-bottom: 2.5rem; }
.compare-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
}
.compare-card { text-align: center; padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.compare-brand-img { margin-bottom: 1rem; }
.compare-brand-img img { width: 100%; border-radius: var(--radius); object-fit: cover; height: 200px; }
.compare-rating { font-size: 1.25rem; color: var(--blue); font-weight: 700; margin: .4rem 0; }
.compare-origin, .compare-price { color: var(--text-muted); font-size: .8rem; font-family: var(--sans); }
.compare-vs { text-align: center; }
.compare-vs span {
    font-size: 1.75rem; font-weight: 900;
    color: var(--blue); background: var(--blue-light);
    padding: .85rem 1.25rem; border-radius: 50%;
    display: inline-block; font-family: var(--sans);
}
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: .7rem 1rem; border: 1px solid var(--border); text-align: center; }
.compare-table th { background: var(--bg-alt); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.compare-table td:first-child { text-align: left; font-weight: 600; }
.card-highlighted { background: #f0f9ff; border: 2px solid var(--blue); padding: 1.75rem; border-radius: var(--radius-lg); }
.verdict-cta { margin-top: 1.25rem; }
.compare-pair-card { text-align: center; padding: 1rem; }
.compare-pair-imgs { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-bottom: .75rem; }
.compare-pair-imgs img { border-radius: var(--radius-sm); object-fit: cover; height: 56px; }
.vs-badge { font-weight: 900; color: var(--blue); }

/* ── Use-case pages ──────────────────────────────────────── */
.use-case-intro { padding: 1.5rem; margin-bottom: 1.75rem; }
.use-case-card  { padding: 1.4rem; }
.feature-list   { list-style: none; padding: 0; margin: .65rem 0; }
.feature-list li { padding: .2rem 0; font-size: .85rem; color: var(--text-light); font-family: var(--sans); }
.feature-list li::before { content: "▸ "; color: var(--blue); }

/* ── Search ──────────────────────────────────────────────── */
.search-form { display: flex; gap: .5rem; margin: 1.25rem 0; max-width: 560px; }
.search-input {
    flex: 1; padding: .7rem 1rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: .95rem; font-family: var(--sans);
}
.search-input:focus { outline: 2px solid var(--blue); }
.results-count { color: var(--text-light); margin-bottom: 1rem; font-size: .875rem; }
.search-result { padding: 1.1rem; margin-bottom: .85rem; }

/* ── Product pages ───────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.product-main-img { border-radius: var(--radius-lg); background: var(--bg-alt); width: 100%; }
.price-box { margin: 1rem 0; }
.price  { font-size: 1.5rem; font-weight: 800; color: var(--green); font-family: var(--sans); }
.weight { color: var(--text-light); }
.flavor-tags { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ── Legal pages ─────────────────────────────────────────── */
.legal-page { max-width: 820px; margin: 0 auto; }
.page-updated { font-size: .8rem; color: var(--text-muted); margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); font-family: var(--sans); }
.table-simple code { background: var(--bg-alt); padding: .12rem .35rem; border-radius: 3px; font-size: .82rem; }

/* ── Geo / hero small ────────────────────────────────────── */
.geo-header { background: linear-gradient(135deg, #064e3b 0%, #059669 100%); color: white; }
.geo-header h1 { color: white; }
.geo-header .lead { color: rgba(255,255,255,.88); }
.hero-sm { padding: 2.5rem 0; background: var(--bg-alt); border-bottom: 3px solid var(--blue); }
.hero-sm h1 { font-size: clamp(1.4rem, 3vw, 2.25rem); color: var(--text); }
.hero-sm p  { color: var(--text-md); max-width: 680px; }

/* ── Error page ──────────────────────────────────────────── */
.error-page { text-align: center; padding: 4rem 0; }
.error-page h1 { font-size: 6rem; color: var(--blue); font-family: var(--sans); }
.error-actions { display: flex; gap: 1rem; justify-content: center; margin: 1.75rem 0; }
.error-suggestions { margin-top: 2rem; }
.error-suggestions ul { list-style: none; }
.error-suggestions li { padding: .35rem 0; }

/* ── Misc utilities ──────────────────────────────────────── */
.meta   { font-size: .8rem; color: var(--text-light); font-family: var(--sans); }
.sticky { position: sticky; top: 84px; }
.blog-categories { display: flex; gap: .5rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.empty-state {
    text-align: center; padding: 3rem;
    color: var(--text-light); background: var(--bg-alt);
    border-radius: var(--radius-lg);
}
.toc { padding: 1.1rem 1.25rem; margin-bottom: 1.75rem; border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-warm); }
.toc h2 { font-size: 1rem; font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .65rem; }
.toc ol  { padding-left: 1.25rem; }
.toc li  { padding: .25rem 0; }
.toc a   { font-size: .875rem; color: var(--text-md); }
.toc a:hover { color: var(--blue); }
.brand-item   { padding: 1.5rem; margin-bottom: 1.25rem; }
.brand-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.brand-logo img { border-radius: var(--radius-sm); }
.country-links li a { display: flex; align-items: center; gap: .5rem; }
.geo-links { margin-top: 1.75rem; }
.geo-link-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.nutrition-table { margin: 1rem 0; }
.nutrition-table h3 { font-size: 1rem; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3.5rem 0 1.5rem;
    margin-top: 3.5rem;
    font-family: var(--sans);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-col h3 { color: #f1f5f9; font-size: .8rem; font-family: var(--sans); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.1rem; }
.footer-col p  { font-size: .82rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col li { padding: .28rem 0; }
.footer-col a  { color: #94a3b8; font-size: .82rem; }
.footer-col a:hover { color: #e2e8f0; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .78rem;
    color: #64748b;
}
.footer-disclaimer { font-size: .73rem; color: #64748b; margin-top: .75rem; font-style: italic; }
.footer-legal-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.footer-legal-links a { color: #64748b; }
.footer-legal-links a:hover { color: #94a3b8; }
.footer-legal-links span { color: #334155; }

/* ── Admin ───────────────────────────────────────────────── */
.admin-layout  { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: #1e293b; color: white; padding: 1.5rem; }
.admin-sidebar h2 { font-size: 1.1rem; margin-bottom: 1.5rem; font-family: var(--sans); }
.admin-sidebar ul { list-style: none; }
.admin-sidebar li a { display: block; padding: .55rem .75rem; color: #cbd5e1; border-radius: var(--radius-sm); font-size: .875rem; margin-bottom: .2rem; font-family: var(--sans); }
.admin-sidebar li a:hover, .admin-sidebar li a.active { background: #334155; color: white; }
.admin-main   { padding: 2rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.admin-stats  { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card    { background: var(--bg-alt); padding: 1.5rem; border-radius: var(--radius); text-align: center; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--blue); font-family: var(--sans); }
.stat-card .stat-label { font-size: .8rem; color: var(--text-light); font-family: var(--sans); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: .25rem; font-size: .875rem; font-family: var(--sans); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: .6rem .75rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: .9rem; font-family: var(--sans);
}
.form-group textarea { min-height: 200px; resize: vertical; }
.admin-table { width: 100%; border-collapse: collapse; font-family: var(--sans); }
.admin-table th, .admin-table td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { background: var(--bg-alt); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.admin-actions { display: flex; gap: .5rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .content-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
    .admin-layout { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .featured-side { flex-direction: row; border-left: none; border-top: 1px solid var(--border); }
    .featured-side-item { border-bottom: none; border-right: 1px solid var(--border); }
    .featured-side-item:last-child { border-right: none; }
}

@media (max-width: 768px) {
    h1 { font-size: 1.55rem; }
    .hero h1 { font-size: 1.7rem; }
    .hero { padding: 2.25rem 0; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .product-detail { grid-template-columns: 1fr; }
    .recipe-grid { grid-template-columns: 1fr; }
    .pros-cons { grid-template-columns: 1fr; }
    .brand-analysis-content { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .admin-stats { grid-template-columns: repeat(2,1fr); }
    .compare-grid { grid-template-columns: 1fr; }
    .featured-side { flex-direction: column; }
    .featured-side-item { border-right: none; border-bottom: 1px solid var(--border); }
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg);
        border-bottom: 2px solid var(--blue);
        flex-direction: column;
        padding: .75rem;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active { display: flex; }
    .nav-menu > li > a { border-bottom: none; font-size: .8rem; }
    .submenu { position: static; box-shadow: none; border: none; border-top: none; padding-left: 1rem; }
    .has-submenu:hover .submenu { display: block; }
    .header-inner { flex-wrap: wrap; }
    .brand-header-detail { flex-direction: column; }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: flex-start; }
    .nutrition-badges { gap: .6rem; }
    .nutrition-badge { min-width: 75px; padding: .65rem .75rem; }
}

/* ── Mejoras viralidad / social proof ────────────────────── */

/* Botones de compartir social */
.share-bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 1.5rem 0;
}
.share-bar-label {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-md);
    margin-right: .25rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--text-md);
    font-size: 1rem;
    transition: transform .15s, background .15s;
    border: none;
    cursor: pointer;
}
.share-btn:hover { transform: scale(1.1); background: var(--blue); color: #fff; }
.share-wa:hover { background: #25D366; }
.share-fb:hover { background: #1877F2; }
.share-tw:hover { background: #000; }
.share-tg:hover { background: #0088cc; }

/* Badges virales */
.viral-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    padding: .2rem .7rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 2px 4px rgba(245,158,11,.3);
}
.viral-badge-new   { background: linear-gradient(135deg,#34d399,#10b981); color: #064e3b; }
.viral-badge-hot   { background: linear-gradient(135deg,#fb7185,#ef4444); color: #7f1d1d; }
.viral-badge-trend { background: linear-gradient(135deg,#a78bfa,#7c3aed); color: #fff; }

/* Imágenes SVG generadas — mejor renderizado */
.card-img img[src$=".svg"] {
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
}

/* Lazy hover en cards de marca/receta */
.recipe-card .card-img,
.brand-card .card-img,
.post-card .card-img {
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}
.recipe-card:hover .card-img::after,
.brand-card:hover .card-img::after,
.post-card:hover .card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29,78,216,0.15), rgba(0,0,0,0));
    pointer-events: none;
}

/* Newsletter / lead capture */
.newsletter-cta {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}
.newsletter-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0L37 23H60L41 37L48 60L30 46L12 60L19 37L0 23H23Z' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
    pointer-events: none;
}
.newsletter-cta > * { position: relative; z-index: 1; }
.newsletter-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: .5rem; font-family: var(--serif); }
.newsletter-cta p { opacity: .9; margin-bottom: 1.25rem; }
.newsletter-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    gap: .5rem;
}
.newsletter-form input {
    flex: 1;
    padding: .75rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: .9rem;
    font-family: var(--sans);
}
.newsletter-form button {
    background: #fff;
    color: var(--blue-dark);
    border: none;
    padding: .75rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .875rem;
    cursor: pointer;
    transition: transform .15s;
}
.newsletter-form button:hover { transform: scale(1.04); }

/* Pulso visual en CTAs principales */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(29,78,216,.4); }
    70% { box-shadow: 0 0 0 8px rgba(29,78,216,0); }
    100% { box-shadow: 0 0 0 0 rgba(29,78,216,0); }
}
.btn-primary.pulse { animation: pulse-ring 1.8s infinite; }

/* Trust strip — barra de credibilidad */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-warm);
}
.trust-item {
    text-align: center;
    font-family: var(--sans);
}
.trust-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}
.trust-label {
    font-size: .75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: .35rem;
    display: block;
}
@media (max-width: 640px) {
    .trust-strip { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .newsletter-form { flex-direction: column; }
}

/* ── Fixes UI: submenú abierto, hero overlap, mobile ─────── */
.has-submenu.open .submenu,
.has-submenu:hover .submenu { display: block; }
.has-submenu > a::after {
    content: ' ▾';
    font-size: .7em;
    opacity: .6;
    margin-left: .15em;
}
.has-submenu.open > a {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

/* Evitar que el header sticky tape el hero */
.hero, .page-header {
    scroll-margin-top: 80px;
}

/* En mobile/touch, el submenú aparece debajo en bloque */
@media (max-width: 900px) {
    .submenu {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border);
        background: var(--bg-warm);
        padding: 0;
    }
    .has-submenu > a::after { float: right; }
}

/* Ajuste de espaciado del trust-strip en mobile */
.trust-strip {
    border-radius: var(--radius);
    margin: 0;
}
.trust-strip .trust-item { padding: .5rem; }

/* Asegurar que las imágenes JPG nunca queden con bordes feos */
.card-img {
    background: linear-gradient(135deg, var(--bg-alt), var(--bg-warm));
}
.card-img img {
    transition: opacity .3s;
}
.card-img img:not([src]),
.card-img img[src=""] {
    opacity: 0;
}

/* Indicador visual cuando no hay imagen */
.card-img::before {
    content: '🥛';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: .15;
    pointer-events: none;
    z-index: 0;
}
.card-img img { position: relative; z-index: 1; }
