/* Olivistas · Guía del aceite (portada y artículos). Tipografías propias: Archivo (títulos) y Lora (lectura), licencia OFL. */
@font-face{font-family:'Archivo';font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/archivo-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Lora';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/lora-latin-400.woff2) format('woff2')}
@font-face{font-family:'Lora';font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/lora-latin-400i.woff2) format('woff2')}
@font-face{font-family:'Lora';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/lora-latin-600.woff2) format('woff2')}
:root{--g-head:'Archivo',var(--sh-font);--g-serif:'Lora',Georgia,'Times New Roman',serif;--g-r:12px}

/* ---------- Intro y mosaico ---------- */
.g-intro{padding-bottom:8px}
.g-intro__row{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:6px 0 24px}
.g-intro h1{font-family:var(--g-head);font-weight:800;font-size:clamp(30px,4.4vw,46px);letter-spacing:-.02em;line-height:1.05;margin-top:10px}
.g-intro p{font-size:16.5px;color:var(--sh-muted);max-width:640px;margin-top:12px;line-height:1.6}
.g-intro__count{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:14px!important;margin:0!important;padding:8px 14px;border:1px solid var(--sh-line);border-radius:999px;color:var(--sh-text)!important}
.g-intro__count svg{width:16px;height:16px;color:var(--sh-green)}

.g-mosaic{display:grid;gap:12px}
.g-tile{position:relative;display:block;overflow:hidden;border-radius:var(--g-r);background:#2B2F24;color:#fff!important;isolation:isolate;min-height:200px}
.g-tile__img{position:absolute;inset:0;z-index:-1}
.g-tile__img img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--sh-ease)}
.g-tile::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(18,20,14,0) 30%,rgba(18,20,14,.55) 62%,rgba(18,20,14,.88))}
.g-tile:hover .g-tile__img img{transform:scale(1.04)}
.g-tile__b{position:absolute;left:0;right:0;bottom:0;padding:18px}
.g-tile h2,.g-tile h3{font-family:var(--g-head);font-weight:800;color:#fff;letter-spacing:-.01em;line-height:1.12;margin-top:8px;text-wrap:balance}
.g-tile h3{font-size:16px}
.g-tile h2{font-size:clamp(24px,3vw,34px)}
.g-tile p{font-family:var(--g-serif);font-size:15px;line-height:1.55;color:rgba(255,255,255,.88);margin-top:10px;max-width:520px}
.g-tile .g-meta{color:rgba(255,255,255,.82);margin-top:10px}
.g-tile .g-chip{color:#fff;background:none;padding:0}
.g-tile--1 .g-tile__b{padding:24px}
@media (min-width:900px){
  .g-mosaic--4{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:290px 210px}
  .g-mosaic--4 .g-tile--1{grid-column:3/5;grid-row:1/3;order:2}
  .g-mosaic--4 .g-tile--2{grid-column:1;grid-row:1}
  .g-mosaic--4 .g-tile--3{grid-column:2;grid-row:1}
  .g-mosaic--4 .g-tile--4{grid-column:1/3;grid-row:2}
  .g-mosaic--3{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:250px 250px}
  .g-mosaic--3 .g-tile--1{grid-row:1/3;grid-column:2}
  .g-mosaic--3 .g-tile--2{grid-column:1;grid-row:1}.g-mosaic--3 .g-tile--3{grid-column:1;grid-row:2}
  .g-mosaic--2{grid-template-columns:3fr 2fr;grid-auto-rows:440px}
  .g-mosaic--1{grid-auto-rows:460px}
  .g-tile--2 h3,.g-tile--3 h3{font-size:17px}
  .g-tile--4 h3{font-size:21px}
}
@media (max-width:899px){
  .g-mosaic{grid-template-columns:1fr 1fr}
  .g-tile--1{grid-column:1/-1;aspect-ratio:4/3;min-height:0}
  .g-tile--2,.g-tile--3{aspect-ratio:1/1.05;min-height:0}
  .g-tile--4{grid-column:1/-1;aspect-ratio:16/9;min-height:0}
  .g-mosaic--2 .g-tile--2{grid-column:1/-1;aspect-ratio:16/9}
  .g-intro__row{flex-direction:column;align-items:flex-start;gap:14px}
  .g-tile__b{padding:14px}
  .g-tile--1 .g-tile__b{padding:18px}
}
@media (max-width:599px){.g-tile--1 p{display:none}.g-tile--1{aspect-ratio:5/4}}
@media (max-width:420px){.g-tile--2 h3,.g-tile--3 h3{font-size:14.5px}.g-tile--2 .g-meta,.g-tile--3 .g-meta{display:none}}

/* ---------- Piezas comunes ---------- */
.g-chip{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;letter-spacing:.02em;line-height:1}
.g-chip__dot{width:8px;height:8px;border-radius:2px;background:var(--sh-gold);flex:none}
.g-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:12.5px;color:var(--sh-muted)}
.g-meta span{display:inline-flex;align-items:center;gap:5px}
.g-meta svg{width:13px;height:13px}

.g-sec{padding:56px 0 0}
main > :is(.g-sec,.g-art):is(:last-child,:has(+ script:last-child)){padding-bottom:72px}
.g-sec__head{margin-bottom:22px}
.g-sec__head h2{font-family:var(--g-serif);font-weight:600;font-size:clamp(22px,2.4vw,26px);letter-spacing:-.005em;position:relative;padding-left:2px}
.g-sec__head h2::after{content:"";display:block;width:36px;height:3px;border-radius:2px;background:linear-gradient(90deg,var(--sh-gold),var(--sh-gold-l));margin-top:10px}
.g-sec__head p{color:var(--sh-muted);margin-top:8px}
.g-sec__head--row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.g-empty{color:var(--sh-muted);font-size:17px;padding:20px 0}

.g-grid{display:grid;gap:28px 24px}
.g-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:899px){.g-grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.g-grid--2,.g-grid--3{grid-template-columns:1fr;gap:30px}}

