/* QOSTUM · landing con movimiento 3D (2026-11-17)
   La landing COMPLETA, con su contenido, sus figuras y sus esquemas de siempre. Esto solo agrega:
     · el movimiento 3D al bajar: cada bloque entra desde atrás (sube, se endereza y aparece) y sale
       hacia el fondo. En reposo nada queda transformado: todo se ve nítido, como hoy;
     · el carrusel, con un leve movimiento 3D al cambiar de captura (el resto de su comportamiento igual);
     · un acceso a la suscripción que acompaña todo el recorrido.
   Colores, tipografía y estilos: los de index.html (variables --c-*, --fs-*, --shadow-*, .btn).
   Con «reducir movimiento» o sin JS: la landing de siempre. */

html.q3-mov .q3-m { will-change: transform, opacity; }

/* ── Carrusel: al cambiar de captura, el marco se inclina apenas hacia atrás y vuelve ── */
@keyframes q3-gira {
  0%   { transform: none; }
  38%  { transform: perspective(1800px) rotateX(5deg) translateY(6px) scale(.975); }
  100% { transform: none; }
}
html.q3-mov .carousel-track-wrapper.q3-gira { animation: q3-gira .75s cubic-bezier(.25,.46,.45,.94); }

/* ── Suscripción siempre a mano: aparece al dejar la portada; se retira en Precios y en el cierre,
      donde ya están los botones de la página. Dos caminos del mismo peso visual: ver precios o empezar. ── */
