/* =====================================================================
 * tp-public.css — layout y componentes del sitio público
 *   Corporativo, claro y minimalista. Blanco + grises + un único rojo
 *   (#dc2626) usado con moderación (botones primarios, enlaces, detalles
 *   puntuales). Sin gradientes, glassmorphism ni sombras de color.
 * ===================================================================== */

/* ── Header ──────────────────────────────────────────────────────────── */
.tp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--tp-bg);
    border-bottom: 1px solid var(--tp-border);
}
.tp-header__bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 68px;
}
.tp-logo {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--tp-font-display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -.02em;
    color: var(--tp-text);
    text-decoration: none;
}
.tp-logo__mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--tp-accent);
    border-radius: var(--tp-radius-sm);
    color: #fff;
}
.tp-logo__mark svg { width: 19px; height: 19px; }
.tp-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.tp-logo__text small {
    font-weight: 500;
    font-size: .66rem;
    color: var(--tp-text-dim);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Nav desktop (si se usa) */
.tp-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-left: auto;
}
.tp-nav__link {
    color: var(--tp-text-mute);
    font-weight: 500;
    font-size: .92rem;
    transition: color .15s var(--tp-ease-out);
    position: relative;
}
.tp-nav__link:hover { color: var(--tp-text); }
.tp-nav__link.is-active { color: var(--tp-text); }

.tp-nav__cta { display: flex; gap: .6rem; margin-left: 1rem; }

.tp-langs {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding-left: 1rem;
    border-left: 1px solid var(--tp-border);
}
.tp-langs a {
    display: inline-block;
    padding: .25rem .45rem;
    border-radius: var(--tp-radius-sm);
    font-size: .72rem;
    color: var(--tp-text-dim);
    text-transform: uppercase;
}
.tp-langs a:hover { color: var(--tp-text); background: var(--tp-surface); }
.tp-langs a.is-active { color: var(--tp-accent); }

/* ── Nav minimal (hamburguesa + logo + CTA) ─────────────────────────── */
.tp-header__bar { display: flex; align-items: center; gap: 1rem; height: 68px; }
.tp-header__logo { text-decoration: none; }
.tp-header__cta { display: flex; align-items: center; gap: .6rem; margin-left: auto; }

.tp-burger {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; flex-shrink: 0;
    border: 1px solid var(--tp-border); border-radius: var(--tp-radius-sm);
    background: var(--tp-bg); color: var(--tp-text); cursor: pointer;
    transition: border-color .15s var(--tp-ease-out), background .15s var(--tp-ease-out);
}
.tp-burger:hover { border-color: var(--tp-border-strong); background: var(--tp-surface); }
.tp-burger svg { width: 21px; height: 21px; }

/* Drawer (toggle vía checkbox CSS, sin JS) */
.tp-drawer {
    position: fixed; top: 0; left: 0; z-index: 80;
    height: 100dvh; width: 300px; max-width: 85vw;
    display: flex; flex-direction: column;
    padding: 1.25rem;
    background: var(--tp-bg);
    border-right: 1px solid var(--tp-border);
    transform: translateX(-100%);
    transition: transform .28s var(--tp-ease-out);
    overflow-y: auto;
}
.tp-drawer__backdrop {
    position: fixed; inset: 0; z-index: 75;
    background: rgba(16, 24, 40, .4);
    opacity: 0; visibility: hidden;
    transition: opacity .28s var(--tp-ease-out), visibility .28s;
    cursor: pointer;
}
.tp-nav-toggle:checked ~ .tp-drawer { transform: translateX(0); }
.tp-nav-toggle:checked ~ .tp-drawer__backdrop { opacity: 1; visibility: visible; }

.tp-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.tp-drawer__brand { font-family: var(--tp-font-display); font-weight: 600; font-size: 1.05rem; }
.tp-drawer__close { cursor: pointer; color: var(--tp-text-mute); display: inline-grid; place-items: center; }
.tp-drawer__close svg { width: 22px; height: 22px; }
.tp-drawer__links { display: flex; flex-direction: column; gap: .15rem; flex-grow: 1; }
.tp-drawer__link {
    padding: .8rem .9rem; border-radius: var(--tp-radius-sm);
    font-family: var(--tp-font-body); font-weight: 500; font-size: 1rem;
    color: var(--tp-text-mute);
    transition: background .15s var(--tp-ease-out), color .15s var(--tp-ease-out);
}
.tp-drawer__link:hover { background: var(--tp-surface); color: var(--tp-text); }
.tp-drawer__link.is-active { color: var(--tp-accent); font-weight: 600; }
.tp-drawer__foot { display: flex; flex-direction: column; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--tp-border); }
.tp-drawer__langs { display: flex; gap: .3rem; }
.tp-drawer__langs a {
    padding: .3rem .5rem; border-radius: var(--tp-radius-sm);
    font-size: .72rem; text-transform: uppercase; color: var(--tp-text-dim);
}
.tp-drawer__langs a:hover { color: var(--tp-text); background: var(--tp-surface); }
.tp-drawer__langs a.is-active { color: var(--tp-accent); }

