/*
Theme Name: Cocina en Marcha
Theme URI: https://cocinaenmarcha.com
Author: Cocina en Marcha
Description: Tema editorial para equipos comerciales y pequenos negocios de comida en Estados Unidos.
Version: 1.0.0
Text Domain: cocina-en-marcha
*/

:root {
  --ink: #17221d;
  --muted: #617067;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --orange: #e95f2b;
  --orange-dark: #b93f18;
  --green: #1d6b52;
  --green-soft: #dcece4;
  --line: #dcd8cd;
  --shadow: 0 18px 50px rgba(23,34,29,.10);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link:focus { clip: auto; width: auto; height: auto; left: 1rem; top: 1rem; padding: .7rem 1rem; background: #fff; z-index: 999; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,253,248,.94); border-bottom: 1px solid rgba(23,34,29,.1); backdrop-filter: blur(12px); }
.header-inner { width: min(var(--max), calc(100% - 36px)); min-height: 78px; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.03em; font-size: 1.25rem; white-space: nowrap; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: var(--orange); border-radius: 12px 12px 12px 4px; }
.brand-mark svg { width: 23px; height: 23px; }
.desktop-nav { margin-left: auto; }
.desktop-nav ul { display: flex; align-items: center; list-style: none; gap: 24px; padding: 0; margin: 0; }
.desktop-nav a { color: #34443b; font-weight: 700; font-size: .93rem; }
.desktop-nav a:hover { color: var(--orange-dark); }
.header-cta, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 800; }
.header-cta { color: #fff; background: var(--ink); font-size: .9rem; }
.menu-toggle { display: none; margin-left: auto; border: 0; padding: 10px 13px; color: #fff; background: var(--ink); border-radius: 10px; font-weight: 750; }

.hero { overflow: hidden; background: var(--cream); border-bottom: 1px solid var(--line); }
.hero-inner { width: min(var(--max), calc(100% - 36px)); margin: auto; padding: 84px 0 72px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 16px; color: var(--orange-dark); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }
h1,h2,h3 { line-height: 1.12; letter-spacing: -.04em; }
h1 { margin: 0; max-width: 760px; font-size: clamp(3rem, 6.2vw, 5.6rem); }
h1 span { color: var(--orange); }
.hero-intro { max-width: 660px; margin: 24px 0 30px; color: #445349; font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button.orange { color: #fff; background: var(--orange); box-shadow: 0 10px 24px rgba(233,95,43,.25); }
.button.outline { border: 1px solid #a9aa9f; background: transparent; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: #56645b; font-size: .86rem; font-weight: 700; }
.trust-strip span { display: flex; align-items: center; gap: 7px; }
.trust-strip i { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }

.decision-panel { position: relative; padding: 24px; border-radius: 28px; color: #fff; background: var(--ink); box-shadow: var(--shadow); }
.decision-panel::before { content:""; position:absolute; inset:12px; border:1px solid rgba(255,255,255,.1); border-radius:20px; pointer-events:none; }
.decision-kicker { position: relative; display: flex; justify-content: space-between; margin-bottom: 24px; color: #c7d1ca; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.decision-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.decision-item { min-height: 150px; padding: 19px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.decision-item strong { display: block; margin: 13px 0 6px; font-size: 1.05rem; }
.decision-item small { display: block; color: #bdc9c1; line-height: 1.45; }
.decision-icon { color: #ffaf86; font-size: 1.25rem; }

.section { padding: 84px 0; }
.section-inner { width: min(var(--max), calc(100% - 36px)); margin: auto; }
.section-head { display: grid; grid-template-columns: 1fr .72fr; gap: 40px; align-items: end; margin-bottom: 38px; }
.section h2 { margin: 0; font-size: clamp(2rem, 3.7vw, 3.35rem); }
.section-head p { margin: 0; color: var(--muted); }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic-card { min-height: 245px; padding: 26px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s; }
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.topic-number { color: var(--orange); font-size: .78rem; font-weight: 900; letter-spacing: .14em; }
.topic-card h3 { margin: auto 0 10px; font-size: 1.35rem; }
.topic-card p { margin: 0; color: var(--muted); font-size: .93rem; }

.calculator-section { background: var(--green); color: #fff; }
.calculator-wrap { display: grid; grid-template-columns: .78fr 1.22fr; gap: 54px; align-items: center; }
.calculator-wrap p { color: #d4e7dd; }
.calculator-card { padding: 28px; color: var(--ink); background: #fff; border-radius: 24px; box-shadow: 0 22px 55px rgba(0,0,0,.16); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-field label { display: block; margin-bottom: 6px; font-size: .83rem; font-weight: 850; }
.calc-field input { width: 100%; min-height: 48px; border: 1px solid #c8cec9; border-radius: 10px; padding: 0 12px; font: inherit; }
.calc-field small { color: var(--muted); }
.calc-result { margin-top: 18px; padding: 18px; display: flex; justify-content: space-between; gap: 20px; align-items: center; background: var(--cream); border-radius: 14px; }
.calc-result strong { display: block; color: var(--orange-dark); font-size: 1.8rem; }
.calc-result span { max-width: 260px; color: var(--muted); font-size: .82rem; }

.method-section { background: #efeade; }
.method-grid { display: grid; grid-template-columns: .84fr 1.16fr; gap: 64px; }
.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 20px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 16px; }
.step-num { color: var(--orange); font-weight: 900; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.post-card .meta { color: var(--orange-dark); font-size: .76rem; font-weight: 850; text-transform: uppercase; }
.post-card h3 { margin: 14px 0 10px; font-size: 1.35rem; }
.post-card p { color: var(--muted); }
.read-more { color: var(--green); font-weight: 850; }
.empty-state { grid-column: 1/-1; padding: 34px; text-align: center; border: 1px dashed #aaa99e; border-radius: var(--radius); }

.affiliate-disclosure { margin: 24px 0; padding: 16px 18px; border-left: 4px solid var(--orange); background: #fff3ec; border-radius: 0 12px 12px 0; font-size: .9rem; }
.content-shell { width: min(820px, calc(100% - 36px)); margin: 60px auto 90px; }
.content-shell.wide { width: min(var(--max), calc(100% - 36px)); }
.content-shell h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); }
.entry-content h2 { margin-top: 2.2em; font-size: 2rem; }
.entry-content a { color: var(--orange-dark); text-decoration: underline; }

.site-footer { padding: 58px 0 24px; color: #d8e0db; background: #111a16; }
.footer-inner { width: min(var(--max), calc(100% - 36px)); margin: auto; display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 46px; }
.footer-brand { color: #fff; font-size: 1.3rem; font-weight: 850; }
.footer-copy { max-width: 520px; color: #aebcb3; }
.site-footer h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .09em; }
.footer-links { display: grid; gap: 8px; }
.footer-links a:hover { color: #ff9568; }
.footer-bottom { width: min(var(--max), calc(100% - 36px)); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #8fa096; font-size: .82rem; }

@media (max-width: 900px) {
  .desktop-nav,.header-cta { display: none; }
  .menu-toggle { display: block; }
  .desktop-nav.is-open { display: block; position: absolute; left: 18px; right: 18px; top: 72px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .desktop-nav.is-open ul { align-items: flex-start; flex-direction: column; }
  .hero-inner,.calculator-wrap,.method-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-inner { padding: 58px 0 52px; }
  h1 { font-size: 3rem; }
  .decision-grid,.topic-grid,.calc-grid { grid-template-columns: 1fr; }
  .decision-item { min-height: 120px; }
  .section { padding: 62px 0; }
  .calc-result { align-items: flex-start; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
}


/* Imágenes destacadas en las guías de la portada */
.post-card { overflow: hidden; display: flex; flex-direction: column; padding: 0; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-image { display: block; overflow: hidden; aspect-ratio: 16/9; background: var(--cream); }
.post-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card-body { flex: 1; padding: 25px; display: flex; flex-direction: column; }
.post-card-body .read-more { margin-top: auto; }


/* Imagen destacada dentro de cada guía */
.entry-featured-image { overflow: hidden; margin: 34px 0 26px; aspect-ratio: 16/9; border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); }
.entry-featured-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