.q3-cta { position: fixed; right: 24px; bottom: 22px; z-index: 900; display: flex; align-items: center; gap: 10px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 999px; padding: 6px 6px 6px 22px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transform: perspective(900px) translateY(26px) rotateX(18deg); transform-origin: 50% 100%;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.q3-cta.on { opacity: 1; pointer-events: auto; transform: none; }
.q3-cta-tx { display: flex; flex-direction: column; line-height: 1.25; margin-right: 8px; }
.q3-cta-tx b { font-size: 14px; font-weight: 800; color: var(--c-text); }
.q3-cta-tx span { font-size: 12px; color: var(--c-label); }
.q3-b { display: inline-flex; align-items: center; height: 42px; border-radius: 999px; font: 700 14px/1 var(--font, Inter, sans-serif);
  white-space: nowrap; text-decoration: none; box-sizing: border-box; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
/* «Ver precios»: el mismo botón contorneado de las tarjetas de precios */
.q3-ver { padding: 0 18px; background: #fff; color: #C86D45; border: 1.5px solid #D97D55; }
.q3-ver:hover { background: #FEF3EC; color: #C86D45; }
/* «Empieza a presupuestar ya»: la píldora con flecha de la portada, a la medida de la cápsula */
.q3-ir { padding: 0 5px 0 18px; gap: 12px; background: #D97D55; color: #fff; border: 1.5px solid #D97D55; }
.q3-ir::after { content: ""; width: 31px; height: 31px; border-radius: 50%; flex: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D97D55' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/15px no-repeat;
  transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.q3-ir:hover { background: #C86D45; border-color: #C86D45; color: #fff; box-shadow: 0 12px 22px -10px rgba(217,125,85,.55); }
.q3-ir:hover::after { transform: translateX(3px); }

@media (max-width: 760px) {
  .q3-cta { left: 10px; right: 10px; bottom: 10px; padding: 6px; gap: 6px; }
  .q3-cta-tx { display: none; }
  .q3-b { flex: 1; justify-content: center; height: 44px; font-size: 13.5px; }
  .q3-ver { flex: 0 0 auto; padding: 0 14px; }
  .q3-ir { justify-content: space-between; }
}

html[data-theme="dark"] .q3-cta { background: #1b212b; border-color: #323b48; }
html[data-theme="dark"] .q3-cta-tx b { color: #e6e9ee; }
html[data-theme="dark"] .q3-ver { background: transparent; color: #E8A98A; }

/* ── Fondos parejos (Enrique, 2026-11-17): las secciones que tenían fondo propio (gris piedra o blanco liso)
      tapaban la cuadrícula del sitio y cortaban el recorrido. Ahora todas dejan ver el mismo fondo; sus
      bordes de separación se conservan. ── */
.social-proof, .gantt-section, .metrados-section, .ctl-section, .pwa-section, footer { background: transparent !important; }

/* ── Espacio entre secciones parejo (Enrique, 2026-11-17: «franjas muy grandes entre una sección y otra»).
      Medido con el contenido visible: todas dejan ~128 px (64 + 64) en escritorio y ~80 px en el teléfono,
      salvo Artículos, que tenía 80 / 56 px de relleno propio. La iguala a --sec-y. */
.arts { padding-top: var(--sec-y, 64px); padding-bottom: var(--sec-y, 64px); }

/* ══ Guía de la Q (2026-11-17) ══════════════════════════════════════════════════════════════════════════════════ */
.qg { position: fixed; left: 18px; top: 90px; z-index: 6; display: flex; align-items: center; gap: 10px;
  transition: top .5s cubic-bezier(.2,.8,.2,1), opacity .4s; opacity: 0; }
.qg.on { opacity: 1; }
.qg-logo { width: 38px; height: 38px; border-radius: 50%; background: var(--c-surface); border: 1px solid var(--c-border);
  box-shadow: 0 6px 16px -10px rgba(31,41,55,.4); display: grid; place-items: center; flex: none; cursor: pointer; }
.qg-logo svg { width: 24px; height: 24px; }
.qg-burbuja { display: flex; flex-direction: column; gap: 3px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px;
  padding: 9px 13px; box-shadow: 0 10px 24px -14px rgba(31,41,55,.4); white-space: nowrap; text-decoration: none; cursor: pointer;
  max-width: 0; padding-left: 0; padding-right: 0; border-width: 0; overflow: hidden; opacity: 0;
  transition: max-width .45s cubic-bezier(.2,.8,.2,1), opacity .3s, padding .45s; }
.qg.abierta .qg-burbuja, .qg:hover .qg-burbuja { max-width: 330px; padding-left: 13px; padding-right: 13px; border-width: 1px; opacity: 1; }
.qg-et { font: 700 10.5px/1 var(--font, Inter, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--c-faint); }
.qg-tx { font: 700 13px/1.3 var(--font, Inter, sans-serif); color: var(--c-text); }
.qg-ir { font: 700 12.5px/1.2 var(--font, Inter, sans-serif); color: #C86D45; }
.qg.final .qg-tx { font-weight: 800; }
@media (max-width: 760px) { .qg { display: none; } }
@media (prefers-reduced-motion: reduce) { .qg { transition: none; } }
html[data-theme="dark"] .qg-logo, html[data-theme="dark"] .qg-burbuja { background: #1b212b; border-color: #323b48; }

.qg.final .qg-et { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 800; color: var(--c-text); }

/* ══ Precios (2026-11-17, Enrique eligió «A · tres iguales» con más vida) ══════════════════════════════════════════════════════════════════════════════
   Común a A y B: misma jerarquía en los tres planes, mismo botón, nada empuja al más caro; menos aire. */
.pricing-badge{ display: none; }
.pricing-card.featured{ border-color: var(--c-border); border-width: 1.5px; box-shadow: var(--shadow-sm); }
.pricing-cta, .pricing-card.featured .pricing-cta{ background: #fff; color: #C86D45; border: 1.5px solid #D97D55; padding: 11px 20px; font-size: 14.5px; }
.pricing-cta:hover, .pricing-card.featured .pricing-cta:hover{ background: #D97D55; color: #fff; }
.qp-nota{ display: block; }
.pricing-savings, .qp-nota{
  margin: 0 0 18px; padding: 8px 12px; border-radius: 9px; background: var(--c-fill-50); border: 1px solid var(--c-border);
  color: var(--c-text-3); font-size: 13.5px; font-weight: 600; text-align: center; }
.pricing-extra{ background: none; color: var(--c-label); padding: 0; margin: -8px 0 16px; font-weight: 500; font-size: 13px; }
.pricing-more{ margin-top: 10px; font-size: 13px; }

/* A · tres tarjetas iguales: misma altura, filas alineadas, botón siempre al pie */
.pricing-grid { gap: 18px; margin-top: 32px; max-width: 1040px; align-items: stretch; }
.pricing-card { padding: 26px 24px 24px; border-radius: 16px; display: flex; flex-direction: column; }
.pricing-name { font-size: 20px; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pricing-desc { margin-bottom: 14px; }
.pricing-price { font-size: 42px; margin-bottom: 4px; }
.pricing-price span { font-size: 18px; }
.pricing-period { margin-bottom: 14px; }
.pricing-cta { margin-top: auto; }
.qp-ahorro{ display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #3E7E5A; background: #E6F0EA;
  border-radius: 999px; padding: 3px 8px; }

/* línea de «para quién» (los tres planes) y «Más información» bajo las tarjetas */
.qp-linea{ display: flex; }
.qp-linea, .pricing-extra{
  align-items: flex-start; gap: 8px; text-align: left; margin: 0 0 16px; padding: 0; background: none; color: var(--c-label); font-size: 13px; font-weight: 500; line-height: 1.45; }
.qp-linea svg{ width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--c-faint); }
.pricing-card .pricing-more{ display: none; }
.qp-mas{ display: table; margin: 18px auto 0; font-size: 13.5px; }

/* ══ Precios A con más vida (2026-11-17: «para ser la invitación a suscribirse lo siento apagado») ══
   Los tres planes con el mismo peso, pero con color: ícono de cada plan, notas en el tono de marca, botones llenos
   con la flecha de la portada, al pasar el cursor la tarjeta se levanta con borde naranja, y una fila de garantías. */
.qp-ico{ display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px; background: #FEF3EC; color: #D97D55; }
.qp-ico svg{ width: 22px; height: 22px; }
.pricing-savings, .qp-nota{
  background: #FEF3EC; border-color: #F6D9C6; color: #A85A36; }
.pricing-card { border-color: #EBDDD3; box-shadow: 0 18px 40px -30px rgba(200,109,69,.45); transition: transform .25s, box-shadow .25s, border-color .25s; }
.pricing-card:hover { transform: translateY(-6px); border-color: #D97D55; box-shadow: 0 24px 50px -26px rgba(217,125,85,.5); }
.pricing-cta.qp-cta, .pricing-card.featured .pricing-cta.qp-cta{
  display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #D97D55; color: #fff; border-color: #D97D55;
  padding: 5px 5px 5px 20px; font-size: 14.5px; }
.pricing-cta.qp-cta::after{ content: ""; width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D97D55' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/15px no-repeat;
  transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.pricing-cta.qp-cta:hover{ background: #C86D45; border-color: #C86D45; color: #fff; }
.pricing-cta.qp-cta:hover::after{ transform: translateX(3px); }
.qp-garantias{ display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 22px auto 0; }
.qp-garantias span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--c-text-3); }
.qp-garantias span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: #6B9B7C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; }
.qp-mas{ margin-top: 12px; }
html[data-theme="dark"] .qp-ico, html[data-theme="dark"] .pricing-savings, html[data-theme="dark"] .qp-nota { background: rgba(217,125,85,.14); border-color: rgba(217,125,85,.3); color: #E8A98A; }
