/*
Theme Name: Estudio Manissero Compras
Theme URI: https://estudiomanissero.com.ar/biblioteca-empresarial.html
Author: Estudio Manissero
Description: Recorrido de compras de la Biblioteca Empresarial en /compras/. WooCommerce conserva carrito, checkout, cuentas y descargas nativos.
Version: 1.0.2
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: estudio-manissero-compras
*/

:root {
  --emc-ink: #142e43;
  --emc-muted: #506474;
  --emc-blue: #186a9b;
  --emc-blue-dark: #11517a;
  --emc-line: #dce5eb;
  --emc-tint: #f3f6f7;
  --emc-warm: #f6f4ef;
  --emc-radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--emc-ink);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--emc-blue); text-underline-offset: .18em; }
a:hover { color: var(--emc-blue-dark); }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--emc-blue);
  outline-offset: 4px;
}
h1, h2, h3, h4 {
  color: var(--emc-ink);
  font-family: "Raleway", "Roboto", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.22;
  text-wrap: balance;
}
h1 { margin: 0 0 18px; font-size: clamp(31px, 3.6vw, 47px); }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
h3 { font-size: 23px; }
p { margin: 0 0 18px; }
button, input, select, textarea { font: inherit; }
button, [type="submit"] { cursor: pointer; }
:disabled { cursor: not-allowed; }
.emc-wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.emc-skip {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 100000;
  padding: 12px 18px;
  background: #fff;
  border: 2px solid var(--emc-blue);
  border-radius: var(--emc-radius);
}
.emc-skip:focus { top: 16px; }
.emc-header { background: #fff; border-bottom: 1px solid var(--emc-line); }
.emc-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.emc-brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.emc-brand img { display: block; width: 180px; height: auto; }
.emc-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 24px; }
.emc-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  color: var(--emc-ink);
  font-family: "Poppins", "Roboto", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.emc-nav a:hover { color: var(--emc-blue); text-decoration: underline; }
