/*
Theme Name: Salud y Oficina
Theme URI: https://saludyoficina.com/
Author: Hostlat
Description: Tema ligero para la tienda Salud y Oficina.
Version: 1.0.1
Text Domain: salud-oficina
*/

:root {
  --sy-bg: #f7faf9;
  --sy-surface: #ffffff;
  --sy-ink: #142321;
  --sy-muted: #5f6f6c;
  --sy-line: #dce7e4;
  --sy-green: #0fa968;
  --sy-green-dark: #087b4c;
  --sy-cyan: #13a9ca;
  --sy-coral: #f06449;
  --sy-amber: #f2b84b;
  --sy-radius: 8px;
  --sy-shadow: 0 14px 40px rgba(20, 35, 33, .08);
  --sy-wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sy-ink);
  background: var(--sy-bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: var(--sy-green-dark); text-decoration: none; }
a:hover { color: var(--sy-coral); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.sy-wrap { width: var(--sy-wrap); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.sy-topbar { background: var(--sy-ink); color: #fff; font-size: 13px; }
.sy-topbar__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sy-topbar a { color: #fff; }
.sy-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--sy-line); }
.admin-bar .sy-header { top: 32px; }
.sy-header__main { min-height: 86px; display: grid; grid-template-columns: 220px minmax(260px, 1fr) auto; align-items: center; gap: 28px; }
.sy-logo img { width: 190px; max-height: 70px; object-fit: contain; object-position: left center; }
.sy-search form { position: relative; display: flex; }
.sy-search input[type="search"] { width: 100%; height: 46px; border: 1px solid #c9d9d5; border-radius: var(--sy-radius) 0 0 var(--sy-radius); background: #fff; padding: 0 16px; color: var(--sy-ink); }
.sy-search button { width: 50px; border: 0; border-radius: 0 var(--sy-radius) var(--sy-radius) 0; background: var(--sy-green); color: #fff; cursor: pointer; }
.sy-header__tools { display: flex; align-items: center; gap: 6px; }
.sy-tool { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--sy-ink); border-radius: 50%; }
.sy-tool:hover { background: #eaf7f1; color: var(--sy-green-dark); }
.sy-cart-count { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 9px; background: var(--sy-coral); color: #fff; font-size: 11px; font-weight: 700; }
.sy-menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; color: var(--sy-ink); }
.sy-nav { border-top: 1px solid var(--sy-line); background: #fff; }
.sy-nav__inner { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sy-nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 30px; }
.sy-nav li { margin: 0; }
.sy-nav a { color: var(--sy-ink); font-weight: 650; font-size: 14px; }
.sy-nav a:hover, .sy-nav .current-menu-item > a { color: var(--sy-green); }
.sy-nav__shipping { color: var(--sy-green-dark); font-size: 13px; font-weight: 750; white-space: nowrap; }

.sy-main { min-height: 50vh; }
.sy-hero { background: #eef8f4; overflow: hidden; }
.sy-hero__grid { min-height: 580px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; padding-block: 64px; }
.sy-eyebrow { margin: 0 0 14px; color: var(--sy-green-dark); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.sy-hero h1 { max-width: 700px; margin: 0; font-size: clamp(42px, 5.7vw, 76px); line-height: 1.03; letter-spacing: 0; }
.sy-hero h1 span { color: var(--sy-green); }
.sy-hero__copy { max-width: 590px; margin: 22px 0 28px; color: #40504d; font-size: 19px; }
.sy-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sy-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--sy-radius); padding: 10px 20px; background: var(--sy-green); color: #fff; font-weight: 750; line-height: 1.2; transition: transform .15s ease, background .15s ease;
}
.sy-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover { background: var(--sy-green-dark); color: #fff; transform: translateY(-1px); }
.sy-button--secondary { background: #fff; border-color: #b8d0ca; color: var(--sy-ink); }
.sy-button--secondary:hover { background: var(--sy-ink); border-color: var(--sy-ink); }
.sy-hero__visual { position: relative; min-height: 430px; }
.sy-hero__product { position: absolute; overflow: hidden; background: #fff; border: 1px solid var(--sy-line); border-radius: var(--sy-radius); box-shadow: var(--sy-shadow); }
.sy-hero__product img { width: 100%; height: 100%; object-fit: cover; }
.sy-hero__product--main { width: 62%; height: 84%; right: 12%; top: 0; }
.sy-hero__product--side { width: 38%; height: 55%; left: 0; bottom: 0; border-bottom: 5px solid var(--sy-cyan); }
.sy-hero__badge { position: absolute; right: 0; bottom: 5%; width: 132px; min-height: 92px; display: grid; place-items: center; text-align: center; padding: 14px; border-radius: var(--sy-radius); background: var(--sy-coral); color: #fff; font-weight: 800; box-shadow: var(--sy-shadow); }

.sy-trust { background: var(--sy-ink); color: #fff; }
.sy-trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.sy-trust__item { min-height: 98px; display: flex; align-items: center; gap: 14px; padding: 20px 28px; border-right: 1px solid rgba(255,255,255,.15); }
.sy-trust__item:last-child { border-right: 0; }
.sy-trust .dashicons { color: #62dba5; font-size: 28px; width: 28px; height: 28px; }
.sy-trust strong, .sy-trust span { display: block; }
.sy-trust span { color: #cbd9d6; font-size: 13px; }

.sy-section { padding-block: 78px; }
.sy-section--white { background: #fff; }
.sy-section--soft { background: #edf7f4; }
.sy-section__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.sy-section__head h2, .sy-story h2, .sy-page-title { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: 0; }
.sy-section__head p { max-width: 600px; margin: 8px 0 0; color: var(--sy-muted); }
.sy-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sy-category { min-height: 310px; display: grid; grid-template-columns: 1fr 44%; overflow: hidden; border: 1px solid var(--sy-line); border-radius: var(--sy-radius); background: #fff; }
.sy-category__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 34px; }
.sy-category h3 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; }
.sy-category p { margin: 0 0 22px; color: var(--sy-muted); }
.sy-category__image { min-height: 310px; background: #eef2f1; }
.sy-category__image img { width: 100%; height: 100%; object-fit: cover; }
.sy-category--office { border-top: 5px solid var(--sy-cyan); }
.sy-category--health { border-top: 5px solid var(--sy-green); }

.sy-story { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 60px; }
.sy-story__mark { min-height: 340px; display: grid; place-items: center; border-radius: var(--sy-radius); background: #fff; border: 1px solid var(--sy-line); }
.sy-story__mark img { width: min(330px, 75%); }
.sy-checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.sy-checks li { position: relative; padding-left: 30px; }
.sy-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--sy-green); font-weight: 900; }

.sy-products .products { margin: 0 !important; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--sy-line); border-radius: var(--sy-radius); background: #fff; box-shadow: 0 5px 18px rgba(20,35,33,.04); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; color: var(--sy-ink); }
.woocommerce ul.products li.product img { width: 100%; aspect-ratio: 1 / 1; margin: 0 !important; object-fit: contain; background: #f8faf9; padding: 14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 55px; margin: 0 !important; padding: 16px 16px 5px !important; font-size: 16px !important; line-height: 1.4; }
.woocommerce ul.products li.product .price { margin: auto 0 0 !important; padding: 0 16px 14px; color: var(--sy-green-dark) !important; font-size: 18px !important; font-weight: 800 !important; }
.woocommerce ul.products li.product .button {
  width: calc(100% - 32px);
  margin: 0 16px 16px !important;
  display: flex !important;
  align-self: center;
  justify-content: center;
  text-align: center;
}
.woocommerce span.onsale { min-width: 54px; min-height: 28px; line-height: 28px; border-radius: 4px; background: var(--sy-coral); }

.sy-page { padding-block: 58px 80px; }
.sy-page__header { margin-bottom: 30px; }
.sy-page__content { max-width: 900px; padding: 34px; border: 1px solid var(--sy-line); border-radius: var(--sy-radius); background: #fff; }
.sy-page__content h2, .sy-page__content h3 { margin-top: 32px; line-height: 1.25; }
.sy-page__content > :first-child { margin-top: 0; }
.sy-page__content input:not([type="submit"]), .sy-page__content textarea, .sy-page__content select,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce .quantity .qty {
  width: 100%; border: 1px solid #c4d3d0; border-radius: 6px; background: #fff; padding: 11px 12px;
}

.woocommerce .woocommerce-breadcrumb { margin: 24px 0 !important; color: var(--sy-muted); }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 26px; }
.woocommerce .woocommerce-ordering select { min-height: 42px; border: 1px solid #c4d3d0; border-radius: 6px; padding: 0 10px; }
.woocommerce div.product { padding-bottom: 60px; }
.woocommerce div.product div.images img { border-radius: var(--sy-radius); background: #fff; }
.woocommerce div.product .product_title { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--sy-green-dark); font-size: 26px; font-weight: 800; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--sy-muted); }
.woocommerce div.product form.cart { display: flex; gap: 10px; align-items: center; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 6px 6px 0 0 !important; }
.woocommerce table.shop_table { border-color: var(--sy-line); background: #fff; }
.woocommerce-checkout #payment { background: #edf7f4; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--sy-green); background: #eef8f4; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--sy-green); }

.sy-footer { background: #142321; color: #c9d4d2; }
.sy-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .9fr; gap: 50px; padding-block: 60px 46px; }
.sy-footer__logo { width: 190px; margin-bottom: 18px; filter: drop-shadow(0 0 0 transparent); }
.sy-footer h2 { margin: 0 0 18px; color: #fff; font-size: 17px; }
.sy-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sy-footer a { color: #d8e2e0; }
.sy-footer a:hover { color: #62dba5; }
.sy-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; }
.sy-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #21b66f; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.sy-whatsapp:hover { background: #168c55; color: #fff; }

@media (max-width: 960px) {
  .sy-header__main { grid-template-columns: 180px 1fr auto; gap: 16px; }
  .sy-logo img { width: 165px; }
  .sy-menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; }
  .sy-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; box-shadow: var(--sy-shadow); }
  .sy-nav.is-open { display: block; }
  .sy-nav__inner, .sy-nav ul { align-items: stretch; flex-direction: column; }
  .sy-nav__inner { padding-block: 18px; }
  .sy-nav ul { gap: 4px; width: 100%; }
  .sy-nav a { display: block; padding: 10px 0; }
  .sy-nav__shipping { padding-bottom: 8px; }
  .sy-hero__grid { min-height: auto; grid-template-columns: 1fr; }
  .sy-hero__visual { min-height: 390px; }
  .sy-categories, .sy-story { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :root { --sy-wrap: min(100% - 28px, 1180px); }
  .admin-bar .sy-header { top: 46px; }
  .sy-topbar__inner { justify-content: center; }
  .sy-topbar__inner span:last-child { display: none; }
  .sy-header__main { min-height: 74px; grid-template-columns: 150px 1fr; }
  .sy-logo img { width: 145px; max-height: 58px; }
  .sy-search { display: none; }
  .sy-header__tools { justify-content: flex-end; }
  .sy-tool--account { display: none; }
  .sy-hero__grid { gap: 30px; padding-block: 42px; }
  .sy-hero h1 { font-size: 44px; }
  .sy-hero__copy { font-size: 17px; }
  .sy-hero__visual { min-height: 330px; }
  .sy-hero__product--main { width: 67%; right: 4%; }
  .sy-hero__product--side { width: 42%; }
  .sy-hero__badge { width: 105px; min-height: 74px; font-size: 13px; }
  .sy-trust__grid { grid-template-columns: 1fr; padding-block: 8px; }
  .sy-trust__item { min-height: 78px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); padding: 14px 4px; }
  .sy-trust__item:last-child { border-bottom: 0; }
  .sy-section { padding-block: 56px; }
  .sy-section__head { align-items: flex-start; flex-direction: column; }
  .sy-categories { gap: 14px; }
  .sy-category { min-height: 0; grid-template-columns: 1fr; }
  .sy-category__body { padding: 26px; }
  .sy-category__image { min-height: 220px; order: -1; }
  .sy-story { gap: 30px; }
  .sy-story__mark { min-height: 260px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 70px; padding: 12px 12px 4px !important; font-size: 14px !important; }
  .woocommerce ul.products li.product .price { padding: 0 12px 12px; font-size: 16px !important; }
  .woocommerce ul.products li.product .button { min-height: 42px; margin: 0 10px 10px !important; padding: 8px 10px; font-size: 13px; }
  .sy-page__content { padding: 22px; }
  .sy-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 46px 34px; }
  .woocommerce div.product form.cart { align-items: stretch; flex-direction: column; }
}
