/* ==========================================================================
   Excel Studio — hoja de estilos
   Sin dependencias externas. Compatible con CSP estricta (sin estilos inline).
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Propiedades animables (Houdini) ---------------------------------------- */
@property --ring {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
@property --pct {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}
@property --draw {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

/* Tokens ------------------------------------------------------------------ */
:root {
  color-scheme: light;

  --green-950: #0b2e1b;
  --green-900: #0e3b22;
  --green-800: #185c37;
  --green-700: #107c41;
  --green-600: #138a4a;
  --green-500: #21a366;
  --green-300: #33c481;
  --green-100: #d3eedd;
  --green-50: #eef7f1;

  --ink: #1d2a22;
  --ink-2: #44544a;
  --ink-3: #5c6b61;
  --line: #e1e7e3;
  --line-2: #c9d3cc;
  --head: #f3f6f4;
  --paper: #ffffff;
  --down: #b42318;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --cw: 96px;   /* ancho de columna de la cuadrícula */
  --rh: 32px;   /* alto de fila de la cuadrícula */

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 14px;

  --shadow-window: 0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 2px 4px rgba(14, 59, 34, 0.06), 0 28px 60px -28px rgba(14, 59, 34, 0.42);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 104px;
}

/* Base -------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--green-700);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--green-800);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--green-300);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: var(--green-100);
  color: var(--green-950);
}

.visually-hidden {
  position: absolute !important;
  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: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green-800);
  color: #fff;
  border-radius: var(--radius-m);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* Botones ----------------------------------------------------------------- */
.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-bd: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-m);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s var(--ease-out);
}

.btn:hover {
  --btn-bd: var(--green-700);
  color: var(--btn-fg);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  --btn-bg: var(--green-700);
  --btn-fg: #fff;
  --btn-bd: var(--green-700);
}

.btn--primary:hover {
  --btn-bg: var(--green-800);
  --btn-bd: var(--green-800);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--green-900);
  --btn-bd: #fff;
}

.btn--light:hover {
  --btn-bg: var(--green-50);
  --btn-bd: var(--green-50);
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.45);
}

.btn--ghost-light:hover {
  --btn-bd: #fff;
  --btn-bg: rgba(255, 255, 255, 0.08);
}

.btn--small {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.9375rem;
}

/* Encabezado y barra de fórmulas ----------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}

@supports (animation-timeline: scroll()) {
  .topbar {
    animation: topbar-lift linear both;
    animation-timeline: scroll(root);
    animation-range: 0 160px;
  }

  @keyframes topbar-lift {
    to {
      box-shadow: 0 12px 30px -22px rgba(14, 59, 34, 0.45);
      background: rgba(255, 255, 255, 0.94);
    }
  }
}

.topbar__row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand:hover {
  color: var(--ink);
}

.brand svg {
  width: 32px;
  height: 32px;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-m);
  background: var(--paper);
  font-weight: 650;
  cursor: pointer;
}

.menu-btn__bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.menu-btn__bars::before,
.menu-btn__bars::after,
.menu-btn__bars span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.menu-btn__bars::before {
  top: 0;
}

.menu-btn__bars span {
  top: 5px;
}

.menu-btn__bars::after {
  top: 10px;
}

.menu-btn[aria-expanded="true"] .menu-btn__bars::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-btn__bars span {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] .menu-btn__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

.menu__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--radius-m);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9875rem;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.menu__link:hover,
.menu__link[aria-current="true"] {
  color: var(--green-800);
  background: var(--green-50);
}

.menu__link svg {
  width: 18px;
  height: 18px;
}

.menu__item--cta {
  margin-left: 8px;
}

/* Barra de fórmulas */
.fx {
  display: grid;
  grid-template-columns: minmax(96px, 230px) auto 1fr;
  align-items: stretch;
  height: 36px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-2);
}

.fx__name {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx__icon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-right: 1px solid var(--line);
  color: var(--ink-3);
  font-style: italic;
  font-weight: 600;
  font-family: Georgia, "Times New Roman", serif;
}

.fx__formula {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 14px;
  white-space: nowrap;
  overflow: hidden;
  color: var(--ink);
}

.fx__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx__caret {
  flex: none;
  width: 1.5px;
  height: 1.1em;
  margin-left: 1px;
  background: var(--green-700);
  animation: caret 1.05s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

/* Secciones --------------------------------------------------------------- */
.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section--tint {
  background: var(--head);
  border-block: 1px solid var(--line);
}

.section__head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section__title {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem);
}

.section__lead {
  color: var(--ink-2);
  font-size: 1.125rem;
  max-width: 62ch;
}

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: 0 clamp(64px, 9vw, 112px);
  isolation: isolate;
}

.hero::before {
  /* Cuadrícula de hoja de cálculo que se desvanece */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: var(--cw) var(--rh);
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 30% 30%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 75% at 30% 30%, #000 30%, transparent 85%);
}

.hero__cols {
  display: flex;
  height: var(--rh);
  margin-bottom: clamp(40px, 6vw, 80px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(var(--head), var(--head)) no-repeat;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
}

.hero__cols span {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--cw);
  border-right: 1px solid var(--line);
}

.hero__cols span.is-active {
  background: var(--green-100);
  color: var(--green-900);
  box-shadow: inset 0 -2px 0 var(--green-700);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero__copy {
  display: grid;
  gap: 26px;
  justify-items: start;
}

/* El titular vive dentro de una selección de celdas */
.selection {
  position: relative;
  padding: 10px 16px 14px;
  margin-left: -16px;
  background: rgba(255, 255, 255, 0.72);
}

.selection::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--green-700);
  border-radius: 1px;
  pointer-events: none;
  --draw: 0%;
  clip-path: inset(0 var(--draw) 0 0);
  animation: draw-selection 0.9s var(--ease-out) 0.25s both;
}

.selection::after {
  /* controlador de relleno */
  content: "";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 9px;
  height: 9px;
  background: var(--green-700);
  outline: 2px solid #fff;
  opacity: 0;
  animation: pop-in 0.25s var(--ease-out) 1.05s forwards;
}

