/*
 * qlynk.mx · hoja de la portada (index.php), 9-nov-2026.
 *
 * Es la hoja de la propuesta aprobada
 * docs/evidencia/portada_propuesta_2026-11-08_v2.html, con estos cambios:
 *   - fuentes del sistema en lugar de Google Fonts (privacidad del visitante;
 *     tests/test_sri.py prohíbe fonts.googleapis/fonts.gstatic);
 *   - el selector Mensual | Anual son dos radios y sus etiquetas (sin JS);
 *   - fuera las reglas de la tarjeta oculta por orden de José (8-nov-2026);
 *   - al final, las piezas propias de la implementación.
 * Lo que NO hace: no carga fuentes ni nada de otro dominio, no pinta precios
 * (los pinta index.php desde la tabla `plans`).
 */
:root {
  color-scheme: light;
  --ink: #172D26;
  --deep: #182C27;
  --forest: #24473B;
  --subtle: #486057;
  --cream: #FAF8F2;
  --paper: #FFFEFA;
  --sand: #F0EDE3;
  --line: #DDE3D9;
  --lime: #DDF28E;
  --mint: #E9F2E5;
  --orange: #C56A48;
  --white: #FFFFFF;
  --radius-lg: 26px;
  --shadow: 0 16px 48px rgba(20,45,35,.10), 0 2px 7px rgba(20,45,35,.045);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #AD5C39; outline-offset: 4px; }
svg { display: block; }

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  border-radius: 8px;
}

.skip-link:focus { top: 15px; }

/* Encabezado */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,248,242,.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(25,55,39,.09);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--deep);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -1.7px;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: var(--deep);
  display: grid;
  place-items: center;
  color: var(--lime);
  transform: rotate(-7deg);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  transform: rotate(7deg);
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--cream);
  padding: 18px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 25px rgba(15,34,25,.10);
}

.site-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.site-nav a {
  display: block;
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--subtle);
  font-weight: 700;
  font-size: 14px;
  transition: .2s ease;
}

.site-nav a:hover {
  background: var(--mint);
  color: var(--deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .header-cta { display: none; }

.menu-toggle {
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--deep);
  cursor: pointer;
}

.menu-toggle .close-icon { display: none; }
.menu-toggle[aria-expanded="true"] .close-icon { display: block; }
.menu-toggle[aria-expanded="true"] .open-icon { display: none; }

/* Botones y tipografía */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 51px;
  padding: 12px 21px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border .2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 18px; height: 18px; }

.btn-dark {
  background: var(--deep);
  color: var(--white);
  box-shadow: 0 9px 20px rgba(24,44,39,.17);
}

.btn-dark:hover { background: #355949; }

.btn-outline {
  border-color: #B8C9B8;
  background: transparent;
  color: var(--deep);
}

.btn-outline:hover {
  background: var(--white);
  border-color: var(--deep);
}

.btn-lime {
  background: var(--lime);
  color: var(--deep);
  box-shadow: 0 8px 22px rgba(183,214,111,.18);
}

.btn-lime:hover { background: #CBED67; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #3D6755;
}

.eyebrow .eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  line-height: 1.11;
  letter-spacing: -.052em;
}

h1 {
  font-size: clamp(53px, 10vw, 94px);
  font-weight: 800;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
  margin-bottom: 16px;
}

h3 { font-size: 22px; font-weight: 800; }

.display-serif {
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -.065em;
}

.section { padding-block: 92px; }

.section-head {
  max-width: 690px;
  margin-bottom: 40px;
}

.section-head p:last-child {
  font-size: 17px;
  line-height: 1.65;
  color: var(--subtle);
  margin-bottom: 0;
}

/* 01 · Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 68px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 94% 18%, rgba(221,242,142,.48), transparent 30%),
    radial-gradient(circle at 0 93%, rgba(204,223,199,.33), transparent 38%);
}

.hero-layout {
  display: grid;
  gap: 26px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.hero .hero-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  background: #E7EFDB;
  color: #315443;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 25px;
}

.hero-eyebrow svg { width: 15px; height: 15px; }
.hero h1 { max-width: 610px; }
.hero h1 .display-serif { color: #41694F; }

.hero-intro {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: #3E574E;
  max-width: 535px;
  margin-bottom: 29px;
}

.hero-intro strong {
  color: var(--deep);
  font-weight: 800;
}

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

.hero-buttons .btn { min-width: 160px; }

.hero-footnote {
  margin-top: 23px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #3F5A50;
}

.hero-footnote span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-footnote .icon {
  width: 16px;
  height: 16px;
  color: #387956;
}

.hero-explain {
  max-width: 520px;
  margin-top: 11px;
  color: #536960;
  font-size: 12px;
  line-height: 1.6;
}

/* Teléfono ilustrativo */

