/*
Theme Name: Advokater Klok Bookstore
Theme URI: https://www.advokaterklok.com.mx/libros/
Author: Advokater Klok
Author URI: https://www.advokaterklok.com.mx/
Description: Tema institucional para la Biblioteca Fiscal Advokater Klok y su tienda WooCommerce de libros digitales.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: ak-bookstore
*/

:root {
  --ak-ink: #0e1a12;
  --ak-ink-soft: #1f3225;
  --ak-gold: #c49a5b;
  --ak-gold-bright: #d4ad6e;
  --ak-paper: #f5efe2;
  --ak-cream: #f0e6d0;
  --ak-white: #fffdf8;
  --ak-line: #d8c9ad;
  --ak-muted: #665f55;
  --ak-shadow: 0 18px 48px rgba(14, 26, 18, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ak-paper);
  color: #263029;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: #79531e; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: .5rem; left: .5rem; width: auto; height: auto; padding: .75rem 1rem; overflow: visible; clip: auto; background: #fff; color: #111; }

.ak-site-header {
  position: sticky;
  z-index: 999;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .7rem clamp(1rem, 5vw, 5rem);
  border-bottom: 2px solid var(--ak-gold);
  background: rgba(14, 26, 18, .98);
  color: var(--ak-cream);
}

.admin-bar .ak-site-header { top: 32px; }
.ak-brand { display: flex; align-items: center; gap: .8rem; color: var(--ak-cream); text-decoration: none; }
.ak-brand img { width: 58px; height: 58px; object-fit: contain; }
.ak-brand-copy { display: flex; flex-direction: column; line-height: 1.05; letter-spacing: .12em; }
.ak-brand-copy strong { font-size: .95rem; }
.ak-brand-copy small { margin-top: .35rem; color: var(--ak-gold-bright); font-size: .6rem; }
.ak-main-nav { display: flex; align-items: center; gap: 1.25rem; }
.ak-main-nav a { color: var(--ak-cream); font-size: .9rem; font-weight: 650; text-decoration: none; }
.ak-main-nav a:hover, .ak-main-nav a:focus-visible { color: var(--ak-gold-bright); }
.ak-cart-link { padding: .55rem .8rem; border: 1px solid rgba(212, 173, 110, .65); border-radius: 999px; }

.ak-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 3rem;
  padding: 5rem clamp(1rem, 7vw, 8rem);
  background: radial-gradient(circle at 78% 28%, rgba(196, 154, 91, .20), transparent 30%), linear-gradient(135deg, var(--ak-ink) 0%, #152319 58%, var(--ak-ink-soft) 100%);
  color: var(--ak-cream);
}

.ak-hero-copy { min-width: 0; max-width: 720px; }
.ak-eyebrow { margin: 0; color: var(--ak-gold-bright); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ak-hero h1 { margin: .65rem 0 1.2rem; font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 5.3vw, 5.25rem); line-height: 1.02; }
.ak-hero h1 em { color: var(--ak-gold-bright); font-weight: 600; }
.ak-hero-copy > p:not(.ak-eyebrow) { max-width: 680px; color: #d4c9b1; font-size: 1.08rem; }
.ak-trust-row { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.7rem 0 2rem; }
.ak-trust-row span { padding: .48rem .72rem; border: 1px solid rgba(240, 230, 208, .32); border-radius: 999px; font-size: .82rem; }
.ak-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .85rem 1.15rem;
  border: 0;
  border-radius: 7px;
  background: var(--ak-gold);
  color: var(--ak-ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  font-weight: 800;
  text-decoration: none;
}
.ak-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .wp-element-button:hover { background: var(--ak-gold-bright); color: var(--ak-ink); }
.ak-hero-books { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: clamp(.6rem, 1.5vw, 1.15rem); }
.ak-hero-books img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top; border: 1px solid rgba(212, 173, 110, .55); border-radius: 4px; box-shadow: 0 24px 45px rgba(0, 0, 0, .4); }
.ak-hero-books img:first-child, .ak-hero-books img:last-child { transform: translateY(1rem); }

.ak-section { padding: 5rem clamp(1rem, 7vw, 8rem); }
.ak-section--light { background: var(--ak-white); }
.ak-section-heading { max-width: 820px; margin: 0 auto 2.6rem; text-align: center; }
.ak-section-heading h2, .ak-content h1, .woocommerce-products-header__title, .product_title, .entry-title { margin: .35rem 0 1rem; color: var(--ak-ink); font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; line-height: 1.1; }
.ak-section-heading h2 { font-size: clamp(2rem, 4vw, 3.55rem); }
.ak-section-heading p:last-child { color: var(--ak-muted); }
.ak-launch-note { max-width: 900px; margin: 2rem auto 0; padding: 1.1rem 1.25rem; border-left: 5px solid var(--ak-gold); background: #fff8e8; color: #463d2f; }
.ak-steps { max-width: 1180px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; }
.ak-steps li { padding: 1.35rem; display: flex; flex-direction: column; gap: .7rem; border: 1px solid var(--ak-line); border-radius: 10px; background: #f7f2e8; }
.ak-steps strong { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--ak-ink); color: var(--ak-gold-bright); }
.ak-support { max-width: 980px; margin: 2rem auto 0; padding: 1.5rem 2rem; border-radius: 10px; background: var(--ak-ink); color: var(--ak-cream); }
.ak-support h3 { margin-top: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.8rem; }
.ak-support a { color: var(--ak-gold-bright); }

.ak-content, .woocommerce-page .site-main, .woocommerce .site-main { max-width: 1220px; min-height: 55vh; margin: 0 auto; padding: 4rem clamp(1rem, 4vw, 3rem) 6rem; }
.ak-content--narrow { max-width: 920px; }
.ak-content article, .woocommerce div.product { padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--ak-line); border-radius: 12px; background: var(--ak-white); box-shadow: var(--ak-shadow); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 1rem; border: 1px solid var(--ak-line); border-radius: 10px; background: var(--ak-white); box-shadow: var(--ak-shadow); }
.woocommerce ul.products li.product a img { aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top; border-radius: 5px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--ak-ink); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.55rem; line-height: 1.15; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: #8a642f; font-weight: 800; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--ak-gold); background: var(--ak-white); }
.woocommerce-message::before, .woocommerce-info::before { color: #8a642f; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 44px; padding: .65rem .75rem; border: 1px solid #bdb4a5; border-radius: 6px; background: #fff; }
.woocommerce-checkout #payment { border: 1px solid var(--ak-line); background: #f7f2e8; }
.woocommerce-checkout #payment div.payment_box { background: #eee4d1; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #eee4d1; }
.woocommerce table.shop_table { border-color: var(--ak-line); background: var(--ak-white); }

.ak-site-footer { padding: 2.3rem clamp(1rem, 7vw, 8rem); background: var(--ak-ink); color: #d4c9b1; }
.ak-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; max-width: 1300px; margin: 0 auto; }
.ak-site-footer h2, .ak-site-footer h3 { margin-top: 0; color: var(--ak-cream); font-family: "Cormorant Garamond", Georgia, serif; }
.ak-site-footer a { color: var(--ak-gold-bright); }
.ak-site-footer ul { margin: 0; padding: 0; list-style: none; }
.ak-site-footer li { margin: .4rem 0; }
.ak-footer-bottom { max-width: 1300px; margin: 1.8rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(240, 230, 208, .18); font-size: .82rem; }

@media (max-width: 980px) {
  .ak-main-nav { display: none; }
  .ak-hero { min-height: auto; grid-template-columns: minmax(0, 1fr); padding-top: 3.5rem; }
  .ak-hero-books { max-width: 720px; margin: 0 auto; }
  .ak-steps { grid-template-columns: 1fr 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ak-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 782px) { .admin-bar .ak-site-header { top: 46px; } }

@media (max-width: 620px) {
  .ak-brand-copy strong { font-size: .82rem; }
  .ak-brand-copy small { font-size: .53rem; }
  .ak-hero h1 { font-size: clamp(2.35rem, 12vw, 3.2rem); }
  .ak-section { padding: 3.5rem 1rem; }
  .ak-steps, .woocommerce ul.products, .ak-footer-grid { grid-template-columns: 1fr; }
  .ak-support { padding: 1.25rem; }
  .ak-hero-books { gap: .45rem; }
}