.emc-nav .emc-cart-link { padding: 6px 16px; border: 1px solid var(--emc-line); border-radius: var(--emc-radius); }
.emc-main { min-height: 56vh; padding-block: 52px 76px; }
.emc-main:focus { outline: none; }
.emc-content, .emc-entry-content { min-width: 0; }
.emc-page-heading { margin-bottom: 38px; }
.emc-eyebrow {
  margin: 0 0 14px;
  color: var(--emc-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.emc-intro { max-width: 680px; color: var(--emc-muted); font-size: 18px; }
.emc-portal {
  padding: clamp(28px, 6vw, 72px);
  background: linear-gradient(115deg, #fff 10%, var(--emc-warm) 100%);
  border: 1px solid var(--emc-line);
  border-radius: 12px;
}
.emc-portal h1 { max-width: 760px; }
.emc-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.emc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 23px;
  border: 1px solid var(--emc-blue);
  border-radius: var(--emc-radius);
  background: var(--emc-blue);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
}
.emc-button:hover { background: var(--emc-blue-dark); border-color: var(--emc-blue-dark); color: #fff; }
.emc-button-secondary { color: var(--emc-blue); background: #fff; }
.emc-button-secondary:hover { background: var(--emc-tint); color: var(--emc-blue-dark); }
.emc-footer { padding-block: 38px; background: var(--emc-tint); border-top: 1px solid var(--emc-line); }
.emc-footer-inner { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 28px; align-items: start; }
.emc-footer p { margin-bottom: 7px; color: var(--emc-muted); font-size: 14px; }
.emc-footer .emc-footer-brand { color: var(--emc-ink); font-family: "Raleway", Arial, sans-serif; font-size: 19px; font-weight: 700; }
.emc-footer a { font-size: 14px; }
.emc-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.emc-footer-help a { overflow-wrap: anywhere; }

/* Acabado visual sobre los estilos nativos: sin ocultar campos ni alterar estados. */
.woocommerce, .woocommerce-page { color: var(--emc-ink); }
.woocommerce .woocommerce-breadcrumb { font-size: 14px; color: var(--emc-muted); }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link),
.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link) {
  min-height: 48px;
  border-radius: var(--emc-radius);
  background-color: var(--emc-blue);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link):hover {
  background-color: var(--emc-blue-dark);
  color: #fff;
}
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce button.button.alt:disabled {
  opacity: .55;
  color: #fff;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #a7b8c3;
  border-radius: 6px;
  background: #fff;
  color: var(--emc-ink);
}
.woocommerce form .form-row label { color: var(--emc-ink); }
.woocommerce form .form-row textarea { min-height: 120px; }
.woocommerce table.shop_table { border-color: var(--emc-line); border-radius: var(--emc-radius); }
.woocommerce table.shop_table th { color: var(--emc-ink); font-weight: 700; }
.woocommerce table.shop_table td { border-top-color: var(--emc-line); }
.woocommerce .cart-collaterals .cart_totals,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon {
  padding: 24px;
  border: 1px solid var(--emc-line);
  border-radius: var(--emc-radius);
  background: #fff;
}
.woocommerce .cart-collaterals .cart_totals h2 { margin-top: 0; }
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message { border-top-color: var(--emc-blue); background: var(--emc-tint); color: var(--emc-ink); }
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before { color: var(--emc-blue); }
.woocommerce .woocommerce-error { background: #fff5f4; }
.woocommerce #payment { background: var(--emc-tint); border-radius: var(--emc-radius); }
.woocommerce-MyAccount-navigation ul { margin: 0 0 28px; padding: 0; border: 1px solid var(--emc-line); border-radius: var(--emc-radius); list-style: none; overflow: hidden; }
.woocommerce-MyAccount-navigation a { display: block; min-height: 44px; padding: 10px 16px; text-decoration: none; }
.woocommerce-MyAccount-navigation li + li { border-top: 1px solid var(--emc-line); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--emc-tint); color: var(--emc-ink); font-weight: 700; }
.woocommerce-account .woocommerce-MyAccount-content { min-width: 0; }
.wc-block-components-product-name { font-weight: 500; }
.wc-block-components-totals-wrapper { border-color: var(--emc-line); }
.wc-block-components-title, .wc-block-components-checkout-step__title { color: var(--emc-ink); }
.wc-block-components-text-input input, .wc-block-components-combobox-control input { font-family: inherit; }
.alignwide { max-width: 100%; }
.wp-block-image { margin-inline: 0; }
.wp-block-table { overflow-x: auto; }

.emc-order-state {
  margin: 0 0 28px;
  padding: 22px;
  border: 1px solid var(--emc-line);
  border-left: 4px solid var(--emc-blue);
  border-radius: var(--emc-radius);
  background: var(--emc-tint);
}
.emc-order-state h2 { margin: 0 0 10px; font-size: clamp(1.2rem, 3.5vw, 1.5rem); }
.emc-order-state p { margin: 0; }
.emc-order-state--paid { border-left-color: #28724e; background: #f1f7f3; }
.emc-order-state--pending { border-left-color: #967025; background: #faf7ef; }
.emc-order-state--failed { border-left-color: #a1453c; background: #fff5f4; }
.emc-order-state .emc-order-refresh { display: inline-flex; align-items: center; margin-top: 16px; }

@media (max-width: 900px) {
  .emc-header-inner { gap: 16px; }
  .emc-nav { gap: 6px 15px; }
  .emc-footer-inner { grid-template-columns: 1fr 1fr; }
  .emc-footer nav { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
}
@media (max-width: 640px) {
  .emc-wrap { width: calc(100% - 32px); }
  .emc-header-inner { flex-wrap: wrap; padding-block: 8px 12px; gap: 2px; }
  .emc-brand img { width: 155px; }
  .emc-nav { width: 100%; justify-content: flex-start; gap: 3px 16px; }
  .emc-nav a { font-size: 13px; }
  .emc-nav .emc-back { margin-right: auto; }
  .emc-nav .emc-cart-link { padding-inline: 12px; }
  .emc-main { padding-block: 34px 48px; }
  .emc-page-heading { margin-bottom: 26px; }
  .emc-intro { font-size: 17px; }
  .emc-portal { padding: 28px 22px; }
  .emc-footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .emc-footer nav { grid-column: auto; }
  .woocommerce .cart-collaterals .cart_totals,
  .woocommerce form.login,
  .woocommerce form.register { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
