/*
Theme Name: Zero Bikes
Theme URI: http://localhost:8080
Author: Zero Bikes local
Description: Tema responsive para el catálogo local de Zero Bikes.
Version: 1.0.0
Text Domain: zero-bikes
*/

:root {
  --ink: #202122;
  --ink-soft: #474747;
  --paper: #f7f7f5;
  --white: #fff;
  --lime: #ddff00;
  --lime-dark: #718200;
  --fuchsia: #ff0053;
  --forest: #175364;
  --aqua: #a4ffdd;
  --brand-green: #93cda8;
  --lavender: #7b9ce5;
  --beige: #e7a969;
  --line: #dedede;
  --muted: #666;
  --font-display: "Hemi Head Rg", "HemiHeadRg", Futura, "Futura PT", "Avenir Next", sans-serif;
  --font-aux: Futura, "Futura PT", "Avenir Next", sans-serif;
  --font-decorative: LightSider, Futura, sans-serif;
  --font-reading: Jones, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --radius: 1.1rem;
  --shadow: 0 18px 50px rgb(21 26 24 / 10%);
  --wrap: min(1180px, calc(100% - 2rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-reading);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--lime-dark); outline-offset: 3px; }
.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 { width: auto; height: auto; clip: auto; margin: .5rem; padding: .75rem; background: var(--white); z-index: 9999; }
.site-wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .75rem 1rem; background: var(--lime); font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-alert { padding: .55rem 1rem; text-align: center; color: var(--white); background: var(--ink); font-size: .83rem; letter-spacing: .02em; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgb(255 255 255 / 94%); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-main { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; min-height: 82px; }
.brand { display: inline-flex; align-items: center; margin-right: 1rem; text-decoration: none; }
.brand-logo { width: clamp(116px, 10vw, 145px); height: auto; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1; border-radius: 50%; color: var(--ink); background: var(--lime); font-size: .9rem; letter-spacing: -.05em; }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: .55rem .8rem; font-weight: 750; }
.primary-nav > ul { display: flex; align-items: center; justify-content: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: .65rem .7rem; text-decoration: none; font-size: .88rem; font-weight: 720; }
.primary-nav a,
.button,
button,
input,
select { font-family: var(--font-aux); }
.primary-nav a:hover { color: #577000; }
.primary-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; margin: 0; padding: .5rem; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: .8rem; box-shadow: var(--shadow); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.search-toggle, .cart-link { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 800; cursor: pointer; }
.search-panel { display: none; padding: 0 0 1rem; }
.search-panel.is-open { display: block; }
.product-search { display: flex; gap: .5rem; max-width: 780px; margin-inline: auto; }
.product-search input[type="search"] { flex: 1; min-width: 0; border: 1px solid #aab2ad; border-radius: 999px; padding: .8rem 1rem; background: var(--white); }
.button, button[type="submit"], input[type="submit"], .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; justify-content: center; align-items: center; gap: .4rem; min-height: 44px; padding: .72rem 1.1rem;
  border: 0; border-radius: 999px; color: var(--ink) !important; background: var(--lime) !important; font-weight: 850; text-decoration: none; cursor: pointer;
}
.button:hover, button[type="submit"]:hover { background: #b5dc17 !important; }
.button.button-dark { color: var(--white) !important; background: var(--ink) !important; }

.hero { position: relative; overflow: hidden; color: var(--white); background: #050706; }
.hero-track { width: 100%; aspect-ratio: 16 / 9; }
.hero-slide { width: 100%; height: 100%; margin: 0; }
.hero-slide[hidden] { display: none; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; background: #050706; }
.hero-controls { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); display: flex; align-items: center; gap: .5rem; padding: .45rem; border: 1px solid rgb(255 255 255 / 22%); border-radius: 999px; background: rgb(0 0 0 / 72%); backdrop-filter: blur(10px); }
.hero-controls button { min-width: 38px; min-height: 38px; padding: .35rem .65rem; color: var(--white) !important; background: transparent !important; border: 1px solid rgb(255 255 255 / 25%); }
.hero-controls button:hover { border-color: var(--lime); }
.hero-dots { display: flex; gap: .35rem; }
.hero-dots button { min-width: 12px; min-height: 12px; width: 12px; padding: 0; border-radius: 50%; }
.hero-dots button[aria-current="true"] { border-color: var(--lime); background: var(--lime) !important; }
.hero-pause { min-width: 76px !important; font-size: .75rem; }
.hero-content { position: relative; z-index: 1; width: var(--wrap); margin: 0 auto; padding: 7rem 0 5rem; color: var(--white); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; color: var(--lime); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.5rem; height: 3px; background: currentColor; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3rem, 8vw, 6.8rem); line-height: .88; letter-spacing: -.07em; text-wrap: balance; }
.hero-copy { max-width: 590px; margin: 1.5rem 0; font-size: clamp(1rem, 2vw, 1.2rem); color: #ecf0ed; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2, .content-header h1 { margin: 0; font-size: clamp(2.15rem, 5vw, 4rem); line-height: .95; letter-spacing: -.055em; }
h1, h2, h3,
.woocommerce-loop-product__title,
.product_title { font-family: var(--font-display); }
.section-heading p { max-width: 500px; margin: 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.category-card { grid-column: span 4; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.category-card:first-child, .category-card:nth-child(2) { grid-column: span 6; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-number { color: var(--lime-dark); font-weight: 900; }
.category-card h3 { margin: 0 0 .4rem; font-size: 1.65rem; line-height: 1.05; letter-spacing: -.04em; }
.category-card p { margin: 0; color: var(--muted); }
.category-arrow { align-self: end; display: grid; place-items: center; width: 2.7rem; aspect-ratio: 1; border-radius: 50%; background: var(--lime); font-size: 1.3rem; }
.store-strip { color: var(--white); background: var(--ink); }
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.store-card { padding: 1.5rem; border: 1px solid rgb(255 255 255 / 18%); border-radius: var(--radius); }
.store-card h3 { margin-top: 0; color: var(--lime); }
.store-card p { margin-bottom: .5rem; color: #dfe5e1; }
.empty-catalog { padding: clamp(2rem, 6vw, 4rem); text-align: center; border: 1px dashed #aeb7b0; border-radius: var(--radius); background: var(--white); }
.empty-catalog h3 { margin-top: 0; font-size: 1.7rem; letter-spacing: -.03em; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.product-card { display: flex; flex-direction: column; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.product-card > a:first-child { text-decoration: none; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: .75rem; background: #f4f4ef; }
.product-card h3 { margin: 1rem 0 .35rem; font-size: 1.2rem; line-height: 1.15; letter-spacing: -.03em; }
.product-price { margin: auto 0 1rem; font-size: 1.05rem; font-weight: 850; }
.product-price del { color: var(--muted); font-weight: 500; }
.product-price ins { color: #587000; text-decoration: none; }

.content-area { width: var(--wrap); min-height: 55vh; margin-inline: auto; padding: 4rem 0 6rem; }
.content-header { max-width: 820px; margin-bottom: 2rem; }
.content-header p { color: var(--muted); }
.entry-content { max-width: 850px; font-size: 1.05rem; }
.entry-content h2 { margin-top: 2.5rem; font-size: 1.8rem; letter-spacing: -.03em; }
.entry-content h3 { margin-top: 2rem; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 2.5rem; }
.legal-nav a { padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 750; }
.legal-meta { color: var(--muted); font-size: .88rem; }
.legal-source { white-space: normal; }
.legal-source p { margin: 0 0 1rem; }
.legal-source strong { font-weight: 850; }
.legal-table-wrap { max-width: 100%; overflow-x: auto; margin: 1.5rem 0; }
.legal-table-wrap table { min-width: 720px; background: var(--white); }
.legal-table-wrap th { color: var(--ink); background: var(--lime); }
.legal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 100%; }
.legal-cards p { margin: 0; }
.legal-cards .button { width: 100%; min-height: 78px; text-align: center; }
.search-results-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.search-result { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.search-result h2 { margin: .8rem 0 .3rem; font-size: 1.25rem; }
.search-result a { text-decoration: none; }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 1rem !important; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.woocommerce .woocommerce-breadcrumb { color: var(--muted); }

.site-footer { color: #e7ece9; background: #0e1210; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding: 4rem 0 3rem; }
.footer-main h2, .footer-main h3 { color: var(--white); }
.footer-brand-title { margin: 0 0 1rem; }
.footer-brand-logo { width: min(210px, 100%); height: auto; filter: brightness(0) invert(1); }
.footer-main h2 { margin-top: 0; font-size: 1.6rem; letter-spacing: -.04em; }
.footer-main h3 { margin-top: 0; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-main p, .footer-main li { color: #bfc8c2; font-size: .9rem; }
.footer-main ul { list-style: none; margin: 0; padding: 0; }
.footer-main li { margin-bottom: .55rem; }
.footer-main a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid rgb(255 255 255 / 12%); color: #98a39d; font-size: .8rem; }

@media (max-width: 980px) {
  .header-main { grid-template-columns: auto 1fr auto; }
  .nav-toggle { display: inline-flex; justify-self: end; }
  .primary-nav { display: none; grid-column: 1 / -1; padding-bottom: 1rem; }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { display: block; max-height: 65vh; overflow-y: auto; }
  .primary-nav a { padding: .7rem 0; }
  .primary-nav .sub-menu { display: block; position: static; min-width: 0; margin-left: 1rem; padding: 0 0 0 .8rem; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
  .header-actions { justify-self: end; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --wrap: min(100% - 1.25rem, 1180px); }
  .header-main { min-height: 70px; gap: .6rem; }
  .brand { font-size: 1.2rem; }
  .brand-mark { width: 2rem; }
  .header-actions .cart-link { display: none; }
  .hero-track { aspect-ratio: 16 / 9; min-height: 220px; }
  .hero-controls { bottom: .45rem; }
  .hero-pause { display: none; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 1rem; }
  .category-card, .category-card:first-child, .category-card:nth-child(2) { grid-column: 1 / -1; min-height: 210px; }
  .store-grid, .search-results-list, .woocommerce ul.products, .legal-cards, .featured-grid { grid-template-columns: 1fr !important; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .product-search { flex-direction: column; }
  .legal-source { font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
