/* =====================================================================
   CHAUCHA · Estilos
   EDITAR: los colores, tipografías y espaciados están en :root
   ===================================================================== */
:root {
  /* Colores */
  --color-primary: #11714f;        /* verde chaucha (botones, enlaces) */
  --color-primary-dark: #0b5539;
  --color-primary-soft: #e3f1e8;
  --color-accent: #ffb703;         /* mango (botón comprar, destacados) */
  --color-accent-dark: #e89f00;
  --color-on-accent: #2a1d0a;
  --color-bg: #fffaf2;             /* crema cálido */
  --color-surface: #ffffff;
  --color-tint: #eef6ef;           /* fondo de secciones alternas */
  --color-text: #22201c;
  --color-muted: #5c564d;
  --color-border: #e6dfd3;
  --color-error: #b3261e;

  /* Tipografía */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Bricolage Grotesque", var(--font-body);

  /* Espaciado y forma */
  --space-section: clamp(4rem, 9vw, 7rem);
  --radius: 16px;
  --radius-small: 10px;
  --shadow: 0 1px 2px rgba(34, 32, 28, .06), 0 8px 24px rgba(34, 32, 28, .07);
  --container: 1120px;
  --header-h: 68px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-dark); }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--color-primary); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-small);
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.narrow { max-width: 780px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--font-body);
  padding: .85rem 1.4rem; min-height: 44px;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-accent { background: var(--color-accent); color: var(--color-on-accent); box-shadow: 0 6px 18px rgba(232, 159, 0, .28); }
.btn-accent:hover { background: var(--color-accent-dark); color: var(--color-on-accent); }
.btn-ghost { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.btn-ghost:hover { background: var(--color-primary-soft); }
.btn-large { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-small { padding: .55rem 1rem; min-height: 40px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 242, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 800 1.45rem var(--font-head); color: var(--color-text); text-decoration: none;
}
.logo:hover { color: var(--color-text); }
.logo-img { height: 32px; width: auto; max-width: 160px; object-fit: contain; }
.logo-footer .logo-img { height: 28px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px;
  position: relative; transition: transform .25s, background-color .25s;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) { color: var(--color-text); text-decoration: none; font-weight: 500; }
.main-nav a:not(.btn):hover { color: var(--color-primary); }

/* Menú móvil */
@media (max-width: 879px) {
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border);
    padding: .5rem 16px 1.25rem; display: none;
  }
  .main-nav.open { display: block; }
  .main-nav li a:not(.btn) { display: block; padding: .8rem 0; border-bottom: 1px solid var(--color-border); }
  .main-nav li .btn { margin-top: 1rem; width: 100%; }
}
@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .main-nav ul { display: flex; align-items: center; gap: 1.6rem; }
}
@media (min-width: 880px) and (max-width: 1079px) {
  .main-nav ul { gap: 1rem; }
  .main-nav a:not(.btn) { font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 var(--space-section);
  background:
    radial-gradient(60% 60% at 90% 10%, rgba(255, 183, 3, .18), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(17, 113, 79, .12), transparent 70%);
}
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } }
.eyebrow {
  font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: .8rem;
}
.highlight {
  background: linear-gradient(transparent 62%, rgba(255, 183, 3, .55) 62%);
  padding: 0 .1em;
}
.lead { font-size: clamp(1.1rem, 2.2vw, 1.25rem); color: var(--color-muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.5rem; }
.hero-actions .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero-actions .btn { flex: 0 0 auto; } }
.hero-trust { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; padding: 0; margin: 0; color: var(--color-muted); font-size: .95rem; }
.hero-trust li::before { content: "✓ "; color: var(--color-primary); font-weight: 700; }
.hero-media img {
  border-radius: var(--radius); box-shadow: 0 20px 50px rgba(17, 113, 79, .18);
  border: 1px solid var(--color-border); background: var(--color-surface);
}