/* ── Espacio header → primer contenido (compacto en todas las páginas) ─
   El espaciado GENEROSO se conserva entre secciones; solo se recorta el
   colchón inicial bajo el header, que era excesivo. !important para ganar
   a los padding-top en línea de algunas páginas. */
main > section:first-child { padding-top: clamp(1.5rem, 3vw, 2.25rem) !important; }
main > .tp-hero:first-child { padding-top: clamp(2.5rem, 5vw, 4rem) !important; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.tp-hero {
    position: relative;
    padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.tp-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}
@media (max-width: 968px) {
    .tp-hero__grid { grid-template-columns: 1fr; }
}
.tp-hero__title {
    margin: 0 0 1.5rem;
    font-weight: 600;
}
.tp-hero__title strong {
    color: var(--tp-accent);
    font-weight: 600;
}
.tp-hero__lead {
    max-width: 540px;
    margin-bottom: 2rem;
}
.tp-hero__cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Bullets con check del hero (neutros, sin color de estado) */
.tp-hero__checks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .75rem; }
.tp-hero__checks li { display: flex; align-items: flex-start; gap: .65rem; color: var(--tp-text); font-size: .95rem; line-height: 1.45; }
.tp-hero__checks svg { width: 18px; height: 18px; color: var(--tp-text); flex-shrink: 0; margin-top: 3px; }

/* Trust strip debajo del CTA (sin métricas inventadas) */
.tp-hero__trust {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.75rem;
    border-top: 1px solid var(--tp-border);
}
.tp-hero__trust div { display: flex; align-items: center; gap: .55rem; }
.tp-hero__trust svg { width: 18px; height: 18px; color: var(--tp-text-mute); flex-shrink: 0; }
.tp-hero__trust span {
    font-size: .9rem;
    color: var(--tp-text-mute);
}

/* Marco de captura de la app (claro, sin profundidad dramática) */
.tp-hero__device {
    position: relative;
    aspect-ratio: 16 / 11;
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-lg);
    overflow: hidden;
    box-shadow: var(--tp-shadow);
}
.tp-hero__device-bezel {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

/* Placeholder genérico de imagen ("por cambiar") */
.tp-ph {
    display: grid;
    place-items: center;
    gap: .5rem;
    text-align: center;
    background: var(--tp-surface);
    border: 1px dashed var(--tp-border-strong);
    border-radius: var(--tp-radius);
    color: var(--tp-text-mute);
    padding: 1.5rem;
}
.tp-ph svg { width: 36px; height: 36px; color: var(--tp-text-dim); }
.tp-ph__label { font-weight: 600; font-size: .92rem; color: var(--tp-text); }
.tp-ph__tag {
    font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--tp-text-dim);
}
.tp-ph--screen {
    width: 100%; height: 100%; border-radius: 0;
    border: 0; background: var(--tp-surface);
}

/* Fila de plataformas/disponibilidad (texto, sin badges falsos) */
.tp-hero__stores { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.tp-store-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem .8rem;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    background: var(--tp-bg);
    color: var(--tp-text-mute);
    font-size: .8rem; font-weight: 600;
}

