:root {
  color-scheme: light dark;
  --bg: #e8e5e0;
  --surface: #f4f2ee;
  --ink: #1d1c1a;
  --muted: #5f5b55;
  --line: #cfcac2;
  --orange: #f26a1b;
  --orange-ink: #a63f00;
  --dark: #1d1c1a;
  --on-dark: #f4f2ee;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  font-family: "Instrument Sans", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171614;
    --surface: #22211e;
    --ink: #f1eee9;
    --muted: #a9a49b;
    --line: #3a3834;
    --orange-ink: #ff8a4a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800;
  line-height: .98;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 8vw, 6.8rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
p { max-width: 72ch; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip-link {
  position: absolute; z-index: 99; left: 12px; top: 8px; padding: 12px 16px;
  transform: translateY(-160%); background: var(--orange); color: var(--dark);
}
.skip-link:focus { transform: none; }
.btn {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  gap: 8px; padding: 0 20px; border: 0; border-radius: 6px; background: var(--orange);
  color: #1d1c1a; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .16s var(--ease-out), background-color .16s ease;
}
.btn:active { transform: scale(.97); }
.btn.secondary { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.small { min-height: 44px; padding-inline: 14px; font-size: 15px; }
@media (hover: hover) { .btn:hover { background: #ff7d33; } }

.site-header { position: sticky; z-index: 20; top: 0; background: var(--dark); color: var(--on-dark); }
.header-row { display: flex; min-height: 72px; align-items: center; gap: 24px; }
.brand-logo { display: block; width: 170px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); margin-left: auto; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; opacity: .82; text-decoration: none; font-size: 15px; }
.site-nav a[aria-current="page"], .site-nav a:hover { opacity: 1; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; min-height: 44px; min-width: 44px; border: 1px solid #6f6a62; border-radius: 6px; background: transparent; color: var(--on-dark); cursor: pointer; }
.site-header .btn { min-height: 44px; padding-inline: 15px; font-size: 15px; }

main { min-height: 60vh; }
.hero { position: relative; overflow: hidden; padding: 74px 0 82px; background: var(--dark); color: var(--on-dark); }
.hero::before { content: ""; position: absolute; top: -155px; right: -120px; width: 560px; aspect-ratio: 1; border: 68px solid var(--orange); border-radius: 50%; opacity: .13; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 56px; }
.hero h1 { max-width: 9ch; font-weight: 900; }
.hero h1 span { color: var(--orange); }
.hero-lead { max-width: 46ch; margin: 24px 0 30px; color: #cbc6bd; font-size: clamp(18px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.intro-anim { opacity: 0; transform: translateY(14px); animation: rise .52s var(--ease-out) forwards; }
.intro-anim:nth-child(2) { animation-delay: .08s; }
.intro-anim:nth-child(3) { animation-delay: .16s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.quote-box { padding: 26px; border-top: 6px solid var(--orange); border-radius: 10px; background: var(--surface); color: var(--ink); }
.quote-box h2 { margin-bottom: 5px; font-size: 2rem; }
.quote-box > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.segmented { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 8px; background: var(--bg); }
.segmented::before { content: ""; position: absolute; inset: 4px auto 4px 4px; width: calc(50% - 4px); border-radius: 6px; background: var(--orange); transition: transform .22s var(--ease-out); }
.segmented[data-mode="renta"]::before { transform: translateX(100%); }
.segmented button { position: relative; z-index: 1; min-height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; }
.segmented button[aria-pressed="true"] { color: #1d1c1a; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips button { min-height: 44px; padding: 0 13px; border: 1.5px solid var(--line); border-radius: 99px; background: transparent; color: var(--ink); font-size: 14px; cursor: pointer; transition: transform .14s var(--ease-out), background-color .14s ease; }
.chips button:active { transform: scale(.96); }
.chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.quote-box .btn { width: 100%; }
.quote-note { margin: 10px 0 0 !important; font-size: 13px !important; }
.brand-ribbon { overflow: hidden; padding: 13px 0; background: var(--orange); color: var(--dark); white-space: nowrap; }
.brand-ribbon-track { display: flex; width: max-content; font: 800 25px "Big Shoulders Display", sans-serif; animation: brand-marquee 38s linear infinite; }
.brand-ribbon-group { display: flex; flex: 0 0 auto; gap: 42px; padding-inline: 42px; }
.brand-ribbon-track span { flex: 0 0 auto; }
.brand-ribbon-track span::after { content: "  /"; }
@keyframes brand-marquee { to { transform: translateX(-50%); } }
@media (hover: hover) { .brand-ribbon:hover .brand-ribbon-track { animation-play-state: paused; } }
.brand-ribbon-track span::after { content: "  /"; }

.section { padding: 78px 0; }
.section-tight { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 28px; margin-bottom: 32px; }
.section-head h2 { max-width: 15ch; }
.section-head p { max-width: 48ch; margin: 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.category-card { display: flex; min-height: 185px; flex-direction: column; justify-content: space-between; padding: 23px; background: var(--surface); text-decoration: none; transition: background-color .18s ease, color .18s ease; }
.category-card svg { width: 34px; height: 34px; color: var(--orange-ink); }
.category-card h3 { margin-top: 20px; font-size: 1.85rem; }
.category-card p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
@media (hover: hover) { .category-card:hover { background: var(--dark); color: var(--on-dark); } .category-card:hover svg { color: var(--orange); } .category-card:hover p { color: #b9b4ab; } }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.product-card { display: flex; min-height: 205px; flex-direction: column; gap: 12px; padding: 19px; border-left: 5px solid var(--orange); border-radius: 7px; background: var(--surface); text-decoration: none; transition: transform .2s var(--ease-out); }
.product-card:active { transform: scale(.98); }
@media (hover: hover) { .product-card:hover { transform: translateY(-3px); } }
.product-card .product-brand { color: var(--orange-ink); font-size: 14px; font-weight: 600; }
.product-card h3 { font-size: 1.55rem; }
.product-card .product-category { margin-top: auto; color: var(--muted); font-size: 14px; }
.equipment-placeholder { display: grid; min-height: 260px; place-items: center; padding: 25px; border: 1px dashed var(--line); background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--line), transparent 70%) 12px 13px); color: var(--muted); text-align: center; }
.equipment-placeholder strong { display: block; color: var(--ink); font: 700 1.45rem "Big Shoulders Display", sans-serif; }
.service-section { background: var(--dark); color: var(--on-dark); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service-grid article { padding: 30px; border: 1px solid #45423d; border-radius: 9px; }
.service-grid article.featured { border-color: var(--orange); background: var(--orange); color: var(--dark); }
.service-grid h3 { margin-bottom: 12px; font-size: 2.1rem; }
.service-grid p, .service-grid ul { margin-bottom: 0; }
.service-grid ul { padding-left: 20px; }
.service-grid li { margin-block: 4px; }

.page-hero { padding: 60px 0 48px; background: var(--dark); color: var(--on-dark); }
.page-hero h1 { max-width: 13ch; }
.page-hero p { margin: 18px 0 0; color: #cbc6bd; font-size: 18px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .7fr); gap: 50px; }
.content-copy h2 { margin: 0 0 16px; }
.content-copy p { margin: 0 0 18px; }
.content-copy ul, .content-copy ol { padding-left: 23px; }
.content-copy li { margin-block: 8px; }
.plain-panel { padding: 28px; background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-grid h2 { margin-bottom: 16px; }
.contact-details { margin: 28px 0 0; }
.contact-details dt { margin-top: 17px; font-weight: 600; }
.contact-details dd { margin: 2px 0 0; color: var(--muted); }
.form-panel { display: grid; gap: 14px; padding: 25px; border-radius: 9px; background: var(--surface); }
.form-panel label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.form-panel input, .form-panel textarea, .form-panel select, .filter-control {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 6px; background: var(--bg); color: var(--ink);
}
.form-panel textarea { min-height: 120px; resize: vertical; }
.form-notice { margin: 0; color: var(--muted); font-size: 13px; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 25px; }
.catalog-count { color: var(--muted); }
.filter-empty { grid-column: 1 / -1; padding: 30px; background: var(--surface); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product-detail h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.product-detail .product-brand { margin: 8px 0; color: var(--orange-ink); font-weight: 600; }
.spec-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; padding: 18px 0; border-block: 1px solid var(--line); }
.spec-list dt { font-weight: 600; }
.spec-list dd { margin: 0; color: var(--muted); }
.legal-copy { max-width: 78ch; }
.legal-copy h2 { margin: 34px 0 14px; font-size: 2rem; }
.legal-copy h3 { margin: 24px 0 10px; font-size: 1.5rem; }
.legal-copy p, .legal-copy li { margin-block: 0 14px; }
.legal-copy ul, .legal-copy ol { padding-left: 24px; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 42px; }
.legal-index { position: sticky; top: 100px; align-self: start; padding: 20px; background: var(--surface); }
.legal-index a { display: flex; min-height: 44px; align-items: center; color: var(--muted); }
details { border-bottom: 1px solid var(--line); }
details summary { min-height: 56px; padding: 17px 30px 17px 0; font-weight: 600; cursor: pointer; }
details p { margin: 0 0 20px; color: var(--muted); }
.mock-warning { padding: 14px 17px; border-left: 4px solid var(--orange); background: var(--surface); }
.cart-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.cart-list li { display: flex; justify-content: space-between; gap: 15px; padding: 16px; background: var(--surface); }
.whatsapp-float { position: fixed; z-index: 15; right: 18px; bottom: 18px; display: none; min-height: 50px; align-items: center; padding: 0 16px; border-radius: 99px; background: var(--orange); color: var(--dark); font-weight: 600; text-decoration: none; box-shadow: 0 4px 14px #0003; }
.map-embed { display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 20px; border: 0; border-radius: 6px; }

.site-footer { padding: 43px 0 32px; background: var(--dark); color: #b9b4ab; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 30px; }
.footer-logo { width: 170px; height: auto; margin-bottom: 12px; }
.site-footer h2 { margin-bottom: 13px; color: var(--on-dark); font: 600 15px "Instrument Sans", sans-serif; }
.site-footer a { display: flex; min-height: 44px; width: fit-content; align-items: center; text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; margin-top: 30px; padding-top: 18px; border-top: 1px solid #45423d; }

@media (max-width: 980px) {
  .site-nav { display: none; position: absolute; inset: 72px 0 auto; padding: 14px 20px 20px; background: var(--dark); }
  .site-nav.is-open { display: grid; gap: 0; }
  .site-nav a { border-top: 1px solid #45423d; }
  .menu-toggle { display: inline-block; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-block: 52px 60px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .brand-logo { width: 145px; }
  .site-header .header-row { min-height: 66px; }
  .site-header .btn { display: none; }
  .site-nav { inset-block-start: 66px; }
  .section { padding-block: 58px; }
  .section-tight { padding-top: 0; }
  .service-grid, .contact-grid, .content-grid, .product-detail, .legal-layout { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .legal-index { position: static; }
  .whatsapp-float { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 420px) {
  .product-grid, .category-grid, .service-grid, .footer-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 148px; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .quote-box, .form-panel { padding: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .intro-anim { opacity: 1; transform: none; }
  .brand-ribbon-track { animation: none; }
}

.site-nav ul, .site-footer ul { display: flex; padding: 0; margin: 0; list-style: none; }
.site-nav ul { align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { opacity: 1; }
.site-footer ul { flex-direction: column; }
.site-footer li { margin: 0; }
.breadcrumb { width: min(1180px, 100% - 40px); margin: 16px auto 0; color: var(--muted); font-size: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }
.breadcrumb a { color: inherit; }
.content-area { padding: 38px 0 78px; }
.content-area > .wrap { min-height: 40vh; }
.entry-title { margin-bottom: 22px; }
.entry-content > * { max-width: 72ch; }
.entry-content img { height: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--line); text-align: left; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pagination a, .pagination span, .nav-links a, .nav-links span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; }
.widget-area { padding: 24px; border-radius: 8px; background: var(--surface); }
.widget-area ul { padding-left: 20px; }
.search-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.search-form label { flex: 1 1 220px; }
.search-field, .search-submit, .woocommerce input.input-text, .woocommerce textarea, .woocommerce select { min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); }
.search-field { width: 100%; }
.search-submit { background: var(--orange); color: var(--dark); cursor: pointer; }
.woocommerce ul.products.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; padding: 0; margin: 0; }
#contenido .woocommerce { width: min(1180px, 100% - 40px); margin-inline: auto; }
.woocommerce ul.products.product-grid::before, .woocommerce ul.products.product-grid::after { display: none; }
.woocommerce ul.products.product-grid li.product { float: none; width: auto; margin: 0; }
.woocommerce .product-card { width: 100%; min-height: 205px; }
.woocommerce .product-card img { width: 100%; height: auto; margin: 0; }
.woocommerce .woocommerce-breadcrumb { width: min(1180px, 100% - 40px); margin: 16px auto; color: var(--muted); font-size: 14px; }
.woocommerce .woocommerce-breadcrumb a { color: inherit; }
.woocommerce .woocommerce-result-count { color: var(--muted); }
.woocommerce .woocommerce-ordering select { min-height: 44px; }
.woocommerce .woocommerce-product-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; margin: 0 0 24px; }
.woocommerce .woocommerce-product-search .search-field { flex: 1 1 220px; }
.woocommerce .woocommerce-product-search button { min-height: 44px; }
.woocommerce div.product { padding: 38px 0 78px; }
.woocommerce div.product .product_title { font-size: clamp(2.4rem, 5vw, 4rem); }
.woocommerce div.product .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit { min-height: 44px; padding: 12px 18px; border: 0; border-radius: 6px; background: var(--orange); color: var(--dark); font-weight: 600; }
.woocommerce .quantity .qty { min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); }
.woocommerce .woocommerce-info, .woocommerce .woocommerce-message { border-top-color: var(--orange); background: var(--surface); color: var(--ink); }
.woocommerce .woocommerce-info::before, .woocommerce .woocommerce-message::before { color: var(--orange-ink); }
.woocommerce table.shop_table { border-color: var(--line); border-radius: 6px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout #payment { padding: 20px; border-radius: 8px; background: var(--surface); }
.wpcf7 form { display: grid; gap: 14px; }
.wpcf7 p { max-width: none; margin: 0; }
.wpcf7 label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.wpcf7 input:not([type="submit"]), .wpcf7 textarea, .wpcf7 select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--ink); }
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 input[type="submit"] { min-height: 48px; padding: 0 20px; border: 0; border-radius: 6px; background: var(--orange); color: var(--dark); font: inherit; font-weight: 600; cursor: pointer; }
.wpcf7 .wpcf7-not-valid-tip, .wpcf7 .wpcf7-response-output { color: var(--orange-ink); }
@media (max-width: 980px) {
  .woocommerce ul.products.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .site-nav li { width: 100%; }
  #contenido .woocommerce { width: min(100% - 32px, 1180px); }
}
@media (max-width: 420px) {
  .woocommerce ul.products.product-grid { grid-template-columns: 1fr; }
}