.visual-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 647px;
  margin-inline: auto;
  display: grid;
  align-items: center;
  justify-items: center;
  isolation: isolate;
}

.visual-stage::before {
  content: "";
  width: min(480px,95%);
  aspect-ratio: 1;
  background: #D9E7CE;
  border-radius: 47% 53% 47% 53% / 45% 43% 57% 55%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) rotate(-16deg);
  z-index: -2;
  box-shadow: inset 0 0 0 36px rgba(255,255,255,.12);
}

.visual-stage::after {
  content: "";
  position: absolute;
  width: min(420px,90%);
  aspect-ratio: 1;
  border: 1px solid rgba(43,92,63,.20);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) scale(1.12);
  z-index: -1;
}

.phone {
  position: relative;
  width: min(296px, 78vw);
  height: 618px;
  padding: 8px;
  border-radius: 44px;
  background: #233D35;
  box-shadow:
    0 30px 65px rgba(17,37,29,.25),
    0 10px 18px rgba(15,33,24,.16),
    inset 0 0 0 2px #486255;
  transform: rotate(3.5deg);
  animation: phone-appear .85s cubic-bezier(.2,.75,.2,1) both;
}

.phone::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 156px;
  width: 4px;
  height: 70px;
  border-radius: 0 3px 3px 0;
  background: #365649;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: #FFFDF8;
  border-radius: 37px;
}

.phone-island {
  position: absolute;
  z-index: 4;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 77px;
  height: 18px;
  border-radius: 15px;
  background: #233D35;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 21px 10px;
  color: #24322D;
  font-size: 10px;
  font-weight: 800;
}

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

.status-bits i {
  background: #233D35;
  border-radius: 3px;
  height: 7px;
  width: 7px;
  display: block;
}

.status-bits i:nth-child(2) { height: 9px; }

.status-bits i:last-child {
  width: 15px;
  height: 8px;
  border: 1px solid #233D35;
  background: linear-gradient(90deg,#233D35 80%,transparent 80%);
}

.phone-brand {
  padding: 10px 21px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cafe-name {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: #315543;
}

.cafe-sub {
  display: block;
  margin-top: 5px;
  font: 800 7px var(--font);
  letter-spacing: .17em;
  color: #A26F5F;
}

.phone-brand .icon { width: 18px; height: 18px; }

.phone-photo {
  height: 150px;
  margin: 0 14px;
  background: #E4D9C1;
  overflow: hidden;
  border-radius: 15px;
  position: relative;
}

.phone-photo svg { width: 100%; height: 100%; }

.phone-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-sticker {
  position: absolute;
  right: 8px;
  top: 8px;
  background: #FFFEFA;
  font-size: 8px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 50px;
  color: #48664D;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.phone-content { padding: 14px 17px 12px; }

.menu-smallcap {
  margin: 0 0 5px;
  color: #9B735A;
  font-size: 8px;
  letter-spacing: .16em;
  font-weight: 800;
  text-transform: uppercase;
}

.phone-title {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.08;
  color: #2E4F40;
  margin: 0 0 12px;
}

.phone-categories {
  display: flex;
  gap: 6px;
  overflow: hidden;
  margin-bottom: 14px;
}

.category {
  white-space: nowrap;
  font-size: 8px;
  font-weight: 800;
  border: 1px solid #E0E5D8;
  border-radius: 30px;
  padding: 6px 9px;
  color: #5B6B60;
}

.category.active {
  background: #335C49;
  border-color: #335C49;
  color: var(--white);
}

.menu-list-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #365746;
  padding-bottom: 5px;
}

.menu-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #ECEDE5;
}

.menu-thumb {
  width: 50px;
  height: 48px;
  flex: 0 0 50px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: #E4E1D5;
}

.menu-thumb::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #FAF5E5;
  box-shadow: 0 3px 5px rgba(0,0,0,.12);
}

.menu-thumb::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: conic-gradient(
    #407E50 0 36%,
    #E4B566 36% 68%,
    #B75A3E 68% 84%,
    #407E50 84% 100%
  );
}

