/* pro.css — la página del Pro (/pro, /es/pro; D286 §5, maqueta aprobada el 6/11): un tramo por función y, al
   costado, una ventana fija con la captura real de la app que cambia al bajar. En el teléfono, arriba de cada texto. */

.pr-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pr-ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── El héroe: el mismo lenguaje del aviso de la portada (foto a la derecha fundida en el fondo) ── */
.pr-hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--l-border); }
.pr-hero-foto { position: absolute; z-index: -1; top: 0; right: 0; width: 60%; height: 100%; overflow: hidden; }
.pr-hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(180deg, transparent 0%, #000 14%, #000 70%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(180deg, transparent 0%, #000 14%, #000 70%, transparent); mask-composite: intersect; }
.pr-hero-txt { max-width: 600px; padding: 4.5rem 0 4.75rem; }
.pr-fecha { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(8, 7, 6, 0.7); box-shadow: inset 0 0 0 1px var(--l-border-strong); font-size: 0.9rem; font-weight: 600; }
.pr-fecha .pr-ic { color: var(--color-blueprint-primary); }
.pr h1 { margin-top: 1.4rem; font-size: clamp(2.5rem, 4.4vw, 3.75rem); line-height: 0.98; font-weight: 760; font-stretch: 125%; letter-spacing: -0.035em; text-wrap: balance; }
.pr-lead { margin-top: 1.25rem; max-width: 52ch; font-size: 1.08rem; line-height: 1.6; color: var(--color-text-secondary); text-wrap: pretty; }
.pr-botones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 1.9rem; }
.pr-nota { font-size: 0.92rem; color: var(--color-text-muted); }

/* ── Las funciones: textos a la izquierda, ventana fija a la derecha ── */
.pr-funciones { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 64px; padding-top: 3rem; padding-bottom: 2rem; }
.pr-tramo { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 3rem 0; }
.pr-tramo h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.08; font-weight: 720; font-stretch: 115%; letter-spacing: -0.02em; text-wrap: balance; color: var(--color-text-muted); transition: color 0.35s ease; }
.pr-tramo p { margin-top: 1rem; max-width: 46ch; font-size: 1.03rem; line-height: 1.65; color: var(--color-text-muted); text-wrap: pretty; transition: color 0.35s ease; }
.pr-tramo.is-activo h2 { color: var(--color-text-primary); }
.pr-tramo.is-activo p { color: var(--color-text-secondary); }
.pr-tramo .pr-sec { font-size: 0.95rem; }
.pr-cap-movil { display: none; }

.pr-panel { position: relative; }
.pr-ventana { position: sticky; top: calc(50vh - min(36vh, 330px)); display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); height: min(72vh, 660px); margin: 8vh 0; padding: 22px; border-radius: 18px; background: var(--color-paper); box-shadow: 0 0 0 1px var(--l-border), 0 40px 80px -40px rgba(0, 0, 0, 0.9); overflow: hidden; }
/* Un resplandor tenue del acento desde abajo: la ventana se lee como pantalla encendida. */
.pr-ventana::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: radial-gradient(60% 100% at 50% 100%, var(--l-glow), transparent 70%); opacity: 0.35; pointer-events: none; }
.pr-cap { grid-area: 1 / 1; min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; opacity: 0; transform: translateY(10px) scale(0.985); transition: opacity 0.45s var(--l-ease), transform 0.6s var(--l-ease); }
.pr-cap.is-activa { opacity: 1; transform: none; }

/* ── Y además ── */
.pr-tambien { padding-top: 3rem; padding-bottom: 1rem; }
.pr-tambien > h2, .pr-planes > h2 { font-size: 1.6rem; line-height: 1.15; font-weight: 720; font-stretch: 112%; letter-spacing: -0.015em; }
.pr-tambien-lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 1.75rem; border-top: 1px solid var(--l-border); }
.pr-tambien-lista > div { padding-top: 1.4rem; }
.pr-tambien-lista dt { font-size: 1.05rem; font-weight: 650; line-height: 1.35; text-wrap: balance; }
.pr-tambien-lista dd { margin: 0.5rem 0 0; font-size: 0.97rem; line-height: 1.6; color: var(--color-text-secondary); text-wrap: pretty; }

/* ── Desde el 18 de noviembre: los dos planes y lo que no cambia ── */
.pr-planes { padding-top: 5rem; }
.pr-planes-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; margin-top: 1.75rem; }
.pr-plan { padding: 24px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--l-border); }
.pr-plan h3 { font-size: 1rem; font-weight: 650; }
.pr-plan ul { margin-top: 1rem; list-style: none; font-size: 0.97rem; line-height: 1.5; color: var(--color-text-secondary); }
.pr-plan li { position: relative; padding-left: 22px; margin-top: 0.6rem; text-wrap: pretty; }
.pr-plan li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--l-border-strong); }
.pr-plan-pro { background: var(--color-surface); box-shadow: 0 0 0 1px rgba(240, 133, 45, 0.35); }
.pr-precio { margin-top: 0.9rem; font-size: 1rem; color: var(--color-text-secondary); }
.pr-cifra { font-size: 2.4rem; line-height: 1; font-weight: 720; letter-spacing: -0.02em; color: var(--color-text-primary); }
.pr-precio-alt { margin-top: 0.45rem; font-size: 0.97rem; color: var(--color-text-secondary); }
.pr-imp { margin-top: 0.3rem; font-size: 0.85rem; color: var(--color-text-muted); }
.pr-plan-txt { margin-top: 1.1rem; font-size: 0.97rem; }

/* ── El cierre ── */
.pr-final { padding-top: 5rem; padding-bottom: 6rem; text-align: center; }
.pr-final h2 { margin-bottom: 1.5rem; font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.1; font-weight: 740; font-stretch: 118%; letter-spacing: -0.025em; text-wrap: balance; }
.pr-legal { margin-top: 1.25rem; font-size: 0.88rem; color: var(--color-text-muted); }
.pr-legal a { color: var(--color-text-secondary); text-underline-offset: 3px; }

/* ── Teléfono y tableta: sin ventana fija; la captura va arriba de cada texto ── */
@media (max-width: 899px) {
  .pr-hero-foto { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .pr-hero-foto img { object-position: 74% 50%; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); -webkit-mask-composite: source-over; mask-composite: add; }
  .pr-hero-txt { padding: 0 0 2.75rem; margin-top: -28px; }
  .pr-funciones { display: block; padding-top: 1rem; }
  .pr-panel { display: none; }
  .pr-tramo { min-height: 0; padding: 2.5rem 0 1.5rem; }
  .pr-tramo h2 { color: var(--color-text-primary); }
  .pr-tramo p { color: var(--color-text-secondary); }
  .pr-cap-movil { display: block; width: 100%; height: auto; margin-bottom: 1.5rem; padding: 10px; border-radius: 14px; background: var(--color-paper); box-shadow: 0 0 0 1px var(--l-border); }
  .pr-tambien-lista { grid-template-columns: 1fr; }
  .pr-planes-grid { grid-template-columns: 1fr; }
  .pr-planes { padding-top: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-cap, .pr-tramo h2, .pr-tramo p { transition: none; }
  .pr-cap { transform: none; }
}