/* ---------- Secciones ---------- */
.section { padding: var(--space-section) 0; }
.section-tint { background: var(--color-tint); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.section-head p:last-child { color: var(--color-muted); }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
}
.cards-3 { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.audience-icon {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.7rem;
  background: var(--color-primary-soft); border-radius: 14px; margin-bottom: 1rem;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.8rem; margin-bottom: .65rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--color-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2311714f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

/* ---------- Funcionalidades ---------- */
.features { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--color-surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--color-border); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(34, 32, 28, .1); }
.feature img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-bottom: 1px solid var(--color-border); }
.feature h3 { margin: 1.25rem 1.4rem .4rem; }
.feature p { margin: 0 1.4rem 1.5rem; color: var(--color-muted); }

/* ---------- Por rubro (pestañas con fotos de la app) ---------- */
.rubros {
  background:
    radial-gradient(45rem 22rem at 100% 0%, rgba(255, 183, 3, .13), transparent 70%),
    radial-gradient(40rem 22rem at 0% 100%, rgba(17, 113, 79, .09), transparent 70%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.rb-tabs {
  display: flex; gap: .5rem; overflow-x: auto; margin: 0 -16px 2rem; padding: .25rem 16px .5rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rb-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .rb-tabs { justify-content: center; flex-wrap: wrap; margin: 0 0 2.5rem; padding: .25rem 0; } }
.rb-tab {
  flex: none; display: inline-flex; align-items: center; gap: .45rem;
  font: inherit; font-weight: 600; font-size: 1rem; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px;
  padding: .65rem 1.15rem; cursor: pointer; min-height: 44px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease-out), box-shadow .25s ease;
}
.rb-tab:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.rb-tab[aria-selected="true"] {
  background: var(--color-primary); border-color: var(--color-primary); color: #fff;
  box-shadow: 0 8px 20px rgba(17, 113, 79, .25);
}
.rb-tab:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.rb-panel + .rb-panel { margin-top: 3rem; }           /* sin JS: uno debajo del otro */
.js .rb-panel + .rb-panel { margin-top: 0; }
.js .rb-panel[hidden] { display: none; }
.js .rubros:not(.rb-ready) .rb-panel ~ .rb-panel { display: none; }  /* evita el parpadeo al cargar */
.js .rb-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rb-panel:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 6px; border-radius: var(--radius); }
.rb-lead { text-align: center; color: var(--color-muted); max-width: 40rem; margin: 0 auto 1.75rem; font-size: 1.05rem; }

.rb-gallery {
  list-style: none; margin: 0 -16px; padding: .5rem 16px 1rem; display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.rb-gallery li { flex: 0 0 86%; scroll-snap-align: center; }
@media (min-width: 640px) { .rb-gallery li { flex-basis: 62%; } }
@media (min-width: 900px) {
  .rb-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.75rem; overflow: visible; margin: 0; padding: 0; }
}
.rb-zoom {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(34, 32, 28, .06), 0 14px 34px rgba(34, 32, 28, .12);
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.rb-zoom img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--color-border); border-radius: 14px; transition: transform .6s var(--ease-out); }
.rb-zoom:hover { transform: translateY(-5px); box-shadow: 0 4px 8px rgba(34, 32, 28, .06), 0 24px 48px rgba(17, 113, 79, .18); }
.rb-zoom:hover img { transform: scale(1.03); }
.rb-zoom:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.rb-gallery p { margin: .9rem .2rem 0; color: var(--color-muted); font-size: .97rem; line-height: 1.5; }
.rb-gallery strong { display: block; color: var(--color-text); font-size: 1.05rem; }

/* Cambio de pestaña: el panel entra suave y las fotos una tras otra */
@keyframes rbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rb-panel.rb-in .rb-lead { animation: rbIn .45s var(--ease-out) both; }
.rb-panel.rb-in .rb-gallery li { animation: rbIn .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }

/* Foto en grande */
.rb-dialog {
  border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%;
  overflow: visible;
}
.rb-dialog::backdrop { background: rgba(12, 20, 16, .78); backdrop-filter: blur(3px); }
.rb-dialog[open] { animation: rbZoom .3s var(--ease-out); }
@keyframes rbZoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.rb-dialog img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: 12px; background: #fff; }
.rb-dialog-cap { color: #fff; text-align: center; margin: .9rem 0 0; font-size: 1rem; }
.rb-dialog-close {
  position: absolute; top: -14px; right: -6px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--color-text); font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
@media (max-width: 639px) { .rb-dialog-close { top: -52px; right: 0; } }

/* ---------- Tutoriales ---------- */
.tuto-tools { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 800px) { .tuto-tools { grid-template-columns: 320px 1fr; align-items: end; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: 500 .95rem var(--font-body); padding: .5rem 1rem; min-height: 40px;
  border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--color-primary); }
.chip[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.tuto-count { color: var(--color-muted); font-size: .95rem; }

.tuto-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .tuto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tuto-grid { grid-template-columns: repeat(3, 1fr); } }
.tuto {
  display: flex; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  animation: fadeUp .35s ease both;
}
.tuto-media { position: relative; aspect-ratio: 16 / 9; background: var(--color-primary-dark); }
.tuto-media iframe, .tuto-media img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.tuto-play {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: transparent;
}
.tuto-play::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%232a1d0a'/%3E%3C/svg%3E") 55% 50%/45% no-repeat;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3); transition: transform .2s;
}
.tuto-play:hover::after { transform: translate(-50%, -50%) scale(1.08); }
.tuto-soon, .tuto-guide-cover {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem;
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}
.tuto-guide-cover { background: linear-gradient(135deg, #f7d58a, var(--color-accent)); color: var(--color-on-accent); font-size: 2.6rem; }
.tuto-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.tuto-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font-size: .85rem; color: var(--color-muted); margin-bottom: .5rem; }
.tag { background: var(--color-primary-soft); color: var(--color-primary-dark); font-weight: 600; padding: .1rem .6rem; border-radius: 999px; }
.tuto h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.tuto p { color: var(--color-muted); font-size: .98rem; }
.tuto .btn { margin-top: auto; align-self: flex-start; }
.tuto-empty { text-align: center; color: var(--color-muted); padding: 2rem 0; grid-column: 1 / -1; }

/* Ventana de guía */
.guide-dialog {
  width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--radius); background: var(--color-surface); color: var(--color-text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.guide-dialog::backdrop { background: rgba(34, 32, 28, .55); }
.guide-dialog[open] { animation: fadeUp .25s ease; }
.guide-dialog-inner { padding: 2rem 1.25rem 1.5rem; position: relative; }
@media (min-width: 640px) { .guide-dialog-inner { padding: 2.5rem 2.25rem 2rem; } }
.guide-close {
  position: absolute; top: .75rem; right: .75rem; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--color-tint); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--color-text);
}
.guide-close:hover { background: var(--color-primary-soft); }
.guide-steps { padding-left: 1.4rem; margin: 1.5rem 0 0; }
.guide-steps li { margin-bottom: 1.75rem; padding-left: .3rem; }
.guide-steps li::marker { font-weight: 800; color: var(--color-primary); }
.guide-steps img { margin-top: .75rem; border-radius: var(--radius-small); border: 1px solid var(--color-border); }