/* ── Features ────────────────────────────────────────────────────────── */
.tp-features__head {
    max-width: 720px;
    margin-bottom: 3rem;
}
.tp-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.tp-feature {
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 1.75rem;
    transition: border-color .15s var(--tp-ease-out);
}
.tp-feature:hover { border-color: var(--tp-border-strong); }
.tp-feature__icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--tp-bg);
    color: var(--tp-text);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    margin-bottom: 1.1rem;
}
.tp-feature__icon svg { width: 21px; height: 21px; }
.tp-feature__title {
    font-family: var(--tp-font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}
.tp-feature__body {
    font-size: .92rem;
    color: var(--tp-text-mute);
    line-height: 1.6;
}

/* ── Platforms strip ─────────────────────────────────────────────────── */
.tp-platforms {
    background: var(--tp-bg-alt);
    border-block: 1px solid var(--tp-border);
}
.tp-platforms__inner {
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}
@media (max-width: 768px) {
    .tp-platforms__inner { grid-template-columns: 1fr; }
}
.tp-platforms__logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--tp-border);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    overflow: hidden;
}
@media (max-width: 640px) { .tp-platforms__logos { grid-template-columns: repeat(2, 1fr); } }
.tp-platforms__logo {
    display: grid;
    place-items: center;
    aspect-ratio: 16/9;
    background: var(--tp-bg);
    color: var(--tp-text-mute);
    font-family: var(--tp-font-display);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: -.005em;
    transition: color .15s var(--tp-ease-out);
}
.tp-platforms__logo:hover { color: var(--tp-text); }
.tp-platforms__logo span { display: flex; align-items: center; gap: .5rem; }

/* ── Pricing teaser ─────────────────────────────────────────────────── */
.tp-pricing-teaser {
    text-align: center;
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-lg);
    padding: clamp(2.5rem, 5vw, 4rem) 2rem;
}
.tp-pricing-teaser h2 { max-width: 620px; margin: 0 auto 1rem; }
.tp-pricing-teaser p  { max-width: 540px; margin: 0 auto 2rem; color: var(--tp-text-mute); }

/* ── Trial CTA ──────────────────────────────────────────────────────── */
.tp-trial {
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-lg);
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--tp-surface);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}
@media (max-width: 768px) { .tp-trial { grid-template-columns: 1fr; } }
.tp-trial h3 { margin-bottom: .65rem; }
.tp-trial p  { margin: 0; color: var(--tp-text-mute); }

/* ── Testimonios / prueba social ────────────────────────────────────── */
.tp-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.tp-testimonial {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-lg);
    padding: 1.75rem;
    margin: 0;
    transition: border-color .15s var(--tp-ease-out);
}
.tp-testimonial:hover { border-color: var(--tp-border-strong); }
.tp-testimonial__stars { display: inline-flex; gap: 2px; }
.tp-testimonial__stars span { color: var(--tp-border-strong); line-height: 0; }
.tp-testimonial__stars span.is-on { color: #f59e0b; }
.tp-testimonial__stars svg { fill: currentColor; }
.tp-testimonial__quote {
    flex: 1 1 auto;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tp-text);
}
.tp-testimonial__who { display: flex; align-items: center; gap: .8rem; }
.tp-testimonial__avatar {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--tp-bg);
    border: 1px solid var(--tp-border);
    color: var(--tp-text-mute);
    font-family: var(--tp-font-display);
    font-weight: 600;
    font-size: .9rem;
}
.tp-testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.tp-testimonial__meta { display: flex; flex-direction: column; line-height: 1.35; }
.tp-testimonial__meta strong { font-weight: 600; }
.tp-testimonial__meta .tp-mute { font-size: .85rem; }

/* ── Páginas por bloques (editor visual) ────────────────────────────── */
.tp-blocks { display: block; }
.tp-block { padding-block: clamp(2rem, 4vw, 3.5rem); }
.tp-block--spacer { padding: 0; }
.tp-block--platforms { background: var(--tp-bg-alt); border-block: 1px solid var(--tp-border); }
.tp-block--heading { padding-block: clamp(1rem, 2vw, 1.5rem); }
.tp-block--button  { padding-block: clamp(1rem, 2vw, 1.5rem); }
.tp-block + .tp-block { padding-top: 0; }   /* evita doble espacio entre bloques contiguos */
.tp-block-hero { text-align: center; max-width: 820px; }
.tp-block-hero--center { margin-inline: auto; }
.tp-block-hero--left { text-align: left; }
.tp-block-hero__title { font-family: var(--tp-font-display); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -.02em; margin: .6rem 0 1rem; }
.tp-block-hero__lead { max-width: 600px; margin: 0 auto 1.6rem; }
.tp-block-hero--left .tp-block-hero__lead { margin-inline: 0; }
.tp-block-hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.tp-block-hero--left .tp-block-hero__cta { justify-content: flex-start; }
.tp-block-heading { font-family: var(--tp-font-display); letter-spacing: -.01em; }
.tp-block-rich { line-height: 1.7; color: var(--tp-text); }
.tp-block-rich h2, .tp-block-rich h3 { font-family: var(--tp-font-display); margin: 1.4em 0 .5em; }
.tp-block-rich p { margin: 0 0 1em; }
.tp-block-rich img, .tp-block-rich video { max-width: 100%; height: auto; border-radius: var(--tp-radius); }

