:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #556070;
  --accent: #c0262d;
  --accent-strong: #8f1d24;
  --line: #e5e7eb;
  --shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  --topbar-offset: 88px;
  --container-max: 1140px;
  --content-max: 920px;
  --page-gutter: 20px;
}
html {
  scroll-padding-top: var(--topbar-offset);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(900px 450px at 10% -5%, rgba(192, 38, 45, 0.08), transparent 60%),
    radial-gradient(720px 380px at 90% 0%, rgba(192, 38, 45, 0.06), transparent 55%),
    var(--bg);
  color: var(--text);
}
h1, h2, h3 {
  font-family: "Sora", "Inter", sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
}
p { margin: 0; color: var(--muted); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
.skip-link {
  position: absolute;
  top: -44px;
  left: 12px;
  z-index: 100;
  background: #111827;
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}
.skip-link:focus {
  top: 10px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topnav a {
  color: #475569;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: 999px;
}
.topnav a:hover { background: #f1f5f9; color: #0f172a; }
.topnav .cta {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px;
  gap: 4px;
}
.lang-btn {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: #64748b;
}
a.lang-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.hero { padding: 48px 0 26px; }
.hero-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: 100%;
  min-width: 0;
}
.hero-copy {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.hero-copy > * {
  max-width: 100%;
  min-width: 0;
}
.hero-copy .hero-media {
  margin: 4px 0 8px;
}
.eyebrow {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(192, 38, 45, 0.2);
  background: rgba(192, 38, 45, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}
.hero .lead {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}
.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #475569;
}
.hero-points li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(192, 38, 45, 0.12);
  flex: 0 0 auto;
}
.proof-line { display: flex; flex-wrap: wrap; gap: 8px; }
.proof-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}
.hero-proof-card strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 4px;
}
.hero-proof-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line); background: #fff; color: #1f2937; }
.hero-media {
  padding: 0;
  overflow: hidden;
  width: 100%;
}
.hero-media.card {
  padding: 0;
}
.hero-media .device {
  border: none;
  background: transparent;
  padding: 0;
  line-height: 0;
}
.hero-media picture,
.gallery-item picture {
  display: block;
  width: 100%;
  line-height: 0;
}
.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.section {
  padding: 52px 0;
  position: relative;
}
main section[id] {
  scroll-margin-top: var(--topbar-offset);
}
.section:not(#inicio) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 980px;
}
main section[id]:target {
  content-visibility: visible;
}
.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #dbe2ea 20%, #dbe2ea 80%, transparent);
}
.section-head {
  margin-bottom: 18px;
  display: grid;
  gap: 8px;
  padding-left: 12px;
  border-left: 4px solid rgba(192, 38, 45, 0.38);
}
.section-head h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.grid-2, .grid-3 {
  display: grid;
  gap: 12px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}
#beneficios { background: #ffffff; }
#como-funciona { background: #f8fafc; }
#estilos { background: #ffffff; }
#galeria { background: #f8fafc; }
#novedades { background: #ffffff; }
#descargas { background: #f8fafc; }
#faq { background: #ffffff; }
#novedades .update-card {
  border-radius: 20px;
  border: 1px solid #ead3d5;
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 55%);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
}
#novedades .update-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
#novedades .update-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(192, 38, 45, 0.28);
  background: rgba(192, 38, 45, 0.1);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 7px 12px;
}
#novedades .update-version strong {
  font-size: 1.05rem;
  color: var(--accent);
}
#novedades .update-intro {
  font-size: 1rem;
  color: #334155;
  margin-bottom: 14px;
  max-width: var(--content-max);
}
#novedades .update-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
#novedades .update-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.55;
}
#novedades .update-list li::before {
  content: "✓";
  color: #0f9d58;
  font-weight: 800;
  flex: 0 0 auto;
  margin-top: 2px;
}
#novedades .update-loading,
#novedades .update-error {
  font-size: 0.92rem;
  color: #64748b;
}
#novedades.is-hidden {
  display: none;
}
.is-hidden {
  display: none !important;
}
#beneficios .section-head,
#como-funciona .section-head,
#estilos .section-head,
#galeria .section-head,
#novedades .section-head,
#descargas .section-head,
#faq .section-head {
  max-width: var(--content-max);
}
#beneficios .card,
#estilos .card,
#descargas .card {
  border-color: #e2e8f0;
}
#como-funciona .card,
#galeria .gallery-item img,
#faq details {
  border-color: #dbe4ef;
}
#beneficios .grid-2 {
  gap: 16px;
}
#beneficios .benefit-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
#beneficios .benefit-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
#beneficios .benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(192, 38, 45, 0.1);
  border: 1px solid rgba(192, 38, 45, 0.2);
  color: #9f1f25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}
#beneficios .benefit-card h3 {
  font-size: 1.12rem;
  margin: 0;
}
#beneficios .benefit-card p {
  font-size: 0.95rem;
}
#beneficios .benefit-list {
  margin-top: 12px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