@keyframes draw-selection {
  from {
    --draw: 100%;
  }
  to {
    --draw: 0%;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero__title {
  font-size: clamp(2.6rem, 1.3rem + 5.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 850;
  max-width: 9.6ch;
}

.hero__lead {
  max-width: 50ch;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Ventana de Excel construida con CSS */

/* celda seleccionada con «hormigas marchando» (copiar) */

@keyframes ants {
  to {
    background-position: 8px 0, -8px 100%, 0 -8px, 100% 8px;
  }
}

/* Gráfico flotante sobre las celdas, como un objeto de Excel */

@keyframes ring-fill {
  from {
    --ring: 0%;
  }
  to {
    --ring: 87%;
  }
}

@keyframes count-pct {
  from {
    --pct: 0;
  }
  to {
    --pct: 87;
  }
}

@keyframes grow {
  to {
    transform: scaleY(1);
  }
}

/* Servicios: tabla con filas seleccionables ------------------------------ */
.svc {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--paper);
}

.svc__head,
.svc__row {
  display: grid;
  grid-template-columns: 56px minmax(180px, 1fr) minmax(0, 1.6fr) minmax(0, 1.2fr);
}

.svc__head {
  background: var(--head);
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 650;
}

.svc__head > span,
.svc__row > * {
  padding: 12px 18px;
  border-right: 1px solid var(--line);
}

.svc__head > span:last-child,
.svc__row > *:last-child {
  border-right: 0;
}

.svc__row {
  position: relative;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.15s;
}

.svc__row:last-child {
  border-bottom: 0;
}

.svc__row:hover {
  background: var(--green-50);
}

.svc__row:hover::after {
  content: "";
  position: absolute;
  inset: -1px 0;
  border: 2px solid var(--green-700);
  pointer-events: none;
}

.svc__num {
  display: grid;
  place-items: center;
  background: var(--head);
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.svc__row:hover .svc__num {
  background: var(--green-100);
  color: var(--green-900);
}

.svc__name {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 20px !important;
  margin: 0;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.svc__name svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--green-700);
}

.svc__desc {
  padding-block: 20px !important;
  color: var(--ink-2);
}

.svc__tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  padding-block: 20px !important;
}

.svc__tags li {
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.3;
  background: var(--paper);
}

.svc__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.svc__foot p {
  color: var(--ink-2);
  max-width: 60ch;
}

/* Galería ----------------------------------------------------------------- */

/* Pestañas de hoja para el área */

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field__control {
  position: relative;
}

.field select,
.field input {
  width: 100%;
  min-height: 44px;
  padding: 9px 40px 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-m);
  background: var(--paper);
  font-size: 0.9875rem;
  -webkit-appearance: none;
  appearance: none;
}

.field input {
  padding-left: 38px;
  padding-right: 12px;
}

.field select:hover,
.field input:hover {
  border-color: var(--green-700);
}

.field select:focus-visible,
.field input:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 0;
  border-color: var(--green-700);
}

/* Flecha de autofiltro dibujada con CSS */
.field__control--select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background:
    linear-gradient(45deg, transparent 45%, var(--ink-2) 45% 58%, transparent 58%) 7px 9px / 6px 6px no-repeat,
    linear-gradient(-45deg, transparent 45%, var(--ink-2) 45% 58%, transparent 58%) 11px 9px / 6px 6px no-repeat,
    var(--head);
  pointer-events: none;
}

.field__control--search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: var(--ink-3);
  pointer-events: none;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.tile {
  container-type: inline-size;
  view-transition-name: match-element;
  view-transition-class: tile;
}

.tile[hidden] {
  display: none;
}

.tile__link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-m);
  background-color: var(--head);
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 18px;
  transition: border-color 0.2s, box-shadow 0.25s var(--ease-out);
}

.tile__link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6%;
  transition: transform 0.45s var(--ease-out);
}

.tile__link--cover img {
  object-fit: cover;
  padding: 0;
}

.tile__link:hover,
.tile__link:focus-visible {
  border-color: var(--green-700);
  box-shadow: 0 0 0 1px var(--green-700), 0 18px 34px -24px rgba(14, 59, 34, 0.55);
}

.tile__link:hover img {
  transform: scale(1.035);
}

.tile__link::after {
  /* indicador de ampliación */
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-700) url("/assets/img/expand.svg") center / 16px no-repeat;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
}

.tile__link:hover::after,
.tile__link:focus-visible::after {
  opacity: 1;
  transform: none;
}

.tile__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2px 12px;
  padding: 12px 2px 0;
}

.tile__title {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.tile__project {
  grid-column: 1;
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.35;
}

.tile__type {
  grid-row: 1 / span 2;
  grid-column: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}

.gallery__empty {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 32px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-l);
  background: var(--head);
}

.gallery__empty[hidden] {
  display: none;
}

.gallery__empty p {
  color: var(--ink-2);
}

/* Transiciones de vista al filtrar */
::view-transition-group(*.tile) {
  animation-duration: 0.35s;
  animation-timing-function: var(--ease-out);
}

/* Visor (lightbox) -------------------------------------------------------- */
.viewer {
  width: min(100vw - 24px, 1280px);
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.viewer::backdrop {
  background: rgba(11, 46, 27, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: viewer-in 0.28s var(--ease-out);
}

@keyframes viewer-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

.viewer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--head);
}

.viewer__ref {
  color: var(--ink-3);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.viewer__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(8px, 2vw, 20px) clamp(8px, 6vw, 72px);
  background-color: var(--head);
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 22px;
}

.viewer__img {
  max-width: 100%;
  max-height: calc(100dvh - 210px);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s;
}

.viewer__img.is-loading {
  opacity: 0.35;
}

.viewer__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 20px -12px rgba(14, 59, 34, 0.5);
}

.viewer__nav:hover {
  border-color: var(--green-700);
  color: var(--green-800);
}

.viewer__nav svg {
  width: 20px;
  height: 20px;
}

.viewer__nav--prev {
  left: 12px;
}

.viewer__nav--next {
  right: 12px;
}

.viewer__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-m);
  background: transparent;
  cursor: pointer;
}

.viewer__close:hover {
  border-color: var(--line-2);
  background: var(--paper);
}

.viewer__close svg {
  width: 20px;
  height: 20px;
}

.viewer__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.viewer__title {
  font-weight: 750;
  font-size: 1.0625rem;
}

.viewer__project {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* Proceso ----------------------------------------------------------------- */

/* Cursos ------------------------------------------------------------------ */
.courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.course {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  background: var(--paper);
}

.course--feature {
  border-color: var(--green-700);
  box-shadow: inset 0 3px 0 var(--green-700);
}

.course__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.course h3 {
  font-size: 1.4375rem;
  letter-spacing: -0.02em;
  flex: 1 1 220px;
}

/* Nivel como barra de datos de 3 celdas */
.level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
}

.level__cells {
  display: inline-grid;
  grid-template-columns: repeat(3, 14px);
  gap: 2px;
}

.level__cells i {
  height: 14px;
  border: 1px solid var(--line-2);
  background: var(--paper);
}

.level--1 .level__cells i:nth-child(-n + 1),
.level--2 .level__cells i:nth-child(-n + 2),
.level--3 .level__cells i:nth-child(-n + 3) {
  border-color: var(--green-700);
  background: var(--green-500);
}

.course__body {
  display: grid;
  align-content: start;
  gap: 14px;
}

.course__body p {
  color: var(--ink-2);
}