/* FAQ (acordeón nativo) */
.tp-faq { display: flex; flex-direction: column; gap: .75rem; }
.tp-faq__item { border: 1px solid var(--tp-border); border-radius: var(--tp-radius); background: var(--tp-surface); overflow: hidden; }
.tp-faq__item summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.tp-faq__item summary::-webkit-details-marker { display: none; }
.tp-faq__item summary::after { content: "+"; font-size: 1.3rem; color: var(--tp-text-mute); transition: transform .15s var(--tp-ease-out); }
.tp-faq__item[open] summary::after { transform: rotate(45deg); }
.tp-faq__a { padding: 0 1.25rem 1.1rem; color: var(--tp-text-mute); line-height: 1.6; }

/* ── Disclaimer ─────────────────────────────────────────────────────── */
.tp-disclaimer {
    background: var(--tp-bg-alt);
    border-top: 1px solid var(--tp-border);
    padding-block: 3rem;
}
.tp-disclaimer__inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    color: var(--tp-text-mute);
    font-size: .9rem;
    line-height: 1.65;
}
.tp-disclaimer__inner strong {
    display: block;
    color: var(--tp-text);
    font-family: var(--tp-font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}

/* ── Plans grid (página /pricing) ───────────────────────────────────── */
.tp-plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}
@media (max-width: 1100px) { .tp-plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .tp-plans { grid-template-columns: 1fr; } }

.tp-plan {
    position: relative;
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 2rem 1.6rem;
    display: flex;
    flex-direction: column;
    transition: border-color .15s var(--tp-ease-out);
}
.tp-plan:hover { border-color: var(--tp-border-strong); }
.tp-plan.is-featured {
    border-color: var(--tp-accent);
    background: var(--tp-bg);
    box-shadow: var(--tp-shadow);
}

.tp-plan__badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tp-accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .35rem .8rem;
    border-radius: 999px;
    white-space: nowrap;
}

.tp-plan__head { margin-bottom: 1.5rem; }
.tp-plan__eyebrow {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    color: var(--tp-text-dim);
    margin-bottom: .55rem;
}
.tp-plan__name {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}
.tp-plan__price {
    display: flex;
    align-items: baseline;
    gap: .3rem;
    margin-bottom: .35rem;
    color: var(--tp-text);
}
.tp-plan__currency {
    font-size: 1rem;
    color: var(--tp-text-mute);
    font-weight: 500;
}
.tp-plan__amount {
    font-size: 2.75rem;
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1;
}
.tp-plan__duration {
    display: block;
    font-size: .85rem;
    color: var(--tp-text-mute);
}

.tp-plan__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: grid;
    gap: .7rem;
    flex-grow: 1;
}
.tp-plan__features li {
    display: flex;
    align-items: start;
    gap: .55rem;
    font-size: .9rem;
    color: var(--tp-text);
    line-height: 1.45;
}
.tp-plan__features svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--tp-accent);
}

/* Trust strip debajo de los planes */
.tp-plans__trust {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--tp-border);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    overflow: hidden;
}
@media (max-width: 768px) { .tp-plans__trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tp-plans__trust { grid-template-columns: 1fr; } }

.tp-plans__trust-item {
    background: var(--tp-bg);
    padding: 1.4rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--tp-text-mute);
}
.tp-plans__trust-item svg {
    width: 22px;
    height: 22px;
    color: var(--tp-text-mute);
    flex-shrink: 0;
}
.tp-plans__trust-item strong {
    display: block;
    color: var(--tp-text);
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: .15rem;
}
.tp-plans__trust-item span {
    font-size: .78rem;
    color: var(--tp-text-mute);
    line-height: 1.4;
}