#beneficios .benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #334155;
  font-size: 0.95rem;
}
#beneficios .benefit-list li::before {
  content: "✓";
  color: #0f9d58;
  font-weight: 800;
  margin-top: 1px;
}
#estilos .section-head p {
  max-width: var(--content-max);
}
#estilos .styles-intro {
  margin: 0 0 14px;
  border: 1px solid #f3d3d5;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
  padding: 12px 14px;
  color: #7a1f25;
  font-size: 0.95rem;
  font-weight: 600;
}
#estilos .style-card {
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
#estilos .style-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
#estilos .style-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(192, 38, 45, 0.24);
  background: rgba(192, 38, 45, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9f1f25;
  font-size: 1rem;
}
#estilos .style-card h3 {
  margin: 0;
  font-size: 1.06rem;
}
#estilos .style-card p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}
#estilos .style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#estilos .style-tags span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  border: 1px solid #d8e0ea;
  background: #f8fafc;
  border-radius: 999px;
  padding: 5px 9px;
}
#estilos .styles-cta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#estilos .product-positioning {
  margin: 0 0 14px;
  border: 1px solid #f3d3d5;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
  padding: 12px 14px;
}
#estilos .product-positioning strong {
  display: block;
  color: #7a1f25;
  font-size: 0.96rem;
  margin-bottom: 4px;
}
#estilos .product-positioning span {
  color: #475569;
  font-size: 0.92rem;
}
#estilos .base-custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#estilos .base-card,
#estilos .custom-card {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 16px;
}
#estilos .base-card h3,
#estilos .custom-card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}
#estilos .base-card p,
#estilos .custom-card p {
  margin-bottom: 10px;
  font-size: 0.94rem;
}
#estilos .base-list,
#estilos .custom-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
#estilos .base-list li,
#estilos .custom-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #334155;
  font-size: 0.92rem;
}
#estilos .base-list li::before,
#estilos .custom-list li::before {
  content: "✓";
  color: #0f9d58;
  font-weight: 800;
}
#estilos .addons-wrap {
  margin-top: 12px;
}
#estilos .addons-title {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #0f172a;
}
#estilos .addons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#estilos .addon-item {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 14px;
}
#estilos .addon-item strong {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 5px;
}
#estilos .addon-item span {
  font-size: 0.9rem;
  color: #475569;
}
#descargas .downloads-note {
  margin: 0 0 12px;
  color: #475569;
  font-size: 0.95rem;
}
#descargas .store-card {
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
#descargas .store-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
#descargas .store-heading {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
#descargas .store-badge {
  border: 1px solid #d8e0ea;
  background: #f8fafc;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}
#descargas .store-card p {
  margin-bottom: 12px;
  font-size: 0.94rem;
}
#descargas .store-card .btn {
  width: 100%;
}
#descargas .downloads-help {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #64748b;
}
#estilos .allinone {
  margin-top: 16px;
  border: 1px solid #ead3d5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
  padding: 16px;
}
#estilos .allinone h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}
#estilos .allinone p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}
#estilos .allinone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
#estilos .allinone-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}
#estilos .allinone-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #0f172a;
}
#estilos .allinone-item span {
  font-size: 0.84rem;
  color: #475569;
}
.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #475569;
}
.kpi {
  text-align: center;
  display: grid;
  gap: 4px;
}
.kpi strong {
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1.1;
}
.kpi span { font-size: 0.9rem; color: #556070; }
.steps { gap: 14px; }
#como-funciona .step {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
#como-funciona .step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #c0262d 0%, #e46a6f 100%);
}
#como-funciona .step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
#como-funciona .step-badge {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
#como-funciona .step h3 {
  margin: 0;
  font-size: 1.06rem;
}
#como-funciona .step p {
  margin: 0;
  color: #475569;
  font-size: 0.96rem;
}
.gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
}
#galeria .gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
#galeria .gallery-note {
  margin: 0 0 10px;
  color: #475569;
  font-size: 0.94rem;
}
#galeria .gallery-chip {
  border: 1px solid #d8e0ea;
  background: #f8fafc;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}
.gallery-item {
  flex: 0 0 230px;
  scroll-snap-align: start;
}
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
}
.gallery-item p {
  margin-top: 6px;
  text-align: center;
  font-size: 0.84rem;
}
#galeria .gallery-cta {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 6, 23, 0.74);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.lightbox.open { display: flex; }
.lightbox img {
  width: min(430px, 92vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: #fff;
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(15, 23, 42, 0.5);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}
.faq details + details { margin-top: 8px; }
.faq summary { cursor: pointer; font-weight: 700; color: #0f172a; }
.faq p { margin-top: 8px; }
#testimonios {
  background: #f8fafc;
  content-visibility: visible;
}
#testimonios .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
#testimonios .testimonial-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}
#testimonios .testimonial-card blockquote {
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.55;
}
#testimonios .testimonial-card footer {
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 600;
}
@media (max-width: 860px) {
  #testimonios .testimonials-grid { grid-template-columns: 1fr; }
}