.menu-thumb.coffee { background: #DCC7AE; }

.menu-thumb.coffee::after {
  background: radial-gradient(
    circle at 40% 40%,
    #E4C39A 0 26%,
    #8D5036 27% 100%
  );
}

.menu-thumb.bread { background: #F0E1BE; }

.menu-thumb.bread::after {
  background: radial-gradient(
    ellipse at 50% 50%,
    #DDA36C 0 65%,
    #7D4D32 66% 100%
  );
  transform: rotate(-23deg);
}

/* v2: miniaturas con foto real; las ilustraciones CSS de arriba quedan sin uso */
.menu-thumb-photo {
  width: 50px;
  height: 48px;
  flex: 0 0 50px;
  border-radius: 10px;
  object-fit: cover;
  background: #E4E1D5;
}

.menu-item-desc { flex: 1; min-width: 0; }

.menu-item-desc b {
  display: block;
  font-size: 10px;
  line-height: 1.3;
  color: #33483D;
}

.menu-item-desc small {
  display: block;
  margin-top: 3px;
  color: #8C9389;
  font-size: 8px;
  line-height: 1.25;
}

.menu-item-price {
  font-size: 11px;
  font-weight: 800;
  color: #315D46;
}

.phone-homebar {
  position: absolute;
  width: 90px;
  height: 4px;
  border-radius: 5px;
  background: #2B3D34;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
}

.float-card {
  position: absolute;
  border-radius: 17px;
  background: rgba(255,255,255,.98);
  border: 1px solid #E9EEE3;
  box-shadow: 0 16px 36px rgba(26,60,38,.13);
  animation: float-soft 5s ease-in-out infinite;
}

.float-link {
  z-index: 3;
  top: 150px;
  left: 0;
  padding: 12px 15px;
  transform: rotate(-6deg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.float-link .icon-wrap {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #E4F1D6;
  color: #386449;
}

.float-link small {
  display: block;
  font-size: 10px;
  color: #728376;
  font-weight: 700;
}

.float-link strong {
  display: block;
  font-size: 12px;
  color: #28533E;
}

.float-qr {
  z-index: 3;
  bottom: 6px;
  right: -2px;
  padding: 12px 12px 10px;
  text-align: center;
  animation-delay: -2s;
  transform: rotate(5deg);
}

.float-qr svg {
  width: 75px;
  height: 75px;
  background: white;
  border-radius: 4px;
}

.float-qr small {
  display: block;
  margin-top: 6px;
  color: #537063;
  font-size: 9px;
  font-weight: 800;
}

.proof-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px 28px;
  border-top: 1px solid #DDE4D7;
  border-bottom: 1px solid #DDE4D7;
  padding-block: 20px;
  color: #52695E;
  font-size: 13px;
  font-weight: 700;
}

.proof-bar b { color: var(--deep); }

.proof-bar .icon {
  color: #4D7658;
  width: 18px;
  height: 18px;
}

.proof-bar span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* 02 · Cómo funciona */

.how-section { padding-top: 99px; }

.steps {
  display: grid;
  gap: 17px;
  counter-reset: pasos;
}

.step-card {
  position: relative;
  min-height: 238px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid #E5E9DF;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px rgba(26,51,38,.04);
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  bottom: -70px;
  right: -55px;
  border: 28px solid #F3F5ED;
  border-radius: 50%;
  width: 170px;
  aspect-ratio: 1;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.step-index {
  color: #AD6450;
  font: 700 31px/1 var(--display);
  letter-spacing: -.03em;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  border-radius: 15px;
  background: #ECF3E0;
  color: #305D45;
}

.step-card h3 {
  margin-bottom: 9px;
  position: relative;
}

.step-card p {
  font-size: 14px;
  color: var(--subtle);
  margin-bottom: 0;
  max-width: 265px;
  position: relative;
}

/* 03 · Funciones */

.features-section {
  background: #EDEFE5;
  padding-block: 102px;
}

.features-grid {
  display: grid;
  gap: 15px;
}

.feature-card {
  min-height: 253px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 27px;
  border-radius: 25px;
  background: var(--paper);
  border: 1px solid rgba(58,89,69,.09);
  box-shadow: 0 15px 40px rgba(18,44,30,.045);
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(18,44,30,.12);
}

.feature-card.primary {
  background: var(--deep);
  color: var(--white);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.feature-card.primary::after {
  content: "";
  position: absolute;
  right: -72px;
  top: -90px;
  width: 205px;
  height: 205px;
  border-radius: 50%;
  background: rgba(222,242,145,.10);
  border: 1px solid rgba(222,242,145,.20);
  z-index: -1;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin-bottom: auto;
  color: #315E48;
  background: #E8F0E2;
}

.primary .feature-icon {
  color: var(--deep);
  background: var(--lime);
}

.feature-icon .icon { width: 27px; height: 27px; }

.feature-card h3 { margin: 27px 0 9px; }

.feature-card p {
  font-size: 14px;
  color: #52655A;
  margin: 0;
  max-width: 285px;
}

.feature-card.primary p { color: #D2E5D4; }

.feature-detail {
  display: inline-block;
  color: #4F6859;
  font-size: 12px;
  font-weight: 800;
  margin-top: 14px;
}

.feature-card.primary .feature-detail { color: var(--lime); }

/* 04 · Casos */

.uses-section { padding-block: 98px; }

.uses-grid {
  display: grid;
  gap: 15px;
}

/* 04 · v2: el mostrador y la galería de ejemplos por giro */

.mostrador {
  display: grid;
  gap: 12px;
  margin-bottom: 44px;
}

.mostrador-item {
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px dashed #B9C8B8;
  color: #4A6156;
  font-size: 14px;
  line-height: 1.55;
}

.mostrador-item b {
  display: block;
  color: var(--deep);
  font-size: 15px;
  margin-bottom: 4px;
}

.mostrador-item.is-qlynk {
  background: var(--deep);
  border: 1px solid var(--deep);
  color: #D7E7D9;
  box-shadow: var(--shadow);
}

.mostrador-item.is-qlynk b {
  color: var(--lime);
  font-size: 17px;
}

.giros-grid {
  display: grid;
  gap: 16px;
}

.giro-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.giro-card:hover {
  transform: translateY(-3px);
  border-color: #9FBCA2;
  box-shadow: 0 16px 36px rgba(18,44,30,.08);
}

.giro-media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  background: #DCE4D8;
  overflow: hidden;
}

.giro-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.giro-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,28,22,0) 38%, rgba(12,28,22,.62) 70%, rgba(12,28,22,.9) 100%);
}

.giro-where {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}

.giro-where .icon {
  width: 16px;
  height: 16px;
  color: var(--lime);
}

.giro-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.giro-body h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  margin-bottom: 7px;
}

.giro-body h3 .giro-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  background: var(--mint);
  color: #2F6247;
}