/* ── Compare table ──────────────────────────────────────────────────── */
.tp-compare__head { max-width: 720px; margin-bottom: 2.5rem; }
.tp-compare__wrap {
    background: var(--tp-bg);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    overflow: hidden;
}
.tp-compare {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.tp-compare thead th {
    padding: 1.25rem 1rem;
    text-align: left;
    background: var(--tp-bg-alt);
    border-bottom: 1px solid var(--tp-border);
    color: var(--tp-text);
    font-weight: 500;
    vertical-align: bottom;
}
.tp-compare thead th strong {
    display: block;
    font-family: var(--tp-font-display);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: .25rem;
}
.tp-compare thead th span {
    display: block;
    font-size: .82rem;
    color: var(--tp-text-mute);
    font-weight: 500;
}
.tp-compare thead th.is-featured {
    background: var(--tp-surface);
    color: var(--tp-text);
    border-bottom: 2px solid var(--tp-accent);
}
.tp-compare tbody td {
    padding: .95rem 1rem;
    border-bottom: 1px solid var(--tp-border-soft);
    color: var(--tp-text-mute);
}
.tp-compare tbody td:first-child {
    color: var(--tp-text);
    font-weight: 500;
}
.tp-compare tbody td.is-featured {
    background: var(--tp-surface);
}
.tp-compare tbody tr:last-child td { border-bottom: 0; }
.tp-check { color: var(--tp-accent); }
.tp-cross { color: var(--tp-text-dim); }

@media (max-width: 768px) {
    .tp-compare__wrap { overflow-x: auto; }
    .tp-compare { min-width: 640px; }
}

/* ── FAQ accordion ──────────────────────────────────────────────────── */
.tp-faq {
    display: grid;
    gap: .75rem;
}
.tp-faq__item {
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    overflow: hidden;
    transition: border-color .15s var(--tp-ease-out);
}
.tp-faq__item[open] { border-color: var(--tp-border-strong); }
.tp-faq__item summary {
    padding: 1.1rem 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--tp-font-display);
    font-weight: 600;
    color: var(--tp-text);
    list-style: none;
    transition: color .15s var(--tp-ease-out);
}
.tp-faq__item summary::-webkit-details-marker { display: none; }
.tp-faq__item summary svg {
    color: var(--tp-text-mute);
    transition: transform .2s var(--tp-ease-out);
    flex-shrink: 0;
}
.tp-faq__item[open] summary svg { transform: rotate(180deg); }
.tp-faq__item summary:hover { color: var(--tp-accent); }
.tp-faq__item p {
    padding: 0 1.4rem 1.3rem;
    color: var(--tp-text-mute);
    line-height: 1.65;
    margin: 0;
}

/* ── Feature list (página /features) ────────────────────────────────── */
.tp-feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
    margin-top: 3rem;
}
@media (max-width: 768px) { .tp-feature-list { grid-template-columns: 1fr; gap: 1.5rem; } }

.tp-feature-list__item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 1rem;
    padding-block: .5rem;
}
.tp-feature-list__bullet {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    background: var(--tp-bg);
    color: var(--tp-text);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    flex-shrink: 0;
}
.tp-feature-list__title {
    font-family: var(--tp-font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: .35rem;
    letter-spacing: -.01em;
}
.tp-feature-list__body {
    font-size: .92rem;
    color: var(--tp-text-mute);
    line-height: 1.6;
    margin: 0;
}

/* ── Apps grid (página /apps) ───────────────────────────────────────── */
.tp-apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
@media (max-width: 768px) { .tp-apps-grid { grid-template-columns: 1fr; } }

.tp-app-card {
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 1.75rem;
    transition: border-color .15s var(--tp-ease-out);
}
.tp-app-card:hover { border-color: var(--tp-border-strong); }
.tp-app-card__head {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}
.tp-app-card__logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--tp-bg);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    color: var(--tp-text);
    font-family: var(--tp-font-display);
    font-weight: 700;
    font-size: 1.6rem;
}
.tp-app-card__name {
    font-size: 1.15rem;
    margin-bottom: .15rem;
}
.tp-app-card__store {
    font-size: .8rem;
    color: var(--tp-text-mute);
    letter-spacing: .01em;
}
.tp-app-card__body {
    color: var(--tp-text-mute);
    font-size: .92rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Steps (lista numerada) ─────────────────────────────────────────── */
.tp-steps {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    counter-reset: tp-step;
    display: grid;
    gap: 1rem;
}
.tp-steps li {
    counter-increment: tp-step;
    padding-left: 3rem;
    position: relative;
    color: var(--tp-text-mute);
    line-height: 1.55;
}
.tp-steps li::before {
    content: counter(tp-step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: var(--tp-bg);
    color: var(--tp-text);
    border: 1px solid var(--tp-border);
    border-radius: 999px;
    font-family: var(--tp-font-display);
    font-weight: 600;
    font-size: .9rem;
}
.tp-steps li strong { color: var(--tp-text); }

/* ── FAQ categorías (página /faq) ───────────────────────────────────── */
.tp-faq-cat { margin-bottom: 3rem; }
.tp-faq-cat:last-child { margin-bottom: 0; }
.tp-faq-cat__title {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tp-text-mute);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--tp-border);
    font-weight: 600;
}