.course__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.course__topics li {
  padding: 4px 10px;
  border-radius: var(--radius-s);
  background: var(--head);
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.course__cta {
  justify-self: start;
}

.courses__note {
  margin-top: 22px;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

/* Comunidad --------------------------------------------------------------- */
.community {
  position: relative;
  padding-block: clamp(72px, 10vw, 120px);
  background: var(--green-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.community::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: var(--cw) var(--rh);
  -webkit-mask-image: linear-gradient(100deg, transparent 10%, #000 70%);
  mask-image: linear-gradient(100deg, transparent 10%, #000 70%);
}

.community__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.community h2 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem);
}

.community__lead {
  margin-top: 18px;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.125rem;
}

.community__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.perks {
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.perks li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.perks li:last-child {
  border-bottom: 0;
}

.perks svg {
  justify-self: center;
  width: 20px;
  height: 20px;
  color: var(--green-300);
}

.perks span {
  padding: 16px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

/* Pie --------------------------------------------------------------------- */
.footer {
  padding-block: 48px 36px;
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.25fr) repeat(2, minmax(0, 0.8fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer .brand {
  color: #fff;
  margin-bottom: 12px;
}

.footer__title {
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
}

.footer__list {
  display: grid;
  gap: 8px;
}

.footer__legal {
  display: grid;
  gap: 6px;
  padding-top: 24px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.58);
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .menu__link {
    padding-inline: 9px;
  }

  .field--search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 100px;
  }

  .menu-btn {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px var(--gutter) 20px;
    border-bottom: 1px solid var(--line-2);
    background: var(--paper);
    box-shadow: 0 24px 40px -28px rgba(14, 59, 34, 0.45);
  }

  .js .menu:not(.is-open) {
    display: none;
  }

  .menu__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .menu__link {
    min-height: 48px;
    padding-inline: 12px;
  }

  .menu__item--cta {
    margin: 10px 0 0;
  }

  .menu__item--cta .btn {
    width: 100%;
  }

  .hero__grid,
  .community__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .svc__head {
    display: none;
  }

  .svc__row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .svc__num {
    grid-row: 1 / span 3;
  }

  .svc__name,
  .svc__desc,
  .svc__tags {
    border-right: 0 !important;
  }

  .svc__name {
    padding-bottom: 4px !important;
  }

  .svc__desc {
    padding-block: 0 10px !important;
  }

  .svc__tags {
    padding-block: 0 20px !important;
  }

  .courses {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --cw: 72px;
    --rh: 28px;
  }

  .fx {
    grid-template-columns: minmax(80px, 110px) auto 1fr;
  }

  .selection {
    margin-left: -10px;
    padding-inline: 10px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .viewer {
    width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
  }

  .viewer__nav {
    top: auto;
    bottom: 10px;
    margin-top: 0;
  }

  .viewer__img {
    max-height: calc(100dvh - 230px);
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* Movimiento reducido ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }

  .fx__caret {
    display: none;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* Impresión --------------------------------------------------------------- */
@media print {
  .topbar,
  .viewer,
  .community::before {
    display: none !important;
  }

  .section {
    padding-block: 24px;
  }
}

/* Página 404 -------------------------------------------------------------- */
.notfound {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  background-color: var(--paper);
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: var(--cw) var(--rh);
}

.notfound__inner {
  display: grid;
  justify-items: start;
  gap: 18px;
  max-width: 640px;
  padding: 40px 32px;
  border: 2px solid var(--green-700);
  background: var(--paper);
}

.notfound__code {
  color: var(--down);
  font-weight: 800;
  font-size: clamp(2.5rem, 2rem + 3vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.notfound h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
}

.notfound p {
  color: var(--ink-2);
}

/* ==========================================================================
   Catálogo de venta
   ========================================================================== */

.btn--big {
  min-height: 54px;
  padding: 14px 26px;
  font-size: 1.0625rem;
}

/* Héroe compacto: el catálogo aparece pronto */

/* Color por área (paleta de temas de Office) */
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--area, var(--green-700));
  flex: none;
}

.dot--finanzas { --area: #548235; }
.dot--operaciones { --area: #2f5597; }
.dot--gestion { --area: #c55a11; }
.dot--marketing { --area: #bf8f00; }
.dot--personal { --area: #7030a0; }

/* Cabecera del catálogo */

/* Rejilla de productos */

/* Selección estilo Excel al pasar o enfocar */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.3;
  white-space: nowrap;
}

.badge--free {
  background: #fff4ce;
  color: #6b4e00;
  box-shadow: inset 0 0 0 1px #e6c34d;
}

.pp__area {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 650;
}

.checks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
}

.checks svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--green-700);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips li {
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: var(--head);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

/* Ficha de producto ---------------------------------------------------------- */
.section--page {
  padding-top: clamp(40px, 6vw, 72px);
}

.pp {
  padding-block: clamp(24px, 4vw, 44px) clamp(56px, 7vw, 88px);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: clamp(18px, 3vw, 30px);
  color: var(--ink-3);
  font-size: 0.875rem;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 4px;
  color: var(--line-2);
}

.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--green-800);
  text-decoration: underline;
}

.crumbs [aria-current] {
  color: var(--ink);
  font-weight: 600;
}

.pp__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4.5vw, 64px);
}

.pp__media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.pp__main {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  background-color: var(--head);
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 22px;
}

.pp__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4%;
}

.pp__main.tile__link--cover img {
  object-fit: cover;
  padding: 0;
}

.pp__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green-800);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 650;
  box-shadow: 0 8px 18px -8px rgba(14, 59, 34, 0.6);
}

.pp__zoom svg {
  width: 15px;
  height: 15px;
}

.pp__main:hover .pp__zoom,
.pp__main:focus-visible .pp__zoom {
  background: var(--green-700);
}

.pp__thumbs {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 104px;
  gap: 8px;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.pp__thumb {
  position: relative;
  display: block;
  width: 104px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: var(--head);
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pp__thumb.tile__link--cover img {
  object-fit: cover;
}

.pp__thumb:hover {
  border-color: var(--green-700);
}

.pp__thumb[aria-current="true"] {
  border-color: var(--green-700);
  box-shadow: inset 0 0 0 2px var(--green-700);
}

.pp__buy {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: 0 30px 60px -44px rgba(14, 59, 34, 0.55);
}

.pp__title {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);
  letter-spacing: -0.03em;
}

.pp__tagline {
  color: var(--green-800);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
}

.pp__summary {
  color: var(--ink-2);
}

.pp__actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.pp__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
}

.pp__h2 {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.025em;
}

.checks {
  display: grid;
  gap: 12px;
  font-size: 1.0625rem;
}

.pp__side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.pp__side .pp__h2 + * {
  margin-bottom: 18px;
}

/* Pasos como filas numeradas de una hoja */
.howto {
  counter-reset: howto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-m);
  background: var(--paper);
  overflow: hidden;
}

.howto li {
  counter-increment: howto;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  column-gap: 14px;
  min-height: 52px;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}

.howto li:last-child {
  border-bottom: 0;
}

.howto li::before {
  content: counter(howto);
  display: grid;
  place-items: center;
  align-self: stretch;
  margin-block: -12px;
  background: var(--head);
  border-right: 1px solid var(--line);
  color: var(--ink-3);
  font-weight: 700;
  font-size: 0.875rem;
}

.gains {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  border-left: 3px solid var(--green-500);
  color: var(--ink-2);
}

.pp__fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
}

.fit {
  padding: 20px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-m);
  background: var(--paper);
}

