/* MYCOFILA · estilos de marca. Los carga el plugin Mycofila Core. */
:root {
  --myco-brown:   #8A6237; /* botones */
  --myco-brown-2: #6E4C29; /* hover */
  --myco-text:    #4A4540;
  --myco-ink:     #2A2520; /* titulares */
  --myco-line:    #E4DDCF;
  --myco-sage:    #EDEFE5; /* fondo verde claro */
  --myco-cream:   #F7F4EC; /* fondo crema */
  --myco-white:   #FFFFFF;
  --myco-olive:   #2E4A2C;  /* verde del logo */                               /* iconos */
  --myco-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --myco-radius: 6px;
}
[class*="myco-"], [class*="myco-"] *, [class*="myco-"]::before, [class*="myco-"]::after { box-sizing: border-box; }

/* ---------- Base ---------- */
.myco-wrap { max-width: 1200px; margin-inline: auto; padding-inline: max(16px, 4vw); }
.myco-serif, .myco h1, .myco h2, .myco h3 { font-family: var(--myco-serif); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; color: var(--myco-ink); }
.myco-icon { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; color: var(--myco-olive); }
.myco-photo { background: #CFC6B3 center / cover no-repeat; }

.myco-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px;
  background: var(--myco-brown); color: #FFF !important; border: 1.5px solid var(--myco-brown);
  border-radius: var(--myco-radius); font-weight: 600; font-size: 15px; text-decoration: none !important;
  transition: background .2s;
}
.myco-btn:hover { background: var(--myco-brown-2); border-color: var(--myco-brown-2); }
.myco-btn:focus-visible, .myco-link:focus-visible { outline: 3px solid var(--myco-olive); outline-offset: 3px; }
.myco-btn--outline { background: transparent; border-color: rgba(255,255,255,.85); }
.myco-btn--outline:hover { background: rgba(255,255,255,.12); border-color: #FFF; }
.myco-btn svg, .myco-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.myco-link { color: var(--myco-brown) !important; font-weight: 500; font-size: 14px; text-decoration: underline !important; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }

.myco-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 24px; margin-bottom: 22px; }
.myco-head h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; margin: 0; }
.myco-head p { margin: 4px 0 0; color: var(--myco-text); }
.myco-band { padding-block: clamp(40px, 5vw, 64px); }