/* ── Support grid (página /support) ─────────────────────────────────── */
.tp-support-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
}
@media (max-width: 900px) { .tp-support-grid { grid-template-columns: 1fr; } }

.tp-support-aside {
    display: grid;
    gap: 1rem;
    align-content: start;
}
.tp-support-channel {
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 1.4rem;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 1rem;
    align-items: start;
}
.tp-support-channel__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--tp-bg);
    color: var(--tp-text);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
}
.tp-support-channel h4 {
    font-size: 1rem;
    margin-bottom: .35rem;
}
.tp-support-channel p {
    margin: 0 0 .35rem;
    font-size: .85rem;
    color: var(--tp-text-mute);
    line-height: 1.5;
}
.tp-support-channel a.tp-mono {
    font-size: .88rem;
    color: var(--tp-accent);
}
.tp-support-sla {
    background: var(--tp-bg-alt);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 1.25rem 1.4rem;
}
.tp-support-sla strong {
    display: block;
    color: var(--tp-text);
    font-family: var(--tp-font-display);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .85rem;
}
.tp-support-sla ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .55rem;
    font-size: .85rem;
    color: var(--tp-text-mute);
}
.tp-support-sla strong.tp-mono { color: var(--tp-text); }

/* ── Alerts inline (claras, texto con contraste suficiente) ─────────── */
.tp-alert {
    padding: .9rem 1.1rem;
    border-radius: var(--tp-radius-sm);
    margin-bottom: 1.25rem;
    font-size: .9rem;
    line-height: 1.5;
    border: 1px solid transparent;
}
.tp-alert--danger {
    background: var(--tp-danger-soft);
    border-color: var(--tp-danger-line);
    color: var(--tp-danger);
}
.tp-alert--success {
    background: var(--tp-success-soft);
    border-color: var(--tp-success-line);
    color: var(--tp-success);
}
.tp-alert--warn {
    background: var(--tp-warn-soft);
    border-color: var(--tp-warn-line);
    color: var(--tp-warn);
}

/* ── Form inputs ────────────────────────────────────────────────────── */
.tp-field { margin-bottom: 1.1rem; display: grid; gap: .45rem; }
.tp-field label {
    font-size: .85rem;
    font-weight: 500;
    color: var(--tp-text);
    letter-spacing: -.005em;
}
.tp-input {
    width: 100%;
    padding: .75rem .9rem;
    background: var(--tp-bg);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    color: var(--tp-text);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .15s var(--tp-ease-out), box-shadow .15s var(--tp-ease-out);
}
.tp-input:focus {
    outline: 0;
    border-color: var(--tp-accent);
    box-shadow: 0 0 0 3px var(--tp-accent-soft);
}
.tp-input::placeholder { color: var(--tp-text-dim); }
textarea.tp-input { resize: vertical; min-height: 140px; }
select.tp-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.tp-footer {
    background: var(--tp-bg-alt);
    border-top: 1px solid var(--tp-border);
    padding: 4rem 0 2rem;
}
.tp-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 768px) { .tp-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tp-footer__grid { grid-template-columns: 1fr; } }

.tp-footer__brand .tp-logo { margin-bottom: 1rem; }
.tp-footer__brand p {
    color: var(--tp-text-mute);
    font-size: .9rem;
    max-width: 320px;
    line-height: 1.55;
}
.tp-footer__col h4 {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tp-text-dim);
    font-weight: 600;
    margin-bottom: 1rem;
}
.tp-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.tp-footer__col a {
    color: var(--tp-text-mute);
    font-size: .9rem;
    transition: color .15s var(--tp-ease-out);
}
.tp-footer__col a:hover { color: var(--tp-text); }
.tp-footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--tp-border);
    color: var(--tp-text-dim);
    font-size: .82rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ── Blog: listado de tarjetas ───────────────────────────────────────── */
.tp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) { .tp-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tp-blog-grid { grid-template-columns: 1fr; } }