.final-cta {
  background: linear-gradient(140deg, #7f1d1d, #c0262d);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  color: #fff;
}
.final-cta h2, .final-cta p { color: #fff; }
.final-cta .btn-primary { background: #fff; color: #7f1d1d; }
.final-cta .btn-ghost {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.1);
  color: #fff;
}
footer {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 28px 0 92px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}
.footer-col {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}
.footer-col h3, .footer-col strong {
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.2;
}
.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 2px;
  object-fit: contain;
  flex: 0 0 auto;
}
.footer-col p {
  margin: 0;
  line-height: 1.55;
}
.footer-links {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.footer-links a {
  color: #334155;
}
.footer-links a:hover {
  color: #0f172a;
  text-decoration: underline;
}
.footer-cta-mini {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-cta-mini .btn {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.82rem;
}
.footer-meta {
  margin-top: 10px;
  font-size: 0.84rem;
  color: #64748b;
}
.footer-bottom {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: #64748b;
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 -12px 24px rgba(15, 23, 42, 0.1);
}
.back-top {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 59;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(140deg, #c0262d 0%, #8f1d24 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 14px 24px rgba(127, 29, 29, 0.34);
  transition: .2s ease;
}
.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(127, 29, 29, 0.42);
}
.back-top:active {
  transform: translateY(0);
}
.back-top::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.back-top:focus-visible {
  outline: 2px solid rgba(192, 38, 45, 0.35);
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  :root {
    --container-max: 1240px;
    --content-max: 960px;
    --page-gutter: 28px;
  }
  .hero { padding: 56px 0 32px; }
  .hero-stack { gap: 32px; }
  .hero h1 { font-size: clamp(2.2rem, 3.2vw, 3.2rem); }
  .section { padding: 58px 0; }
  .grid-2,
  .grid-3 {
    gap: 16px;
  }
  .gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow-x: visible;
    gap: 16px;
    padding: 0;
  }
  .gallery-item {
    flex: unset;
    scroll-snap-align: unset;
  }
  #galeria .gallery-cta {
    justify-content: flex-start;
  }
  .footer-grid {
    gap: 20px;
  }
}

@media (min-width: 1280px) {
  :root {
    --container-max: 1360px;
    --content-max: 1000px;
    --page-gutter: 36px;
  }
  .grid-3 { gap: 18px; }
  #estilos .addons-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  :root {
    --container-max: 1440px;
    --page-gutter: 40px;
  }
}

@media (max-width: 980px) {
  .grid-2, .footer-grid { grid-template-columns: 1fr; }
}
@media (min-width: 721px) and (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #descargas .grid-3 article:last-child {
    grid-column: 1 / -1;
  }
  body {
    font-size: 15.5px;
  }
  .hero h1 {
    font-size: clamp(2rem, 4.2vw, 2.4rem);
    line-height: 1.14;
  }
  .hero .lead {
    font-size: 1.02rem;
  }
  .section-head h2 {
    font-size: clamp(1.45rem, 2.7vw, 1.9rem);
  }
  .hero-copy,
  .section-head,
  .card p,
  .card li {
    text-align: left;
  }
  .gallery-item img {
    max-height: 460px;
    object-fit: contain;
  }
  .btn {
    font-size: 0.9rem;
  }
  #galeria .gallery-item {
    flex-basis: 250px;
  }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .topnav {
    position: absolute;
    top: 66px;
    left: 12px;
    right: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .topnav.open { display: flex; }
  .topnav a { text-align: center; }
}
@media (max-width: 720px) {
  :root {
    --page-gutter: 12px;
  }
  .hero { padding-top: 26px; }
  .section { padding: 42px 0; }
  body {
    font-size: 15px;
  }
  h1, h2, h3 {
    letter-spacing: -0.015em;
  }
  .hero h1 {
    font-size: clamp(1.72rem, 7vw, 2.15rem);
    line-height: 1.15;
    text-align: left;
  }
  .hero .lead {
    font-size: 0.98rem;
    line-height: 1.6;
    text-align: left;
  }
  .hero-copy {
    gap: 14px;
  }
  .hero-points li,
  .section-head,
  .card p,
  .card li {
    text-align: left;
  }
  .section-head h2 {
    font-size: clamp(1.35rem, 6vw, 1.72rem);
    line-height: 1.2;
  }
  .section-head {
    padding-left: 10px;
    border-left-width: 3px;
  }
  .gallery-item img {
    max-height: 420px;
    object-fit: contain;
  }
  .gallery-item p {
    font-size: 0.82rem;
    line-height: 1.35;
  }
  .btn {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.86rem;
  }
  .footer-col h3, .footer-col strong {
    font-size: 0.92rem;
  }
  .footer-col p,
  .footer-links a,
  .footer-bottom {
    font-size: 0.83rem;
  }
  .mobile-sticky-cta { display: grid; }
  #estilos .base-custom-grid,
  #estilos .addons-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  #galeria .gallery-item {
    flex-basis: 220px;
  }
}