/* ---------- 1 · Hero ---------- */
.myco-hero { position: relative; color: #FFF; background-color: #3C4630; }
.myco-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,24,16,.82) 0%, rgba(20,24,16,.55) 45%, rgba(20,24,16,0) 75%); }
.myco-hero > .myco-wrap { position: relative; padding-block: clamp(44px, 6vw, 80px) 28px; }
.myco-hero__kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.myco.myco-hero h1 { color: #FFF; font-size: clamp(40px, 5.4vw, 66px); line-height: 1.02; margin: 0 0 16px; max-width: 11ch; }
.myco-hero__sub { font-size: clamp(17px, 1.8vw, 21px); margin: 0 0 28px; max-width: 40ch; }
.myco-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.myco-hero__feats { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.myco-hero__feats li { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 14.5px; line-height: 1.35; }
.myco-hero__feats .myco-icon { color: #FFF; width: 34px; height: 34px; }

/* ---------- 2 · ¿Qué quieres cultivar? ---------- */
.myco-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.myco-cat { background: var(--myco-white); border: 1px solid var(--myco-line); border-radius: var(--myco-radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.myco-cat:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(42,37,32,.10); }
.myco-cat .myco-photo { aspect-ratio: 16 / 9.5; }
.myco-cat__body { padding: 16px 16px 18px; display: grid; gap: 2px; }
.myco-cat__body strong { font-family: var(--myco-serif); font-weight: 500; font-size: 21px; color: var(--myco-ink); }
.myco-cat__body em { font-size: 14px; color: var(--myco-text); }
.myco-cat__body .myco-link { margin-top: 12px; }

/* ---------- 3 · Laboratorio ---------- */
.myco-lab { display: grid; grid-template-columns: 1fr 1fr; background: var(--myco-cream); }
.myco-lab .myco-photo { min-height: 300px; }
.myco-lab__body { padding: clamp(28px, 4vw, 40px) max(16px, 4vw) clamp(28px, 4vw, 40px) clamp(20px, 3vw, 40px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.myco-lab__body h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; margin: 0 0 12px; }
.myco-lab__body p { font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.myco-lab__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.myco-lab__list li { display: flex; gap: 12px; align-items: center; font-size: 13.5px; line-height: 1.35; margin: 0; }

/* ---------- 4 · ¿Es tu primera vez? ---------- */
.myco-first { background: var(--myco-sage); }
.myco-first__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.myco-first__card { background: var(--myco-white); border-radius: var(--myco-radius); overflow: hidden; display: grid; grid-template-columns: 45% 1fr; }
.myco-first__card .myco-photo { min-height: 190px; }
.myco-first__card > div:last-child { padding: 22px 22px 22px 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.myco-first__card h3 { font-size: 23px; line-height: 1.1; margin: 0; }
.myco-first__card p { margin: 0 0 6px; font-size: 15px; line-height: 1.5; }

/* ---------- 5 · Productos destacados (shortcode de WooCommerce) ---------- */
.myco-products .woocommerce ul.products, .myco-products ul.products { margin-bottom: 0; }

/* ---------- 6 · Comunidad ---------- */
.myco-community { position: relative; text-align: center; color: #FFF; background-color: #6B4F35; }
.myco-community::before { content: ""; position: absolute; inset: 0; background: rgba(60,40,22,.62); }
.myco-community > .myco-wrap { position: relative; padding-block: clamp(32px, 4vw, 48px); display: grid; justify-items: center; gap: 8px; }
.myco.myco-community h2 { color: #FFF; font-size: clamp(28px, 3.4vw, 40px); margin: 0; }
.myco-community p { margin: 0 0 10px; font-size: 18px; }

/* ---------- 7 · Franja de recursos ---------- */
.myco-res { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.myco-res li { display: flex; gap: 14px; align-items: flex-start; margin: 0; font-size: 13.5px; line-height: 1.4; }
.myco-res strong { display: block; color: var(--myco-ink); font-size: 14.5px; }
.myco-res .myco-icon { color: var(--myco-ink); }

/* ---------- Tarjetas de producto WooCommerce (tienda y destacados) ---------- */
.woocommerce ul.products li.product {
  position: relative; background: var(--myco-white); border: 1px solid var(--myco-line);
  border-radius: var(--myco-radius); padding: 0 0 18px; overflow: hidden; display: flex; flex-direction: column;
}
.woocommerce ul.products li.product figure { margin: 0 0 12px; }
.woocommerce ul.products li.product figure img { background: #F1EFEA; aspect-ratio: 4 / 3 !important; object-fit: cover; width: 100%; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--myco-ink); padding-inline: 14px; margin: 0; }
.woocommerce ul.products li.product .myco-loop-meta { display: block; font-size: 12.5px; color: var(--myco-text); padding: 2px 14px 0; }
.woocommerce ul.products li.product .entry-meta { order: 5; margin: 6px 14px 0; padding: 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.woocommerce ul.products li.product .entry-meta a { color: var(--myco-text); }
.woocommerce ul.products li.product .price { order: 6; margin: auto 0 0; padding: 12px 64px 0 14px; display: flex; flex-direction: column; font-size: 17px; font-weight: 700; color: var(--myco-ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.woocommerce ul.products li.product .price .woocommerce-price-suffix { font-size: 11px; font-weight: 500; color: var(--myco-text); margin-top: 2px; }
.woocommerce ul.products li.product .ct-woo-card-actions { order: 7; position: absolute; right: 14px; bottom: 16px; margin: 0; padding: 0; opacity: 1 !important; visibility: visible !important; transform: none !important; }
.woocommerce ul.products li.product .button {
  width: 42px !important; height: 38px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
  font-size: 0 !important; color: transparent !important; border-radius: var(--myco-radius) !important; border: 0 !important;
  background: var(--myco-brown) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2 2h3l2.7 12.4a2 2 0 0 0 2 1.6h8.7a2 2 0 0 0 2-1.6L22 7H5.2'/%3E%3C/svg%3E") center / 20px no-repeat !important;
}
.woocommerce ul.products li.product .button::before, .woocommerce ul.products li.product .button::after { display: none !important; }
.woocommerce ul.products li.product .button:hover { background-color: var(--myco-brown-2) !important; }
.woocommerce ul.products li.product .added_to_cart { display: none; }

/* Logo más visible en la cabecera */
.ct-header [data-id="logo"] { --logo-max-height: 58px; }
@media (max-width: 999px) { .ct-header [data-id="logo"] { --logo-max-height: 46px; } }

/* Ficha técnica dentro de la descripción del producto */
.myco-spec { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.myco-spec th, .myco-spec td { padding: 10px 12px; border-bottom: 1px solid var(--myco-line); text-align: left; vertical-align: top; }
.myco-spec th { width: 42%; font-weight: 600; color: var(--myco-ink); background: var(--myco-cream); }
.myco-note { background: var(--myco-sage); border-left: 3px solid var(--myco-olive); padding: 12px 16px; font-size: 14.5px; }
.myco-cold-notice { display: flex; gap: 10px; background: var(--myco-sage); border-radius: var(--myco-radius); padding: 12px 14px; margin: 16px 0; font-size: 14px; }
.myco-quote-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--myco-brown); }
.myco-freeship { margin: 0 0 18px; font-size: 14px; }
.myco-freeship__bar { height: 6px; background: var(--myco-line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.myco-freeship__bar span { display: block; height: 100%; background: var(--myco-olive); }

/* ---------- Responsive ---------- */
.myco-lab > *, .myco-first__card > *, .myco-cats > *, .myco-res > * { min-width: 0; }
@media (max-width: 1024px) {
  .myco-hero__feats, .myco-cats, .myco-res { grid-template-columns: repeat(2, 1fr); }
  .myco-lab { grid-template-columns: 1fr; }
  .myco-first__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .myco-hero__feats, .myco-res, .myco-lab__body { grid-template-columns: 1fr; }
  .myco-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .myco-cat__body strong { font-size: 18px; }
  .myco-first__card { grid-template-columns: 1fr; }
  .myco-first__card > div:last-child { padding: 20px; }
  .myco-lab__body { padding-inline: max(16px, 4vw); }
}
@media (prefers-reduced-motion: reduce) { .myco-cat, .myco-btn { transition: none; } .myco-cat:hover { transform: none; } }

/* ---------- Titulares con serifa en toda la web ---------- */
h1, h2, h3, .product_title, .woocommerce-products-header__title, .page-title, .entry-title {
  font-family: var(--myco-serif); font-weight: 500; letter-spacing: -0.01em;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: Inter, system-ui, sans-serif; }

/* ---------- Rejilla de destacados en la portada ---------- */
.elementor-widget.myco-products { width: 100%; max-width: 1232px; margin-inline: auto; }
.myco-products ul.products { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; }
.myco-products ul.products::before, .myco-products ul.products::after { display: none !important; }
.myco-products ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
@media (max-width: 1024px) { .myco-products ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .myco-products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