.tp-blog-card {
    display: flex;
    flex-direction: column;
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    overflow: hidden;
    transition: border-color .15s var(--tp-ease-out), transform .15s var(--tp-ease-out);
}
.tp-blog-card:hover { border-color: var(--tp-border-strong); transform: translateY(-2px); }
.tp-blog-card__media {
    aspect-ratio: 16 / 9;
    background: var(--tp-surface);
    overflow: hidden;
}
.tp-blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-blog-card__media--ph {
    display: grid; place-items: center;
    color: var(--tp-border-strong);
    background: var(--tp-surface-2);
}
.tp-blog-card__body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.tp-blog-card__tag {
    align-self: flex-start;
    font-size: .7rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
    color: var(--tp-accent);
    background: color-mix(in srgb, var(--tp-accent) 10%, transparent);
    padding: .15rem .5rem; border-radius: 999px;
}
.tp-blog-card__title { font-size: 1.1rem; line-height: 1.35; margin: 0; color: var(--tp-text); }
.tp-blog-card__excerpt { font-size: .9rem; line-height: 1.55; color: var(--tp-text-mute); margin: 0; flex: 1; }
.tp-blog-card__date { font-size: .8rem; color: var(--tp-text-mute); margin-top: .25rem; }

.tp-blog-pager {
    display: flex; align-items: center; justify-content: center; gap: 1.25rem;
    margin-top: 3rem;
}

/* ── Blog: artículo individual ───────────────────────────────────────── */
.tp-post__head { margin: 1.5rem 0 1.75rem; }
.tp-post__title { font-size: 2.1rem; line-height: 1.2; margin: 0 0 .75rem; }
@media (max-width: 600px) { .tp-post__title { font-size: 1.6rem; } }
.tp-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--tp-text-mute); font-size: .9rem; }
.tp-post__dot { opacity: .5; }
.tp-post__cover {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
    border-radius: var(--tp-radius); border: 1px solid var(--tp-border);
    margin-bottom: 2rem;
}

/* Tipografía del cuerpo del artículo (HTML sanitizado). */
.tp-post__body { font-size: 1.05rem; line-height: 1.8; color: var(--tp-text); }
.tp-post__body h2 { font-size: 1.5rem; line-height: 1.3; margin: 2.25rem 0 .9rem; }
.tp-post__body h3 { font-size: 1.2rem; line-height: 1.35; margin: 1.75rem 0 .7rem; }
.tp-post__body h4 { font-size: 1.05rem; margin: 1.5rem 0 .6rem; }
.tp-post__body p { margin: 0 0 1.2rem; }
.tp-post__body ul, .tp-post__body ol { margin: 0 0 1.2rem; padding-left: 1.5rem; }
.tp-post__body li { margin-bottom: .4rem; }
.tp-post__body a { color: var(--tp-accent); text-decoration: underline; }
.tp-post__body img { max-width: 100%; height: auto; border-radius: var(--tp-radius); margin: 1rem 0; }
.tp-post__body blockquote {
    margin: 1.5rem 0; padding: .75rem 1.25rem;
    border-left: 3px solid var(--tp-accent);
    color: var(--tp-text-mute); font-style: italic;
}
.tp-post__body pre {
    background: var(--tp-surface); border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius); padding: 1rem; overflow-x: auto; font-size: .9rem;
}
.tp-post__body code { font-family: var(--tp-font-mono, monospace); font-size: .92em; }
.tp-post__foot {
    display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center;
    margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--tp-border);
}

/* Vídeo y embeds dentro del artículo del blog. */
.tp-post__body video { max-width: 100%; border-radius: var(--tp-radius); display: block; margin: 1.5rem 0; }
.tp-post__body .tp-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 1.75rem 0; border-radius: var(--tp-radius); overflow: hidden; background: #000; }
.tp-post__body .tp-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Selector de idioma del artículo (traducciones enlazadas). */
.tp-post__langs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.tp-post__langs a {
    font-size: .8rem; padding: .25rem .7rem; border-radius: 999px;
    border: 1px solid var(--tp-border); color: var(--tp-text-mute); text-decoration: none;
    transition: border-color .12s, color .12s;
}
.tp-post__langs a:hover { border-color: var(--tp-border-strong); color: var(--tp-text); }
.tp-post__langs a.is-active { border-color: var(--tp-accent); color: var(--tp-accent); font-weight: 600; }