.giro-body h3 .icon { width: 19px; height: 19px; }

.giro-body p {
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.giro-usa {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #E6EBE1;
}

.giro-usa span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5A6F63;
  margin-bottom: 7px;
}

.giro-piezas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.giro-piezas li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 100px;
  background: var(--mint);
  color: #22503A;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.giro-piezas .icon { width: 13px; height: 13px; }

.giros-more {
  margin-top: 30px;
  padding: 24px 26px;
  border-radius: 22px;
  background: #EDEFE5;
  display: grid;
  gap: 16px;
  align-items: center;
}

.giros-more p {
  margin: 0;
  color: #3F574C;
  font-size: 15px;
  line-height: 1.6;
}

.giros-more p b { color: var(--deep); }
.giros-more .btn { justify-self: start; }

.use-card {
  padding: 28px 23px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--paper);
  min-height: 205px;
  transition: border-color .22s ease, transform .22s ease;
}

.use-card:hover {
  transform: translateY(-3px);
  border-color: #9FBCA2;
}

.use-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--mint);
  color: #3F7254;
  margin-bottom: 24px;
}

.use-card:nth-child(2) .use-icon {
  background: #F6E5D7;
  color: #9A563C;
}

.use-card:nth-child(3) .use-icon {
  background: #E8E7DE;
  color: #606951;
}

.use-card:nth-child(4) .use-icon {
  background: #EAE7F1;
  color: #655A8A;
}

.use-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.use-card p {
  color: var(--subtle);
  font-size: 14px;
  margin-bottom: 0;
}

/* 05 · Precios */

.pricing-section {
  background: #E6EDE1;
  padding-block: 104px;
}

.pricing-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  margin-bottom: 35px;
}

