/* =========================================================
   MECÁNICA ALIAGA — estilos
   Colores tomados del trabajo de campo:
   verde monte, naranja de máquina, amarillo de manguera.
   ========================================================= */
:root {
  --ink: #15211b;          /* texto principal */
  --forest: #12261c;       /* verde monte (fondos oscuros) */
  --forest-2: #1c3a2b;
  --orange: #e8621a;       /* naranja de máquina */
  --orange-dk: #c94f0f;
  --yellow: #f3c220;       /* amarillo de manguera */
  --paper: #f4f6f2;        /* fondo claro */
  --steel: #e2e7e0;        /* gris acero claro */
  --line: #cfd6cd;
  --muted: #56645b;
  --wa: #25d366;
  --wide: 116%;            /* letra ancha para títulos */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, 92%); margin: 0 auto; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

h1, h2, h3, .tile-label strong, .price, .steps strong, dt {
  font-stretch: var(--wide); font-weight: 800; letter-spacing: -.01em;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 2px solid transparent; border-radius: 6px;
  font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dk); }
.btn-yellow { background: var(--yellow); color: var(--forest); }
.btn-yellow:hover { background: #ffd43f; }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-2); }
.btn-ghost { border-color: #ffffffb3; color: #fff; }
.btn-ghost:hover { background: #ffffff1f; border-color: #fff; }
.btn-wa { background: var(--wa); color: #06301a; }
.btn-wa:hover { background: #3ee07b; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; }

/* ===== MENÚ ===== */
header {
  position: fixed; z-index: 20; inset: 0 0 auto; padding: 14px 0;
  transition: background-color .25s, padding .25s, box-shadow .25s;
}
header.scrolled { padding: 6px 0; background: #fff; box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-logo { height: 70px; width: auto; transition: height .25s; }
header.scrolled .brand-logo { height: 52px; }
.navlinks { display: flex; gap: 6px; }
.navlinks a {
  padding: 8px 12px; border-radius: 6px; color: #fff; font-size: 15px; font-weight: 600;
  transition: background-color .2s, color .2s;
}
.navlinks a:hover { background: #ffffff22; }
header.scrolled .navlinks a { color: var(--ink); }
header.scrolled .navlinks a:hover { background: var(--steel); }
.navlinks a.active { color: var(--yellow); }
header.scrolled .navlinks a.active { color: var(--orange); }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: 14px; }
.menu {
  display: none; width: 46px; height: 46px; padding: 12px 11px; border: 0; border-radius: 6px;
  background: #0006; cursor: pointer;
}
.menu span { display: block; height: 2px; margin: 4px 0; background: #fff; }
header.scrolled .menu { background: var(--forest); }

/* ===== PORTADA (foto de fondo original) ===== */
.hero {
  position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 22, 15, .95) 0%, rgba(10, 22, 15, .78) 38%, rgba(10, 22, 15, .2) 78%),
    linear-gradient(0deg, rgba(10, 22, 15, .85) 0%, transparent 35%),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Chainsaw.JPG?width=2000") center 40% / cover no-repeat;
  background-color: var(--forest);
}
.hero-grid { flex: 1; display: flex; align-items: center; padding-top: 110px; }
.hero-content { max-width: 640px; }
.hero h1 {
  margin: 0 0 22px; font-size: clamp(52px, 8.4vw, 112px); font-stretch: 125%; font-weight: 900;
  line-height: .9; letter-spacing: -.02em; text-wrap: balance;
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
.hero p {
  max-width: 34em; margin: 0 0 32px; color: #e4ebe5; font-size: 18px; line-height: 1.65;
  animation: rise .9s .12s cubic-bezier(.2, .7, .2, 1) both;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; animation: rise .9s .22s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.hero-strip { border-top: 1px solid #ffffff2e; background: #0a160fb3; backdrop-filter: blur(6px); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-grid div { padding: 20px 24px 22px 0; }
.strip-grid div + div { padding-left: 24px; border-left: 1px solid #ffffff2e; }
.strip-grid strong { display: block; color: var(--yellow); font-size: 18px; font-stretch: var(--wide); }
.strip-grid span { color: #cfd9d1; font-size: 14px; }

/* ===== MARCAS ===== */
.brands { border-bottom: 1px solid var(--line); background: var(--paper); }
.brands-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 26px; padding: 22px 0;
  color: #7d8a80; font-size: 20px; font-stretch: 125%; font-weight: 800;
}

/* ===== SECCIONES ===== */
.sec { padding: 96px 0; }
.sec-tight { padding: 72px 0; }
.sec-paper { background: var(--paper); }
.sec-steel { background: var(--steel); }
.head-row {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 20px 60px; margin-bottom: 40px;
}
.head-row h2, .services h2, .care-text h2 {
  margin: 0; font-size: clamp(34px, 4.6vw, 58px); line-height: .98; text-wrap: balance;
}
.head-row p { max-width: 30em; margin: 0; color: var(--muted); font-size: 17px; }
.head-light p { color: #c3d1c7; }

/* ===== CATEGORÍAS (mosaico) ===== */
.bento {
  display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 14px;
}
.tile {
  position: relative; display: block; overflow: hidden; padding: 0; border: 0; border-radius: 6px;
  background: var(--forest); text-align: left; cursor: pointer;
}
.tile-big { grid-row: span 2; }
.bento .tile:nth-child(4) { grid-column: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: scale(1.05); }
.tile-label {
  position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column;
  padding: 14px 20px 16px; border-top-right-radius: 6px; background: #fff; color: var(--ink);
  transition: background-color .25s, color .25s;
}
.tile-label strong { font-size: 24px; line-height: 1.1; }
.tile-label small { color: var(--muted); font-size: 14px; transition: color .25s; }
.tile:hover .tile-label { background: var(--orange); color: #fff; }
.tile:hover .tile-label small { color: #ffe9dc; }

/* ===== FUMIGACIÓN ===== */
.sec-green { position: relative; overflow: hidden; background: var(--forest); color: #fff; }
.hose { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hose path {
  fill: none; stroke: var(--yellow); stroke-width: 16; stroke-linecap: round; opacity: .9;
  stroke-dasharray: 3200; stroke-dashoffset: 3200; transition: stroke-dashoffset 2.6s cubic-bezier(.4, .1, .2, 1);
}
.sec-green.drawn .hose path { stroke-dashoffset: 0; }
.sec-green .wrap { position: relative; }

.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.clip { margin: 0; }
.clip video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border: 6px solid #0b1912; border-radius: 22px;
  background: #0b1912; box-shadow: 0 30px 60px #0008;
}
.clip:nth-child(3n+2) { transform: translateY(40px); }
.videos .clip:nth-child(n+4) { margin-top: 30px; }
.clip figcaption { padding: 14px 6px 0; }
.clip figcaption strong { display: block; font-size: 18px; font-stretch: var(--wide); }
.clip figcaption span { color: #b9c8bd; font-size: 14px; }

.build {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; margin-top: 110px; padding: 44px;
  border-radius: 8px; background: var(--paper); color: var(--ink);
}
.build-intro h3 { margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1; }
.build-intro p { margin: 0 0 26px; color: var(--muted); font-size: 17px; }
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li {
  position: relative; display: grid; grid-template-columns: 52px 1fr; padding: 16px 0;
  border-top: 2px solid var(--ink); counter-increment: s;
}
.steps li:last-child { border-bottom: 2px solid var(--ink); }
.steps li::before {
  content: counter(s); grid-row: span 2; color: var(--orange); font-size: 34px; font-stretch: 125%;
  font-weight: 900; line-height: 1;
}
.steps strong { font-size: 18px; }
.steps span { color: var(--muted); font-size: 15px; }
.build-photo { margin: 0 0 26px; }
.build-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.build-photo figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }

/* ===== NUESTRO TALLER EN ACCIÓN ===== */
.taller { background: var(--paper); }
.taller-banner { position: relative; margin: 0 0 56px; overflow: hidden; border-radius: 8px; background: var(--forest); }
.taller-banner img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 62%; }
.taller-banner figcaption {
  position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; max-width: 90%;
  padding: 14px 22px 16px; border-top-right-radius: 8px; background: var(--orange); color: #fff;
}
.taller-banner figcaption strong { font-size: 22px; font-stretch: var(--wide); line-height: 1.1; }
.taller-banner figcaption span { color: #ffe9dc; font-size: 14px; }
.videos-light .clip video { border-color: #fff; background: var(--steel); box-shadow: 0 24px 50px #15211b30; }
.videos-light .clip figcaption span { color: var(--muted); }
.taller-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap;
  margin-top: 80px; padding: 28px 32px; border-left: 6px solid var(--orange); border-radius: 6px; background: #fff;
}
.taller-cta p { max-width: 34em; margin: 0; font-size: 18px; font-weight: 600; }

/* ===== BUSCADOR + CATÁLOGO ===== */
.searchbar {
  display: grid; grid-template-columns: 1fr 240px auto; align-items: end; gap: 14px;
  padding: 18px; border-radius: 8px; background: var(--steel);
}
.field label, .field .label { display: block; margin: 0 0 6px 2px; color: var(--muted); font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px;
  outline: none; background: #fff; color: var(--ink); font: inherit; transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.chip {
  min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { border-color: var(--forest); background: var(--forest); color: #fff; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 28px 20px; }
.product { display: flex; flex-direction: column; }
.product-img {
  position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 6px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-img img.contain { object-fit: contain; padding: 14px; }
.product:hover .product-img img { transform: scale(1.04); }
.tag {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 4px; background: var(--forest);
  color: #fff; font-size: 12px; font-weight: 700;
}
.product-info { display: flex; flex: 1; flex-direction: column; padding-top: 14px; }
.product-info h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.15; }
.product-info p { flex: 1; margin: 0; color: var(--muted); font-size: 14px; }
.price { margin: 12px 0 10px; color: var(--orange); font-size: 30px; line-height: 1; }
.price small { color: var(--muted); font-size: 12px; font-stretch: 100%; font-weight: 500; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stock { display: inline-flex; align-items: center; gap: 6px; color: #237a45; font-size: 13px; font-weight: 600; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.pedido { color: #a5620b; }
.buy {
  padding: 9px 14px; border-radius: 6px; background: var(--wa); color: #06301a; font-size: 13px; font-weight: 700;
  transition: background-color .2s;
}
.buy:hover { background: #3ee07b; }
.no-results { margin-top: 24px; color: var(--muted); }
.link-btn { padding: 0; border: 0; background: none; color: var(--orange); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ===== CUIDADO ===== */
.care { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 64px; }
.care-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.care-text .lead { margin: 16px 0 30px; color: var(--muted); font-size: 18px; max-width: 32em; }
.care-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 32px; }
.care-cols h3 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 20px; }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 7px 0 7px 30px; font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; border-radius: 4px;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ===== SERVICIOS ===== */
.services { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0; }
.service-list div { padding: 18px 0; border-top: 2px solid var(--ink); }
dt { font-size: 20px; }
dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ===== COMENTARIOS ===== */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 26px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.review .stars { color: var(--orange); font-size: 18px; letter-spacing: 2px; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.6; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 50%; background: var(--forest); color: var(--yellow); font-weight: 800; }
.review figcaption strong { display: block; font-size: 15px; }
.review figcaption span { color: var(--muted); font-size: 13px; }
.reviews-empty { grid-column: 1 / -1; margin: 0; padding: 26px; border: 2px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; }

.review-form {
  display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; margin-top: 30px; padding: 36px;
  border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.rf-intro h3 { margin: 0 0 8px; font-size: 28px; line-height: 1.05; }
.rf-intro p { margin: 0; color: var(--muted); }
.rf-fields { display: grid; grid-template-columns: 1fr auto; gap: 16px 20px; align-items: start; }
.rf-fields .full { grid-column: 1 / -1; }
.rf-fields .btn { justify-self: start; }
.stars-input { display: flex; gap: 2px; }
.stars-input button { padding: 2px 3px; border: 0; background: none; color: #c9d0c8; font-size: 32px; line-height: 1; cursor: pointer; transition: color .15s; }
.stars-input button.on { color: var(--orange); }

/* ===== LLAMADO FINAL ===== */
.cta { padding: 64px 0; background: var(--orange); color: #fff; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { max-width: 16em; margin: 0; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.02; text-wrap: balance; }

/* ===== PIE ===== */
footer { padding: 60px 0 34px; background: var(--forest); color: #dfe7e1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
footer .brand-logo { height: 92px; }
footer h4 { margin: 6px 0 14px; color: var(--yellow); font-size: 15px; font-stretch: var(--wide); }
.footer-grid a:not(.brand) { display: block; margin-bottom: 8px; font-size: 15px; }
.footer-grid a:not(.brand):hover { color: var(--yellow); }
.foot-note { display: block; margin: 12px 0 0; color: #9fb2a5; font-size: 14px; }
.copyright { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid #ffffff1f; color: #8aa093; font-size: 12px; line-height: 1.7; }

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed; z-index: 30; right: 22px; bottom: 22px; display: grid; width: 60px; height: 60px; place-items: center;
  border-radius: 50%; background: var(--wa); box-shadow: 0 10px 26px #0005; transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hose path { stroke-dashoffset: 0; }
}

/* ===== TABLET ===== */
@media (max-width: 1000px) {
  .navlinks a { padding: 8px 8px; font-size: 14px; }
  .nav-cta { display: none; }
  .head-row, .build, .care, .services, .review-form { grid-template-columns: 1fr; }
  .head-row { gap: 12px; }
  .build { gap: 30px; padding: 32px; }
  .care { gap: 36px; }
  .care-photo img { aspect-ratio: 16 / 11; object-position: center 30%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
}

/* ===== CELULAR ===== */
@media (max-width: 760px) {
  .menu { display: block; }
  .hose { display: none; }
  .brand-logo { height: 56px; }
  header.scrolled .brand-logo { height: 44px; }
  .navlinks {
    position: absolute; top: calc(100% + 6px); right: 4%; left: 4%; display: none; flex-direction: column; gap: 2px;
    padding: 10px; border-radius: 8px; background: #fff; box-shadow: 0 20px 50px #0004;
  }
  .navlinks.open { display: flex; }
  .navlinks a, header.scrolled .navlinks a { padding: 13px 12px; color: var(--ink); font-size: 16px; }
  .hero-grid { padding-top: 100px; padding-bottom: 40px; }
  .hero p { font-size: 16px; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-grid div, .strip-grid div + div { padding: 12px 0; border-left: 0; }
  .strip-grid div + div { border-top: 1px solid #ffffff22; }
  .brands-row { justify-content: center; font-size: 16px; gap: 6px 18px; }
  .sec { padding: 68px 0; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 190px 190px; gap: 10px; }
  .tile-big { grid-row: auto; grid-column: span 2; }
  .bento .tile:nth-child(4) { grid-column: span 2; }
  .tile-label { padding: 10px 14px 12px; }
  .tile-label strong { font-size: 19px; }
  .tile-label small { display: none; }
  .tile-big .tile-label small, .bento .tile:nth-child(4) .tile-label small { display: block; }
  .videos {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -4%; padding: 0 4% 10px; gap: 14px;
  }
  .clip { scroll-snap-align: center; }
  .clip:nth-child(3n+2) { transform: none; }
  .videos .clip:nth-child(n+4) { margin-top: 0; }
  .taller-banner { margin-bottom: 32px; }
  .taller-banner img { aspect-ratio: 4 / 3; }
  .taller-banner figcaption { position: static; max-width: none; border-radius: 0; padding: 12px 16px 14px; }
  .taller-banner figcaption strong { font-size: 18px; }
  .taller-cta { margin-top: 40px; padding: 22px 20px; }
  .taller-cta p { font-size: 16px; }
  .taller-cta .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .build { margin-top: 50px; padding: 24px 20px; }
  .searchbar { grid-template-columns: 1fr; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -4%; padding-inline: 4%; }
  .chip { flex: none; }
  .products { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .product-info h3 { font-size: 16px; }
  .product-info p { display: none; }
  .price { font-size: 22px; }
  .price small { display: block; margin-top: 2px; }
  .product-bottom { flex-direction: column; align-items: flex-start; }
  .buy { align-self: stretch; text-align: center; }
  .care-cols, .service-list { grid-template-columns: 1fr; }
  .review-form { padding: 22px; gap: 20px; }
  .rf-fields { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

/* =========================================================
   VIDEOS: subtítulos y botón de sonido
   ========================================================= */
.sound-hint {
  display: inline-flex; align-items: center; gap: 8px; margin: -18px 0 28px; padding: 8px 14px;
  border-radius: 999px; background: #ffffff14; color: #fff; font-size: 14px; font-weight: 600;
}
.sound-hint-dark { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.clip-media { position: relative; }
.clip-voz {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: none;
  padding: 7px 14px; border: 0; border-radius: 999px; background: #000000b3; color: #fff;
  font: 700 13px/1 Archivo, Arial, sans-serif; white-space: nowrap; cursor: pointer;
}
.clip-voz:hover { background: var(--orange); }
.is-speaking .clip-voz { display: block; }
.voz-aviso {
  position: fixed; left: 50%; bottom: 24px; z-index: 999; transform: translate(-50%, 20px); max-width: 90vw;
  padding: 10px 18px; border-radius: 12px; background: #111; color: #fff; font: 700 14px/1.3 Archivo, Arial, sans-serif;
  text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.voz-aviso.show { opacity: 1; transform: translate(-50%, 0); }
/* Subtítulos estilo TikTok: letras gruesas, borde negro, palabra activa en amarillo */
.clip-sub {
  position: absolute; left: 8px; right: 8px; bottom: 26%; margin: 0; padding: 0;
  color: #fff; font-family: Archivo, "Arial Black", Impact, sans-serif; font-stretch: 112%;
  font-size: 27px; font-weight: 900; line-height: 1.12; letter-spacing: .2px; text-transform: uppercase;
  text-align: center; text-wrap: balance; pointer-events: none;
  -webkit-text-stroke: 6px #000; paint-order: stroke fill;
  text-shadow: 0 4px 0 #000, 0 6px 14px #000000aa;
  opacity: 0; transition: opacity .15s;
}
.clip-sub.show { opacity: 1; }
.clip-sub span { display: inline-block; margin: 0 .16em; transition: color .08s, transform .12s cubic-bezier(.3,1.8,.5,1); }
.clip-sub span.on { color: #ffe234; transform: scale(1.14) rotate(-2deg); }
.clip-sub.pop { animation: subPop .22s cubic-bezier(.3,1.6,.5,1); }
@keyframes subPop { 0% { transform: scale(.6) translateY(10px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .clip-sub.pop { animation: none; } .clip-sub span.on { transform: none; } }
.clip-sound {
  position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px 7px 9px; border: 0; border-radius: 999px; background: #000000a6; color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s;
}
.clip-sound:hover { background: var(--orange); }
.clip-sound .ico { width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3z'/%3E%3Cpath d='M16 9l6 6M22 9l-6 6' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3z'/%3E%3Cpath d='M16 9l6 6M22 9l-6 6' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.is-speaking .clip-sound { background: var(--orange); }
.is-speaking .clip-sound .ico {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M19 5.5a9 9 0 0 1 0 13' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M19 5.5a9 9 0 0 1 0 13' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.is-speaking .clip-sound .txt { font-size: 0; }
.is-speaking .clip-sound .txt::after { content: "Escuchando · tocar para callar"; font-size: 13px; }
.is-speaking video { border-color: var(--orange) !important; }

/* =========================================================
   MÁQUINAS: tarjeta tocable + ventana de características
   ========================================================= */
.product { cursor: pointer; }
.specs-btn {
  align-self: flex-start; margin: 10px 0 0; padding: 0; border: 0; background: none;
  color: var(--orange-dk); font-size: 14px; font-weight: 700; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.specs-btn::after { content: " →"; }
body.no-scroll { overflow: hidden; }
.ficha {
  width: min(880px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0;
  border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 40px 90px #0008; overflow: auto;
}
.ficha::backdrop { background: #0b1912cc; }
.ficha[open] { animation: fichaIn .25s ease-out; }
@keyframes fichaIn { from { opacity: 0; transform: translateY(16px); } }
.ficha-close {
  position: sticky; top: 10px; z-index: 2; display: block; width: 42px; height: 42px; margin: 10px 10px -52px auto;
  border: 0; border-radius: 50%; background: var(--forest); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.ficha-close:hover { background: var(--orange); }
.ficha-body { display: grid; grid-template-columns: 1fr 1.25fr; }
.ficha-img { position: relative; min-height: 360px; background: var(--paper); }
.ficha-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ficha-img img.contain { object-fit: contain; padding: 22px; }
.ficha-info { padding: 28px 64px 26px 28px; }
.ficha-tag { position: static; display: inline-block; margin-bottom: 10px; }
.ficha-info h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.1; }
.ficha-ideal { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.ficha-ideal strong { color: var(--ink); }
.ficha-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ficha-table th, .ficha-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ficha-table th { width: 44%; color: var(--muted); font-weight: 600; }
.ficha-table td { font-weight: 600; }
.ficha-nota { margin: 12px 0 0; padding: 8px 10px; border-radius: 6px; background: #fff4e5; color: #8a4b06; font-size: 12.5px; }
.ficha-nota.ok { background: #e7f5ec; color: #1d6b3b; }
.ficha-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.ficha-bottom .price { margin: 0; }

@media (max-width: 760px) {
  .clip-sub { font-size: 23px; -webkit-text-stroke: 5px #000; }
  .clip-sound { top: 12px; right: 12px; }
  .sound-hint { margin-top: -8px; font-size: 13px; }
  .ficha-body { grid-template-columns: 1fr; }
  .ficha-img { min-height: 0; }
  .ficha-img img { position: static; height: 260px; }
  .ficha-info { padding: 20px 18px 22px; }
  .ficha-tag { margin-right: 50px; }
  .ficha-info h3 { font-size: 22px; }
  .product-info p { display: none; }
  .specs-btn { font-size: 13px; }
}