.fit h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.fit h3 svg {
  width: 20px;
  height: 20px;
}

.fit--yes h3 svg {
  color: var(--green-700);
}

.fit--no h3 svg {
  color: var(--down);
}

.fit--req h3 svg {
  color: var(--ink-3);
}

.fit p,
.fit li {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.fit ul {
  display: grid;
  gap: 6px;
}

.pp__again {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 4vw, 48px);
}

.tile__project {
  color: var(--ink-3);
}

a.tile__project:hover {
  color: var(--green-800);
}

/* Barra de compra fija en móviles */
.buybar {
  display: none;
}

@media (max-width: 760px) {
  .buybar {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: block;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .buybar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .buybar .btn {
    flex: none;
    white-space: nowrap;
  }

  .buybar__name {
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 980px) {
  .pp__top,
  .pp__cols {
    grid-template-columns: 1fr;
  }

  .pp__buy {
    position: static;
  }
}

@media (max-width: 560px) {
  .pp__thumbs {
    grid-auto-columns: 88px;
  }

  .pp__thumb {
    width: 88px;
    height: 62px;
  }
}

/* ==========================================================================
   Tienda: héroe con capturas, carrusel, galería, gratis y contacto
   ========================================================================== */

/* Héroe: pila de capturas reales */

@keyframes stack-in {
  from {
    opacity: 0;
    translate: 0 24px;
    scale: 0.96;
  }
}

.hero .btn--big {
  min-width: 180px;
}

/* Tarjeta de plantilla estilo tienda */
.listing {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  view-transition-name: match-element;
  view-transition-class: tile;
}

.listing[hidden] {
  display: none;
}

.listing__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--head);
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 40px 16px;
  transition: box-shadow 0.3s var(--ease-out), border-color 0.2s;
}

.listing__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5%;
  transition: transform 0.6s var(--ease-out);
}

.listing__media.tile__link--cover img {
  object-fit: cover;
  padding: 0;
}

.listing:hover .listing__media,
.listing:has(a:focus-visible) .listing__media {
  border-color: var(--green-700);
  box-shadow: 0 0 0 1px var(--green-700), 0 22px 40px -28px rgba(14, 59, 34, 0.6);
}

.listing:hover .listing__media img {
  transform: scale(1.04);
}

.listing__media .badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.listing__shots {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.listing__shots svg {
  width: 13px;
  height: 13px;
  color: var(--green-700);
}

.listing__body {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 4px;
}

.listing__name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.listing__name a {
  color: var(--ink);
  text-decoration: none;
}

.listing:hover .listing__name a {
  color: var(--green-800);
}

.listing__tag {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
}

.listing__buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  align-self: end;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.listing__price {
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.listing__price--free {
  color: var(--green-700);
}

/* Toda la tarjeta lleva a la ficha; el botón queda por encima */
.listing__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.listing__buy .btn {
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

/* Carrusel */
.featured {
  padding-top: clamp(48px, 7vw, 88px);
}

.featured__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 24px;
}

.featured__head .section__head {
  margin-bottom: 0;
}

.carousel__controls {
  display: flex;
  gap: 8px;
}

.carousel__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, opacity 0.15s;
}

.carousel__btn:hover:not(:disabled) {
  border-color: var(--green-700);
  color: var(--green-800);
}

.carousel__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.carousel__btn svg {
  width: 20px;
  height: 20px;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 22px) / 4);
  column-gap: 22px;
  padding: 4px 4px 18px;
  margin: 0 -4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.carousel > .listing {
  scroll-snap-align: start;
}

.featured__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 36px);
}

/* Plantillas gratis */
.free__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.free__card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  background: var(--paper);
}

.free__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--head);
}

.free__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Miniatura de hoja dibujada con CSS */
.free__thumb {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  background-color: #f7faf8;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 20px;
}

.free__thumb b {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--thumb, var(--green-700));
  color: #fff;
  font-size: 0.875rem;
}

.free__thumb--presupuesto { --thumb: #2f5597; }
.free__thumb--viaje { --thumb: #ad4e0c; }

.free__thumb div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #fff;
  font-size: 0.75rem;
  color: var(--ink-2);
}

.free__thumb i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--thumb, var(--green-700)) var(--w, 60%), var(--line) 0);
}

.free__thumb i:nth-of-type(1) { --w: 82%; }
.free__thumb i:nth-of-type(2) { --w: 55%; }
.free__thumb i:nth-of-type(3) { --w: 70%; }
.free__thumb i:nth-of-type(4) { --w: 38%; }
.free__thumb i:nth-of-type(5) { --w: 64%; }

.free__body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: start;
  gap: 8px;
  padding: 18px 20px 20px;
}

.free__name {
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
}

.free__name a {
  color: var(--ink);
  text-decoration: none;
}

.free__name a:hover {
  color: var(--green-800);
}

.free__body p {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.free__body .btn {
  justify-self: stretch;
  margin-top: 6px;
}

/* Galería tipo tienda */
.shop {
  padding-bottom: clamp(64px, 8vw, 104px);
}

.shop__banner {
  height: clamp(120px, 16vw, 190px);
  background-color: var(--green-800);
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(120deg, var(--green-900), var(--green-700) 60%, var(--green-500));
  background-size: var(--cw) var(--rh), var(--cw) var(--rh), auto;
}

.shop__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 18px 28px;
  margin-top: calc(clamp(44px, 5vw, 60px) * -1);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.shop__avatar {
  display: grid;
  place-items: center;
  width: clamp(96px, 11vw, 128px);
  aspect-ratio: 1;
  padding: 14px;
  border: 4px solid var(--paper);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 16px 30px -18px rgba(14, 59, 34, 0.55);
}

.shop__avatar svg {
  width: 100%;
  height: 100%;
}

.shop__id,
.shop__cta {
  padding-top: calc(clamp(44px, 5vw, 60px) + 16px);
}

.shop__name {
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  letter-spacing: -0.03em;
}

.shop__tagline {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.shop__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.shop__stats b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.shop__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop__layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-width: 0;
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 32px;
}

.shop__nav {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.shop__navtitle {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 750;
}

.shop__sections {
  display: grid;
  gap: 2px;
}

.shop__sections button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-m);
  background: transparent;
  color: var(--ink-2);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.shop__sections button:hover {
  background: var(--head);
  color: var(--ink);
}

.shop__sections button[aria-pressed="true"] {
  background: var(--green-50);
  color: var(--green-900);
  box-shadow: inset 3px 0 0 var(--green-700);
}

.shop__sections span {
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.shop__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 22px;
}

.shop__count {
  color: var(--ink-2);
}

.shop__count b {
  color: var(--ink);
}

.shop__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop__tools .field--search {
  width: min(100%, 260px);
}

.shop__tools .field:not(.field--search) {
  width: 220px;
}

.listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: clamp(22px, 2.6vw, 32px) clamp(16px, 2vw, 24px);
}