.pricing-top .section-head { margin-bottom: 0; }

.pricing-top .section-head p:last-child { max-width: 540px; }

.billing-switch {
  background: var(--paper);
  padding: 5px;
  display: inline-flex;
  gap: 2px;
  align-items: center;
  border: 1px solid #D0DCD0;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(20,40,24,.05);
}

.billing-switch label {
  appearance: none;
  border: 0;
  padding: 11px 15px;
  border-radius: 11px;
  background: transparent;
  color: #596E60;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: .2s ease;
}

#ciclo-mensual:checked ~ .zona-planes .billing-switch label[for="ciclo-mensual"],
#ciclo-anual:checked ~ .zona-planes .billing-switch label[for="ciclo-anual"] {
  background: var(--deep);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

.billing-switch .save-pill {
  display: inline-block;
  font-size: 10px;
  margin-left: 5px;
  padding: 3px 6px;
  border-radius: 50px;
  color: #24513A;
  background: var(--lime);
  white-space: nowrap;
}

.annual-banner {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #2B6545;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 14px;
}

.annual-banner { visibility: hidden; }
#ciclo-anual:checked ~ .zona-planes .annual-banner { visibility: visible; }
.annual-banner .icon { width: 19px; height: 19px; }

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 15px;
  align-items: stretch;
}

.price-card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid #D7E0D4;
  border-radius: 24px;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 13px 35px rgba(24,51,37,.055);
  position: relative;
}

.price-card.popular {
  background: var(--deep);
  color: var(--white);
  border-color: var(--deep);
  box-shadow: 0 23px 48px rgba(20,52,35,.18);
}

.plan-label-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  min-height: 32px;
}