/* ---------- ChauchaTransporte ---------- */
.transporte {
  --tr-bg: #0c1a2e;
  --tr-surface: #13284a;
  --tr-blue: #4fa8ff;
  --tr-text: #e8f0fb;
  --tr-muted: #b3c3da;
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(30, 136, 229, .28), transparent 70%),
    var(--tr-bg);
  color: var(--tr-text);
  overflow: hidden;
}
.transporte h2, .transporte h3 { color: #fff; }
.tr-head { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .tr-head { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.tr-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.tr-brand img { width: 72px; height: 72px; border-radius: 18px; flex: none; }
@media (min-width: 640px) { .tr-brand img { width: 88px; height: 88px; } }
.tr-brand h2 { margin: 0; }
.tr-badge {
  display: inline-block; margin: 0 0 .4rem; padding: .2rem .75rem; border-radius: 999px;
  background: var(--color-accent); color: var(--color-on-accent); font-weight: 700; font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase;
}
.tr-lead { font-size: clamp(1.08rem, 2vw, 1.2rem); color: var(--tr-muted); max-width: 38rem; }
.tr-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .85rem; }
@media (min-width: 640px) { .tr-list { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; } }
.tr-list li { position: relative; padding-left: 1.7rem; color: var(--tr-muted); font-size: .98rem; line-height: 1.55; }
.tr-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: .7rem; height: .7rem;
  border-radius: 50%; background: var(--tr-blue); box-shadow: 0 0 0 4px rgba(79, 168, 255, .2);
}
.tr-list strong { display: block; color: #fff; font-weight: 600; }
.btn-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.transporte :focus-visible { outline-color: var(--color-accent); }

/* Teléfonos de la portada */
.tr-phones { position: relative; height: clamp(420px, 70vw, 600px); max-width: 460px; width: 100%; margin: 0 auto; }
.tr-phone {
  position: absolute; width: 58%; border-radius: 28px;
  border: 7px solid #04090f; box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.tr-phone-back { right: 0; top: 0; transform: rotate(5deg); }
.tr-phone-front { left: 0; bottom: 0; transform: rotate(-4deg); }

/* Galería de capturas */
.tr-gal-title { margin: clamp(3.5rem, 7vw, 5rem) 0 1.5rem; font-size: 1.5rem; }
.tr-gallery {
  list-style: none; margin: 0 -16px; padding: 0 16px 1rem; display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.tr-gallery li { flex: 0 0 68%; scroll-snap-align: start; }
@media (min-width: 640px) { .tr-gallery { margin: 0; padding: 0 0 1rem; } .tr-gallery li { flex-basis: 40%; } }
@media (min-width: 900px) {
  .tr-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; overflow: visible; padding: 0; }
}
.tr-gallery img {
  width: 100%; aspect-ratio: 10 / 15; object-fit: cover; object-position: top;
  border-radius: 20px; border: 5px solid #04090f; background: #111318;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
}
.tr-gallery p { margin: .9rem .2rem 0; font-size: .95rem; color: var(--tr-muted); line-height: 1.5; }
.tr-gallery strong { display: block; color: #fff; font-size: 1.05rem; }
.tr-pc { margin: clamp(3rem, 6vw, 4.5rem) auto 0; max-width: 980px; }
.tr-pc img { border-radius: 14px; border: 6px solid #04090f; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.tr-pc figcaption { text-align: center; margin-top: 1rem; color: var(--tr-muted); font-size: .95rem; }

/* ---------- Descargas ---------- */
.dl-groups { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .dl-groups { grid-template-columns: 1fr 1fr; } }
.dl-app {
  background: var(--color-surface); border: 1.5px solid var(--color-border);
  border-radius: calc(var(--radius) + 6px); padding: 1.5rem; box-shadow: var(--shadow);
}
@media (min-width: 480px) { .dl-app { padding: 1.75rem 2rem; } }
.dl-app-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.dl-app-head img { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; flex: none; }
.dl-app-head h3 { margin: 0; }
.dl-app-head p { margin: 0; color: var(--color-muted); font-size: .95rem; }
.dl-files { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.dl-file {
  display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: center;
  padding: 1rem; border-radius: var(--radius); background: var(--color-bg); border: 1px solid var(--color-border);
}
.dl-file .btn { grid-column: 1 / -1; margin-top: .6rem; }
@media (min-width: 560px) {
  .dl-file { grid-template-columns: auto 1fr auto; }
  .dl-file .btn { grid-column: auto; margin-top: 0; width: auto; }
}
.dl-plat-icon { font-size: 1.8rem; line-height: 1; }
.dl-file h4 { margin: 0; font: 600 1.02rem/1.3 var(--font-body); }
.dl-note, .dl-meta { margin: .15rem 0 0; font-size: .9rem; color: var(--color-muted); line-height: 1.4; }
.dl-meta { color: var(--color-primary-dark); font-weight: 500; }
.dl-soon { background: var(--color-border); color: var(--color-muted); cursor: default; }
.dl-soon:hover { transform: none; }
.is-soon .dl-plat-icon { opacity: .55; }
.dl-helps { display: grid; gap: .8rem; margin: 2rem auto 0; max-width: 780px; }
.dl-help { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.dl-help summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; }
.dl-help ol { margin: 0; padding: 0 1.25rem 1.1rem 2.6rem; color: var(--color-muted); }
.dl-help li { margin-bottom: .4rem; }
.price-alt { margin: 1.5rem 0 0; font-size: .95rem; color: var(--color-muted); text-align: center; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-small); margin-bottom: .75rem; transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3.2rem 1.1rem 1.25rem; position: relative;
  font-weight: 600; font-size: 1.05rem; border-radius: var(--radius-small);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--color-primary-soft); color: var(--color-primary); font-size: 1.3rem; transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.2rem; margin: 0; color: var(--color-muted); }

/* ---------- Contacto ---------- */
.contact-inner { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-inner { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; } }
.contact-text p { color: var(--color-muted); }
.wa-link { font-weight: 600; }
.contact-form {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
@media (min-width: 480px) { .contact-form { padding: 2rem; } }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.search-field { margin-bottom: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--color-text); background: var(--color-surface);
  border: 1.5px solid #c9c0b2; border-radius: var(--radius-small); padding: .75rem .9rem; min-height: 48px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(17, 113, 79, .2);
}
.field [aria-invalid="true"] { border-color: var(--color-error); }
.form-status { margin: 1rem 0 0; font-weight: 500; min-height: 1.5em; }
.form-status.error { color: var(--color-error); }
.form-status.ok { color: var(--color-primary); }

/* ---------- Footer ---------- */
.site-footer { background: #1d2b24; color: #d9e3dc; padding: 3.5rem 0 1.5rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--color-accent); }
.logo-footer, .logo-footer:hover { color: #fff; margin-bottom: .75rem; }
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-title { font: 600 1rem var(--font-body); color: #fff; margin-bottom: .75rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .45rem; }
.footer-list li:empty { display: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* ---------- Locales que confían (franja en movimiento) ---------- */
.clients { padding: 2.5rem 0 1rem; }
.clients-title {
  text-align: center; font: 600 .85rem/1.4 var(--font-body); color: var(--color-muted);
  text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1.5rem;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; width: max-content; gap: 1rem; list-style: none; margin: 0; padding: .5rem 0;
  animation: marquee var(--duracion, 30s) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.client {
  display: flex; align-items: center; gap: .75rem; flex: 0 0 auto;
  padding: .7rem 1.3rem; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 999px; font-weight: 600; white-space: nowrap;
}
.client img { height: 40px; width: auto; max-width: 120px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(calc(-50% - .5rem)); } }

/* Imagen con zoom/encuadre ajustado en el panel */
.img-ajuste { display: block; overflow: hidden; }
.logo .img-ajuste, .client .img-ajuste { display: inline-block; }
.img-ajuste > img { display: block; }

/* ---------- Animaciones sutiles ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* Aparición al hacer scroll: sube, se aclara y crece apenas. Los
   elementos de una misma grilla aparecen uno tras otro (--rd lo pone
   script.js). Al terminar ("settled") queda solo la transición rápida
   del hover. */
.js .reveal {
  opacity: 0; transform: translateY(26px) scale(.98);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.settled { transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease; transition-delay: 0ms; }

/* Hover en tarjetas */
.feature, .card.audience { transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease; }
.feature:hover, .js .feature.reveal.visible:hover,
.card.audience:hover, .js .card.audience.reveal.visible:hover {
  transform: translateY(-6px); box-shadow: 0 18px 40px rgba(17, 113, 79, .14); border-color: rgba(17, 113, 79, .35);
}
.audience-icon { transition: transform .35s var(--ease-out); }
.card.audience:hover .audience-icon { transform: rotate(-8deg) scale(1.1); }
.feature img { transition: filter .3s ease; }
.feature:hover img { filter: saturate(1.15); }

/* La foto de la portada flota suave */
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-media { animation: flota 7s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
  .feature:hover, .js .feature.reveal.visible:hover, .card.audience:hover, .js .card.audience.reveal.visible:hover,
  .card.audience:hover .audience-icon, .rb-tab:hover, .rb-zoom:hover, .rb-zoom:hover img { transform: none !important; }
}
