@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("./assets/fonts/source-sans-3-latin.woff2") format("woff2");
}

:root {
  --color-background: #ffffff;
  --color-background-end: #d9dcdb;
  --color-surface: #ffffff;
  --color-text: #171717;
  --color-muted: #66645f;
  --color-line: #dcdad2;
  --color-accent: #315c61;
  --color-accent-hover: #274b4f;
  --color-accent-soft: #e4ecea;
  --color-field: #f3f5f4;
  --color-field-strong: #eef2f0;
  --color-field-border: rgb(49 92 97 / 18%);
  --color-error: #a64032;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 128px;
  --container-width: 1240px;
  --container-padding: 24px;
  --radius-small: 6px;
  --radius-medium: 12px;
  --radius-large: 18px;
  --transition-fast: 180ms ease;
  --transition-normal: 350ms cubic-bezier(.22, 1, .36, 1);
  --font-primary: "Source Sans 3", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, button, input, select, textarea { font-family: var(--font-primary); }
body { margin: 0; color: var(--color-text); background: var(--color-background); font-size: 16px; line-height: 1.55; }
.home-page, .machines-page, .machine-detail-page, .auth-page, .dashboard-page, .publish-page { background: linear-gradient(155deg, var(--color-background) 0%, var(--color-background-end) 100%); background-attachment: fixed; }
.private-locked .site-header, .private-locked .dashboard-shell { visibility: hidden; }
button, input, textarea { font: inherit; }
select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }

.content-width { width: min(100%, var(--container-width)); margin: 0 auto; padding-inline: var(--container-padding); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.metadata { margin: 0; color: var(--color-muted); font-size: 13px; line-height: 1.4; font-weight: 500; }
.body { margin: 0; font-size: 16px; line-height: 1.55; }
.body-large { margin: 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; font-weight: 400; }
.section-title { margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1; font-weight: 500; letter-spacing: -0.035em; }
.card-title { margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }
.mobile-copy { display: none; }

.site-header { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-lg); align-items: center; min-height: 76px; padding: var(--space-sm) max(var(--container-padding), calc((100vw - var(--container-width)) / 2 + var(--container-padding))); background: color-mix(in srgb, var(--color-background) 82%, transparent); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo { width: clamp(142px, 13vw, 188px); height: auto; }
.nav { display: flex; justify-self: center; gap: 28px; color: var(--color-muted); font-size: 17px; font-weight: 600; }
.nav a { position: relative; padding: 8px 0; transition: color var(--transition-fast); }
.nav a[href="./maquinaria.html"] { color: var(--color-accent-hover); font-size: 18px; font-weight: 700; }
.nav a::after { position: absolute; right: 0; bottom: 1px; left: 0; height: 1px; content: ""; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--transition-fast); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-accent-hover); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-action, .button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--color-accent); border-radius: var(--radius-small); font-weight: 500; transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast); }
.whatsapp-icon { width: 21px; height: 21px; flex: 0 0 auto; margin-right: 9px; }
.header-action, .button-primary { color: var(--color-surface); background: var(--color-accent); }
.header-button { appearance: none; }
.header-action:hover, .button-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.button-unavailable { color: var(--color-surface); background: var(--color-muted); border-color: var(--color-muted); cursor: default; opacity: .72; }
.button-secondary { color: var(--color-accent); background: transparent; }
.button-secondary:hover { color: var(--color-surface); background: var(--color-accent); }
.button-danger { color: var(--color-error); background: transparent; border-color: rgb(166 64 50 / 45%); }
.button-danger:hover { color: var(--color-surface); background: var(--color-error); border-color: var(--color-error); }
.text-action { display: inline-flex; gap: var(--space-xs); align-items: center; color: var(--color-accent); font-weight: 500; border-bottom: 1px solid currentColor; }

.hero { position: relative; min-height: 850px; display: grid; align-items: end; padding: clamp(150px, 15vw, 230px) 0 clamp(120px, 12vw, 180px); color: var(--color-surface); background: var(--color-text) url("https://images.pexels.com/photos/13974251/pexels-photo-13974251.jpeg?auto=compress&cs=tinysrgb&w=2400") center / cover no-repeat; isolation: isolate; }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: rgb(8 20 20 / 68%); }
.hero-layout { display: block; }
.hero-copy-wrap { max-width: 1100px; margin: 0 auto; text-align: center; }
.hero-title { margin: 0; font-size: clamp(76px, 10vw, 158px); line-height: .85; font-weight: 800; letter-spacing: -0.07em; }
.hero .body-large { max-width: 720px; margin: var(--space-xl) auto 0; color: rgb(255 255 255 / 92%); font-size: clamp(21px, 2.1vw, 28px); font-weight: 500; }
.hero-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-sm); max-width: 780px; margin: 52px auto 0; padding: 10px; background: var(--color-surface); border: 1px solid rgb(255 255 255 / 58%); border-radius: var(--radius-medium); box-shadow: 0 10px 28px rgb(0 0 0 / 15%); transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal); }
.hero-search:focus-within { border-color: var(--color-accent-soft); box-shadow: 0 22px 46px rgb(0 0 0 / 30%); transform: translateY(-6px) scale(1.015); }
.hero-search input { min-width: 0; min-height: 62px; padding: 0 var(--space-md); color: var(--color-text); border: 0; outline: 0; background: transparent; font-size: 20px; transition: letter-spacing var(--transition-normal); }
.hero-search:focus-within input { letter-spacing: .01em; }
.hero-search input::placeholder { color: var(--color-muted); font-size: 19px; }
.hero-search .button { min-height: 62px; padding-inline: 32px; font-size: 19px; font-weight: 700; }
.impact-section, .operation-section { padding-block: clamp(96px, 10vw, 140px); }
.impact-section { padding-bottom: clamp(32px, 4vw, 48px); }
.featured-section { padding: clamp(24px, 3vw, 40px) 0 clamp(96px, 10vw, 140px); }
.impact-layout { display: grid; justify-items: center; text-align: center; }
.impact-number { display: flex; align-items: start; justify-content: center; color: var(--color-accent); font-size: clamp(170px, 24vw, 360px); font-weight: 800; letter-spacing: -0.11em; line-height: .68; transform-origin: center; }
.impact-number span:last-child { margin-top: .05em; font-size: .5em; letter-spacing: -0.06em; }
.impact-number.is-counted { animation: impact-pop 1200ms cubic-bezier(.16, 1, .3, 1) both; }
.impact-copy { margin-top: var(--space-lg); }
.impact-label { margin: 0; color: var(--color-text); font-size: clamp(58px, 6.8vw, 104px); font-weight: 800; letter-spacing: -0.06em; line-height: .9; }
.impact-copy .body-large { max-width: 840px; margin: var(--space-lg) auto 0; color: var(--color-muted); font-size: clamp(24px, 2.25vw, 32px); font-weight: 500; }
.impact-scroll { width: 72px; height: 72px; display: grid; place-items: center; margin: var(--space-lg) auto 0; color: var(--color-accent-hover); background: rgb(255 255 255 / 48%); border: 1px solid rgb(49 92 97 / 28%); border-radius: 50%; font-size: 36px; font-weight: 700; transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast); }
.impact-scroll span { animation: arrow-nudge 1.6s ease-in-out infinite; }
.impact-scroll:hover { color: var(--color-surface); background: var(--color-accent); transform: translateY(4px); }