.plan-name {
  color: inherit;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.popular-pill {
  color: var(--deep);
  background: var(--lime);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
  white-space: nowrap;
}

.plan-lead {
  color: #67766C;
  font-size: 12px;
  min-height: 30px;
  margin: 6px 0 19px;
}

.popular .plan-lead { color: #C9D9CE; }

.plan-price {
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 2px;
  letter-spacing: -.07em;
  margin-bottom: 8px;
}

.plan-price .money-sign {
  font-size: 26px;
  font-weight: 800;
  align-self: flex-start;
  letter-spacing: -.03em;
  transform: translateY(3px);
}

.plan-price .amount {
  font-size: clamp(38px,3.2vw,48px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan-price .cycle {
  color: #67786D;
  margin-left: 5px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.popular .plan-price .cycle { color: #D1DFD4; }

.plan-billing {
  min-height: 34px;
  color: #68796D;
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 15px;
}

.popular .plan-billing { color: #C3D7CA; }

.price-rule {
  border: 0;
  border-top: 1px solid #E3E9DF;
  margin: 5px 0 18px;
}

.popular .price-rule { border-color: #416052; }

.price-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
  flex: 1;
  align-content: start;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #3F5849;
  font-size: 13px;
  line-height: 1.4;
}

.price-features li .icon {
  width: 17px;
  height: 17px;
  color: #3F8A5A;
  margin-top: 1px;
}

.popular .price-features li { color: #E6EEE8; }
.popular .price-features li .icon { color: var(--lime); }

.price-card .btn {
  margin-top: auto;
  padding-inline: 10px;
}

.price-card.popular .btn {
  background: var(--lime);
  color: var(--deep);
}

.price-card.popular .btn:hover { background: #C9EA77; }


.pricing-disclaimer {
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: #4C6256;
  margin: 23px auto 0;
  max-width: 750px;
}

.pricing-disclaimer a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
}

/* 06 · Preguntas */

.faq-section { padding-block: 101px; }

.faq-layout {
  display: grid;
  gap: 22px;
}

.faq-intro { max-width: 480px; }

.faq-intro p:last-child {
  color: var(--subtle);
  font-size: 16px;
}

.faq-list {
  display: grid;
  gap: 11px;
}

.faq-item {
  border: 1px solid #E2E7DC;
  border-radius: 16px;
  background: var(--paper);
  overflow: hidden;
}

.faq-item[open] {
  border-color: #B5CBB4;
  box-shadow: 0 8px 26px rgba(25,60,38,.045);
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  font-size: 15px;
  font-weight: 800;
  color: var(--deep);
}

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

.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  background: #ECF3E6;
  color: #35604A;
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--deep);
  color: #fff;
}

.faq-item .answer {
  padding: 0 21px 21px;
  font-size: 14px;
  color: #4F6658;
  line-height: 1.68;
}

.faq-item .answer p { margin: 0; }
.faq-item .answer p + p,
.faq-item .answer ul + p { margin-top: 10px; }

.faq-item .answer ul {
  margin: 10px 0 0;
  padding-left: 19px;
  display: grid;
  gap: 5px;
}

.faq-item .answer li b { color: var(--deep); }

.faq-item .answer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 07 · Cierre y pie */

.closing {
  background: var(--deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding-block: 85px;
}

.closing::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  border: 65px solid rgba(215,242,154,.075);
}

.closing::after {
  content: "";
  position: absolute;
  left: -130px;
  bottom: -250px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(222,242,145,.17);
}

.closing-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.closing .eyebrow { color: var(--lime); }

.closing h2 {
  max-width: 690px;
  font-size: clamp(40px,6vw,66px);
  margin: 12px 0 15px;
}

.closing h2 .display-serif { color: var(--lime); }

.closing p {
  color: #D4E4D6;
  max-width: 545px;
  margin: 0;
  font-size: 16px;
}

.closing-buttons {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

.closing-buttons .btn-outline {
  color: white;
  border-color: #6C8B77;
}

.closing-buttons .btn-outline:hover { background: #2C4D3E; }

.site-footer {
  background: #13261F;
  color: #D2DED4;
  padding-block: 35px 25px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 27px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer .brand { color: #fff; }

.site-footer .brand-mark {
  background: var(--lime);
  color: var(--deep);
}

.footer-tag {
  font-size: 13px;
  margin: 11px 0 0;
  max-width: 270px;
  color: #B0C7B7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  margin-top: 31px;
  padding-top: 21px;
  border-top: 1px solid #2D4639;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #9FB7A7;
}

@keyframes phone-appear {
  from { opacity: 0; transform: translateY(25px) rotate(5deg); }
  to { opacity: 1; transform: translateY(0) rotate(3.5deg); }
}

@keyframes float-soft {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

/* Adaptación a tabletas */

@media (min-width: 560px) {
  .hero { padding-top: 84px; }
  .hero-buttons .btn { min-width: 192px; }
  .float-link { left: 15px; }
  .float-qr { right: 10px; }

  .features-grid,
  .uses-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

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


  .mostrador { gap: 14px; }

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

  .giros-more {
    grid-template-columns: 1fr auto;
    gap: 24px;
  }
}

@media (min-width: 760px) {
  .container {
    width: min(1160px,calc(100% - 64px));
  }

  .site-nav {
    display: flex;
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    gap: 2px;
    align-items: center;
    margin-left: auto;
  }

  .site-nav a { padding: 9px 11px; }
  .menu-toggle { display: none; }

  .header-actions .header-cta {
    display: inline-flex;
    min-height: 42px;
    border-radius: 11px;
    padding: 10px 15px;
  }

  .hero-layout {
    grid-template-columns: 1.06fr .94fr;
    gap: 22px;
  }

  .hero { padding: 70px 0 76px; }
  .visual-stage { min-height: 650px; }

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

  .mostrador {
    grid-template-columns: 1fr 1.35fr 1fr;
    align-items: center;
  }

  .faq-layout {
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
  }

  .faq-intro {
    position: sticky;
    top: 105px;
    align-self: start;
  }

  .closing-layout {
    flex-direction: row;
    align-items: center;
  }

  .footer-top {
    flex-direction: row;
    align-items: flex-start;
  }

  .footer-links { justify-content: flex-end; }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Escritorio */

@media (min-width: 1000px) {
  .hero { padding: 84px 0 85px; }

  .hero-layout {
    grid-template-columns: 1.12fr .88fr;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(79px,7.4vw,105px);
  }

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

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

  .pricing-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

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

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

}

/* Teléfonos pequeños */

@media (max-width: 400px) {
  .hero { padding-top: 46px; }
  .visual-stage { min-height: 610px; }

  .phone {
    height: 590px;
    width: min(278px,76vw);
  }

  .float-link {
    top: 120px;
    left: -7px;
    padding: 9px;
  }

  .float-link .icon-wrap {
    width: 30px;
    height: 30px;
  }

  .float-link strong { font-size: 10px; }

  .float-qr {
    right: -5px;
    bottom: auto;
    top: 175px;
    padding: 8px;
  }

  .float-qr svg { width: 63px; height: 63px; }
  .phone-photo { height: 128px; }
  .phone-content { padding-top: 10px; }
  .phone-title { margin-bottom: 9px; }
  .menu-item { padding: 7px 0; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

/* ── Piezas propias de la implementación en qlynk.mx (9-nov-2026) ─────────── */

/* Selector Mensual | Anual sin JavaScript: dos radios ocultos delante de la
   zona de planes y el combinador «~». Si un bloqueador corta el script, el
   selector sigue funcionando y la CSP no necesita nada más. */
.ciclo-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.billing-switch label { margin: 0; line-height: 1.2; }

#ciclo-mensual:focus-visible ~ .zona-planes .billing-switch label[for="ciclo-mensual"],
#ciclo-anual:focus-visible ~ .zona-planes .billing-switch label[for="ciclo-anual"] {
  outline: 3px solid #AD5C39;
  outline-offset: 2px;
}

.solo-anual { display: none; }
#ciclo-anual:checked ~ .zona-planes .solo-anual { display: block; }
#ciclo-anual:checked ~ .zona-planes .solo-mensual { display: none; }

/* El nombre del plan es un <h3> (orden de encabezados y contrato de las
   pruebas), con el mismo aspecto que el <span class="plan-name"> propuesto. */
h3.plan-name { margin: 0; line-height: 1.2; }

.price-card .boton-plan { margin-top: auto; }

.price-card .letra-chica {
  font-size: 11px;
  line-height: 1.5;
  color: #5D6F63;
  margin: -10px 0 18px;
}

.popular .letra-chica { color: #C3D7CA; }

.planes-sin-datos {
  text-align: center;
  color: #4C6256;
  max-width: 620px;
  margin: 0 auto;
}

.planes-sin-datos a,
.feature-link,
.giros-more .giros-ideas {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
}

/* Precios del teléfono ilustrativo: el signo lo pone la hoja, no el HTML.
   Así la portada sin base de datos no contiene ningún «$» (prueba del
   escaparate: «ni un solo precio inventado»), y el dibujo se ve igual. */
.menu-item-price::before { content: "\24"; }

/* Enlace a la página por intención (sólo con seo.paginas_verticales). */
.feature-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: #2E5842;
}

.feature-card.primary .feature-link { color: var(--lime); }

/* Crédito visible de cada foto (licencia Unsplash). */
.giro-credito {
  margin: 0;
  padding: 0 20px 14px;
  font-size: 11px;
  color: #5D6F63;
}

.giro-credito a { text-decoration: underline; text-underline-offset: 2px; }

/* Gancho de factura: los textos viven sólo en partials/bloque_factura.php. */
.bloque-factura {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.bloque-factura__icono {
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bloque-factura__contenido { min-width: 0; }

.bloque-factura__titulo,
.bloque-factura__subtitulo,
.bloque-factura__legal { margin: 0; }

.bloque-factura__titulo {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
}

.bloque-factura__subtitulo {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.bloque-factura__legal {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.55;
}

.bloque-factura--compacta {
  width: fit-content;
  max-width: 100%;
  margin-top: 17px;
  padding: 10px 14px;
  border: 1px solid #496459;
  border-radius: 14px;
  background: var(--deep);
  color: var(--white);
  box-shadow: 0 9px 22px rgba(24,44,39,.14);
}

.bloque-factura--compacta .bloque-factura__icono {
  width: 23px;
  height: 23px;
  color: var(--lime);
}

.bloque-factura--compacta .bloque-factura__titulo { font-size: 13px; }
.bloque-factura--compacta .bloque-factura__subtitulo {
  color: var(--lime);
  font-size: 12px;
}

.bloque-factura--normal {
  max-width: 840px;
  margin: 28px auto 0;
  padding: 20px 22px;
  border: 1px solid #C8D4C5;
  border-left: 5px solid var(--orange);
  border-radius: 18px;
  background: var(--paper);
  color: var(--deep);
  box-shadow: var(--shadow);
}

.bloque-factura--normal .bloque-factura__icono {
  box-sizing: content-box;
  padding: 10px;
  border-radius: 14px;
  background: var(--deep);
  color: var(--lime);
}

.bloque-factura--normal .bloque-factura__subtitulo { color: #315C49; }
.bloque-factura--normal .bloque-factura__legal { color: var(--subtle); }