.g-card{display:flex;flex-direction:column;min-width:0}
.g-card__img{position:relative;display:block;overflow:hidden;border-radius:var(--g-r);aspect-ratio:16/10;background:var(--sh-cream)}
.g-card__img img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--sh-ease)}
.g-card:hover .g-card__img img{transform:scale(1.04)}
.g-card__img .g-chip{position:absolute;left:12px;bottom:12px;background:rgba(255,255,255,.94);color:var(--sh-text);padding:7px 10px;border-radius:999px;font-size:11.5px}
.g-card__b{padding-top:14px;display:flex;flex-direction:column;flex:1}
.g-card h3{font-family:var(--g-head);font-weight:800;font-size:18px;line-height:1.22;letter-spacing:-.01em;text-wrap:balance}
.g-card--lg h3{font-size:clamp(20px,2.2vw,24px)}
.g-card h3 a,.g-row h3 a{color:var(--sh-text)!important;background:linear-gradient(currentColor,currentColor) 0 100%/0 1.5px no-repeat;transition:background-size .35s var(--sh-ease)}
.g-card h3 a:hover,.g-row h3 a:hover{background-size:100% 1.5px;color:var(--sh-green)!important}
.g-card p{font-family:var(--g-serif);font-size:15px;line-height:1.6;color:#555B55;margin-top:8px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.g-card .g-meta{margin-top:auto;padding-top:12px}

/* Categorías */
.g-cats{border:1px solid var(--sh-line);border-radius:18px;padding:clamp(22px,3.4vw,40px);background:#FBFAF6}
.g-cats__txt{margin-bottom:clamp(20px,2.6vw,30px);max-width:620px}
.g-cats__txt h2{font-family:var(--g-serif);font-weight:600;font-size:clamp(26px,3vw,36px);letter-spacing:-.01em;line-height:1.1}
.g-cats__txt h2::after{content:"";display:block;width:40px;height:3px;border-radius:2px;background:var(--sh-gold);margin-top:14px}
.g-cats__txt p{font-family:var(--g-serif);color:#5A6058;font-size:16px;line-height:1.6;margin-top:14px}
.g-cats__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,1.8vw,22px)}
.g-cats__list--2,.g-cats__list--4{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-cat{position:relative;display:flex;align-items:flex-end;aspect-ratio:8/7;border-radius:var(--g-r);overflow:hidden;color:#fff!important;text-decoration:none!important;isolation:isolate;background:#2B2F24;box-shadow:0 1px 2px rgba(20,24,14,.06),0 8px 24px -14px rgba(20,24,14,.35);transition:transform .35s var(--sh-ease),box-shadow .35s var(--sh-ease)}
.g-cat img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .7s var(--sh-ease)}
.g-cat::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(14,16,10,0) 35%,rgba(14,16,10,.5) 62%,rgba(14,16,10,.88))}
.g-cat:hover{transform:translateY(-3px);box-shadow:0 2px 4px rgba(20,24,14,.08),0 18px 36px -18px rgba(20,24,14,.5)}
.g-cat:hover img{transform:scale(1.05)}
.g-cat:focus-visible{outline:3px solid var(--sh-gold);outline-offset:3px}
.g-cat__b{display:block;padding:clamp(16px,1.8vw,24px);padding-right:clamp(16px,1.8vw,24px)}
.g-cat__b b{display:block;font-family:var(--g-serif);font-weight:600;font-size:clamp(21px,2vw,26px);line-height:1.15;letter-spacing:-.005em}
.g-cat__b small{display:block;font-family:var(--g-head);font-size:14.5px;line-height:1.45;color:rgba(255,255,255,.86);margin-top:8px;max-width:34ch}
.g-cat__n{position:absolute;top:14px;right:14px;font-family:var(--g-head);font-size:12.5px;font-weight:600;padding:5px 11px;border-radius:999px;background:rgba(14,16,10,.45);border:1px solid rgba(255,255,255,.35);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
@media (max-width:899px){.g-cats__list,.g-cats__list--4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:599px){.g-cats{padding:22px 0 22px 18px;border-radius:14px}.g-cats__txt{padding-right:18px}.g-cats__list,.g-cats__list--2,.g-cats__list--4{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:12px;padding:0 18px 4px 0;scroll-padding-left:0}.g-cats__list::-webkit-scrollbar{display:none}.g-cat{flex:0 0 80%;aspect-ratio:4/4.2;scroll-snap-align:start}.g-cat:hover{transform:none}}

/* Listado */
.g-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 32px}
.g-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;align-items:start}
.g-row[hidden]{display:none}
.g-row__img{display:block;aspect-ratio:3/2;border-radius:10px;overflow:hidden;background:var(--sh-cream)}
.g-row__img img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--sh-ease)}
.g-row:hover .g-row__img img{transform:scale(1.05)}
.g-row__cat{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--sh-green-3)}
.g-row h3{font-family:var(--g-head);font-weight:800;font-size:16.5px;line-height:1.25;margin-top:4px}
.g-row p{font-family:var(--g-serif);font-size:14px;line-height:1.55;color:#555B55;margin-top:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.g-row .g-meta{margin-top:8px}
.g-more{display:flex;justify-content:center;margin-top:28px}
@media (max-width:899px){.g-list{grid-template-columns:1fr}}
@media (max-width:480px){.g-row{grid-template-columns:110px minmax(0,1fr);gap:12px}.g-row p{display:none}}

/* ---------- Artículo ---------- */
.g-preview{display:flex;gap:10px;align-items:flex-start;background:#FBEFD2;color:#6B4A00;padding:12px var(--sh-gutter);font-size:14px}
.g-preview svg{width:18px;height:18px;flex:none;margin-top:1px}
.g-preview a{color:#6B4A00;text-decoration:underline}
.g-art__head .sh-wrap,.g-art__wrap{max-width:calc(1016px + var(--sh-gutter)*2)}
.g-art__head h1,.g-art__lead{max-width:820px}
.g-art__head .g-chip{margin-top:26px;font-size:12.5px;text-transform:uppercase;letter-spacing:.1em;color:var(--sh-green-3)}
.g-art__head h1{font-family:var(--g-head);font-weight:800;font-size:clamp(30px,4.6vw,48px);line-height:1.08;letter-spacing:-.02em;margin-top:14px;text-wrap:balance}
.g-art__lead{font-family:var(--g-serif);font-size:clamp(17px,1.8vw,20px);line-height:1.6;color:#4A514B;margin-top:16px}
.g-meta--head{margin-top:18px;font-size:13.5px}
.g-meta--head svg{width:15px;height:15px}
.g-art__cover{margin:28px auto 0;border-radius:var(--sh-radius);overflow:hidden;aspect-ratio:21/9;background:var(--sh-cream)}
.g-art__cover img{width:100%;height:100%;object-fit:cover}
@media (max-width:640px){.g-art__cover{aspect-ratio:4/3;margin-top:22px}}
.g-art__grid{display:grid;grid-template-columns:240px minmax(0,720px);gap:56px;justify-content:center;margin-top:44px}
.g-art__grid--solo{grid-template-columns:minmax(0,720px)}
.g-toc{position:sticky;top:96px;align-self:start;font-size:14px}
.g-toc summary{font-family:var(--g-head);font-weight:700;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--sh-muted);cursor:pointer;list-style:none;margin-bottom:12px}
.g-toc summary::-webkit-details-marker{display:none}
.g-toc ol{margin:0;padding:0;list-style:none;border-left:2px solid var(--sh-line);counter-reset:t}
.g-toc li{counter-increment:t}
.g-toc a{display:block;padding:6px 0 6px 14px;margin-left:-2px;border-left:2px solid transparent;color:#4A514B!important;line-height:1.4}
.g-toc a:hover{color:var(--sh-green)!important;border-left-color:var(--sh-gold)}
@media (max-width:980px){
  .g-art__grid{grid-template-columns:minmax(0,720px);gap:24px;margin-top:28px}
  .g-toc{position:static;background:var(--sh-cream);border-radius:var(--g-r);padding:16px 18px}
  .g-toc summary{margin-bottom:0}.g-toc details[open] summary{margin-bottom:10px}
}
.g-prose{font-family:var(--g-serif);font-size:18px;line-height:1.8;color:#2B302B;min-width:0}
.g-prose > * + *{margin-top:18px}
.g-prose h2,.g-prose h3,.g-prose h4{font-family:var(--g-head);color:var(--sh-text);letter-spacing:-.01em;scroll-margin-top:110px}
.g-prose h2{font-size:clamp(24px,2.6vw,28px);font-weight:800;line-height:1.2;margin-top:44px}
.g-prose h3{font-size:20px;font-weight:700;line-height:1.3;margin-top:32px}
.g-prose h4{font-size:17px;font-weight:700;margin-top:26px}
.g-prose > :first-child{margin-top:0}
.g-prose :is(h2,h3,h4) + *{margin-top:10px}
.g-prose ul,.g-prose ol{padding-left:22px}
.g-prose li + li{margin-top:8px}
.g-prose li::marker{color:var(--sh-green)}
.g-prose a{color:var(--sh-green);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.g-prose a:hover{text-decoration-color:var(--sh-gold)}
.g-prose strong,.g-prose b{font-weight:600;color:var(--sh-text)}
.g-prose blockquote{margin:28px 0;padding:6px 0 6px 22px;border-left:3px solid var(--sh-gold);font-style:italic;font-size:20px;color:#3C433D}
.g-prose img{display:block;width:100%;height:auto;border-radius:var(--g-r)}
.g-prose figure{margin:28px 0}.g-prose figcaption{font-family:var(--sh-font);font-size:13.5px;color:var(--sh-muted);margin-top:8px}
.g-prose hr{border:0;border-top:1px solid var(--sh-line);margin:36px 0}
.g-prose table{width:100%;border-collapse:collapse;font-family:var(--sh-font);font-size:15px;display:block;overflow-x:auto}
.g-prose th,.g-prose td{border-bottom:1px solid var(--sh-line);padding:10px 12px;text-align:left;vertical-align:top}
.g-prose th{background:var(--sh-cream);font-weight:600}
@media (max-width:640px){.g-prose{font-size:17px;line-height:1.75}}
.g-share{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:40px!important;padding-top:24px;border-top:1px solid var(--sh-line);font-family:var(--sh-font);font-size:15px}
.g-share span{color:var(--sh-muted);margin-right:4px}

/* Mini fichas de aceites dentro de una guía ([aceites: …]) */
.g-oils{display:grid;gap:14px;margin:26px 0 30px;font-family:var(--g-head)}
.g-oils--2,.g-oils--3{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.g-prose .g-oil,.g-oil{display:flex;gap:14px;align-items:stretch;padding:12px;border:1px solid var(--sh-line);border-radius:14px;background:#fff;color:var(--sh-text)!important;text-decoration:none!important;transition:border-color .2s,box-shadow .25s var(--sh-ease),transform .25s var(--sh-ease)}
.g-oil:hover{border-color:#D6D2C4;box-shadow:0 12px 26px -18px rgba(30,34,26,.45);transform:translateY(-2px)}
.g-oil__img{flex:none;width:96px;border-radius:10px;overflow:hidden;background:radial-gradient(110% 90% at 50% 40%,#fff,#F1EEE6);display:grid;place-items:center}
.g-oil__img img{width:100%;height:100%;max-height:132px;object-fit:contain;padding:8px;mix-blend-mode:multiply}
.g-oil__img img.is-nophoto{padding:0}
.g-oil__b{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.g-oil__v{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#6E7D4A}
.g-oil__n{font-size:16px;font-weight:800;line-height:1.25;letter-spacing:-.01em}
.g-oil__p{font-size:13.5px;color:var(--sh-muted)}
.g-oil__int{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#4A504A;margin-top:4px}
.g-oil__bars{display:inline-flex;gap:3px}
.g-oil__bars i{width:14px;height:5px;border-radius:3px;background:#E3E0D6}
.g-oil__bars i.on{background:var(--sh-green)}
.g-oil__r{display:flex;align-items:center;gap:5px;font-size:12.5px;color:var(--sh-muted)}
.g-oil__r svg{color:var(--sh-gold);font-size:13px}
.g-oil__go{margin-top:auto;padding-top:6px;font-size:13px;font-weight:700;color:var(--sh-green);display:inline-flex;align-items:center;gap:4px}
.g-oils--2 .g-oil,.g-oils--3 .g-oil{flex-direction:column}
.g-oils--2 .g-oil__img,.g-oils--3 .g-oil__img{width:100%;height:150px}
.g-oils--2 .g-oil__img img,.g-oils--3 .g-oil__img img{max-height:150px}

/* Paginación de /guia/ */
.g-pager{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:30px;font-family:var(--g-head)}
.g-pager ol{display:flex;gap:6px;list-style:none;margin:0;padding:0}
.g-pager ol a,.g-pager ol span,.g-pager__gap{display:grid;place-items:center;min-width:40px;height:40px;padding:0 10px;border-radius:999px;border:1px solid var(--sh-line);font-size:14.5px;font-weight:600;color:var(--sh-text);text-decoration:none}
.g-pager ol a:hover{border-color:var(--sh-green);color:var(--sh-green)}
.g-pager ol span[aria-current]{background:var(--sh-green);border-color:var(--sh-green);color:#fff}
.g-pager__gap{border:0!important;min-width:20px;padding:0}
.g-pager__step{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--sh-line);font-size:14.5px;font-weight:600;color:var(--sh-text);text-decoration:none}
.g-pager__step:hover{border-color:var(--sh-green);color:var(--sh-green)}
.g-pager__step.is-off{opacity:.4;pointer-events:none}
@media (max-width:520px){.g-pager__step{padding:0 12px}.g-pager ol a,.g-pager ol span{min-width:36px;height:36px}}
@media (max-width:560px){
  .g-oils--2 .g-oil,.g-oils--3 .g-oil{flex-direction:row}
  .g-oils--2 .g-oil__img,.g-oils--3 .g-oil__img{width:88px;height:auto}
  .g-oils--2 .g-oil__img img,.g-oils--3 .g-oil__img img{max-height:120px}
  .g-oil__go{display:none}
}

/* Páginas de categoría y enlaces a categorías */
.g-intro--cat h1{max-width:760px}
.g-intro--cat .g-intro__row p{max-width:680px}
.g-intro__more{margin-top:12px}
.g-sec--first{padding-top:8px}
.g-sec__head h2 a{color:inherit;text-decoration:none}
.g-sec__head h2 a:hover{color:var(--sh-green)}
.g-sec__all{margin-top:18px;text-align:right}
a.g-row__cat{text-decoration:none}
a.g-row__cat:hover{text-decoration:underline;text-underline-offset:3px}
.g-chip--link{text-decoration:none}