.section-heading { display: flex; justify-content: space-between; gap: var(--space-lg); align-items: end; }
.section-heading .section-title { max-width: 720px; }
.featured-section .section-heading { display: grid; width: 100%; align-items: center; justify-items: center; text-align: center; }
.featured-section .section-heading > div { width: 100%; }
.featured-section .section-heading .section-title { max-width: 1100px; margin: 0 auto; font-size: clamp(66px, 8vw, 122px); line-height: .88; font-weight: 800; letter-spacing: -0.065em; }
.featured-section .section-heading .section-title span { display: inline-block; margin-left: .22em; }
.featured-section .section-heading .section-title > .mobile-copy { display: none; margin-left: 0; }
.featured-section .section-heading.is-visible .section-title { animation: title-arrival 780ms cubic-bezier(.16, 1, .3, 1) both; }
.catalogue-action { min-height: 64px; display: inline-flex; gap: var(--space-md); align-items: center; justify-content: center; margin-top: var(--space-md); padding: 0 32px; color: var(--color-surface); background: var(--color-accent); border: 1px solid var(--color-accent); border-radius: var(--radius-small); box-shadow: 0 12px 26px rgb(49 92 97 / 28%); font-size: 20px; font-weight: 700; transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast); }
.catalogue-action:hover { background: var(--color-accent-hover); box-shadow: 0 18px 34px rgb(49 92 97 / 35%); transform: translateY(-4px) scale(1.02); }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-lg); }
.featured-card { position: relative; z-index: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-medium); transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal); }
.featured-card:hover { z-index: 1; border-color: var(--color-accent); box-shadow: 0 26px 48px rgb(23 23 23 / 20%); transform: translateY(-12px) scale(1.055); }
.featured-card:focus-visible { z-index: 1; outline: 3px solid var(--color-accent); outline-offset: 4px; border-color: var(--color-accent); box-shadow: 0 26px 48px rgb(23 23 23 / 20%); transform: translateY(-12px) scale(1.055); }
.featured-grid.is-visible .featured-card { animation: card-arrival 650ms cubic-bezier(.16, 1, .3, 1) both; }
.featured-grid.is-visible .featured-card:nth-child(2) { animation-delay: 100ms; }
.featured-grid.is-visible .featured-card:nth-child(3) { animation-delay: 200ms; }
.featured-card > img { width: 100%; aspect-ratio: 1.26; object-fit: cover; filter: saturate(.7) contrast(1.02); transition: transform var(--transition-normal), filter var(--transition-normal); }
.featured-card:hover > img { filter: saturate(.92) contrast(1.04); transform: scale(1.07); }
.featured-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: var(--space-md); }
.featured-card h3 { margin: var(--space-xs) 0 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }
.machine-meta, .machine-status, .machine-price { margin: var(--space-sm) 0 0; font-size: 16px; line-height: 1.35; }
.machine-meta { color: var(--color-muted); }
.machine-status { color: var(--color-accent); }
.machine-price { font-weight: 500; }
.featured-body .button { width: 100%; margin-top: var(--space-md); }

.operation-section { min-height: 520px; display: grid; place-items: center; padding-block: clamp(96px, 10vw, 144px); }
.operation-layout { display: grid; justify-items: center; text-align: center; }
.operation-layout .section-title { max-width: 1080px; font-size: clamp(50px, 5.6vw, 88px); line-height: .95; font-weight: 700; letter-spacing: -0.055em; }
.operation-layout .button { margin-top: var(--space-xl); }

.site-footer { padding-block: var(--space-lg); }
.footer-content { display: flex; justify-content: space-between; gap: var(--space-lg); align-items: center; color: var(--color-muted); }
.footer-content .brand, .footer-content a:last-child { color: var(--color-text); }
.footer-content p { margin: 0; }

/* Catálogo */
.catalogue-hero { position: relative; min-height: clamp(400px, 44vw, 560px); display: grid; align-items: start; padding: clamp(58px, 6vw, 82px) 0 clamp(48px, 5vw, 70px); color: var(--color-surface); background: var(--color-text) url("./assets/images/catalogue-business-interior.png") center / cover no-repeat; isolation: isolate; }
.catalogue-hero::before { position: absolute; z-index: 0; inset: 0; content: ""; background: rgb(17 23 22 / 52%); }
.catalogue-hero-layout { position: relative; z-index: 1; display: block; }
.catalogue-hero-copy { max-width: 1040px; margin: 0 auto; text-align: center; }
.catalogue-hero h1 { max-width: 920px; margin: 0 auto; font-size: clamp(58px, 6.8vw, 104px); line-height: .88; font-weight: 800; letter-spacing: -.065em; }
.catalogue-hero p { max-width: 760px; margin: var(--space-lg) auto 0; color: rgb(255 255 255 / 92%); font-size: clamp(21px, 2vw, 28px); line-height: 1.35; font-weight: 500; }
.catalogue-page { padding: clamp(32px, 4vw, 52px) var(--container-padding) clamp(96px, 10vw, 144px); }
.catalogue-search { display: grid; grid-template-columns: 1fr; gap: 10px; width: min(100%, 940px); margin: 0 auto; padding: var(--space-sm); background: rgb(255 255 255 / 76%); border: 1px solid rgb(49 92 97 / 22%); border-radius: var(--radius-medium); box-shadow: 0 12px 30px rgb(23 23 23 / 7%); transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal); }
.catalogue-search:focus-within { border-color: rgb(49 92 97 / 42%); box-shadow: 0 20px 42px rgb(23 23 23 / 13%); transform: translateY(-5px) scale(1.012); }
.catalogue-search-label { display: block; padding: 0 2px; color: var(--color-accent-hover); font-size: 18px; font-weight: 700; }
.catalogue-search-input { position: relative; }
.search-icon { position: absolute; z-index: 1; top: 50%; left: 22px; width: 19px; height: 19px; border: 2px solid var(--color-accent); border-radius: 50%; pointer-events: none; transform: translateY(-58%); }
.search-icon::after { position: absolute; right: -6px; bottom: -4px; width: 8px; height: 2px; content: ""; background: var(--color-accent); transform: rotate(45deg); transform-origin: left; }
.catalogue-search input { width: 100%; min-height: 70px; padding: 0 var(--space-md) 0 62px; color: var(--color-text); background: var(--color-field); border: 1px solid var(--color-field-border); border-radius: var(--radius-small); outline: 0; box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%); font-size: 20px; font-weight: 500; transition: letter-spacing var(--transition-normal), background var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-fast); }
.catalogue-search:focus-within input { background: #fff; letter-spacing: .01em; }
.catalogue-search input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgb(49 92 97 / 12%); }
.catalogue-search input::placeholder { color: var(--color-muted); }
.catalogue-search p, .catalogue-bar > p { margin: 0; color: var(--color-muted); }
.catalogue-search p { padding: 0 2px; font-size: 15px; }
.catalogue-bar { display: flex; justify-content: space-between; gap: var(--space-md); align-items: center; margin-top: var(--space-xl); }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: rgb(255 255 255 / 56%); border: 1px solid rgb(255 255 255 / 72%); border-radius: 999px; box-shadow: 0 8px 20px rgb(23 23 23 / 5%); }
.filter { min-height: 42px; padding: 0 16px; color: var(--color-accent-hover); background: transparent; border: 1px solid transparent; border-radius: 999px; font-weight: 600; transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast); }
.filter.is-active, .filter:hover { color: var(--color-accent-hover); background: var(--color-accent-soft); border-color: transparent; transform: translateY(-1px); }
.machine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-lg); }
.machine-grid .listing-empty { grid-column: 1 / -1; }
.machine-card { position: relative; z-index: 0; display: grid; grid-template-columns: minmax(190px, .8fr) 1fr; overflow: hidden; background: var(--color-surface); border: 1px solid rgb(255 255 255 / 85%); border-radius: var(--radius-medium); box-shadow: 0 10px 26px rgb(23 23 23 / 6%); transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal); }
.machine-card:hover { z-index: 1; border-color: var(--color-accent); box-shadow: 0 24px 44px rgb(23 23 23 / 18%); transform: translateY(-9px) scale(1.028); }
.machine-image-link { display: block; overflow: hidden; background: var(--color-accent-soft); }
.machine-image-link img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; filter: saturate(.7) contrast(1.02); transition: transform var(--transition-normal), filter var(--transition-normal); }
.machine-card:hover .machine-image-link img { filter: saturate(.92) contrast(1.04); transform: scale(1.07); }
.machine-body { display: flex; flex-direction: column; align-items: flex-start; padding: var(--space-md); }
.machine-body h3 { margin: var(--space-xs) 0 0; font-size: clamp(25px, 2.25vw, 34px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.machine-body h3 a { transition: color var(--transition-fast); }
.machine-body h3 a:hover { color: var(--color-accent); }
.machine-feature { margin: var(--space-sm) 0 0; color: var(--color-muted); }
.machine-body .button { min-height: 46px; margin-top: auto; font-weight: 600; }
.catalogue-help { padding: 0 0 clamp(100px, 11vw, 156px); }
.catalogue-help-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.catalogue-help h2 { max-width: 620px; margin: 0; font-size: clamp(52px, 5.6vw, 88px); line-height: .9; font-weight: 800; letter-spacing: -.065em; }
.catalogue-help p { max-width: 560px; margin: var(--space-md) 0 0; color: var(--color-muted); font-size: 19px; font-weight: 500; }
.catalogue-advice-action { min-height: 54px; margin-top: var(--space-lg); padding-inline: 24px; font-weight: 700; }
.compact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); padding: var(--space-lg); background: rgb(255 255 255 / 68%); border: 1px solid rgb(255 255 255 / 78%); border-radius: var(--radius-medium); box-shadow: 0 12px 30px rgb(23 23 23 / 6%); }
.compact-form.contact-unavailable { display: flex; align-items: center; min-height: 148px; }
.contact-unavailable p { margin: 0; color: var(--color-muted); font-size: 18px; font-weight: 500; }
label { display: grid; gap: var(--space-xs); color: var(--color-muted); font-size: 14px; line-height: 1.4; font-weight: 600; }
label input { min-width: 0; min-height: 54px; padding: 0 16px; color: var(--color-text); background: var(--color-field); border: 1px solid var(--color-field-border); border-radius: var(--radius-small); outline: 0; box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%); transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast); }
label input, label select, label textarea { min-width: 0; color: var(--color-text); background: var(--color-field); border: 1px solid var(--color-field-border); border-radius: var(--radius-small); outline: 0; box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%); transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast); }
label input, label select { min-height: 54px; padding: 0 16px; }
label textarea { resize: vertical; padding: 14px 16px; }
.field-hint { color: var(--color-muted); font-size: 13px; line-height: 1.3; font-weight: 600; }
label input:hover, label select:hover, label textarea:hover { background: var(--color-field-strong); border-color: rgb(49 92 97 / 28%); }
label input:focus, label select:focus, label textarea:focus { background: var(--color-surface); border-color: var(--color-accent); box-shadow: 0 0 0 3px rgb(49 92 97 / 12%), inset 0 1px 0 rgb(255 255 255 / 80%); }
.compact-form .button { grid-column: 1 / -1; justify-self: start; min-height: 54px; padding-inline: 24px; font-weight: 700; }