.listings--related {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

/* Contacto */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.contact__intro .section__head,
.contact__intro .section__lead {
  margin-top: 16px;
}

.contact__points {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  color: var(--ink-2);
  font-weight: 600;
}

.contact__points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact__points svg {
  width: 20px;
  height: 20px;
  color: var(--green-700);
}

.form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: 0 30px 60px -46px rgba(14, 59, 34, 0.55);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__field {
  display: grid;
  gap: 6px;
}

.form__field > span:first-child {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 650;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-m);
  background: var(--paper);
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}

.form select {
  padding-right: 40px;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.form input:hover,
.form select:hover,
.form textarea:hover {
  border-color: var(--green-700);
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 0;
  border-color: var(--green-700);
}

.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.form__note {
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Gracias */
.thanks__inner {
  display: grid;
  justify-items: start;
  gap: 20px;
  max-width: 720px;
  padding-block: clamp(32px, 6vw, 80px);
}

/* Responsive */
@media (max-width: 1100px) {
  .carousel {
    grid-auto-columns: calc((100% - 2 * 22px) / 3);
  }
}

@media (max-width: 980px) {

  .shop__head {
    grid-template-columns: auto 1fr;
  }

  .shop__cta {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .shop__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop__nav {
    position: static;
  }

  .shop__navtitle {
    display: none;
  }

  .shop__sections {
    display: flex;
    gap: 6px;
    padding-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .shop__sections button {
    flex: none;
    width: auto;
    min-height: 40px;
    white-space: nowrap;
    border: 1px solid var(--line-2);
    border-radius: 999px;
  }

  .shop__sections button[aria-pressed="true"] {
    border-color: var(--green-700);
    box-shadow: none;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .carousel {
    grid-auto-columns: calc((100% - 16px) / 1.6);
    column-gap: 16px;
  }
}

@media (max-width: 560px) {
  .carousel {
    grid-auto-columns: 78%;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .shop__tools,
  .shop__tools .field--search,
  .shop__tools .field:not(.field--search) {
    width: 100%;
  }
}

/* ==========================================================================
   Confianza y venta: barra de estado, opiniones, proceso, precio y preguntas
   ========================================================================== */

/* Línea de confianza del héroe */
.hero__trust {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.hero__trust svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--green-700);
}

.hero__trust b {
  color: var(--ink);
  font-weight: 750;
}

.hero__trust a {
  font-weight: 650;
  white-space: nowrap;
}

/* Barra de estado, como la del borde inferior de Excel */
.statusbar {
  border-block: 1px solid var(--line-2);
  background: var(--head);
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.4;
}

.statusbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  min-height: 42px;
  padding-block: 9px;
}

.statusbar__ready {
  color: var(--ink-3);
  font-weight: 600;
}

.statusbar__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  font-variant-numeric: tabular-nums;
}

.statusbar__stats b {
  color: var(--ink);
  font-weight: 750;
}

/* Opiniones con forma de comentario de celda */
.voices__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.voices__intro {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.notes li:nth-child(even) {
  translate: 0 22px;
}

.note {
  position: relative;
  display: grid;
  gap: 14px;
  height: 100%;
  margin: 0;
  padding: 20px 22px 22px;
  border: 1px solid var(--line-2);
  border-radius: 2px 14px 14px 14px;
  background: var(--paper);
  box-shadow: 0 22px 40px -32px rgba(14, 59, 34, 0.55);
}

.note::before {
  /* marca de comentario en la esquina de la celda */
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  border-style: solid;
  border-width: 13px 13px 0 0;
  border-color: var(--green-700) transparent transparent;
}

.note__who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.note__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.note__id {
  display: grid;
  line-height: 1.3;
}

.note__name {
  color: var(--ink);
  font-weight: 750;
}

.note__src {
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.note__text {
  margin: 0;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

/* Proceso del servicio a medida */
.process__title {
  margin-top: clamp(36px, 5vw, 56px);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  background: var(--paper);
  overflow: hidden;
}

.process li {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 24px 26px;
  border-left: 1px solid var(--line);
}

.process li:first-child {
  border-left: 0;
}

.process__n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: var(--head);
  color: var(--green-800);
  font-size: 0.875rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.process h4 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.process p {
  color: var(--ink-2);
  font-size: 0.9875rem;
}

.svc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Aviso de plantilla elegida en el formulario */
.form__notice {
  padding: 12px 14px;
  border-left: 3px solid var(--green-700);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  background: var(--green-50);
  color: var(--green-900);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.form__notice[hidden] {
  display: none;
}

.form__field small {
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 500;
}

.form__field .field__control {
  display: block;
}

.form__note a {
  color: inherit;
  text-decoration: underline;
}

/* Ficha: precio y garantías de lo que recibes */
.pp__pay {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.pp__amount {
  color: var(--ink);
  font-size: 2.125rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.pp__amount--free {
  color: var(--green-700);
}

.pp__pay .pp__actions {
  margin-top: 0;
}

.pp__sure {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.pp__sure li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pp__sure svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--green-700);
}

.pp__ask {
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.buybar__price {
  flex: none;
  margin-left: auto;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Preguntas frecuentes: filas agrupadas que se expanden */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
}

.faq__grid .section__head {
  margin-bottom: 0;
}

.faq {
  border-top: 1px solid var(--line-2);
}

.faq__item {
  border-bottom: 1px solid var(--line-2);
}

.faq__item summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::before {
  /* botón de agrupar filas */
  content: "+";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
}

.faq__item[open] summary::before {
  content: "\2212";
  border-color: var(--green-700);
  color: var(--green-800);
}

.faq__item summary:hover {
  color: var(--green-800);
}

.faq__a {
  padding: 0 4px 20px 38px;
  color: var(--ink-2);
  max-width: 68ch;
}

/* Páginas de texto (privacidad) */
.legal__inner {
  display: grid;
  gap: 14px;
  max-width: 760px;
  padding-block: clamp(24px, 4vw, 56px);
}

.legal__inner p {
  color: var(--ink-2);
  max-width: 68ch;
}

.legal__inner h2 {
  margin-top: 18px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.legal__date {
  font-size: 0.9375rem;
}

/* Pie */
.footer__cta {
  margin-top: 18px;
}

.footer__follow {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.footer__follow b {
  color: #fff;
}

.footer__legal a {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .voices__grid,
  .faq__grid {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: 1fr;
  }

  .process li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .process li:first-child {
    border-top: 0;
  }

  .statusbar__ready {
    display: none;
  }
}

@media (max-width: 560px) {
  .notes {
    grid-template-columns: 1fr;
  }

  .notes li:nth-child(even) {
    translate: none;
  }

  .statusbar__stats {
    display: grid;
    gap: 2px;
  }
}

/* ==========================================================================
   Tema: titulares condensados, bloques de color y ofertas
   - Paleta «semáforo» del formato condicional: verde, amarillo y rojo.
   - El amarillo se reserva para lo que hay que mirar: ofertas, gratis y botones
     sobre fondo oscuro.
   ========================================================================== */
@font-face {
  font-family: "Bricolage Display";
  src: url("/assets/fonts/bricolage-grotesque-condensed.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  /* Sustituta ajustada para que el titular no salte al cargar la fuente */
  font-family: "Display Fallback";
  src: local("Arial Bold"), local("Arial");
  size-adjust: 82%;
  font-weight: 600 800;
}

:root {
  --display: "Bricolage Display", "Display Fallback", "Arial Narrow", sans-serif;
  --deep: #0b3a24;
  --deep-2: #0f4a2e;
  --mint: #e4f4e9;
  --yellow: #ffd84a;
  --yellow-soft: #fff5cc;
  --red: #d7311f;
  --cream: #f4f8f1;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.008em;
  line-height: 0.98;
}

.brand {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0;
}

.section__title {
  font-size: clamp(2.6rem, 1.5rem + 4.2vw, 4.5rem);
  line-height: 0.94;
}

.section__lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.section--tint {
  background: var(--mint);
  border-block: 0;
}

.section--mint {
  background: var(--mint);
}

/* Botones */
.btn {
  border-radius: 10px;
  font-weight: 700;
}

.btn--accent {
  --btn-bg: var(--yellow);
  --btn-fg: #14231b;
  --btn-bd: var(--yellow);
}

.btn--accent:hover {
  --btn-bg: #ffe689;
  --btn-bd: #ffe689;
}

.btn--big {
  min-height: 58px;
  padding: 14px 30px;
  font-size: 1.125rem;
}

/* Barra de promoción */
.promo {
  background: var(--yellow);
  color: #14231b;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.promo__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 18px;
  min-height: 42px;
  padding-block: 8px;
}

.promo p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  font-weight: 600;
}

.promo b {
  padding: 3px 10px 2px;
  border-radius: 4px;
  background: #14231b;
  color: var(--yellow);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transform: rotate(-2deg);
}

.promo a {
  color: #14231b;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Portada oscura con mural de plantillas
   -------------------------------------------------------------------------- */
.hero--dark {
  padding-block: 0;
  background: var(--deep);
  color: var(--cream);
  overflow: hidden;
}

.hero--dark::before {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(to right, #000 30%, transparent 62%);
  mask-image: linear-gradient(to right, #000 30%, transparent 62%);
}

.hero--dark .hero__cols {
  position: relative;
  z-index: 3;
  margin-bottom: 0;
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background: var(--deep-2);
  color: rgba(255, 255, 255, 0.6);
}

.hero--dark .hero__cols span {
  border-right-color: rgba(255, 255, 255, 0.09);
}

.hero--dark .hero__cols span.is-active {
  background: var(--yellow);
  color: #14231b;
  box-shadow: none;
}

.hero--dark .hero__grid {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 640px);
  align-content: center;
  min-height: clamp(540px, 44vw, 680px);
  padding-block: clamp(56px, 7vw, 92px);
}

.hero--dark .hero__copy {
  gap: 28px;
}

.hero--dark .selection {
  padding: 14px 22px 16px;
  margin-left: -22px;
  background: rgba(11, 58, 36, 0.55);
}

.hero--dark .selection::before {
  border-width: 3px;
  border-color: var(--green-300);
}

.hero--dark .selection::after {
  right: -6px;
  bottom: -6px;
  width: 11px;
  height: 11px;
  background: var(--green-300);
  outline-color: var(--deep);
}

.hero--dark .hero__title {
  max-width: none;
  color: #fff;
  font-size: clamp(3.5rem, 1.1rem + 8.6vw, 7.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.012em;
}

.hero--dark .hero__lead {
  max-width: 46ch;
  color: rgba(244, 248, 241, 0.86);
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
}

.hero--dark .hero__trust {
  color: rgba(244, 248, 241, 0.82);
}

.hero--dark .hero__trust svg {
  color: var(--yellow);
}

.hero--dark .hero__trust b {
  color: #fff;
}

.hero--dark .hero__trust a {
  color: var(--yellow);
}

.wall {
  position: absolute;
  z-index: 1;
  top: -22%;
  bottom: -22%;
  right: -5%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(56%, 900px);
  transform: rotate(-9deg);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%);
  mask-image: linear-gradient(to right, transparent, #000 22%);
}

.wall__track {
  display: grid;
  gap: 18px;
  animation: wall-drift 80s linear infinite;
  will-change: transform;
}

.wall__col--b .wall__track {
  animation-duration: 96s;
  animation-direction: reverse;
}

.wall__col--c .wall__track {
  animation-duration: 110s;
}

.wall img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.7);
}

@keyframes wall-drift {
  to {
    transform: translateY(calc(-50% - 9px));
  }
}

/* Sello de oferta */
.seal {
  position: absolute;
  z-index: 3;
  left: min(52%, 720px);
  bottom: clamp(36px, 6vw, 84px);
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: var(--yellow);
  color: #14231b;
  text-decoration: none;
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.7);
  transform: rotate(8deg);
  transition: transform 0.35s var(--ease-out);
}

.seal:hover {
  color: #14231b;
  transform: rotate(0deg) scale(1.06);
}

.seal__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: seal-spin 30s linear infinite;
}

.seal__ring text {
  fill: #14231b;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seal__pct {
  display: grid;
  justify-items: center;
  line-height: 0.9;
}

.seal__pct small {
  font-size: 0.8125rem;
  font-weight: 750;
}

.seal__pct b {
  color: var(--red);
  font-family: var(--display);
  font-size: 2.875rem;
  font-weight: 800;
  line-height: 0.95;
}

@keyframes seal-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Barra de estado verde, como la de Excel */
.statusbar {
  border: 0;
  background: var(--green-700);
  color: rgba(255, 255, 255, 0.9);
}

.statusbar__ready {
  color: rgba(255, 255, 255, 0.9);
}

.statusbar__stats b {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Tarjetas: precio grande, precio anterior y etiqueta de descuento
   -------------------------------------------------------------------------- */
.listing__media {
  border-radius: 14px;
}

.listing:hover .listing__media,
.listing:has(a:focus-visible) .listing__media {
  border-color: var(--green-700);
  box-shadow: 0 0 0 2px var(--green-700), 0 28px 46px -30px rgba(14, 59, 34, 0.7);
}

.listing__name {
  font-size: 1.125rem;
}

.listing__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1rem;
}

.listing__price b {
  font-family: var(--display);
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.listing__price s,
.pp__old {
  color: var(--ink-3);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

.sticker {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 12px 4px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  transform: rotate(-6deg);
  box-shadow: 0 10px 18px -8px rgba(110, 20, 8, 0.75);
}

.sticker--inline {
  position: static;
  display: inline-block;
  font-size: 1.375rem;
  transform: rotate(-4deg);
}

.badge--free {
  padding: 5px 11px 4px;
  border-radius: 6px;
  background: #c6efce;
  color: #0a5c1d;
  box-shadow: none;
  font-size: 0.8125rem;
  font-weight: 800;
}

.carousel__btn {
  width: 52px;
  height: 52px;
  border-color: var(--deep);
  background: var(--deep);
  color: #fff;
}

.carousel__btn:hover:not(:disabled) {
  border-color: var(--green-700);
  background: var(--green-700);
  color: #fff;
}

.carousel__btn:disabled {
  border-color: var(--line-2);
  background: transparent;
  color: var(--ink-3);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Gratis: bloque amarillo con el precio en grande
   -------------------------------------------------------------------------- */
.free--bold {
  position: relative;
  background: var(--yellow);
  color: #14231b;
  overflow: hidden;
}

.free--bold .section__lead {
  color: #3d3a1c;
  font-weight: 500;
}

.free__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}

.free__head .section__head {
  margin-bottom: 0;
}

.free__zero {
  display: flex;
  align-items: flex-start;
  gap: 0.05em;
  margin: 0 0 -0.06em;
  color: #14231b;
  font-family: var(--display);
  font-size: clamp(6.5rem, 2rem + 15vw, 14rem);
  font-weight: 800;
  line-height: 0.74;
  letter-spacing: -0.02em;
}

.free__zero span {
  margin-top: 0.1em;
  font-size: 0.26em;
  line-height: 1;
  letter-spacing: 0;
}

.free--bold .free__card {
  border: 0;
  box-shadow: 0 26px 46px -30px rgba(70, 52, 0, 0.75);
}

.free--bold .btn--primary {
  --btn-bg: var(--deep);
  --btn-bd: var(--deep);
}

.free--bold .btn--primary:hover {
  --btn-bg: var(--green-800);
  --btn-bd: var(--green-800);
}

/* --------------------------------------------------------------------------
   A medida: bloque verde profundo
   -------------------------------------------------------------------------- */
.section--deep {
  position: relative;
  background: var(--deep);
  color: var(--cream);
  isolation: isolate;
}

.section--deep::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: var(--cw) var(--rh);
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 55%);
  mask-image: linear-gradient(200deg, #000, transparent 55%);
}

.section--deep .section__title,
.section--deep .process__title {
  color: #fff;
}

.section--deep .section__lead,
.section--deep .svc__foot p {
  color: rgba(244, 248, 241, 0.86);
}

.section--deep .svc {
  border-color: transparent;
  box-shadow: 0 34px 60px -36px rgba(0, 0, 0, 0.8);
}

.section--deep .process {
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
}

.section--deep .process li {
  border-color: rgba(255, 255, 255, 0.16);
}

.section--deep .process h4 {
  color: #fff;
  font-size: 1.25rem;
}

.section--deep .process p {
  color: rgba(244, 248, 241, 0.82);
}

.section--deep .process__n {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border: 0;
  border-radius: 10px;
  background: var(--yellow);
  color: #14231b;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.svc__foot p {
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Opiniones: cifra grande y notas de celda
   -------------------------------------------------------------------------- */
.voices__count {
  display: grid;
  gap: 6px;
}

.voices__count b {
  color: var(--green-700);
  font-family: var(--display);
  font-size: clamp(5.5rem, 2.4rem + 11vw, 11rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.015em;
}

.voices__count span {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
}

.voices .section__title {
  font-size: clamp(1.9rem, 1.4rem + 1.7vw, 2.6rem);
  line-height: 1;
}

.note {
  border-color: #ead9a0;
  border-radius: 2px 16px 16px 16px;
  background: var(--yellow-soft);
  box-shadow: 0 24px 40px -32px rgba(90, 70, 0, 0.7);
}

.note::before {
  border-width: 15px 15px 0 0;
  border-color: var(--red) transparent transparent;
}

.note__avatar {
  background: var(--green-700);
  color: #fff;
}

.note__src {
  color: #5d5a3c;
}

.note__text {
  font-size: 1.3125rem;
}

/* --------------------------------------------------------------------------
   Cursos, comunidad y fichas
   -------------------------------------------------------------------------- */
.course--feature {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--cream);
  box-shadow: none;
}

.course--feature h3,
.course--feature .course__body p {
  color: #fff;
}

.community--bright {
  background: var(--green-700);
}

.community h2 {
  font-size: clamp(2.7rem, 1.5rem + 4.6vw, 4.75rem);
  line-height: 0.94;
}

.community--bright .community__lead {
  color: rgba(255, 255, 255, 0.94);
}

.community--bright .btn--light {
  --btn-bg: var(--yellow);
  --btn-bd: var(--yellow);
  --btn-fg: #14231b;
}

.community--bright .btn--light:hover {
  --btn-bg: #ffe689;
  --btn-bd: #ffe689;
}

.community--bright .perks {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(11, 58, 36, 0.28);
}

.community--bright .perks svg {
  color: var(--yellow);
}

.pp__title {
  font-size: clamp(2.5rem, 1.6rem + 3vw, 3.9rem);
  line-height: 0.94;
}

.pp__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.pp__amount {
  font-family: var(--display);
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
}

.pp__old {
  font-size: 1.3125rem;
}

.pp__promo {
  justify-self: start;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--yellow-soft);
  color: #14231b;
  font-size: 0.9875rem;
}

.buybar__price {
  font-family: var(--display);
  font-size: 1.5rem;
}

.shop__banner {
  background-color: var(--deep);
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(100deg, var(--deep) 30%, var(--green-700) 78%, var(--yellow) 135%);
}

.shop__name {
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);
  line-height: 0.94;
}

.shop__sections .is-offer {
  color: var(--red);
  font-weight: 750;
}

.shop__sections .is-offer[aria-pressed="true"] {
  background: #fdecea;
  color: #a32114;
  box-shadow: inset 3px 0 0 var(--red);
}

@media (max-width: 980px) {
  .hero--dark .hero__grid {
    min-height: 0;
    padding-block: clamp(40px, 8vw, 64px) 28px;
  }

  .hero--dark::before {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .wall {
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
    left: -14%;
    width: 128%;
    height: 330px;
    margin-bottom: -46px;
    gap: 12px;
    transform: rotate(-7deg);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26%);
    mask-image: linear-gradient(to bottom, transparent, #000 26%);
  }

  .wall__track {
    gap: 12px;
  }

  .wall img {
    border-radius: 9px;
  }

  @keyframes wall-drift {
    to {
      transform: translateY(calc(-50% - 6px));
    }
  }

  .seal {
    left: auto;
    right: 18px;
    bottom: 150px;
    width: 128px;
    height: 128px;
  }

  .seal__pct b {
    font-size: 2.375rem;
  }

  .shop__sections .is-offer[aria-pressed="true"] {
    border-color: var(--red);
  }
}

@media (max-width: 760px) {
  .free__head {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .free__zero {
    font-size: 7rem;
  }

  .promo__row {
    justify-content: flex-start;
  }

  .promo p {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wall__track,
  .seal__ring {
    animation: none;
  }
}

/* Ajustes del tema */
.section--deep .svc {
  color: var(--ink);
}

.course--feature .level {
  color: #fff;
}

.course--feature .level__cells i {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.course--feature .level__cells i:nth-child(-n + 2) {
  border-color: var(--yellow);
  background: var(--yellow);
}

.course--feature .course__topics li {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.course--feature .course__cta {
  --btn-bg: var(--yellow);
  --btn-bd: var(--yellow);
  --btn-fg: #14231b;
}

@media (max-width: 760px) {
  .promo {
    font-size: 0.875rem;
  }

  .promo__row {
    justify-content: space-between;
    gap: 4px 12px;
  }

  .promo__more {
    display: none;
  }

  .promo b {
    font-size: 0.9375rem;
  }

  .hero--dark .selection {
    padding: 10px 12px 12px;
    margin-left: -12px;
  }
}

.btn--dark {
  --btn-bg: var(--deep);
  --btn-fg: #fff;
  --btn-bd: var(--deep);
}

.btn--dark:hover {
  --btn-bg: var(--green-800);
  --btn-bd: var(--green-800);
}

/* Oferta en la portada de la tienda */
.shop__bannerrow {
  display: flex;
  justify-content: flex-end;
  padding-top: clamp(16px, 3vw, 36px);
}

.shop__deal {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 440px;
  padding: 12px 20px 12px 14px;
  border-radius: 12px;
  background: var(--yellow);
  color: #14231b;
  font-size: 0.9875rem;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 20px 36px -20px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s var(--ease-out);
}

.shop__deal:hover {
  color: #14231b;
  transform: translateY(-2px);
}

.shop__deal b {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.05;
}

@media (max-width: 760px) {
  .shop__dealmore {
    display: none;
  }

  .shop__deal {
    padding: 8px 14px 8px 10px;
  }

  .shop__deal b {
    font-size: 1.25rem;
  }

  /* Gratis: fila deslizable en lugar de cuatro tarjetas apiladas */
  .free--bold .free__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 26px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .free--bold .free__card {
    scroll-snap-align: start;
  }
}

/* Foco visible sobre fondos de color */
.promo :focus-visible,
.free--bold :focus-visible,
.seal:focus-visible,
.shop__deal:focus-visible {
  outline-color: #14231b;
}

.community--bright :focus-visible {
  outline-color: #fff;
}

/* ==========================================================================
   Colección 2027: franja destacada, insignias, café y descarga gratis
   ========================================================================== */
.section__kicker {
  margin-bottom: 6px;
  color: var(--green-700);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge--new {
  padding: 5px 11px 4px;
  border-radius: 6px;
  background: var(--yellow);
  color: #14231b;
  font-size: 0.8125rem;
  font-weight: 800;
}

.listing__media .badge--new {
  left: auto;
  right: 10px;
}

.featured--col {
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.shop__sections .is-new {
  font-weight: 750;
}

/* Franja de la plantilla destacada */
.spot {
  padding-block: 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.spot__row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  padding: 14px;
  border: 1px solid var(--line-2);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius-l);
  background: linear-gradient(90deg, #fffbea, var(--paper) 55%);
}

.spot__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  background: var(--head);
}

.spot__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spot__kicker {
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spot__title {
  margin-top: 2px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.05;
}

.spot__title a {
  color: var(--ink);
  text-decoration: none;
}

.spot__title a:hover {
  color: var(--green-800);
}

.spot__tag {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.spot__buy {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.spot__price {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.spot__price b {
  font-size: 1.625rem;
  font-weight: 800;
}

.spot__price s {
  color: var(--ink-3);
  font-weight: 600;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

.spot__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 760px) {
  .spot__row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .spot__buy {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .spot__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .spot__kicker {
    font-size: 0.75rem;
  }
}

/* Invítame a un café (encabezado) */
.cafe-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid #f1cf4a;
  border-radius: 999px;
  background: #fff6cc;
  color: #4a3a00;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}

.cafe-link:hover {
  border-color: #d9b21d;
  background: var(--yellow);
  color: #2b2200;
}

.cafe-link svg {
  width: 17px;
  height: 17px;
}

.menu__item--cafe {
  margin-left: 4px;
}

.menu__link,
.brand span {
  white-space: nowrap;
}

@media (min-width: 981px) and (max-width: 1240px) {
  .menu__link {
    padding-inline: 9px;
    font-size: 0.9375rem;
  }

  .menu__link[href*="facebook"] {
    display: none;
  }
}

@media (min-width: 981px) and (max-width: 1120px) {
  .cafe-link {
    padding-inline: 10px;
  }

  .cafe-link__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 980px) {
  .menu__item--cafe {
    margin: 8px 0 0;
  }

  .cafe-link {
    justify-content: center;
    width: 100%;
    min-height: 46px;
  }
}

/* Ficha: video */
.pp__video {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 auto clamp(24px, 3vw, 36px);
  max-width: 520px;
}

.pp__video video {
  width: 100%;
  height: auto;
  border-radius: var(--radius-l);
  background: var(--deep);
  box-shadow: var(--shadow-window);
}

.pp__video figcaption {
  color: var(--ink-3);
  font-size: 0.875rem;
}

/* Diálogo de descarga gratis */
.lead {
  width: min(100vw - 24px, 600px);
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: clamp(22px, 4vw, 34px);
  border: 0;
  border-radius: var(--radius-l);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.6);
  overflow: auto;
}

.lead::backdrop {
  background: rgba(11, 46, 27, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lead[open] {
  animation: viewer-in 0.28s var(--ease-out);
}

.lead__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--head);
  color: var(--ink-2);
  cursor: pointer;
}

.lead__close:hover {
  background: var(--green-50);
  color: var(--green-800);
}

.lead__close svg {
  width: 20px;
  height: 20px;
}

.lead__form,
.lead__done {
  display: grid;
  gap: 14px;
}

.lead__form[hidden],
.lead__done[hidden] {
  display: none;
}

.lead__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 700;
}

.lead__title {
  padding-right: 36px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.05;
}

.lead__title:focus {
  outline: none;
}

.lead__lead {
  color: var(--ink-2);
}

.lead__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  cursor: pointer;
}

.lead .lead__check input {
  flex: none;
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--green-700);
  -webkit-appearance: auto;
  appearance: auto;
}

.lead__submit {
  justify-self: stretch;
}

.cafe-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 14px;
  padding: 16px;
  border: 1px solid #f1cf4a;
  border-radius: var(--radius-l);
  background: #fffbea;
}

.cafe-card__icon {
  width: 34px;
  height: 34px;
  color: #8a6a00;
}

.cafe-card__title {
  font-weight: 800;
}

.cafe-card p:not(.cafe-card__title) {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.cafe-card .btn {
  grid-column: 1 / -1;
}

.lead__done > .btn {
  justify-self: start;
}

@media (max-width: 560px) {
  .lead .form__row {
    grid-template-columns: 1fr;
  }
}

.lead .lead__form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
