/*
Theme Name:   La Cuchara Sana
Theme URI:    https://lacucharasana.com
Description:  Tema hijo de GeneratePress para La Cuchara Sana. Estilo editorial "Huerto verde" (60-30-10) definido en DESIGN.md.
Author:       La Cuchara Sana
Template:     generatepress
Version:      1.0.0
Text Domain:  lacucharasana
*/

/* ========== Tokens (DESIGN.md) ========== */
:root {
  --lcs-green: #2e6b3f;      /* 10 % acento */
  --lcs-cream: #fbf8f1;      /* 60 % fondo */
  --lcs-oat: #f1e4cb;        /* 30 % superficies */
  --lcs-ink: #22261f;        /* texto */
  --lcs-carbon: #1a2a1f;     /* footer */
  --lcs-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --lcs-font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --lcs-font-label: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --lcs-radius: 25px;
  --lcs-radius-pill: 50px;
  --lcs-radius-link: 3.75px;
  --lcs-gap-section: 50px;
  --lcs-pad-card: 30px;
}
@media (max-width: 768px) {
  :root { --lcs-pad-card: 20px; --lcs-gap-section: 36px; }
}

/* ========== Base ========== */
body {
  background: var(--lcs-cream);
  color: var(--lcs-ink);
  font-family: var(--lcs-font-body);
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.017em;
}
@media (min-width: 769px) { body { font-size: 20px; } }

a { color: var(--lcs-green); }
a:hover, a:focus { color: var(--lcs-green); opacity: .75; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--lcs-green); outline-offset: 2px; }

.site, .site-content, .inside-article, .separate-containers .inside-article,
.separate-containers .comments-area, .separate-containers .page-header,
.one-container .container, .separate-containers .paging-navigation,
.inside-page-header, .sidebar .widget, .site-header, .main-navigation,
.main-navigation ul ul { background: var(--lcs-cream); }

h1, h2, h3, h4, h5, h6 { color: var(--lcs-ink); font-family: var(--lcs-font-body); font-weight: 400; letter-spacing: 0.03em; }

/* Titulares display: Fraunces 300, nunca negrita */
h1, .entry-title, .page-title, .lcs-display {
  font-family: var(--lcs-font-display);
  font-weight: 300;
  color: var(--lcs-green);
  line-height: 1.0;
  letter-spacing: -0.005em;
  font-feature-settings: "liga" 1, "clig" 1;
  font-variation-settings: "opsz" 144;
}
h1, .single .entry-title, .page .entry-title { font-size: clamp(44px, 7vw, 100px); }
.lcs-display-lg { font-size: clamp(56px, 10vw, 150px); line-height: 1.05; }
h2 { font-size: clamp(26px, 3vw, 35px); line-height: 1.2; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }

img { border-radius: var(--lcs-radius); }
.site-logo img, .custom-logo { border-radius: 0; }

/* Sin sombras en todo el sistema */
* { box-shadow: none !important; }