/* Auth, panel y publicacion */
.auth-shell, .dashboard-shell, .publish-shell { padding-block: clamp(64px, 8vw, 116px); }
.auth-panel { display: grid; grid-template-columns: minmax(0, .95fr) minmax(340px, .7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.auth-copy h1, .dashboard-heading h1, .publish-heading h1 { margin: var(--space-sm) 0 0; font-size: clamp(52px, 5.6vw, 88px); line-height: .9; font-weight: 800; letter-spacing: -.065em; }
.auth-copy p:not(.metadata), .dashboard-heading p, .publish-heading p { max-width: 620px; margin: var(--space-md) 0 0; color: var(--color-muted); font-size: 20px; line-height: 1.4; font-weight: 500; }
.auth-card, .publish-form { display: grid; gap: var(--space-md); padding: clamp(24px, 4vw, 40px); background: rgb(255 255 255 / 72%); border: 1px solid rgb(255 255 255 / 84%); border-radius: var(--radius-medium); box-shadow: 0 14px 34px rgb(23 23 23 / 8%); }
.auth-card .button { width: 100%; min-height: 56px; font-weight: 700; }
.auth-switch { margin: 0; color: var(--color-muted); text-align: center; }
.auth-switch a { color: var(--color-accent-hover); font-weight: 700; border-bottom: 1px solid currentColor; }
.auth-status { min-height: 24px; margin: var(--space-sm) 0 0; color: var(--color-muted); font-size: 15px; line-height: 1.35; font-weight: 600; }
.auth-status[data-state="success"] { color: #276344; }
.auth-status[data-state="warning"] { color: #755d1d; }
.auth-status[data-state="error"] { color: var(--color-error); }
.page-back { display: inline-flex; width: fit-content; align-items: center; justify-content: center; margin-bottom: var(--space-sm); padding: 4px 0; color: var(--color-accent-hover); border-bottom: 2px solid currentColor; font-weight: 800; }
.page-back::before { content: "←"; margin-right: 9px; font-size: 19px; line-height: 1; }
.dashboard-heading, .publish-heading { max-width: 860px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-sm); align-items: stretch; margin-top: var(--space-lg); }
[data-admin-entry-slot] { display: contents; }
.dashboard-card { position: relative; min-height: 192px; display: flex; flex-direction: column; gap: var(--space-sm); justify-content: flex-start; padding: 22px; overflow: hidden; background: rgb(255 255 255 / 62%); border: 1px solid rgb(49 92 97 / 12%); border-radius: var(--radius-small); box-shadow: 0 10px 24px rgb(23 23 23 / 6%); transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal); }
.dashboard-card::after { position: absolute; top: 20px; right: 20px; width: 34px; height: 34px; display: grid; place-items: center; content: "→"; color: var(--color-accent); background: rgb(49 92 97 / 9%); border: 1px solid rgb(49 92 97 / 12%); border-radius: 50%; font-size: 18px; font-weight: 800; line-height: 1; opacity: 0; transform: translateX(-6px); transition: opacity var(--transition-fast), transform var(--transition-fast), color var(--transition-fast), background var(--transition-fast); }
.dashboard-card:first-child { color: var(--color-surface); background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%); border-color: rgb(49 92 97 / 34%); box-shadow: 0 16px 34px rgb(49 92 97 / 20%); }
.dashboard-card:first-child::after { color: var(--color-surface); background: rgb(255 255 255 / 13%); border-color: rgb(255 255 255 / 24%); opacity: 1; }
.dashboard-card:hover { background: rgb(255 255 255 / 78%); border-color: rgb(49 92 97 / 34%); box-shadow: 0 18px 34px rgb(23 23 23 / 12%); transform: translateY(-4px); }
.dashboard-card:hover::after, .dashboard-card:focus-visible::after { opacity: 1; transform: translateX(0); }
.dashboard-card:first-child:hover { background: linear-gradient(135deg, var(--color-accent-hover) 0%, #203f42 100%); box-shadow: 0 22px 42px rgb(49 92 97 / 28%); }
.dashboard-card:focus-visible { outline: 3px solid rgb(49 92 97 / 24%); outline-offset: 4px; border-color: var(--color-accent); }
.dashboard-card.is-disabled { opacity: .74; }
.dashboard-card span { width: fit-content; min-height: 28px; display: inline-flex; align-items: center; padding: 0 10px; color: var(--color-accent); background: rgb(49 92 97 / 10%); border-radius: 999px; font-size: 14px; font-weight: 800; line-height: 1; }
.dashboard-card:first-child span { color: var(--color-surface); background: rgb(255 255 255 / 15%); }
.dashboard-card .dashboard-card-icon { width: 44px; height: 44px; min-height: 44px; justify-content: center; padding: 0; color: var(--color-accent-hover); background: rgb(49 92 97 / 10%); border: 1px solid rgb(49 92 97 / 12%); border-radius: 50%; }
.dashboard-card:first-child .dashboard-card-icon { color: var(--color-surface); background: rgb(255 255 255 / 16%); border-color: rgb(255 255 255 / 24%); }
.dashboard-card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-card h2 { max-width: 86%; margin: auto 0 0; font-size: clamp(26px, 2.15vw, 32px); line-height: .96; font-weight: 800; letter-spacing: -.045em; }
.dashboard-card p { max-width: 28ch; margin: 0; color: var(--color-muted); font-weight: 600; line-height: 1.35; }
.dashboard-card:first-child p { color: rgb(255 255 255 / 84%); }
.dashboard-card-note { display: inline-flex; align-items: center; width: fit-content; min-height: 30px; margin-top: var(--space-xs); padding: 0 12px; color: var(--color-accent-hover); background: rgb(49 92 97 / 10%); border-radius: 999px; font-size: 13px; font-weight: 800; }
.my-listings-section { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid rgb(49 92 97 / 16%); }
.section-heading-row { display: flex; justify-content: space-between; gap: var(--space-md); align-items: end; }
.section-heading-row h2 { margin: var(--space-xs) 0 0; font-size: clamp(36px, 3.8vw, 58px); line-height: .95; font-weight: 800; letter-spacing: -.055em; }
#mis-maquinas .section-heading-row { display: grid; grid-template-columns: 1fr; justify-items: center; gap: var(--space-md); text-align: center; }
#mis-maquinas .section-heading-row > div { display: grid; width: 100%; justify-items: center; text-align: center; }
#mis-maquinas .section-heading-row h2 { width: 100%; max-width: 100%; margin-inline: auto; text-align: center; }
#mis-maquinas .section-heading-row .button { width: min(100%, 460px); justify-self: center; }
#mis-maquinas .admin-filter-bar { justify-content: center; }
#mis-maquinas [data-my-listings-status] { text-align: center; }
.profile-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--space-sm); align-items: end; margin-top: var(--space-md); padding: var(--space-md); background: rgb(255 255 255 / 72%); border: 1px solid rgb(255 255 255 / 84%); border-radius: var(--radius-medium); box-shadow: 0 10px 24px rgb(23 23 23 / 6%); }
.profile-form label span { color: var(--color-muted); font-weight: 500; }
.profile-form .button { min-height: 54px; font-weight: 700; }
.seller-profile-heading { max-width: 980px; }
.seller-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr); gap: var(--space-md); align-items: start; margin-top: var(--space-xl); }
.seller-profile-form { display: grid; gap: var(--space-md); }
.seller-profile-group, .seller-profile-summary { display: grid; gap: var(--space-md); padding: clamp(22px, 3vw, 34px); background: rgb(255 255 255 / 72%); border: 1px solid rgb(255 255 255 / 84%); border-radius: var(--radius-medium); box-shadow: 0 10px 24px rgb(23 23 23 / 6%); }
.seller-profile-group h2, .seller-profile-summary h2 { margin: var(--space-xs) 0 0; font-size: clamp(28px, 2.7vw, 40px); line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.seller-profile-group p:not(.metadata), .seller-profile-summary p { margin: 0; color: var(--color-muted); font-weight: 600; }
.seller-profile-company { border-color: rgb(49 92 97 / 24%); background: rgb(49 92 97 / 7%); }
.seller-profile-summary { position: sticky; top: 100px; }
.my-listings-list { display: grid; gap: var(--space-sm); margin-top: var(--space-md); }
.listing-row { display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; gap: var(--space-md); align-items: center; min-height: 150px; padding: var(--space-sm); background: rgb(255 255 255 / 72%); border: 1px solid rgb(255 255 255 / 84%); border-radius: var(--radius-medium); box-shadow: 0 10px 24px rgb(23 23 23 / 6%); }
.listing-row.is-highlighted { border-color: var(--color-accent); box-shadow: 0 18px 38px rgb(49 92 97 / 18%); }
.inquiry-row { grid-template-columns: minmax(0, 1fr); }
.admin-review-row { grid-template-columns: 180px minmax(0, 1fr) minmax(180px, auto); align-items: center; }
.admin-review-row .listing-thumb { width: 180px; min-height: 150px; }
.admin-detail-link { width: fit-content; margin-top: var(--space-sm); }
.admin-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-md); }
.admin-review-details { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); gap: var(--space-md); margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid rgb(49 92 97 / 16%); }
.admin-review-details[hidden] { display: none; }
.admin-review-details h4 { margin: 0 0 var(--space-xs); font-size: 18px; line-height: 1.15; }
.admin-detail-list { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 14px; margin: 0 0 var(--space-sm); font-size: 15px; }
.admin-detail-list dt { color: var(--color-muted); font-weight: 700; }
.admin-detail-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.seller-review-card { padding: var(--space-sm); background: rgb(255 255 255 / 62%); border: 1px solid rgb(49 92 97 / 14%); border-radius: var(--radius-small); }
.admin-image-gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--space-xs); }
.admin-image-gallery figure { min-height: 92px; display: grid; place-items: center; margin: 0; overflow: hidden; background: var(--color-accent-soft); border-radius: var(--radius-small); }
.admin-image-gallery img { width: 100%; height: 100%; object-fit: cover; }
.listing-thumb { width: 148px; aspect-ratio: 1.25; display: grid; place-items: center; overflow: hidden; color: var(--color-muted); background: rgb(49 92 97 / 10%); border-radius: var(--radius-small); font-size: 13px; font-weight: 700; text-align: center; }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.02); }
.listing-row-body { min-width: 0; }
.listing-row-topline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--color-muted); font-size: 13px; font-weight: 700; }
.listing-status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; color: var(--color-accent-hover); background: rgb(49 92 97 / 11%); border-radius: 999px; }
.listing-row h3 { margin: 10px 0 0; font-size: clamp(22px, 2vw, 30px); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.listing-row p { margin: 8px 0 0; color: var(--color-muted); font-weight: 500; }
.listing-row-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; min-width: 180px; }
.listing-row-actions .button { min-height: 44px; padding-inline: 16px; font-size: 14px; font-weight: 700; }
.listing-action-note { align-self: center; color: var(--color-muted); font-size: 14px; font-weight: 700; }
.inquiry-machine-link { width: fit-content; }
.inquiry-actions { align-self: stretch; align-content: center; }
.inquiries-page-section { max-width: 1120px; margin-inline: auto; }
.inquiries-list { margin-top: var(--space-md); }
.inquiry-label { margin-top: 14px; color: var(--color-muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.inquiry-message-block { display: grid; gap: 6px; max-width: 760px; margin-top: var(--space-sm); }
.inquiry-message-block span { color: var(--color-muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.inquiry-message { margin: 0; padding: 14px 16px; color: var(--color-text); background: rgb(49 92 97 / 7%); border: 1px solid rgb(49 92 97 / 12%); border-radius: var(--radius-small); }
.inquiry-contact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: var(--space-sm) 0 0; }
.inquiry-contact-list div { min-width: 0; padding: 10px 12px; background: rgb(255 255 255 / 70%); border: 1px solid rgb(49 92 97 / 12%); border-radius: var(--radius-small); }
.inquiry-contact-list dt { color: var(--color-muted); font-size: 13px; font-weight: 800; }
.inquiry-contact-list dd { min-width: 0; margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 800; }
.button.is-disabled, .button[aria-disabled="true"] { color: var(--color-muted); background: rgb(255 255 255 / 48%); border-color: rgb(49 92 97 / 20%); cursor: default; }
.text-action.is-disabled, .text-action[aria-disabled="true"] { color: var(--color-muted); pointer-events: none; }
.listing-empty { display: grid; gap: var(--space-sm); max-width: 620px; padding: var(--space-md); background: rgb(255 255 255 / 72%); border: 1px solid rgb(255 255 255 / 84%); border-radius: var(--radius-medium); box-shadow: 0 10px 24px rgb(23 23 23 / 6%); }
.listing-empty-onboarding { justify-items: center; max-width: 760px; margin-inline: auto; padding: clamp(24px, 4vw, 44px); text-align: center; }
.listing-empty-label { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; color: var(--color-accent-hover); background: rgb(49 92 97 / 10%); border-radius: 999px; font-size: 13px; font-weight: 800; }
.listing-empty h3 { margin: 0; font-size: clamp(26px, 2.8vw, 36px); line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.listing-empty p { margin: 0; color: var(--color-muted); font-weight: 500; }
.listing-empty .button { justify-self: start; min-height: 48px; font-weight: 700; }
.listing-empty-onboarding .button { justify-self: center; }
.listing-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: var(--space-xs); }
.publish-form { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-xl); }
.publish-exit { display: none; }
.publish-wide { grid-column: 1 / -1; }
.publish-form [hidden] { display: none !important; }
.publish-stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px; background: rgb(49 92 97 / 8%); border: 1px solid rgb(49 92 97 / 14%); border-radius: var(--radius-small); }
.publish-step { min-height: 58px; display: flex; gap: 10px; align-items: center; justify-content: center; padding: 8px 10px; color: var(--color-muted); background: transparent; border: 1px solid transparent; border-radius: var(--radius-small); font-size: 15px; font-weight: 800; transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast); }
.publish-step span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--color-accent-hover); background: rgb(255 255 255 / 74%); border: 1px solid rgb(49 92 97 / 18%); border-radius: 50%; font-size: 14px; line-height: 1; }
.publish-step.is-complete { color: var(--color-accent-hover); }
.publish-step.is-complete span { color: var(--color-surface); background: #276344; border-color: #276344; }
.publish-step.is-active { color: var(--color-accent-hover); background: rgb(255 255 255 / 78%); border-color: rgb(49 92 97 / 18%); box-shadow: 0 8px 18px rgb(23 23 23 / 5%); }
.publish-step.is-active span { color: var(--color-surface); background: var(--color-accent); border-color: var(--color-accent); }
.publish-form-section { display: grid; gap: var(--space-md); padding: var(--space-md); background: rgb(255 255 255 / 48%); border: 1px solid rgb(49 92 97 / 12%); border-radius: var(--radius-small); }
.publish-section-heading h2 { margin: var(--space-xs) 0 0; font-size: clamp(28px, 2.5vw, 38px); line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.publish-section-heading p:not(.metadata) { max-width: 760px; margin: var(--space-xs) 0 0; color: var(--color-muted); font-weight: 600; }
.publish-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.publish-step-actions { display: flex; justify-content: space-between; gap: var(--space-sm); align-items: center; }
.publish-step-actions .button { min-height: 54px; font-weight: 700; }
.image-manager { display: grid; gap: var(--space-sm); padding: var(--space-md); background: rgb(49 92 97 / 7%); border: 1px solid rgb(49 92 97 / 14%); border-radius: var(--radius-small); }
.image-manager-heading { display: flex; justify-content: space-between; gap: var(--space-sm); align-items: end; }
.image-manager-heading h2 { margin: 0; font-size: clamp(24px, 2.2vw, 32px); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.image-manager-heading p { margin: 8px 0 0; color: var(--color-muted); font-size: 15px; font-weight: 600; }
.image-upload-drop { position: relative; min-height: 130px; display: grid; place-items: center; gap: 6px; padding: var(--space-md); color: var(--color-accent-hover); background: var(--color-field); border: 1px dashed rgb(49 92 97 / 36%); border-radius: var(--radius-small); text-align: center; cursor: pointer; box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%); transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast); }
.image-upload-drop:hover, .image-upload-drop:focus-within { background: var(--color-surface); border-color: var(--color-accent); transform: translateY(-2px); }
.image-upload-drop span { font-size: 18px; font-weight: 800; }
.image-upload-drop small { color: var(--color-muted); font-size: 14px; font-weight: 600; }
.image-upload-drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.image-preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.image-preview-card { overflow: hidden; background: var(--color-surface); border: 1px solid rgb(49 92 97 / 13%); border-radius: var(--radius-small); box-shadow: 0 8px 18px rgb(23 23 23 / 6%); }
.image-preview-card.is-cover { border-color: var(--color-accent); }
.image-preview-card.is-new { border-style: dashed; }
.image-preview-card img { width: 100%; aspect-ratio: 1.28; display: block; object-fit: cover; background: var(--color-accent-soft); }
.image-preview-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; min-height: 42px; padding: 9px 10px; color: var(--color-muted); font-size: 13px; font-weight: 700; }
.image-preview-meta small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-preview-meta button { padding: 0; color: var(--color-error); background: transparent; border: 0; font-size: 13px; font-weight: 800; }
.publish-result { margin: 0; color: var(--color-muted); font-weight: 700; }
.publish-result a { color: var(--color-accent-hover); border-bottom: 1px solid currentColor; }
.field-counter { color: var(--color-accent-hover); font-weight: 800; }
.field-counter.is-close { color: var(--color-error); }
.publish-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.publish-actions .button { min-height: 54px; font-weight: 700; }
.publish-preview { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-md); align-items: center; padding: var(--space-md); background: rgb(49 92 97 / 8%); border: 1px solid rgb(49 92 97 / 16%); border-radius: var(--radius-small); }
.publish-preview-image { overflow: hidden; background: var(--color-accent-soft); border-radius: var(--radius-small); }
.publish-preview-image img { width: 100%; aspect-ratio: 1.25; object-fit: cover; filter: saturate(.82) contrast(1.02); }
.publish-preview-body { min-width: 0; }
.publish-preview-body h2 { margin: 6px 0 0; font-size: clamp(24px, 2.4vw, 36px); line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.publish-preview-body p { margin: 8px 0 0; color: var(--color-muted); font-weight: 600; overflow-wrap: anywhere; }
.publish-preview-description { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* Fichas individuales */
.machine-detail { padding-block: clamp(48px, 6vw, 82px) clamp(80px, 9vw, 128px); }
.machine-detail-heading { max-width: 980px; margin: 0 auto clamp(40px, 5vw, 56px); text-align: center; }
.detail-back { display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--space-md); padding: 4px 0; color: var(--color-accent-hover); background: transparent; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; box-shadow: none; font-weight: 700; transition: color var(--transition-fast), transform var(--transition-fast); }
.detail-back::before { content: "←"; margin-right: 10px; font-size: 20px; line-height: 1; }
.detail-back:hover { color: var(--color-accent); transform: translateX(-3px); }
.machine-detail h1 { margin: 0; font-size: clamp(52px, 5.6vw, 86px); line-height: .9; font-weight: 800; letter-spacing: -.065em; }
.machine-detail-heading > p:not(.machine-detail-kicker) { max-width: 720px; margin: var(--space-sm) auto 0; color: var(--color-muted); font-size: clamp(18px, 1.6vw, 23px); line-height: 1.35; font-weight: 600; }
.machine-detail-kicker { width: fit-content; margin: 0 auto var(--space-sm); padding: 6px 12px; color: var(--color-accent-hover); background: rgb(49 92 97 / 10%); border-radius: 999px; font-size: 14px; font-weight: 800; }
.machine-detail-visual { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.machine-detail-overview { max-width: 480px; }
.machine-detail-description { margin: 0; color: var(--color-muted); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; font-weight: 500; }
.machine-detail-overview { display: grid; gap: var(--space-sm); padding: var(--space-md); background: rgb(255 255 255 / 72%); border: 1px solid rgb(255 255 255 / 84%); border-radius: var(--radius-medium); box-shadow: 0 14px 34px rgb(23 23 23 / 8%); }
.machine-detail-overview .machine-status { width: fit-content; font-weight: 700; }
.machine-detail-overview .machine-price { margin: 0; font-size: clamp(28px, 2.8vw, 42px); line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.machine-detail-help { margin: 0; color: var(--color-muted); font-weight: 700; }
.machine-summary-list { display: grid; gap: 10px; margin: 0; }
.machine-summary-list div { display: grid; grid-template-columns: minmax(90px, .45fr) minmax(0, 1fr); gap: 12px; padding: 12px 14px; background: rgb(255 255 255 / 84%); border: 1px solid rgb(49 92 97 / 12%); border-radius: var(--radius-small); }
.machine-summary-list dt { color: var(--color-muted); font-size: 14px; font-weight: 700; }
.machine-summary-list dd { min-width: 0; margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.machine-detail-description-block { max-width: 1040px; }
.machine-detail-description-block .machine-detail-description { margin-top: var(--space-md); }
.admin-detail-visual { align-items: start; }
.admin-detail-panel { display: grid; gap: var(--space-md); align-content: start; }
.seller-profile-card { padding: var(--space-md); background: rgb(255 255 255 / 72%); border: 1px solid rgb(255 255 255 / 84%); border-radius: var(--radius-medium); box-shadow: 0 10px 24px rgb(23 23 23 / 6%); }
.seller-profile-card h2 { margin: 0 0 var(--space-sm); font-size: clamp(26px, 2.2vw, 34px); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.admin-review-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.admin-review-actions .button { min-height: 54px; font-weight: 700; }
.private-listing-status-pill { width: fit-content; margin-top: var(--space-sm); }
.machine-detail-specific { max-width: 1040px; margin: clamp(48px, 6vw, 72px) auto 0; padding: var(--space-md); background: rgb(255 255 255 / 34%); border: 1px solid rgb(255 255 255 / 66%); border-radius: var(--radius-medium); }
.machine-detail-specific h2 { margin: 0; font-size: clamp(28px, 2.6vw, 38px); line-height: 1; font-weight: 700; letter-spacing: -.045em; text-align: left; }
.machine-inquiry-section { display: grid; gap: var(--space-md); background: rgb(255 255 255 / 64%); }
.machine-inquiry-section[hidden] { display: none; }
.machine-inquiry-heading { display: grid; gap: 8px; }
.machine-inquiry-heading p { margin: 0; color: var(--color-muted); font-weight: 600; }
.inquiry-form { background: transparent; border: 0; box-shadow: none; padding: 0; }
.machine-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: var(--space-md); }
.machine-facts div { min-height: 86px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px var(--space-sm); background: rgb(255 255 255 / 84%); border: 1px solid rgb(49 92 97 / 12%); border-radius: var(--radius-small); }
.machine-facts span { color: var(--color-muted); font-size: 14px; font-weight: 500; }
.machine-facts strong { font-size: 16px; line-height: 1.2; font-weight: 700; }
.machine-detail-action { display: flex; justify-content: center; margin-top: var(--space-xl); }
.detail-whatsapp { min-width: min(100%, 340px); min-height: 62px; padding-inline: 32px; font-size: 19px; font-weight: 700; }
.machine-detail-media { position: relative; margin: 0; overflow: hidden; background: var(--color-accent-soft); border-radius: var(--radius-large); box-shadow: 0 18px 38px rgb(23 23 23 / 12%); }
.machine-gallery-main { position: relative; }
.machine-gallery-main > img { display: block; width: 100%; aspect-ratio: 1.22; object-fit: cover; filter: saturate(.78) contrast(1.02); }
.machine-media-caption { position: absolute; right: var(--space-sm); bottom: var(--space-sm); left: var(--space-sm); padding: 14px var(--space-sm); color: var(--color-surface); background: rgb(23 23 23 / 76%); border-radius: var(--radius-small); font-weight: 600; }
.gallery-control { position: absolute; top: 50%; z-index: 1; display: grid; width: 44px; height: 44px; place-items: center; color: var(--color-text); background: rgb(255 255 255 / 90%); border: 0; border-radius: 50%; box-shadow: 0 6px 16px rgb(23 23 23 / 14%); font-size: 21px; transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast); transform: translateY(-50%); }
.gallery-control:hover { color: var(--color-surface); background: var(--color-accent); }
.gallery-control-previous { left: var(--space-sm); }
.gallery-control-next { right: var(--space-sm); }
.gallery-counter { position: absolute; top: var(--space-sm); right: var(--space-sm); padding: 7px 10px; color: var(--color-surface); background: rgb(23 23 23 / 70%); border-radius: var(--radius-small); font-size: 13px; font-weight: 700; }
.machine-gallery-thumbnails { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: rgb(255 255 255 / 74%); }
.gallery-thumbnail { flex: 0 0 72px; height: 54px; padding: 0; overflow: hidden; background: var(--color-surface); border: 2px solid transparent; border-radius: 4px; opacity: .62; transition: border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast); }
.gallery-thumbnail:hover, .gallery-thumbnail.is-active { border-color: var(--color-accent); opacity: 1; transform: translateY(-1px); }
.gallery-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.related-section { padding-bottom: clamp(100px, 11vw, 156px); }
.related-heading { display: grid; justify-items: center; gap: var(--space-md); margin: 0 auto var(--space-xl); text-align: center; }
.related-heading h2 { max-width: 920px; margin: 0; font-size: clamp(46px, 5.2vw, 78px); line-height: .9; font-weight: 800; letter-spacing: -.06em; }
.related-heading .text-action { min-height: auto; padding: 6px 0; color: var(--color-accent-hover); background: transparent; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; font-size: 19px; font-weight: 700; transition: color var(--transition-fast), transform var(--transition-fast); }
.related-heading .text-action:hover { color: var(--color-accent); transform: translateY(-2px); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.related-card { overflow: hidden; background: rgb(255 255 255 / 68%); border: 1px solid rgb(255 255 255 / 82%); border-radius: var(--radius-medium); box-shadow: 0 10px 26px rgb(23 23 23 / 6%); transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal); }
.related-card:hover { border-color: var(--color-accent); box-shadow: 0 20px 38px rgb(23 23 23 / 15%); transform: translateY(-7px); }
.related-card-image { display: block; overflow: hidden; background: var(--color-accent-soft); }
.related-card-image img { width: 100%; aspect-ratio: 1.38; object-fit: cover; filter: saturate(.7) contrast(1.02); transition: transform var(--transition-normal), filter var(--transition-normal); }
.related-card:hover .related-card-image img { filter: saturate(.92) contrast(1.04); transform: scale(1.06); }
.related-card-body { padding: var(--space-md); }
.related-card-body h3 { margin: var(--space-xs) 0 var(--space-md); font-size: clamp(23px, 2vw, 30px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.related-card-body h3 a:hover { color: var(--color-accent); }

[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--transition-normal), transform var(--transition-normal); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@keyframes impact-pop {
  0% { opacity: 0; transform: scale(.68) translateY(36px); }
  68% { transform: scale(1.08) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes title-arrival {
  from { opacity: 0; transform: translateY(36px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes card-arrival {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes arrow-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: var(--space-md); }
  .nav { gap: 4px; }
  .impact-layout, .catalogue-help-layout, .machine-detail-visual, .auth-panel, .seller-profile-layout, .publish-preview { grid-template-columns: 1fr; }
  .machine-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}

@media (max-width: 820px) {
  .dashboard-shell { padding-block: 34px 68px; }
  .dashboard-heading { display: grid; justify-items: center; max-width: none; text-align: center; }
  .dashboard-heading h1 { max-width: 11ch; margin-top: 8px; font-size: clamp(36px, 10vw, 58px); line-height: .95; letter-spacing: 0; }
  .dashboard-heading p:not(.metadata) { max-width: 320px; margin-top: 10px; font-size: 16px; line-height: 1.3; text-align: center; }
  .seller-profile-heading { gap: 2px; }
  .seller-profile-heading h1 { max-width: none; font-size: 38px; }
  .seller-profile-heading p:not(.metadata) { margin-top: 6px; }
  .page-back { margin-inline: auto; margin-bottom: 8px; font-size: 15px; }
  .my-listings-section { margin-top: var(--space-lg); padding-top: var(--space-md); }
  .my-listings-section .section-heading-row { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 16px; text-align: center; }
  .my-listings-section .section-heading-row > div { display: grid; width: 100%; justify-items: center; text-align: center; }
  .my-listings-section .section-heading-row h2 { width: 100%; max-width: 100%; margin-inline: auto; font-size: clamp(38px, 10vw, 52px); letter-spacing: 0; text-align: center; }
  .my-listings-section .section-heading-row .button { width: min(100%, 360px); justify-self: center; }
  .admin-filter-bar { justify-content: center; }
  .seller-profile-layout { margin-top: var(--space-md); }
  .seller-profile-group, .seller-profile-summary { gap: 14px; padding: 18px; border-radius: var(--radius-small); }
  .seller-profile-group h2, .seller-profile-summary h2 { font-size: 30px; letter-spacing: 0; }
  .seller-profile-form .publish-actions { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --container-padding: 20px; --space-3xl: 88px; --space-2xl: 72px; }
  .site-header { min-height: 58px; grid-template-columns: auto 1fr auto; gap: 8px; padding-inline: 14px; }
  .brand { gap: 7px; font-size: 18px; }
  .brand-logo { width: 106px; }
  .nav { display: flex; justify-self: center; gap: 0; font-size: 15px; white-space: nowrap; }
  .nav a { padding: 6px 4px; }
  .nav a[href="./maquinaria.html"] { font-size: 16px; }
  .nav a:not([aria-current="page"]) { display: none; }
  .header-action { min-height: 38px; padding-inline: 12px; font-size: 14px; white-space: nowrap; }
  .hero { min-height: 760px; padding-top: var(--space-2xl); }
  .hero-title { font-size: clamp(68px, 17vw, 100px); }
  .desktop-copy { display: none !important; }
  .mobile-copy, .featured-section .section-heading .section-title > .mobile-copy { display: inline !important; margin-left: 0; }
  .hero-search { grid-template-columns: 1fr; }
  .hero-search input { min-height: 46px; }
  .hero-search .button { min-height: 54px; font-size: 17px; }
  .section-heading, .footer-content { display: grid; }
  .section-heading { align-items: start; }
  .featured-grid, .compact-form { grid-template-columns: 1fr; }
  .machine-card { grid-template-columns: 1fr; margin-bottom: var(--space-sm); }
  .machine-image-link { border-radius: var(--radius-medium) var(--radius-medium) 0 0; }
  .machine-image-link img { height: 190px; min-height: 190px; }
  .machine-body { padding: 20px 20px 30px; border-radius: 0 0 var(--radius-medium) var(--radius-medium); }
  .machine-feature { margin-top: 10px; }
  .machine-meta, .machine-status, .machine-price { margin-top: 10px; }
  .catalogue-bar { align-items: flex-start; flex-direction: column; }
  .catalogue-hero { min-height: 390px; padding-top: 56px; }
  .catalogue-hero h1 { font-size: clamp(50px, 14vw, 72px); }
  .catalogue-hero p { margin-top: var(--space-lg); font-size: 21px; }
  .catalogue-search input { min-height: 60px; font-size: 17px; }
  .toolbar { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; flex-wrap: nowrap; border-radius: var(--radius-medium); }
  .filter { width: 100%; padding-inline: 10px; }
  .filter:last-child { grid-column: 1 / -1; }
  .machine-body .button { align-self: center; width: min(100%, 280px); min-height: 50px; margin-top: 22px; box-shadow: 0 12px 24px rgb(49 92 97 / 28%); }
  .catalogue-help h2 { font-size: clamp(48px, 14vw, 72px); }
  .catalogue-advice-action { width: 100%; }
  .compact-form { padding: var(--space-md); }
  .machine-detail { padding-top: 44px; }
  .machine-detail h1 { font-size: clamp(48px, 14vw, 72px); }
  .machine-detail-page { padding-bottom: 86px; }
  .machine-detail-action { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; display: flex; justify-content: center; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 88%); border-top: 1px solid rgb(49 92 97 / 18%); box-shadow: 0 -10px 26px rgb(23 23 23 / 10%); backdrop-filter: blur(14px); }
  .detail-whatsapp { width: min(100%, 460px); min-height: 52px; margin: 0; font-size: 17px; }
  .machine-facts, .related-grid { grid-template-columns: 1fr; }
  .related-heading { display: grid; align-items: start; }
  .auth-shell, .dashboard-shell, .publish-shell { padding-block: 34px 72px; }
  .auth-copy h1, .dashboard-heading h1, .publish-heading h1 { font-size: 42px; line-height: .92; text-align: center; }
  .dashboard-heading h1 { font-size: 36px; }
  .auth-copy p:not(.metadata), .dashboard-heading p, .publish-heading p { max-width: 330px; margin-inline: auto; font-size: 17px; text-align: center; }
  .dashboard-heading, .publish-heading, .section-heading-row { text-align: center; }
  .auth-card, .publish-form { padding: var(--space-md); }
  .dashboard-grid, .publish-form, .publish-section-grid, .profile-form, .admin-review-actions { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: var(--space-md); }
  .dashboard-card { min-height: 102px; gap: 8px; padding: 12px; text-align: center; }
  .dashboard-card::after { display: none; }
  .dashboard-card span { min-height: 24px; margin-inline: auto; padding-inline: 8px; font-size: 12px; }
  .dashboard-card .dashboard-card-icon { width: 34px; height: 34px; min-height: 34px; padding: 0; }
  .dashboard-card-icon svg { width: 19px; height: 19px; }
  .dashboard-card h2 { max-width: none; margin: auto 0 0; font-size: 20px; line-height: .98; }
  .dashboard-card p { display: none; }
  .dashboard-card-note { justify-self: center; min-height: 24px; margin: 4px auto 0; padding-inline: 8px; font-size: 11px; }
  .publish-stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; }
  .publish-step { min-height: 38px; flex-direction: column; gap: 2px; justify-content: center; padding: 5px 3px; font-size: 11px; }
  .publish-step span { width: 20px; height: 20px; font-size: 11px; }
  .seller-profile-summary { position: static; }
  .section-heading-row { display: grid; grid-template-columns: 1fr; align-items: start; justify-items: center; text-align: center; }
  .section-heading-row .button { width: 100%; }
  .my-listings-section { margin-top: var(--space-lg); padding-top: var(--space-md); }
  .my-listings-section .section-heading-row > div { display: grid; justify-items: center; }
  .my-listings-section .section-heading-row .button { width: min(100%, 280px); justify-self: center; }
  .my-listings-section h2, .my-listings-section .metadata, .my-listings-section .auth-status { text-align: center; }
  .section-heading-row h2 { font-size: 34px; }
  .admin-filter-bar { flex-wrap: wrap; justify-content: center; gap: 6px; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .admin-filter-bar .filter { flex: 0 1 auto; width: auto; min-height: 38px; padding-inline: 14px; font-size: 13px; }
  .listing-row { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; min-height: 0; padding: 10px; text-align: left; }
  .listing-thumb { width: 82px; aspect-ratio: 1; }
  .listing-row h3 { margin-top: 7px; font-size: 21px; }
  .listing-row p { margin-top: 5px; font-size: 14px; line-height: 1.25; }
  .inquiries-page-section { width: 100%; margin-top: var(--space-md); }
  .inquiries-list { gap: 14px; }
  .inquiry-row { grid-template-columns: 1fr; gap: 16px; padding: 18px; text-align: left; }
  .inquiry-row .listing-row-body { display: grid; gap: 12px; }
  .inquiry-row .listing-row-topline { justify-content: space-between; gap: 8px; }
  .inquiry-row .listing-status { min-height: 30px; padding-inline: 12px; font-size: 14px; }
  .inquiry-row h3 { margin: 0; font-size: 28px; line-height: 1.02; letter-spacing: 0; }
  .inquiry-label { margin: 0; font-size: 12px; line-height: 1.25; }
  .inquiry-contact-list { grid-template-columns: 1fr; gap: 8px; margin: 0; }
  .inquiry-contact-list div { padding: 12px 14px; }
  .inquiry-contact-list dt { font-size: 12px; }
  .inquiry-contact-list dd { font-size: 17px; line-height: 1.25; }
  .inquiry-message-block { max-width: none; margin-top: 0; }
  .inquiry-message { padding: 13px 14px; font-size: 16px; line-height: 1.35; }
  .admin-review-row { grid-template-columns: 1fr; }
  .admin-review-row .listing-thumb { width: 100%; min-height: 0; }
  .admin-review-details { grid-template-columns: 1fr; }
  .admin-detail-list { grid-template-columns: 1fr; }
  .listing-row-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; min-width: 0; }
  .listing-row-actions .button { width: 100%; min-height: 38px; padding-inline: 10px; font-size: 13px; }
  .inquiry-actions { grid-template-columns: 1fr; gap: 8px; }
  .inquiry-row .listing-row-actions .button { min-height: 44px; font-size: 14px; }
  .image-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.publish-page { min-height: 100dvh; overflow: hidden; }
  .publish-page .site-header { display: none; }
  .publish-page .content-width { padding-inline: 0; }
  .publish-shell { min-height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 0; }
  .publish-heading { padding: 18px 18px 8px; }
  .publish-heading h1 { margin-top: 6px; font-size: 32px; }
  .publish-heading p:not(.metadata) { margin-top: 8px; font-size: 15px; line-height: 1.25; }
  .publish-form { position: fixed; inset: 0; z-index: 30; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; align-content: stretch; gap: 6px; margin: 0; padding: 8px 14px calc(80px + env(safe-area-inset-bottom)); overflow: hidden; background: linear-gradient(180deg, #dfe4e2 0%, #eef1ef 58%, #fbfbfa 100%); border: 0; border-radius: 0; box-shadow: none; }
  .publish-exit { display: inline-flex; }
  .publish-form-section, .image-manager { align-self: center; min-height: 0; max-height: 100%; gap: 9px; align-content: start; padding: 14px 14px 20px; overflow-y: auto; text-align: center; }
  .publish-section-heading h2, .image-manager-heading h2 { margin-bottom: 5px; font-size: 23px; letter-spacing: 0; text-align: center; }
  .publish-section-heading p:not(.metadata), .image-manager-heading p { max-width: 290px; margin-inline: auto; text-align: center; }
  .publish-section-grid { grid-template-columns: 1fr; gap: 15px; align-content: start; }
  .publish-section-grid .publish-wide { grid-column: 1 / -1; }
  .publish-section-grid label { gap: 6px; font-size: 14px; line-height: 1.25; font-weight: 800; }
  .publish-section-grid label input, .publish-section-grid label select { min-height: 40px; padding-inline: 12px; font-size: 15px; }
  .publish-section-grid label textarea { min-height: 96px; padding: 12px; font-size: 15px; }
  .publish-section-grid label, .image-upload-drop { text-align: center; }
  .publish-section-grid input, .publish-section-grid select, .publish-section-grid textarea { text-align: left; }
  .field-hint { font-size: 11px; line-height: 1.2; }
  .image-upload-drop { min-height: 102px; padding: 14px; }
  .publish-preview { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; text-align: left; }
  .publish-preview-body h2 { font-size: 22px; }
  .publish-preview-body p { font-size: 13px; line-height: 1.25; }
  .publish-preview-description { -webkit-line-clamp: 2; }
  .publish-step-actions, .publish-actions { position: fixed; right: 14px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 14px; z-index: 40; display: grid; gap: 8px; padding: 8px; background: rgb(255 255 255 / 88%); border: 1px solid rgb(49 92 97 / 16%); border-radius: var(--radius-small); box-shadow: 0 -10px 26px rgb(23 23 23 / 12%); backdrop-filter: blur(14px); }
  .publish-step-actions { grid-template-columns: .8fr 1fr 1.2fr; }
  .publish-form.is-first-step .publish-step-actions { grid-template-columns: .85fr 1.35fr; }
  .publish-form.is-final-step .publish-step-actions { display: none; }
  .publish-step-actions .button, .publish-actions .button { width: 100%; min-height: 48px; font-size: 15px; font-weight: 800; }
  .publish-actions .button[href="./panel.html"] { display: inline-flex; }
  [data-publish-status], .publish-result { text-align: center; }
}