/* ========== Barra superior ========== */
.lcs-topbar {
  background: var(--lcs-green);
  color: #fff;
  font-family: var(--lcs-font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}
.lcs-topbar__inner { max-width: 1200px; margin: 0 auto; padding: 7px 20px; display: flex; align-items: center; justify-content: center; position: relative; }
.lcs-topbar__links { position: absolute; right: 20px; display: flex; gap: 24px; }
.lcs-topbar a { color: #fff; text-decoration: none; }
@media (max-width: 768px) { .lcs-topbar__links { display: none; } }

/* ========== Cabecera / logo ========== */
.site-header { border-bottom: 1px solid var(--lcs-green); }
.main-title { font-family: var(--lcs-font-body); font-size: 20px; font-weight: 400; letter-spacing: 0.017em; }
.main-title a, .main-title a:hover { color: var(--lcs-green); display: inline-flex; align-items: center; gap: 10px; }
.main-title a::before {
  content: "";
  width: 26px; height: 26px;
  background: var(--lcs-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='16' cy='9' rx='5.5' ry='7'/%3E%3Cpath d='M16 16v14'/%3E%3Cpath d='M16 8c1.5-2 3.5-2.5 5-2-0.5 2-2.5 3-5 2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='16' cy='9' rx='5.5' ry='7'/%3E%3Cpath d='M16 16v14'/%3E%3Cpath d='M16 8c1.5-2 3.5-2.5 5-2-0.5 2-2.5 3-5 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.site-description { font-family: var(--lcs-font-label); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lcs-ink); }

/* Navegación principal */
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items { color: var(--lcs-green); font-family: var(--lcs-font-body); font-size: 15px; letter-spacing: 0.013em; }
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a { color: var(--lcs-green); opacity: .7; background: transparent; }

/* Fila de categorías */
.lcs-catnav { border-bottom: 1px solid var(--lcs-green); background: var(--lcs-cream); }
.lcs-catnav ul { list-style: none; margin: 0 auto; padding: 10px 20px; max-width: 1200px; display: flex; gap: 30px; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.lcs-catnav ul::-webkit-scrollbar { display: none; }
.lcs-catnav a { font-size: 15px; letter-spacing: 0.013em; text-decoration: none; white-space: nowrap; }
@media (max-width: 768px) {
  .lcs-catnav ul { justify-content: flex-start; gap: 8px; }
  .lcs-catnav a { border: 1px solid var(--lcs-green); border-radius: var(--lcs-radius-pill); padding: 4px 14px; font-size: 14px; }
}

/* ========== Etiqueta de sección + enlace con flecha ========== */
.lcs-label, .lcs-section-head {
  font-family: var(--lcs-font-label); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lcs-green);
}
.lcs-section-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--lcs-green); padding-bottom: 6px; margin: var(--lcs-gap-section) 0 20px; }
.lcs-arrow { font-family: var(--lcs-font-label); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-radius: var(--lcs-radius-link); }
.lcs-arrow::after { content: " →"; }

/* ========== Botones: siempre de contorno ========== */
.lcs-btn, .wp-block-button__link, button, input[type="submit"], input[type="button"], .button,
.wprm-recipe-jump, .wprm-recipe-print, .wprm-recipe-pin, .wprm-recipe-link {
  background: transparent !important;
  color: var(--lcs-green) !important;
  border: 1px solid var(--lcs-green) !important;
  border-radius: var(--lcs-radius-pill) !important;
  font-family: var(--lcs-font-body) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  letter-spacing: 0.013em;
  padding: 10px 20px !important;
  text-decoration: none !important;
  line-height: 1.2;
}
.lcs-btn:hover, .wp-block-button__link:hover, button:hover, input[type="submit"]:hover,
.wprm-recipe-jump:hover, .wprm-recipe-print:hover, .wprm-recipe-pin:hover { opacity: .75; }
/* Única excepción: envío de la newsletter */
.lcs-newsletter input[type="submit"], .lcs-newsletter button[type="submit"] { background: var(--lcs-green) !important; color: #fff !important; }

input[type="text"], input[type="email"], input[type="search"], input[type="url"], textarea, select {
  background: var(--lcs-cream); border: 1px solid var(--lcs-green); border-radius: var(--lcs-radius-pill); color: var(--lcs-ink); padding: 10px 18px;
}
textarea { border-radius: var(--lcs-radius); }

/* ========== Tarjetas del listado (blog, categorías, relacionadas) ========== */
body.blog .site-main, body.archive .site-main, body.search .site-main {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
body.blog .site-main > *:not(article), body.archive .site-main > *:not(article), body.search .site-main > *:not(article) { grid-column: 1 / -1; }
@media (max-width: 1024px) { body.blog .site-main, body.archive .site-main, body.search .site-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { body.blog .site-main, body.archive .site-main, body.search .site-main { grid-template-columns: 1fr; } }

body.blog .site-main article .inside-article,
body.archive .site-main article .inside-article,
body.search .site-main article .inside-article,
.lcs-tile {
  background: var(--lcs-oat); border-radius: var(--lcs-radius); padding: var(--lcs-pad-card); height: 100%; margin: 0;
}
body.blog article .post-image, body.archive article .post-image, body.search article .post-image { margin: 0 0 16px; order: -1; }
body.blog article .post-image img, body.archive article .post-image img, body.search article .post-image img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
body.blog .entry-title, body.archive .entry-title, body.search .entry-title {
  font-family: var(--lcs-font-body); font-weight: 400; font-size: 20px; line-height: 1.3; color: var(--lcs-ink); letter-spacing: 0.017em; font-variation-settings: normal;
}
body.blog .entry-title a, body.archive .entry-title a, body.search .entry-title a { color: var(--lcs-ink); text-decoration: none; }
body.blog .entry-summary, body.archive .entry-summary, body.search .entry-summary { display: none; }
.entry-meta, .lcs-meta { font-family: var(--lcs-font-label); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lcs-green); }
.entry-meta a { color: var(--lcs-green); }

/* Cabecera de archivo */
.page-header { background: transparent; }
.archive .page-title { font-size: clamp(44px, 7vw, 100px); }

/* ========== Página de receta ========== */
.single .inside-article { max-width: 760px; margin-left: auto; margin-right: auto; }
.single .entry-content { font-size: 18px; line-height: 1.6; }
.lcs-recipe-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 28px; }

/* ========== Tarjeta de receta WP Recipe Maker ========== */
.wprm-recipe-container .wprm-recipe {
  background: var(--lcs-oat) !important;
  border: 0 !important;
  border-radius: var(--lcs-radius) !important;
  padding: var(--lcs-pad-card) !important;
  color: var(--lcs-ink) !important;
  font-family: var(--lcs-font-body) !important;
}
.wprm-recipe .wprm-recipe-name {
  font-family: var(--lcs-font-display) !important; font-weight: 300 !important; font-size: clamp(30px, 4vw, 40px) !important;
  color: var(--lcs-green) !important; line-height: 1.05 !important;
}
.wprm-recipe .wprm-recipe-image img { border-radius: var(--lcs-radius) !important; }
.wprm-recipe .wprm-recipe-header, .wprm-recipe h3 { font-family: var(--lcs-font-label) !important; font-size: 12px !important; letter-spacing: 0.06em !important; text-transform: uppercase !important; color: var(--lcs-green) !important; font-weight: 400 !important; border-bottom: 1px solid var(--lcs-green); padding-bottom: 6px; }
.wprm-recipe .wprm-recipe-details-label, .wprm-recipe .wprm-recipe-time-label { font-family: var(--lcs-font-label) !important; font-size: 11px !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lcs-green) !important; font-weight: 400 !important; }
.wprm-recipe .wprm-recipe-details, .wprm-recipe .wprm-recipe-time { font-size: 18px !important; color: var(--lcs-ink) !important; }
.wprm-recipe .wprm-recipe-ingredient, .wprm-recipe .wprm-recipe-instruction-text { font-size: 18px !important; line-height: 1.6 !important; }
.wprm-recipe .wprm-recipe-ingredient-amount, .wprm-recipe .wprm-recipe-ingredient-unit { font-weight: 500; }
.wprm-recipe .wprm-recipe-instructions { counter-reset: lcs-step; }
.wprm-recipe .wprm-recipe-instruction { list-style: none !important; position: relative; padding-left: 44px; margin-bottom: 14px !important; }
.wprm-recipe .wprm-recipe-instruction::before {
  counter-increment: lcs-step; content: counter(lcs-step);
  position: absolute; left: 0; top: -4px;
  font-family: var(--lcs-font-display); font-weight: 300; font-size: 30px; color: var(--lcs-green); line-height: 1;
}
.wprm-recipe .wprm-recipe-notes-container { border-top: 1px solid var(--lcs-green); padding-top: 12px; }
.wprm-recipe .wprm-nutrition-label-container { font-size: 13px !important; }
.wprm-recipe .wprm-recipe-servings-container a, .wprm-recipe .wprm-recipe-adjustable-servings-container a,
.wprm-recipe .wprm-toggle { border: 1px solid var(--lcs-green) !important; border-radius: var(--lcs-radius-pill) !important; background: transparent !important; color: var(--lcs-green) !important; }
.wprm-recipe .wprm-checkbox-container input[type="checkbox"] + label::before { border-color: var(--lcs-green) !important; }

.lcs-disclaimer { font-size: 13px; color: var(--lcs-ink); opacity: .8; }

/* ========== Anuncios (AdSense) ========== */
.lcs-ad { margin: 32px auto; text-align: center; min-height: 280px; background: var(--lcs-cream); }
.lcs-ad::before { content: "Publicidad"; display: block; font-family: var(--lcs-font-label); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lcs-ink); opacity: .6; margin-bottom: 6px; }

/* ========== Newsletter ========== */
.lcs-newsletter { background: var(--lcs-oat); border-radius: var(--lcs-radius); padding: var(--lcs-pad-card); margin: var(--lcs-gap-section) 0; }

/* ========== Footer ========== */
.site-footer, .site-info, .footer-widgets { background: var(--lcs-carbon) !important; color: var(--lcs-cream) !important; }
.site-footer a, .site-info a, .footer-widgets a { color: var(--lcs-cream) !important; }
.lcs-footer-nav { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; font-size: 15px; }
.site-info { font-size: 13px; }
