/*
 * tdc-site.css  —  Tarjetas Digitales Chile (secciones del front)
 * ------------------------------------------------------------
 * Header/nav, hero, productos, panel empresas, beneficios, planes,
 * testimonios, FAQ, CTA final, contacto, footer y la página de producto.
 * Naming BEM con prefijo .tdc-. Depende de tokens de tdc-base.css.
 * ------------------------------------------------------------
 */

/* ==========================================================
   Layout general de página
   ========================================================== */
.tdc-page { position: relative; }

.tdc-section { position: relative; z-index: 2; }

/* Glows de fondo (radiales) reutilizables como decoración de sección */
.tdc-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================
   Header / navbar (sticky, dark, blur)
   ========================================================== */
/* ==========================================================
   Topbar de anuncios (franja verde sobre el header)
   ========================================================== */
.tdc-topbar {
    position: relative;
    z-index: 61;
    height: 40px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--a1), var(--a2));
}
.tdc-topbar__msg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    color: var(--tdc-bg);
    font-family: var(--tdc-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}
.tdc-topbar__msg.is-on {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    /* El entrante espera a que el saliente termine su fade (secuencial). */
    transition-delay: .3s;
}
.tdc-topbar__text { overflow: hidden; text-overflow: ellipsis; }
.tdc-topbar__arrow { transition: transform .2s ease; flex-shrink: 0; }
.tdc-topbar__msg:hover .tdc-topbar__arrow { transform: translateX(4px); }
@media (max-width: 640px) {
    .tdc-topbar__msg { font-size: 11px; letter-spacing: .04em; }
}

.tdc-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--tdc-bg) 78%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--tdc-line-soft);
}
.tdc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--tdc-max);
    margin: 0 auto;
    padding: 18px 40px;
    gap: 24px;
}
.tdc-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--tdc-ink);
    flex-shrink: 0;
}
.tdc-brand:hover { color: var(--tdc-ink); }
.tdc-brand__mark {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--a1), var(--a2));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--tdc-display);
    font-weight: 700;
    color: var(--tdc-bg);
    font-size: 16px;
    flex-shrink: 0;
}
.tdc-brand__mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
/* Logo subido: sin chip verde, usando su alto completo sobre el fondo oscuro */
.tdc-brand__mark--logo {
    width: auto;
    height: 56px;
    background: none !important;
    border-radius: 0;
    overflow: visible;
}
.tdc-brand__mark--logo img {
    width: auto;
    height: 100%;
    max-width: 260px;
    object-fit: contain;
    border-radius: 0;
}
/* Cuando hay logo, el nav se ajusta a su alto sin recortarlo */
.tdc-brand--logo { padding: 6px 0; }
.tdc-brand__name {
    font-family: var(--tdc-display);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -.01em;
}
.tdc-nav__menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0 auto;
}
.tdc-nav__menu a {
    font-size: 14.5px;
    color: var(--tdc-muted);
    transition: color .15s;
}
.tdc-nav__menu a:hover,
.tdc-nav__menu a.is-active { color: var(--tdc-ink); }

/* ---- Dropdown "Productos" (desktop) ---- */
.tdc-nav__dropdown { position: relative; }
.tdc-nav__dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.tdc-nav__caret { transition: transform .18s ease; opacity: .8; }
.tdc-nav__dropdown:hover .tdc-nav__caret,
.tdc-nav__dropdown:focus-within .tdc-nav__caret { transform: rotate(180deg); }
.tdc-nav__panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 290px;
    padding: 8px;
    background: var(--tdc-surface);
    border: 1px solid var(--tdc-line);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    z-index: 70;
}
/* Puente invisible para que el hover no se corte al bajar al panel */
.tdc-nav__dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}
.tdc-nav__dropdown:hover .tdc-nav__panel,
.tdc-nav__dropdown:focus-within .tdc-nav__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 4px);
}
.tdc-nav__panel-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--tdc-ink) !important;
    transition: background .14s ease;
}
.tdc-nav__panel-item:hover { background: rgba(255, 255, 255, .05); }
.tdc-nav__panel-name { font-size: 14.5px; font-weight: 600; }
.tdc-nav__panel-desc {
    font-size: 12.5px;
    color: var(--tdc-muted-2);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.tdc-nav__panel-all {
    margin-top: 4px;
    padding: 10px 12px;
    border-top: 1px solid var(--tdc-line-soft);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--a1) !important;
}

.tdc-nav__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.tdc-nav__burger {
    display: none;
    background: transparent;
    border: none;
    width: 40px; height: 40px;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.tdc-nav__burger span {
    display: block; width: 22px; height: 2px;
    background: var(--tdc-ink); border-radius: 2px;
}

/* Breadcrumb (página producto) en lugar del menú */
.tdc-breadcrumb {
    font-family: var(--tdc-mono);
    font-size: 12.5px;
    color: var(--tdc-muted-2);
    margin: 0 0 0 auto;
}
.tdc-breadcrumb b { color: var(--a1); font-weight: 400; }

/* ---- Drawer mobile ---- */
.tdc-drawer__backdrop {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .55);
    opacity: 0; pointer-events: none;
    transition: opacity .25s; z-index: 90;
}
.tdc-drawer__backdrop.is-open { opacity: 1; pointer-events: auto; }
.tdc-drawer {
    position: fixed; top: 0; right: 0;
    height: 100dvh; width: min(86vw, 320px);
    background: var(--tdc-surface);
    border-left: 1px solid var(--tdc-line);
    z-index: 100;
    transform: translateX(100%);
    transition: transform .28s ease;
    display: flex; flex-direction: column;
    padding: 18px;
}
.tdc-drawer.is-open { transform: translateX(0); }
.tdc-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tdc-drawer__close { background: transparent; border: none; color: var(--tdc-muted); cursor: pointer; padding: 6px; }
.tdc-drawer__menu { display: flex; flex-direction: column; gap: 4px; }
.tdc-drawer__menu a { color: var(--tdc-ink); padding: 12px 10px; border-radius: 10px; font-weight: 500; }
.tdc-drawer__menu a:hover { background: rgba(255, 255, 255, .05); }
.tdc-drawer__sub { display: flex; flex-direction: column; margin: 0 0 4px 10px; border-left: 1px solid var(--tdc-line-soft); }
.tdc-drawer__sub a { font-size: 14px; font-weight: 400; color: var(--tdc-muted); padding: 9px 12px; }
.tdc-drawer__sub a:hover { color: var(--tdc-ink); }
.tdc-drawer__cta { margin-top: 18px; }

/* ==========================================================
   Hero
   ========================================================== */
.tdc-hero { position: relative; z-index: 2; }
.tdc-hero__glow-1 {
    top: -200px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, color-mix(in srgb, var(--a1) 16%, transparent), transparent 60%);
}
.tdc-hero__glow-2 {
    top: 480px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, color-mix(in srgb, var(--a2) 14%, transparent), transparent 60%);
}
.tdc-hero__inner {
    position: relative; z-index: 2;
    max-width: var(--tdc-max);
    margin: 0 auto;
    padding: 60px 40px 80px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center;
}
.tdc-hero__title {
    font-size: 64px;
    line-height: 1.02;
    letter-spacing: -.03em;
    margin: 24px 0 0;
}
.tdc-hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--tdc-muted);
    max-width: 480px;
    margin: 24px 0 0;
}
.tdc-hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.tdc-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.tdc-stat__value { font-family: var(--tdc-display); font-weight: 700; font-size: 30px; }
.tdc-stat__label { font-size: 13px; color: var(--tdc-muted-2); }
.tdc-stats__divider { width: 1px; background: rgba(255, 255, 255, .1); align-self: stretch; }

/* ---- Phone mock ---- */
.tdc-phone-wrap { position: relative; display: flex; justify-content: center; }
.tdc-phone-ring {
    position: absolute; top: 50%; left: 50%;
    width: 260px; height: 260px;
    border: 1px solid color-mix(in srgb, var(--a1) 40%, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: tdc-ring 3s ease-out infinite;
}
.tdc-phone-ring--delay { animation-delay: 1.5s; }
.tdc-phone {
    position: relative;
    width: 280px; height: 560px;
    border-radius: 42px;
    background: linear-gradient(160deg, #0d1426, #070b18);
    border: 1px solid var(--tdc-line-strong);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
    padding: 16px;
    animation: tdc-float 6s ease-in-out infinite;
}
.tdc-phone__screen {
    height: 100%;
    border-radius: 28px;
    background: var(--tdc-surface);
    overflow: hidden;
    display: flex; flex-direction: column;
}
.tdc-phone__cover {
    height: 120px;
    background: linear-gradient(135deg, var(--a1), var(--a2));
    position: relative;
}
.tdc-phone__avatar {
    position: absolute; bottom: -32px; left: 24px;
    width: 66px; height: 66px;
    border-radius: 50%;
    background: var(--tdc-surface);
    border: 3px solid var(--tdc-surface);
    display: flex; align-items: center; justify-content: center;
}
.tdc-phone__avatar span {
    width: 60px; height: 60px; border-radius: 50%;
    background: repeating-linear-gradient(45deg, #1a2336, #1a2336 6px, #222d44 6px, #222d44 12px);
}
.tdc-phone__body { padding: 44px 24px 0; }
.tdc-phone__name { font-family: var(--tdc-display); font-weight: 700; font-size: 19px; }
.tdc-phone__role { font-size: 13px; color: var(--tdc-muted-2); margin-top: 2px; }
.tdc-phone__cta { display: flex; gap: 8px; margin-top: 18px; }
.tdc-phone__save {
    flex: 1; height: 38px; border-radius: 9px;
    background: var(--a1); color: var(--tdc-bg);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}
.tdc-phone__icon {
    width: 38px; height: 38px; border-radius: 9px;
    background: rgba(255, 255, 255, .08);
    display: flex; align-items: center; justify-content: center;
    color: var(--a1);
}
.tdc-phone__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.tdc-phone__link {
    height: 34px; border-radius: 8px;
    background: rgba(255, 255, 255, .05);
    display: flex; align-items: center; padding: 0 12px;
    font-size: 12px; color: var(--tdc-muted);
}
/* Imagen del producto dentro del teléfono (reemplazable desde el admin). */
.tdc-phone__media { height: 100%; }
.tdc-phone__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Placeholder mientras el admin no carga la imagen del producto. */
.tdc-phone__ph {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px;
    padding: 24px; text-align: center;
}
.tdc-phone__ph-name { font-family: var(--tdc-display); font-weight: 700; font-size: 18px; }
.tdc-phone__ph-hint {
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--tdc-muted-2);
}

/* ---- Slider del hero ---- */
.tdc-hero__viewport { overflow: hidden; }
.tdc-hero__track {
    display: flex;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}
.tdc-hero__slide { flex: 0 0 100%; min-width: 0; }
.tdc-hero__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 4;
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--tdc-surface); color: var(--tdc-text);
    border: 1px solid var(--tdc-line-strong);
    font-size: 26px; line-height: 1; cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
}
.tdc-hero__arrow:hover { background: rgba(255, 255, 255, .08); border-color: color-mix(in srgb, var(--a1) 50%, transparent); }
.tdc-hero__arrow--prev { left: 18px; }
.tdc-hero__arrow--next { right: 18px; }
.tdc-hero__dots {
    position: relative; z-index: 4;
    display: flex; justify-content: center; gap: 9px;
    margin-top: -28px; padding-bottom: 12px;
}
.tdc-hero__dot {
    width: 9px; height: 9px; border-radius: 50%; padding: 0;
    background: rgba(255, 255, 255, .2); border: 0; cursor: pointer;
    transition: background .25s, width .25s;
}
.tdc-hero__dot.is-active { width: 26px; border-radius: 5px; background: var(--a1); }
@media (prefers-reduced-motion: reduce) {
    .tdc-hero__track { transition: none; }
}

/* ==========================================================
   Patillas flotantes de beneficios — hero home + página producto
   Flotan alrededor de la imagen del producto destacando benefits.
   ========================================================== */
@keyframes tdc-pin-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}
.tdc-hero__pin,
.tdc-prod-hero__pin {
    position: absolute;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    background: color-mix(in srgb, var(--tdc-surface-2) 94%, transparent);
    border: 1px solid var(--tdc-line-strong);
    border-radius: 12px;
    font-size: 12.5px; font-weight: 600; color: var(--tdc-ink);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
    white-space: nowrap;
    pointer-events: none;
    z-index: 4;
    line-height: 1;
}
.tdc-hero__pin svg,
.tdc-prod-hero__pin svg {
    width: 15px; height: 15px; flex: none;
    stroke: var(--a1);
}

/* Posiciones para las slides de producto en el hero del home (dentro de .tdc-phone-wrap) */
.tdc-hero__pin--1 {
    top: 10%; left: 0;
    animation: tdc-pin-float 5.4s ease-in-out infinite;
    animation-delay: -1s;
}
.tdc-hero__pin--2 {
    top: 22%; right: 0;
    animation: tdc-pin-float 6.2s ease-in-out infinite;
    animation-delay: -3s;
}
.tdc-hero__pin--3 {
    bottom: 30%; left: 0;
    animation: tdc-pin-float 5.8s ease-in-out infinite;
    animation-delay: -4.5s;
}
.tdc-hero__pin--4 {
    bottom: 12%; right: 0;
    animation: tdc-pin-float 6.6s ease-in-out infinite;
    animation-delay: -0.8s;
}

/* Wrapper para la media de la página de producto (necesario para no quedar clipped) */
.tdc-prod-hero__media-wrap { position: relative; }

/* Posiciones para la página de producto (dentro de .tdc-prod-hero__media-wrap).
   translateX parcial: las patillas sobresalen del borde de la imagen ~24px. */
.tdc-prod-hero__pin--1 {
    top: 10%; left: 0; transform: translateX(-26px);
    animation: tdc-pin-float 5.4s ease-in-out infinite;
    animation-delay: -1s;
}
.tdc-prod-hero__pin--2 {
    top: 25%; right: 0; transform: translateX(26px);
    animation: tdc-pin-float 6.2s ease-in-out infinite;
    animation-delay: -3s;
}
.tdc-prod-hero__pin--3 {
    bottom: 30%; left: 0; transform: translateX(-26px);
    animation: tdc-pin-float 5.8s ease-in-out infinite;
    animation-delay: -4.5s;
}
.tdc-prod-hero__pin--4 {
    bottom: 12%; right: 0; transform: translateX(26px);
    animation: tdc-pin-float 6.6s ease-in-out infinite;
    animation-delay: -0.8s;
}

@media (max-width: 980px) {
    .tdc-hero__pin,
    .tdc-prod-hero__pin { display: none; }
}

/* ==========================================================
   Marquee de clientes
   ========================================================== */
.tdc-marquee {
    position: relative; z-index: 2;
    border-top: 1px solid var(--tdc-line-soft);
    border-bottom: 1px solid var(--tdc-line-soft);
    padding: 26px 0;
    overflow: hidden;
}
.tdc-marquee__label {
    text-align: center;
    font-family: var(--tdc-mono);
    font-size: 11px;
    letter-spacing: .18em;
    color: var(--tdc-muted-3);
    margin-bottom: 18px;
}
.tdc-marquee__track {
    display: flex; gap: 60px;
    width: max-content;
    animation: tdc-marquee 26s linear infinite;
    opacity: .6;
}
.tdc-marquee__item {
    font-family: var(--tdc-display);
    font-weight: 600;
    font-size: 22px;
    color: #cdd6ee;
    white-space: nowrap;
}
.tdc-marquee__item--logo { display: flex; align-items: center; }
.tdc-marquee__item--logo img {
    height: 34px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    /* Los logos llegan de cualquier color: se normalizan a "blanco tenue"
       para que convivan con los nombres en texto de la franja. */
    filter: grayscale(1) brightness(1.75) contrast(.9);
}

/* ==========================================================
   Sección genérica + encabezados
   ========================================================== */
.tdc-block { position: relative; z-index: 2; max-width: var(--tdc-max); margin: 0 auto; padding: 90px 40px; }
.tdc-block--tight { padding: 60px 40px; }
.tdc-head { max-width: 600px; }
.tdc-head--center { margin: 0 auto; text-align: center; }
.tdc-head__title { font-size: 42px; letter-spacing: -.02em; margin: 14px 0 0; }
.tdc-head__sub { color: var(--tdc-muted-2); font-size: 15px; margin: 10px 0 0; }
.tdc-head--mb { margin-bottom: 28px; }
.tdc-form-alert { margin-top: 24px; }

/* ==========================================================
   Productos (grid de 4)
   ========================================================== */
.tdc-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.tdc-product {
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid var(--tdc-line);
    border-radius: 18px;
    padding: 22px;
    display: flex; flex-direction: column; gap: 14px;
    transition: transform .18s, border-color .18s, background .18s;
}
.tdc-product:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--a1) 35%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--a1) 10%, transparent), rgba(255, 255, 255, .02));
}
.tdc-product__thumb {
    position: relative; overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: repeating-linear-gradient(135deg, #0d1426, #0d1426 10px, #111b30 10px, #111b30 20px);
    display: flex; align-items: flex-end; justify-content: space-between;
    padding: 12px;
}
/* Luz difuminada que recorre el fondo del thumb, por detrás de la foto.
   Como los PNG de producto tienen fondo transparente, el resplandor se
   filtra por los bordes y aporta profundidad. */
.tdc-product__thumb::before {
    content: "";
    position: absolute; z-index: 0;
    width: 150%; height: 150%; left: -25%; top: -25%;
    background: radial-gradient(circle at 35% 35%,
        color-mix(in srgb, var(--a1) 60%, transparent) 0%,
        color-mix(in srgb, var(--a1) 20%, transparent) 35%,
        transparent 62%);
    filter: blur(28px);
    pointer-events: none;
    will-change: transform, opacity;
    animation: tdc-glow-sweep 8s ease-in-out infinite;
}
.tdc-product__thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.tdc-product__thumb .tdc-product__ph,
.tdc-product__thumb .tdc-product__tag { position: relative; z-index: 1; }
/* Desfase por tarjeta para que las luces no latan al unísono. */
.tdc-product:nth-child(2) .tdc-product__thumb::before { animation-delay: -2s; animation-duration: 9s; }
.tdc-product:nth-child(3) .tdc-product__thumb::before { animation-delay: -4s; animation-duration: 7.5s; }
.tdc-product:nth-child(4) .tdc-product__thumb::before { animation-delay: -6s; animation-duration: 8.5s; }
@keyframes tdc-glow-sweep {
    0%   { transform: translate(-28%, 22%) scale(.9);  opacity: .18; }
    50%  { transform: translate(26%, -16%) scale(1.2); opacity: .5;  }
    100% { transform: translate(-28%, 22%) scale(.9);  opacity: .18; }
}
@media (prefers-reduced-motion: reduce) {
    .tdc-product__thumb::before { animation: none; opacity: .3; transform: translate(0, 0); }
}
.tdc-product__ph { font-family: var(--tdc-mono); font-size: 10px; color: var(--tdc-faint); }
.tdc-product__tag {
    font-family: var(--tdc-mono); font-size: 10px; color: var(--a1);
    border: 1px solid color-mix(in srgb, var(--a1) 40%, transparent);
    padding: 3px 7px; border-radius: 6px;
}
.tdc-product__name { font-family: var(--tdc-display); font-weight: 600; font-size: 18px; }
.tdc-product__desc { font-size: 13.5px; line-height: 1.5; color: var(--tdc-muted-2); flex: 1; }
.tdc-product__more { font-family: var(--tdc-mono); font-size: 12px; color: var(--a1); }

/* ==========================================================
   Panel empresas / equipo de ventas
   ========================================================== */
.tdc-corp {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0d1426, #0a0f1f);
    border: 1px solid var(--tdc-line);
    border-radius: 28px;
    padding: 54px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: center;
}
.tdc-corp__glow {
    position: absolute; top: -100px; right: -60px;
    width: 340px; height: 340px;
    background: radial-gradient(circle, color-mix(in srgb, var(--a2) 22%, transparent), transparent 65%);
    pointer-events: none;
}
.tdc-corp__title { font-size: 40px; letter-spacing: -.02em; margin: 14px 0 0; line-height: 1.05; }
.tdc-corp__text { font-size: 16px; line-height: 1.6; color: var(--tdc-muted); margin: 20px 0 0; }
.tdc-corp__points { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.tdc-corp__point { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #dde4f5; }
.tdc-check {
    width: 20px; height: 20px; flex: none;
    border-radius: 6px;
    background: color-mix(in srgb, var(--a1) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--a1) 40%, transparent);
    display: flex; align-items: center; justify-content: center;
    color: var(--a1); font-size: 12px;
}
.tdc-corp__inner { position: relative; }
.tdc-corp__cta { margin: 32px 0 0; }
.tdc-testimonials { margin-top: 28px; }

.tdc-panel {
    position: relative; z-index: 2;
    background: var(--tdc-surface-3);
    border: 1px solid var(--tdc-line-strong);
    border-radius: 18px;
    padding: 22px;
}
.tdc-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.tdc-panel__title { font-family: var(--tdc-display); font-weight: 600; font-size: 15px; }
.tdc-panel__live { font-family: var(--tdc-mono); font-size: 11px; color: var(--a1); }
.tdc-panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tdc-metric {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--tdc-line);
    border-radius: 12px;
    padding: 16px;
}
.tdc-metric__value { font-family: var(--tdc-display); font-weight: 700; font-size: 26px; color: var(--a1); }
.tdc-metric__label { font-size: 12px; color: var(--tdc-muted-2); margin-top: 4px; }
.tdc-panel__chart {
    margin-top: 14px; height: 90px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--tdc-line);
    display: flex; align-items: flex-end; gap: 6px; padding: 14px;
}
.tdc-panel__bar { flex: 1; background: linear-gradient(var(--a1), var(--a2)); border-radius: 4px; }
.tdc-panel__bar:nth-child(1) { height: 40%; }
.tdc-panel__bar:nth-child(2) { height: 65%; }
.tdc-panel__bar:nth-child(3) { height: 50%; }
.tdc-panel__bar:nth-child(4) { height: 85%; }
.tdc-panel__bar:nth-child(5) { height: 70%; }
.tdc-panel__bar:nth-child(6) { height: 100%; }

/* ==========================================================
   Beneficios (grid de 6)
   ========================================================== */
.tdc-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.tdc-benefit {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--tdc-line);
    border-radius: 18px;
    padding: 26px;
}
.tdc-benefit__num {
    width: 42px; height: 42px; border-radius: 11px;
    background: color-mix(in srgb, var(--a1) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--a1) 30%, transparent);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--tdc-mono); color: var(--a1); font-size: 15px;
}
/* Variante con ícono SVG on-brand (semilla 027); fallback al número si falta el archivo */
.tdc-benefit__num svg { width: 23px; height: 23px; display: block; }
.tdc-benefit__title { font-family: var(--tdc-display); font-weight: 600; font-size: 19px; margin-top: 18px; }
.tdc-benefit__text { font-size: 14px; line-height: 1.55; color: var(--tdc-muted-2); margin-top: 8px; }

/* ==========================================================
   Planes / precios
   ========================================================== */
.tdc-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; align-items: start; }
.tdc-plan {
    position: relative;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--tdc-line-strong);
    border-radius: 20px;
    padding: 30px;
}
.tdc-plan--featured {
    background: linear-gradient(180deg, color-mix(in srgb, var(--a1) 12%, transparent), color-mix(in srgb, var(--a2) 8%, transparent));
    border: 1px solid color-mix(in srgb, var(--a1) 40%, transparent);
    box-shadow: 0 0 50px color-mix(in srgb, var(--a1) 18%, transparent);
}
.tdc-plan__tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    font-family: var(--tdc-mono); font-size: 11px; letter-spacing: .06em;
    color: var(--tdc-bg); background: var(--a1);
    padding: 5px 14px; border-radius: 999px;
}
.tdc-plan__name { font-family: var(--tdc-display); font-weight: 600; font-size: 18px; }
.tdc-plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.tdc-plan__amount { font-family: var(--tdc-display); font-weight: 700; font-size: 38px; }
.tdc-plan__period { font-size: 13px; color: var(--tdc-muted-2); }
.tdc-plan__divider { height: 1px; background: rgba(255, 255, 255, .1); margin: 22px 0; }
.tdc-plan__features { display: flex; flex-direction: column; gap: 12px; }
.tdc-plan__feature { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #cdd6ee; }
.tdc-plan__feature span { color: var(--a1); }
.tdc-plan__btn { margin-top: 26px; }
.tdc-plan__btn .tdc-btn { width: 100%; padding: 13px; border-radius: 11px; font-size: 14.5px; }

/* ==========================================================
   Testimonios
   ========================================================== */
.tdc-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tdc-testimonial {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--tdc-line);
    border-radius: 18px;
    padding: 26px;
}
.tdc-testimonial__stars { color: var(--a1); font-size: 15px; letter-spacing: 2px; }
.tdc-testimonial__quote { font-size: 15px; line-height: 1.6; color: #dde4f5; margin: 16px 0 20px; }
.tdc-testimonial__author { display: flex; align-items: center; gap: 12px; }
.tdc-testimonial__avatar {
    width: 40px; height: 40px; border-radius: 50%; flex: none;
    background: repeating-linear-gradient(45deg, #1a2336, #1a2336 5px, #222d44 5px, #222d44 10px);
}
.tdc-testimonial__name { font-weight: 700; font-size: 14px; }
.tdc-testimonial__role { font-size: 12px; color: var(--tdc-muted-2); }

/* ==========================================================
   FAQ (home) — details/summary nativo
   ========================================================== */
.tdc-faq { max-width: 760px; margin: 44px auto 0; display: grid; gap: 12px; }
.tdc-faq__item {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--tdc-line);
    border-radius: 14px;
}
.tdc-faq__item[open] { border-color: color-mix(in srgb, var(--a1) 35%, transparent); }
.tdc-faq__q {
    list-style: none;
    padding: 18px 22px;
    font-family: var(--tdc-display);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.tdc-faq__q::-webkit-details-marker { display: none; }
.tdc-faq__q::after { content: "+"; font-size: 1.3rem; color: var(--a1); transition: transform .2s; flex: none; }
.tdc-faq__item[open] .tdc-faq__q::after { transform: rotate(45deg); }
.tdc-faq__a { padding: 0 22px 18px; font-size: 14.5px; line-height: 1.6; color: var(--tdc-muted); }

/* ==========================================================
   CTA final
   ========================================================== */
.tdc-cta {
    position: relative; overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #0d1426, #0a0f1f);
    border: 1px solid color-mix(in srgb, var(--a1) 38%, transparent);
    padding: 64px;
    text-align: center;
}
.tdc-cta__glow {
    position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
    width: 540px; height: 300px;
    background: radial-gradient(circle, color-mix(in srgb, var(--a1) 18%, transparent), transparent 65%);
    pointer-events: none;
}
.tdc-cta__inner { position: relative; z-index: 2; }
.tdc-cta__title { font-size: 46px; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
.tdc-cta__text { font-size: 17px; color: var(--tdc-muted); margin: 16px 0 32px; }
.tdc-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================
   Sección contacto (lead form)
   ========================================================== */
.tdc-contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; margin-top: 44px; align-items: start; }
.tdc-contact--single { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.tdc-contact__card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
    border: 1px solid var(--tdc-line);
    border-radius: 20px;
    padding: 32px;
}
.tdc-contact__aside {
    background: linear-gradient(135deg, #0d1426, #0a0f1f);
    border: 1px solid var(--tdc-line);
    border-radius: 20px;
    padding: 32px;
}
.tdc-contact__wa { margin-bottom: 22px; }
.tdc-contact__list { margin: 0; display: grid; gap: 4px; }
.tdc-contact__list dt {
    font-family: var(--tdc-mono); font-size: 11px; letter-spacing: .1em;
    color: var(--tdc-muted-3); margin-top: 18px;
}
.tdc-contact__list dt:first-child { margin-top: 0; }
.tdc-contact__list dd { margin: 0; font-size: 15px; color: var(--tdc-ink); }
.tdc-contact__list dd a { color: var(--tdc-ink); }
.tdc-contact__list dd a:hover { color: var(--a1); }

/* ==========================================================
   Footer
   ========================================================== */
.tdc-footer {
    position: relative; z-index: 2;
    border-top: 1px solid var(--tdc-line);
    padding: 50px 0;
}
.tdc-footer__inner {
    max-width: var(--tdc-max); margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 30px;
}
.tdc-footer__about { color: var(--tdc-muted-2); font-size: 13px; max-width: 280px; margin: 16px 0 0; }
.tdc-footer__cols { display: flex; gap: 60px; font-size: 14px; flex-wrap: wrap; }
.tdc-footer__col { display: flex; flex-direction: column; gap: 10px; color: var(--tdc-muted); }
.tdc-footer__col h4 { color: #fff; font-weight: 600; font-size: 14px; margin: 0 0 4px; font-family: var(--tdc-font); letter-spacing: 0; }
.tdc-footer__col a { color: var(--tdc-muted); }
.tdc-footer__col a:hover { color: #fff; }
.tdc-footer__bottom {
    max-width: var(--tdc-max); margin: 40px auto 0; padding: 24px 40px 0;
    border-top: 1px solid var(--tdc-line-soft);
    font-size: 12px; color: var(--tdc-muted-3);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.tdc-footer__bottom a { color: var(--tdc-muted-3); }
.tdc-footer__bottom a:hover { color: var(--tdc-ink); }

/* ==========================================================
   Botón flotante de WhatsApp
   ========================================================== */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .45);
    z-index: 90;
    transition: transform .18s, box-shadow .18s;
}
.wa-float:hover { transform: scale(1.06); box-shadow: 0 10px 26px rgba(37, 211, 102, .55); }
@media (max-width: 600px) {
    .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* ==========================================================
   Blog (índice)
   ========================================================== */
.tdc-blog {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.tdc-blog__card {
    display: flex; flex-direction: column;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--tdc-line);
    border-radius: 18px;
    overflow: hidden;
    color: var(--tdc-ink);
    transition: transform .18s, border-color .18s;
}
.tdc-blog__card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a1) 35%, transparent); color: var(--tdc-ink); }
.tdc-blog__thumb {
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--a1) 22%, transparent), transparent 60%),
        repeating-linear-gradient(135deg, #0d1426, #0d1426 10px, #111b30 10px, #111b30 20px);
}
.tdc-blog__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tdc-blog__date { font-family: var(--tdc-mono); font-size: 11px; color: var(--tdc-muted-3); }
.tdc-blog__title { font-family: var(--tdc-display); font-weight: 600; font-size: 18px; margin: 0; line-height: 1.25; }
.tdc-blog__excerpt { font-size: 13.5px; line-height: 1.5; color: var(--tdc-muted-2); margin: 0; flex: 1; }
.tdc-blog__more { font-family: var(--tdc-mono); font-size: 12px; color: var(--a1); margin-top: 4px; }

@media (max-width: 980px) { .tdc-blog { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tdc-blog { grid-template-columns: 1fr; } }

/* ==========================================================
   Página de producto
   ========================================================== */
.tdc-prod-hero {
    position: relative; z-index: 2;
    max-width: var(--tdc-max); margin: 0 auto;
    padding: 40px 40px 70px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.tdc-prod-hero__media {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    background: linear-gradient(160deg, #0d1426, #070b18);
    border: 1px solid var(--tdc-line-strong);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.tdc-prod-hero__media::before {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(135deg, transparent, transparent 22px, rgba(255, 255, 255, .02) 22px, rgba(255, 255, 255, .02) 44px);
}
.tdc-prod-hero__media img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.tdc-card-mock {
    position: relative; z-index: 2;
    width: 320px; max-width: 80%; aspect-ratio: 320 / 200;
    border-radius: 14px;
    background: linear-gradient(135deg, #10182b, #0a0f1f);
    border: 1px solid color-mix(in srgb, var(--a1) 30%, transparent);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
    padding: 24px;
    display: flex; flex-direction: column; justify-content: space-between;
    animation: tdc-float 6s ease-in-out infinite;
}
.tdc-card-mock__top { display: flex; justify-content: space-between; }
.tdc-card-mock__brand { font-family: var(--tdc-display); font-weight: 700; font-size: 22px; }
.tdc-card-mock__nfc {
    width: 36px; height: 28px;
    border: 1px solid color-mix(in srgb, var(--a1) 50%, transparent);
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
}
.tdc-card-mock__nfc span { width: 13px; height: 13px; border: 1.5px solid var(--a1); border-radius: 50%; animation: tdc-pulse 2s infinite; }
.tdc-card-mock__name { font-family: var(--tdc-display); font-weight: 700; font-size: 16px; }
.tdc-card-mock__role { font-size: 11px; color: var(--tdc-muted-2); }

.tdc-prod-hero__price { display: flex; align-items: baseline; gap: 10px; margin: 28px 0; }
.tdc-prod-hero__amount { font-family: var(--tdc-display); font-weight: 700; font-size: 40px; }
.tdc-prod-hero__note { color: var(--tdc-muted-2); font-size: 14px; }
.tdc-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.tdc-chip {
    font-family: var(--tdc-mono); font-size: 12px; color: var(--tdc-muted);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--tdc-line);
    padding: 7px 12px; border-radius: 8px;
}

.tdc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tdc-step {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--tdc-line);
    border-radius: 18px;
    padding: 30px;
}
.tdc-step__num { font-family: var(--tdc-display); font-weight: 700; font-size: 42px; color: color-mix(in srgb, var(--a1) 35%, transparent); }
.tdc-step__title { font-family: var(--tdc-display); font-weight: 600; font-size: 20px; margin-top: 10px; }
.tdc-step__text { font-size: 14.5px; line-height: 1.55; color: var(--tdc-muted-2); margin-top: 8px; }

.tdc-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.tdc-spec-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
    border: 1px solid var(--tdc-line);
    border-radius: 20px;
    padding: 32px;
}
.tdc-spec-card__label { font-family: var(--tdc-mono); font-size: 12px; color: var(--a1); letter-spacing: .1em; }
.tdc-spec-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--tdc-line-soft); font-size: 14.5px; }
.tdc-spec-row span:first-child { color: var(--tdc-muted-2); }
.tdc-spec-row span:last-child { font-weight: 600; }
.tdc-included { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.tdc-included__item { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: #dde4f5; }

.tdc-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tdc-related__item {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--tdc-line);
    border-radius: 16px;
    padding: 20px;
    display: flex; gap: 16px; align-items: center;
    transition: border-color .18s;
}
.tdc-related__item:hover { border-color: color-mix(in srgb, var(--a1) 35%, transparent); }
.tdc-related__thumb {
    width: 62px; height: 62px; flex: none; border-radius: 12px;
    background: repeating-linear-gradient(135deg, #0d1426, #0d1426 8px, #111b30 8px, #111b30 16px);
}
.tdc-related__name { font-family: var(--tdc-display); font-weight: 600; font-size: 16px; }
.tdc-related__desc { font-size: 12.5px; color: var(--tdc-muted-2); margin-top: 3px; }

.tdc-prod-cta {
    border-radius: 24px;
    background: linear-gradient(135deg, var(--a1), var(--a2));
    padding: 54px; text-align: center;
}
.tdc-prod-cta h2 { font-family: var(--tdc-display); font-weight: 700; font-size: 38px; color: var(--tdc-bg); margin: 0; }
.tdc-prod-cta p { color: rgba(6, 7, 15, .75); font-weight: 600; margin: 14px 0 28px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
    .tdc-hero__inner { grid-template-columns: 1fr; }
    .tdc-phone-wrap { order: -1; }
    /* En pantallas chicas las flechas estorban: navegamos con puntos + swipe. */
    .tdc-hero__arrow { display: none; }
    .tdc-hero__dots { margin-top: 4px; }
    .tdc-products { grid-template-columns: repeat(2, 1fr); }
    .tdc-corp { grid-template-columns: 1fr; padding: 40px; }
    .tdc-benefits { grid-template-columns: repeat(2, 1fr); }
    .tdc-plans { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
    .tdc-testimonials { grid-template-columns: 1fr; }
    .tdc-steps { grid-template-columns: 1fr; }
    .tdc-specs { grid-template-columns: 1fr; }
    .tdc-related { grid-template-columns: 1fr; }
    .tdc-prod-hero { grid-template-columns: 1fr; }
    .tdc-contact { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .tdc-nav__menu { display: none; }
    .tdc-nav__burger { display: flex; }
    /* El CTA "Prueba gratis" se mantiene visible junto al menú hamburguesa. */
    .tdc-nav__actions { gap: 8px; }
}

@media (max-width: 560px) {
    /* En teléfonos ocultamos el wordmark (queda la marca/logo) para que entren
       el CTA "Prueba gratis" y el menú hamburguesa sin desbordar. */
    .tdc-brand__name { display: none; }
    .tdc-nav__actions .tdc-btn--sm { padding: 9px 15px; font-size: 13px; }
    .tdc-brand__mark--logo img { max-width: 150px; }
}

@media (max-width: 640px) {
    .tdc-nav { padding: 14px 20px; }
    .tdc-hero__inner { padding: 40px 20px 60px; }
    .tdc-hero__title { font-size: 40px; }
    .tdc-block { padding: 60px 20px; }
    .tdc-block--tight { padding: 40px 20px; }
    .tdc-head__title { font-size: 30px; }
    .tdc-products { grid-template-columns: 1fr; }
    .tdc-benefits { grid-template-columns: 1fr; }
    .tdc-corp { padding: 28px; }
    .tdc-cta { padding: 40px 24px; }
    .tdc-cta__title { font-size: 32px; }
    .tdc-prod-cta { padding: 36px 24px; }
    .tdc-prod-cta h2 { font-size: 28px; }
    .tdc-stats { gap: 20px; }
    .tdc-footer__inner, .tdc-footer__bottom { padding-left: 20px; padding-right: 20px; }
}

/* ==========================================================
   Productos: card con foto + relacionados como link
   ========================================================== */
/* Cuando la card tiene imagen real, la foto ocupa todo el thumb y el tag
   se superpone (en vez del placeholder con padding). */
.tdc-product__thumb--img { padding: 0; position: relative; overflow: hidden; }
.tdc-product__thumb--img img { position: absolute; inset: 0; }
.tdc-product__thumb--img .tdc-product__tag {
    position: absolute; bottom: 12px; right: 12px;
    background: rgba(6, 7, 15, .72); backdrop-filter: blur(4px);
}

/* Relacionados ahora son enlaces (heredan color, sin subrayado). */
a.tdc-related__item { text-decoration: none; color: inherit; }
.tdc-related__thumb--img { position: relative; overflow: hidden; background: var(--tdc-surface-2); }
.tdc-related__thumb--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Párrafo de texto largo bajo el hero del producto. */
.tdc-prod-long { max-width: 760px; color: var(--tdc-muted); font-size: 16px; line-height: 1.7; margin: 0; }

/* ==========================================================
   Formulario de solicitud (reemplaza el carrito)
   ========================================================== */
.tdc-prod-request {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
    border: 1px solid var(--tdc-line);
    border-radius: 20px;
    padding: 32px;
}
.tdc-prod-request__intro .tdc-head__title { font-size: 30px; }
.tdc-prod-request__intro .tdc-head__sub { margin-top: 12px; }

.prod-request { margin: 0; }
.prod-request__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prod-request__field { margin: 0 0 14px; }
.prod-request__field label { display: block; }

/* Etiqueta tipo SaaS: pequeña, en mayúsculas, con tracking. */
.prod-request__label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--tdc-muted-2);
    margin-bottom: 8px;
}
.prod-request__req { color: var(--a1); margin-left: 3px; }
.prod-request__opt { color: var(--tdc-faint); font-weight: 500; letter-spacing: 0; text-transform: none; }

/* Control = wrapper relativo que aloja el icono + el campo. */
.prod-request__control { position: relative; display: block; }
.prod-request__icon {
    position: absolute;
    left: 14px; top: 50%;
    width: 18px; height: 18px;
    transform: translateY(-50%);
    color: var(--tdc-muted-3);
    pointer-events: none;
    transition: color .15s;
}
.prod-request__field--area .prod-request__icon { top: 15px; transform: none; }

.prod-request__field input,
.prod-request__field select,
.prod-request__field textarea {
    width: 100%;
    padding: 13px 15px 13px 44px;
    font-family: inherit;
    font-size: 15px;
    color: var(--tdc-ink);
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
    border: 1px solid var(--tdc-line-strong);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
    transition: border-color .15s, box-shadow .15s, background .15s;
    appearance: none;
}
.prod-request__field textarea { min-height: 104px; resize: vertical; line-height: 1.55; padding-top: 12px; }
.prod-request__field select { cursor: pointer; }

/* Flecha propia del select (appearance:none la oculta). */
.prod-request__control--select::after {
    content: "";
    position: absolute;
    right: 16px; top: 50%;
    width: 11px; height: 11px;
    transform: translateY(-65%) rotate(45deg);
    border: 2px solid var(--tdc-muted-3);
    border-top: 0; border-left: 0;
    border-radius: 0 0 2px 0;
    pointer-events: none;
    transition: border-color .15s;
}
.prod-request__control--select select { padding-right: 38px; }

.prod-request__field input:hover,
.prod-request__field select:hover,
.prod-request__field textarea:hover { border-color: rgba(255, 255, 255, .22); }

.prod-request__field input::placeholder,
.prod-request__field textarea::placeholder { color: var(--tdc-faint); }

.prod-request__field input:focus,
.prod-request__field select:focus,
.prod-request__field textarea:focus {
    outline: none;
    border-color: var(--a1);
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 0 3px color-mix(in srgb, var(--a1) 20%, transparent);
}
.prod-request__control:focus-within .prod-request__icon { color: var(--a1); }
.prod-request__control--select:focus-within::after { border-color: var(--a1); }

.prod-request__submit { margin: 4px 0 0; }
.prod-request__submit .tdc-btn { padding-top: 16px; padding-bottom: 16px; font-size: 16px; }

/* Señales de confianza bajo el botón. */
.prod-request__trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin: 16px 0 0;
    padding: 0;
}
.prod-request__trust li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--tdc-muted);
}
.prod-request__trust li::before {
    content: "";
    width: 15px; height: 15px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306070f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center / 10px no-repeat,
        var(--a1);
    flex: none;
}
.prod-request__note { margin: 12px 0 0; font-size: 12px; color: var(--tdc-muted-3); text-align: center; }

@media (max-width: 860px) {
    .tdc-prod-request { grid-template-columns: 1fr; gap: 22px; padding: 26px; }
}
@media (max-width: 560px) {
    .prod-request__row { grid-template-columns: 1fr; gap: 0; }
    .prod-request__trust { gap: 6px 14px; }
}

/* ==========================================================
   Modal de contacto rápido → WhatsApp
   ========================================================== */
.tdc-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.tdc-modal.is-open { display: block; }
.tdc-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(3, 5, 12, .74);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: tdc-modal-fade .2s ease;
}
.tdc-modal__dialog {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 440px);
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--tdc-surface-2), var(--tdc-surface));
    border: 1px solid var(--tdc-line-strong);
    border-radius: 22px;
    padding: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    animation: tdc-modal-pop .24s cubic-bezier(.2, .9, .3, 1.15);
}
@keyframes tdc-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tdc-modal-pop {
    from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.tdc-modal__close {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--tdc-line);
    color: var(--tdc-muted);
    cursor: pointer;
    transition: color .15s, background .15s;
}
.tdc-modal__close:hover { color: var(--tdc-ink); background: rgba(255, 255, 255, .1); }

.tdc-modal__head { text-align: center; margin-bottom: 20px; }
.tdc-modal__badge {
    display: inline-grid; place-items: center;
    width: 54px; height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
}
.tdc-modal__badge svg { width: 28px; height: 28px; }
.tdc-modal__badge--ok { background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 8px 24px color-mix(in srgb, var(--a1) 35%, transparent); color: var(--tdc-bg); }
.tdc-modal__title { font-size: 23px; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 6px; }
.tdc-modal__sub { font-size: 14px; line-height: 1.5; color: var(--tdc-muted); margin: 0; }

.tdc-modal__form { margin: 0; }
.tdc-modal__form .prod-request__field { margin: 0 0 12px; }

/* Botón de envío con identidad WhatsApp. */
.tdc-modal__submit {
    margin-top: 6px;
    background: #25d366;
    color: #06231a;
}
.tdc-modal__submit:hover {
    background: #21c25c;
    color: #06231a;
    box-shadow: 0 0 36px rgba(37, 211, 102, .5);
    transform: translateY(-2px);
}
.tdc-modal__submit svg { width: 20px; height: 20px; }
.tdc-modal__note { margin: 12px 0 0; font-size: 11.5px; color: var(--tdc-muted-3); text-align: center; }

/* Scrollable inner views — close button stays anchored to the dialog */
.tdc-modal__view--form,
.tdc-modal__view--done {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .14) transparent;
}
.tdc-modal__view--form::-webkit-scrollbar,
.tdc-modal__view--done::-webkit-scrollbar { width: 5px; }
.tdc-modal__view--form::-webkit-scrollbar-track,
.tdc-modal__view--done::-webkit-scrollbar-track { background: transparent; }
.tdc-modal__view--form::-webkit-scrollbar-thumb,
.tdc-modal__view--done::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 999px;
}
.tdc-modal__view--form::-webkit-scrollbar-thumb:hover,
.tdc-modal__view--done::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .28);
}
.tdc-modal__view--form { padding: 56px 28px 28px; }
.tdc-modal__view--done { text-align: center; padding: 56px 28px 32px; }
.tdc-modal__view--done .tdc-modal__title { margin-top: 4px; }
.tdc-modal__view--done .tdc-modal__sub { margin-bottom: 20px; }

/* ---- Variante "Prueba gratis" (orientada a conversión) ---- */
.tdc-modal__glyph { display: inline-grid; place-items: center; }
.tdc-modal__glyph--trial { display: none; }
.tdc-modal__glyph--trial svg { width: 30px; height: 30px; }
.tdc-modal.is-trial .tdc-modal__glyph--wa { display: none; }
.tdc-modal.is-trial .tdc-modal__glyph--trial { display: inline-grid; }
.tdc-modal.is-trial .tdc-modal__badge {
    background: linear-gradient(135deg, var(--a1), var(--a2));
    box-shadow: 0 8px 26px color-mix(in srgb, var(--a1) 40%, transparent);
    color: var(--tdc-bg);
}
.tdc-modal.is-trial .tdc-modal__submit {
    background: linear-gradient(135deg, var(--a1), var(--a2));
    color: var(--tdc-bg);
}
.tdc-modal.is-trial .tdc-modal__submit:hover {
    box-shadow: 0 0 36px color-mix(in srgb, var(--a1) 50%, transparent);
    transform: translateY(-2px);
}
/* Beneficios + prueba social: ocultos salvo en la variante trial. */
.tdc-modal__perks, .tdc-modal__proof { display: none; }
.tdc-modal.is-trial .tdc-modal__perks {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 7px 8px; margin: 14px 0 0; padding: 0; list-style: none;
}
.tdc-modal.is-trial .tdc-modal__perks li {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; color: var(--tdc-ink);
    background: color-mix(in srgb, var(--a1) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--a1) 30%, transparent);
    border-radius: 999px; padding: 5px 11px 5px 9px;
}
.tdc-modal__perks svg { width: 13px; height: 13px; color: var(--a1); flex: none; }
.tdc-modal.is-trial .tdc-modal__proof {
    display: block; margin: 12px 0 0;
    font-size: 12.5px; color: var(--tdc-muted);
}
.tdc-modal__stars { color: #ffb703; letter-spacing: 1px; }

/* Desktop: wider dialog, two-column layout (head | form) */
@media (min-width: 700px) {
    .tdc-modal__dialog { width: min(90vw, 860px); }
    .tdc-modal__view--form {
        display: grid;
        grid-template-columns: 5fr 6fr;
        gap: 0 48px;
        align-items: start;
        padding: 56px 40px 36px;
    }
    .tdc-modal__head { text-align: left; margin-bottom: 0; }
    .tdc-modal__badge { margin-left: 0; }
    .tdc-modal.is-trial .tdc-modal__perks { justify-content: flex-start; }
    .tdc-modal.is-trial .tdc-modal__proof { text-align: left; }
}

@media (max-width: 480px) {
    .tdc-modal__dialog { border-radius: 18px; }
    .tdc-modal__view--form { padding: 50px 18px 20px; }
    .tdc-modal__view--done { padding: 50px 18px 24px; }
    .tdc-modal__title { font-size: 21px; }
}

/* ==========================================================
   LANDING FULL-VENTAS — Reseñas en Google (.rg-*)
   Página dedicada (components/tdc/resenas_google.php). Reutiliza tokens y
   secciones de tdc-base/tdc-site; aquí solo lo bespoke (hero, gráficos,
   calculadora de ROI, comparativa, casos, formatos).
   ========================================================== */
.rg-page { position: relative; }

/* ---- Hero ---- */
.rg-hero {
    position: relative; z-index: 2;
    max-width: var(--tdc-max); margin: 0 auto;
    padding: 56px 40px 70px;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.rg-hero__title { font-size: 58px; line-height: 1.03; letter-spacing: -.03em; margin: 22px 0 0; }
.rg-hero__sub { font-size: 18px; line-height: 1.6; color: var(--tdc-muted); max-width: 520px; margin: 22px 0 0; }
.rg-hero__proof { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.rg-hero__proof-text { font-size: 14px; color: var(--tdc-muted-2); }
.rg-hero__proof-text b { color: var(--tdc-ink); }

/* Estrellas (relleno por porcentaje vía máscara SVG con forma de estrella) */
.rg-stars {
    --rg-rating: 100%;
    position: relative; display: inline-block;
    width: 118px; height: 20px;
    background: rgba(255, 255, 255, .12);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 118 20'%3E%3Cg fill='%23000'%3E%3Cpath d='M10 1.5l2.6 5.2 5.8.8-4.2 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L1.6 7.5l5.8-.8z'/%3E%3Cpath transform='translate(24.5)' d='M10 1.5l2.6 5.2 5.8.8-4.2 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L1.6 7.5l5.8-.8z'/%3E%3Cpath transform='translate(49)' d='M10 1.5l2.6 5.2 5.8.8-4.2 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L1.6 7.5l5.8-.8z'/%3E%3Cpath transform='translate(73.5)' d='M10 1.5l2.6 5.2 5.8.8-4.2 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L1.6 7.5l5.8-.8z'/%3E%3Cpath transform='translate(98)' d='M10 1.5l2.6 5.2 5.8.8-4.2 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L1.6 7.5l5.8-.8z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 118 20'%3E%3Cg fill='%23000'%3E%3Cpath d='M10 1.5l2.6 5.2 5.8.8-4.2 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L1.6 7.5l5.8-.8z'/%3E%3Cpath transform='translate(24.5)' d='M10 1.5l2.6 5.2 5.8.8-4.2 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L1.6 7.5l5.8-.8z'/%3E%3Cpath transform='translate(49)' d='M10 1.5l2.6 5.2 5.8.8-4.2 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L1.6 7.5l5.8-.8z'/%3E%3Cpath transform='translate(73.5)' d='M10 1.5l2.6 5.2 5.8.8-4.2 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L1.6 7.5l5.8-.8z'/%3E%3Cpath transform='translate(98)' d='M10 1.5l2.6 5.2 5.8.8-4.2 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L1.6 7.5l5.8-.8z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.rg-stars__fill { position: absolute; inset: 0; width: var(--rg-rating); background: linear-gradient(90deg, #ffc83d, #ffb01f); }
.rg-stars--sm { width: 84px; height: 14px; }

/* Media del hero: imagen real + anillos NFC + tarjeta de reseña flotante */
.rg-hero__media { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.rg-hero__ring {
    position: absolute; top: 50%; left: 50%;
    width: 320px; height: 320px;
    border: 1px solid color-mix(in srgb, var(--a1) 35%, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: tdc-ring 3.4s ease-out infinite;
}
.rg-hero__ring--2 { animation-delay: 1.7s; }
.rg-hero__device {
    position: relative; z-index: 2;
    width: min(86%, 420px);
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--tdc-line-strong);
    background: linear-gradient(160deg, #0d1426, #070b18);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
    animation: tdc-float 6s ease-in-out infinite;
}
.rg-hero__device img { width: 100%; height: auto; display: block; }
.rg-hero__placeholder {
    aspect-ratio: 4 / 5; display: grid; place-items: center;
    font-family: var(--tdc-display); font-weight: 700; font-size: 22px; color: var(--tdc-muted-2);
    background: repeating-linear-gradient(135deg, #0d1426, #0d1426 14px, #111b30 14px, #111b30 28px);
}
.rg-review-card {
    position: absolute; z-index: 3; right: -6px; bottom: 24px;
    width: 230px; padding: 14px 16px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--tdc-surface-2) 92%, transparent);
    border: 1px solid var(--tdc-line-strong);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    backdrop-filter: blur(6px);
    animation: tdc-float 5s ease-in-out infinite reverse;
}
.rg-review-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rg-review-card__g {
    width: 30px; height: 30px; flex: none; border-radius: 8px;
    display: grid; place-items: center;
    font-family: var(--tdc-display); font-weight: 700; font-size: 16px; color: #fff;
    background: conic-gradient(from -45deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
}
.rg-review-card__name { font-size: 13px; font-weight: 700; color: var(--tdc-ink); }
.rg-review-card__text { font-size: 13px; color: #dde4f5; line-height: 1.45; margin: 0 0 6px; }
.rg-review-card__meta { font-family: var(--tdc-mono); font-size: 10.5px; color: var(--a1); }

/* ---- Stat bar (contadores) ---- */
.rg-statbar {
    position: relative; z-index: 2;
    max-width: var(--tdc-max); margin: 0 auto;
    padding: 0 40px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.rg-stat {
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid var(--tdc-line);
    border-radius: 18px; padding: 24px;
    text-align: center;
}
.rg-stat__value { font-family: var(--tdc-display); font-weight: 700; font-size: 38px; color: var(--a1); line-height: 1; }
.rg-stat__label { font-size: 13px; color: var(--tdc-muted-2); margin-top: 10px; line-height: 1.45; }

/* ---- Gráficos ---- */
.rg-charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 44px; }
.rg-chart {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--tdc-line);
    border-radius: 20px; padding: 28px;
}
.rg-chart__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.rg-chart__title { font-family: var(--tdc-display); font-weight: 600; font-size: 19px; margin: 0; }
.rg-chart__legend { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tdc-muted-2); }
.rg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.rg-dot--soft { background: rgba(255, 255, 255, .22); }
.rg-dot--accent { background: var(--a1); }
.rg-chart__note { font-size: 12px; color: var(--tdc-muted-3); margin: 16px 0 0; }

.rg-bars { display: flex; align-items: flex-end; gap: 18px; height: 180px; }
.rg-bars__group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; }
.rg-bars__pair { display: flex; align-items: flex-end; justify-content: center; gap: 6px; width: 100%; flex: 1; }
.rg-bar { width: 26px; max-width: 42%; border-radius: 6px 6px 0 0; height: 0; transition: height .9s cubic-bezier(.2, .8, .25, 1); }
.rg-bar--soft { background: rgba(255, 255, 255, .14); }
.rg-bar--accent { background: linear-gradient(var(--a1), var(--a2)); box-shadow: 0 0 18px color-mix(in srgb, var(--a1) 35%, transparent); }
[data-rg-bars].is-in .rg-bar { height: var(--rg-h); }
.rg-bars__label { font-family: var(--tdc-mono); font-size: 11px; color: var(--tdc-muted-3); }

/* Donut con conic-gradient revelado al entrar en viewport */
.rg-chart--stat { display: flex; align-items: center; gap: 24px; }
.rg-donut {
    --rg-pct: 0;
    position: relative; flex: none;
    width: 150px; height: 150px; border-radius: 50%;
    background: conic-gradient(var(--a1) 0deg, var(--a2) 0deg, rgba(255, 255, 255, .08) 0deg);
    transition: background 1.1s ease;
}
[data-rg-donut].is-in .rg-donut { background: conic-gradient(var(--a1) 0deg, var(--a2) calc(var(--rg-pct) * 3.6deg), rgba(255, 255, 255, .08) calc(var(--rg-pct) * 3.6deg)); }
.rg-donut__hole {
    position: absolute; inset: 14px; border-radius: 50%;
    background: var(--tdc-surface); display: grid; place-items: center;
    font-family: var(--tdc-display); font-weight: 700; font-size: 30px; color: var(--tdc-ink);
}
.rg-chart__statcopy p { font-size: 14px; line-height: 1.55; color: var(--tdc-muted-2); margin: 8px 0 0; }

.rg-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.rg-fact {
    background: rgba(255, 255, 255, .03); border: 1px solid var(--tdc-line);
    border-radius: 18px; padding: 24px; display: flex; gap: 16px; align-items: flex-start;
}
.rg-fact__num { font-family: var(--tdc-display); font-weight: 700; font-size: 34px; color: var(--a1); line-height: 1; flex: none; }
.rg-fact p { font-size: 13.5px; line-height: 1.5; color: var(--tdc-muted-2); margin: 0; }

/* ---- Comparativa ---- */
.rg-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rg-compare__col {
    border: 1px solid var(--tdc-line); border-radius: 20px; padding: 30px;
    background: rgba(255, 255, 255, .02);
}
.rg-compare__col--good {
    border-color: color-mix(in srgb, var(--a1) 40%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--a1) 9%, transparent), rgba(255, 255, 255, .02));
}
.rg-compare__tag {
    display: inline-block; font-family: var(--tdc-mono); font-size: 11px; letter-spacing: .06em;
    padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
    color: var(--tdc-muted-2); border: 1px solid var(--tdc-line-strong);
}
.rg-compare__tag--good { color: var(--tdc-bg); background: var(--a1); border-color: transparent; }
.rg-compare__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rg-compare__list li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.5; color: var(--tdc-muted); }
.rg-compare__list li::before {
    content: "\2715"; position: absolute; left: 0; top: 0;
    width: 20px; height: 20px; border-radius: 6px;
    display: grid; place-items: center; font-size: 11px;
    color: #ff9b9b; background: rgba(255, 90, 90, .12); border: 1px solid rgba(255, 120, 120, .35);
}
.rg-compare__list--good li { color: #dde4f5; }
.rg-compare__list--good li::before {
    content: "\2713"; color: var(--a1);
    background: color-mix(in srgb, var(--a1) 15%, transparent);
    border-color: color-mix(in srgb, var(--a1) 40%, transparent);
}

/* ---- Calculadora de ROI ---- */
.rg-roi {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: stretch;
    background: linear-gradient(135deg, #0d1426, #0a0f1f);
    border: 1px solid var(--tdc-line); border-radius: 28px; padding: 40px;
}
.rg-roi__intro .tdc-head__title { font-size: 30px; }
.rg-roi__controls { margin-top: 26px; display: flex; flex-direction: column; gap: 22px; }
.rg-roi__label { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: var(--tdc-muted); margin-bottom: 10px; }
.rg-roi__label b { color: var(--a1); font-family: var(--tdc-display); }
.rg-roi__field input[type="range"] {
    -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); outline: none;
}
.rg-roi__field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
    background: var(--a1); cursor: pointer; border: 3px solid var(--tdc-bg);
    box-shadow: 0 0 18px color-mix(in srgb, var(--a1) 60%, transparent);
}
.rg-roi__field input[type="range"]::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%; background: var(--a1); cursor: pointer;
    border: 3px solid var(--tdc-bg); box-shadow: 0 0 18px color-mix(in srgb, var(--a1) 60%, transparent);
}
.rg-roi__result {
    background: rgba(255, 255, 255, .04); border: 1px solid var(--tdc-line);
    border-radius: 20px; padding: 30px; display: flex; flex-direction: column; justify-content: center;
}
.rg-roi__big { text-align: center; }
.rg-roi__big-num { font-family: var(--tdc-display); font-weight: 700; font-size: 64px; line-height: 1; color: var(--a1); display: block; }
.rg-roi__big-label { font-size: 14px; color: var(--tdc-muted-2); display: block; margin-top: 8px; }
.rg-roi__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.rg-roi__metric { background: rgba(255, 255, 255, .04); border: 1px solid var(--tdc-line); border-radius: 14px; padding: 16px; text-align: center; }
.rg-roi__metric-num { font-family: var(--tdc-display); font-weight: 700; font-size: 26px; color: var(--tdc-ink); }
.rg-roi__metric-label { font-size: 12px; color: var(--tdc-muted-2); margin-top: 2px; }
.rg-roi__disclaimer { font-size: 11px; color: var(--tdc-muted-3); margin: 14px 0 0; text-align: center; }

/* ---- Casos por rubro ---- */
.rg-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.rg-case {
    background: rgba(255, 255, 255, .03); border: 1px solid var(--tdc-line);
    border-radius: 18px; padding: 26px; transition: transform .18s, border-color .18s;
}
.rg-case:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a1) 35%, transparent); }
.rg-case__icon {
    width: 50px; height: 50px; border-radius: 13px; font-size: 24px;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--a1) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--a1) 30%, transparent);
}
.rg-case__title { font-family: var(--tdc-display); font-weight: 600; font-size: 18px; margin-top: 18px; }
.rg-case__text { font-size: 14px; line-height: 1.55; color: var(--tdc-muted-2); margin: 8px 0 0; }

/* ---- Formatos ---- */
.rg-formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; align-items: start; }
.rg-format {
    position: relative; background: rgba(255, 255, 255, .03);
    border: 1px solid var(--tdc-line-strong); border-radius: 20px; padding: 28px; text-align: center;
}
.rg-format--featured {
    background: linear-gradient(180deg, color-mix(in srgb, var(--a1) 12%, transparent), rgba(255, 255, 255, .02));
    border-color: color-mix(in srgb, var(--a1) 40%, transparent);
    box-shadow: 0 0 50px color-mix(in srgb, var(--a1) 16%, transparent);
}
.rg-format__badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    font-family: var(--tdc-mono); font-size: 11px; letter-spacing: .06em;
    color: var(--tdc-bg); background: var(--a1); padding: 5px 14px; border-radius: 999px;
}
.rg-format__name { font-family: var(--tdc-display); font-weight: 600; font-size: 19px; }
.rg-format__text { font-size: 14px; line-height: 1.55; color: var(--tdc-muted-2); margin: 10px 0 20px; }

/* ---- Incluye / specs / trust ---- */
.rg-included {
    display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
    border: 1px solid var(--tdc-line); border-radius: 24px; padding: 36px;
}
.rg-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 40px; max-width: 820px; margin: 0 auto; }
.rg-spec { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--tdc-line-soft); font-size: 14.5px; }
.rg-spec__k { color: var(--tdc-muted-2); }
.rg-spec__v { font-weight: 600; text-align: right; }
.rg-request-trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rg-request-trust li { position: relative; padding-left: 26px; font-size: 14px; color: var(--tdc-muted); }
.rg-request-trust li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--a1); font-weight: 700; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .rg-hero { grid-template-columns: 1fr; gap: 36px; }
    .rg-hero__media { order: -1; min-height: 340px; }
    .rg-statbar { grid-template-columns: repeat(2, 1fr); }
    .rg-charts { grid-template-columns: minmax(0, 1fr); }
    .rg-chart--stat { flex-direction: column; text-align: center; }
    .rg-facts { grid-template-columns: 1fr; }
    .rg-compare { grid-template-columns: 1fr; }
    .rg-roi { grid-template-columns: 1fr; padding: 30px; }
    .rg-cases { grid-template-columns: repeat(2, 1fr); }
    .rg-formats { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
    .rg-included { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .rg-hero { padding: 40px 20px 60px; }
    .rg-hero__title { font-size: 38px; }
    .rg-statbar { padding: 0 20px; grid-template-columns: repeat(2, 1fr); }
    .rg-stat__value { font-size: 30px; }
    .rg-cases { grid-template-columns: 1fr; }
    .rg-specs { grid-template-columns: 1fr; }
    .rg-roi__big-num { font-size: 52px; }
    .rg-review-card { right: 0; width: 200px; }
    /* El gráfico de barras tiene anchos fijos: en pantallas chicas se reduce
       para que las 5 columnas entren sin desbordar horizontalmente. */
    .rg-chart { padding: 22px; }
    .rg-bars { gap: 8px; height: 150px; }
    .rg-bar { width: 18px; }
    .rg-bars__pair { gap: 5px; }
}

/* ==========================================================
   Blog (índice) — imágenes reales + footer con tiempo lectura
   ========================================================== */
.tdc-blog { gap: 22px; }
.tdc-blog__card { text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; }
.tdc-blog__card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--a1) 40%, transparent); box-shadow: 0 12px 40px rgba(21, 224, 138, .08); }
.tdc-blog__thumb { position: relative; overflow: hidden; }
.tdc-blog__thumb--img { background: var(--tdc-surface-3); }
.tdc-blog__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tdc-blog__card:hover .tdc-blog__thumb img { transform: scale(1.04); }
.tdc-blog__title { line-height: 1.3; }
.tdc-blog__excerpt { line-height: 1.55; }
.tdc-blog__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.tdc-blog__read { font-family: var(--tdc-mono); font-size: 11px; color: var(--tdc-muted-3); }

/* ==========================================================
   Post de blog — diseño enriquecido
   ========================================================== */
.post-wrap { position: relative; }
.post-hero { width: 100%; max-height: 460px; overflow: hidden; position: relative; }
.post-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%; background: linear-gradient(to bottom, transparent, var(--tdc-bg)); pointer-events: none; }
.post-hero img { width: 100%; height: 460px; object-fit: cover; display: block; }
.post-meta { display: flex; align-items: center; gap: 18px; margin: -.2em 0 1.8em; flex-wrap: wrap; }
.post-meta__item { display: flex; align-items: center; gap: 5px; font-family: var(--tdc-mono); font-size: 12px; color: var(--tdc-muted-3); }
.post-body { line-height: 1.75; font-size: 16.5px; }
.post-cta-box { margin: 3em 0 2em; padding: 28px 32px; background: linear-gradient(135deg, rgba(21,224,138,.07), rgba(6,182,164,.05)); border: 1px solid color-mix(in srgb, var(--a1) 25%, transparent); border-radius: 18px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.post-cta-box__text { margin: 0; font-family: var(--tdc-display); font-size: 17px; font-weight: 600; flex: 1; min-width: 180px; }
.post-engagement { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--tdc-line); border-bottom: 1px solid var(--tdc-line); margin: 2.4em 0 0; flex-wrap: wrap; }
.post-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-share__label { font-family: var(--tdc-mono); font-size: 12px; color: var(--tdc-muted-3); margin-right: 4px; }
.post-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--tdc-line); background: rgba(255,255,255,.04); color: var(--tdc-muted); cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .12s; text-decoration: none; }
.post-share__btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); border-color: var(--tdc-line-strong); color: var(--tdc-ink); }
.post-share__btn--wa:hover { color: #25d366; border-color: rgba(37,211,102,.3); }
.post-share__btn--li:hover { color: #0a66c2; border-color: rgba(10,102,194,.3); }
.post-share__btn--copy:hover { color: var(--a1); border-color: rgba(21,224,138,.3); }
.post-like { margin: 0; padding: 0; }
.post-like__btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 50px; border: 1px solid var(--tdc-line); background: rgba(255,255,255,.04); color: var(--tdc-muted); font-family: var(--tdc-mono); font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .12s; }
.post-like__btn:hover { transform: scale(1.04); border-color: rgba(255,80,100,.35); color: #ff5064; }
.post-like__btn--active { color: #ff5064; border-color: rgba(255,80,100,.4); background: rgba(255,80,100,.07); }
.post-like__btn:disabled { opacity: .6; cursor: default; transform: none; }
.post-comments { max-width: 760px; margin: 0 auto; padding: 3em 0 5em; }
.post-comments__title { font-family: var(--tdc-display); font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: 10px; margin: 0 0 1.6em; }
.post-comments__count { font-size: .75em; font-weight: 600; background: color-mix(in srgb, var(--a1) 15%, transparent); color: var(--a1); border-radius: 50px; padding: 2px 10px; }
.post-comments__list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 2.4em; }
.post-comment { display: flex; gap: 14px; }
.post-comment__avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--a1), var(--a2)); display: flex; align-items: center; justify-content: center; font-family: var(--tdc-display); font-weight: 700; font-size: 18px; color: var(--tdc-bg); }
.post-comment__body { flex: 1; background: rgba(255,255,255,.03); border: 1px solid var(--tdc-line); border-radius: 14px; padding: 14px 18px; }
.post-comment__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.post-comment__name { font-size: 14px; font-weight: 600; color: var(--tdc-ink); }
.post-comment__date { font-family: var(--tdc-mono); font-size: 11px; color: var(--tdc-muted-3); }
.post-comment__text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--tdc-muted); }
.post-comment-form-wrap { background: rgba(255,255,255,.03); border: 1px solid var(--tdc-line); border-radius: 18px; padding: 28px 30px; margin-top: 1.6em; }
.post-comment-form__heading { font-family: var(--tdc-display); font-size: 1.05rem; font-weight: 600; margin: 0 0 1.2em; }
.post-comment-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.post-comment-form__label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--tdc-muted-2); font-family: var(--tdc-mono); }
.post-comment-form__hint { font-size: 11px; color: var(--tdc-muted-3); }
.post-comment-form__input { padding: 10px 14px; border-radius: 10px; background: var(--tdc-surface-2); border: 1px solid var(--tdc-line-strong); color: var(--tdc-ink); font-size: 14px; font-family: var(--tdc-font); transition: border-color .15s; width: 100%; box-sizing: border-box; }
.post-comment-form__input:focus { outline: none; border-color: color-mix(in srgb, var(--a1) 50%, transparent); }
.post-comment-form__textarea { resize: vertical; min-height: 110px; }
.post-comment-form__submit { margin-top: 14px; }
.post-comment-form__notice { font-family: var(--tdc-mono); font-size: 11px; color: var(--tdc-muted-3); margin: 8px 0 0; }
@media (max-width: 600px) {
    .post-comment-form__row { grid-template-columns: 1fr; }
    .post-cta-box { flex-direction: column; text-align: center; }
    .post-engagement { justify-content: center; }
    .post-hero img { height: 240px; }
}

/* ==========================================================
   LANDING FULL-VENTAS — TapBot (.tb-*)
   Página dedicada (components/tdc/tapbot.php). Reutiliza tokens y los widgets
   genéricos .rg-* (statbar, compare, cases, calculadora) y .tdc-*; aquí solo lo
   bespoke: chat del hero, capacidades, infraestructura, planes y calculadora.
   ========================================================== */
.tb-page { position: relative; }

/* ---- "En línea" (badge con punto pulsante) ---- */
.tb-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--a1); }
.tb-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--a1) 70%, transparent); animation: tb-pulse 2s ease-out infinite; }
@keyframes tb-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--a1) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .tb-live__dot { animation: none; } }

/* ---- Precio "desde" del hero ---- */
.tb-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tb-price__from { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tdc-muted-2); }
.tb-price__amount { font-family: var(--tdc-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--a1); }
.tb-price__note { font-size: 14px; color: var(--tdc-muted-2); }

/* ---- Hero: teléfono con chat animado ---- */
.tb-phone {
    position: relative; z-index: 2;
    width: min(82%, 360px);
    border-radius: 38px; padding: 12px;
    background: linear-gradient(160deg, #161f33, #0a0f1f);
    border: 1px solid var(--tdc-line-strong);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
    animation: tdc-float 6s ease-in-out infinite;
}
.tb-phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 100px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .12); z-index: 3; }
.tb-chat { border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #0c1220, #0a0f1c); }
.tb-chat__head {
    display: flex; align-items: center; gap: 12px;
    padding: 26px 18px 14px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--a1) 14%, transparent), transparent);
    border-bottom: 1px solid var(--tdc-line-soft);
}
.tb-chat__avatar {
    width: 38px; height: 38px; flex: none; border-radius: 12px;
    display: grid; place-items: center; font-size: 18px; color: var(--tdc-bg);
    background: linear-gradient(135deg, var(--a1), var(--a2));
}
.tb-chat__name { font-family: var(--tdc-display); font-weight: 700; font-size: 15px; color: var(--tdc-ink); }
.tb-chat__status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--tdc-muted-2); margin-top: 2px; }
.tb-chat__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 280px; }
.tb-msg { max-width: 84%; padding: 10px 13px; font-size: 13px; line-height: 1.45; border-radius: 16px; animation: tb-msg-in .5s both; }
.tb-msg--bot { align-self: flex-start; background: rgba(255, 255, 255, .06); color: #dde4f5; border-bottom-left-radius: 5px; }
.tb-msg--user { align-self: flex-end; background: linear-gradient(135deg, var(--a1), var(--a2)); color: var(--tdc-bg); font-weight: 600; border-bottom-right-radius: 5px; }
.tb-msg--bot { animation-delay: .1s; }
.tb-chat__body .tb-msg:nth-child(2) { animation-delay: .9s; }
.tb-chat__body .tb-msg:nth-child(3) { animation-delay: 1.5s; }
.tb-chat__body .tb-msg:nth-child(4) { animation-delay: 2.3s; }
.tb-chat__body .tb-msg:nth-child(5) { animation-delay: 2.9s; }
@keyframes tb-msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.tb-msg--typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 14px; background: rgba(255, 255, 255, .06); border-bottom-left-radius: 5px; }
.tb-msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--tdc-muted-2); animation: tb-typing 1.2s infinite ease-in-out; }
.tb-msg--typing span:nth-child(2) { animation-delay: .2s; }
.tb-msg--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes tb-typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
    .tb-phone { animation: none; }
    .tb-msg { animation: none; }
    .tb-msg--typing span { animation: none; }
}
.tb-float-chip {
    position: absolute; z-index: 3; left: -6px; bottom: 34px;
    display: flex; align-items: center; gap: 10px;
    width: 220px; padding: 12px 14px; border-radius: 16px;
    background: color-mix(in srgb, var(--tdc-surface-2) 92%, transparent);
    border: 1px solid var(--tdc-line-strong);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    backdrop-filter: blur(6px);
    animation: tdc-float 5s ease-in-out infinite reverse;
}
.tb-float-chip__icon { font-size: 22px; }
.tb-float-chip__title { font-size: 12.5px; font-weight: 700; color: var(--tdc-ink); }
.tb-float-chip__meta { font-size: 11px; color: var(--a1); }
@media (prefers-reduced-motion: reduce) { .tb-float-chip { animation: none; } }

/* ---- Capacidades ---- */
.tb-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.tb-feature {
    background: rgba(255, 255, 255, .03); border: 1px solid var(--tdc-line);
    border-radius: 18px; padding: 26px; transition: transform .18s, border-color .18s;
}
.tb-feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a1) 35%, transparent); }
.tb-feature__icon {
    width: 50px; height: 50px; border-radius: 13px; font-size: 24px;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--a1) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--a1) 30%, transparent);
}
.tb-feature__title { font-family: var(--tdc-display); font-weight: 600; font-size: 18px; margin-top: 18px; }
.tb-feature__text { font-size: 14px; line-height: 1.55; color: var(--tdc-muted-2); margin: 8px 0 0; }

/* ---- Infraestructura ---- */
.tb-infra { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tb-infra__item {
    display: flex; gap: 16px; align-items: flex-start;
    background: rgba(255, 255, 255, .03); border: 1px solid var(--tdc-line);
    border-radius: 18px; padding: 24px;
}
.tb-infra__icon {
    width: 46px; height: 46px; flex: none; border-radius: 12px; font-size: 22px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--tdc-line-strong);
}
.tb-infra__title { font-family: var(--tdc-display); font-weight: 600; font-size: 16.5px; }
.tb-infra__text { font-size: 13.5px; line-height: 1.55; color: var(--tdc-muted-2); margin: 6px 0 0; }
.tb-infra__note {
    display: flex; align-items: center; gap: 10px; justify-content: center;
    text-align: center; font-size: 14px; color: var(--tdc-muted); margin: 22px auto 0; max-width: 760px;
}
.tb-infra__note b { color: var(--tdc-ink); }

/* ---- Planes y precios ---- */
.tb-pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.tb-plan {
    position: relative; display: flex; flex-direction: column;
    background: rgba(255, 255, 255, .03); border: 1px solid var(--tdc-line-strong);
    border-radius: 20px; padding: 28px 22px; text-align: center;
}
.tb-plan--featured {
    background: linear-gradient(180deg, color-mix(in srgb, var(--a1) 12%, transparent), rgba(255, 255, 255, .02));
    border-color: color-mix(in srgb, var(--a1) 45%, transparent);
    box-shadow: 0 0 50px color-mix(in srgb, var(--a1) 16%, transparent);
}
.tb-plan__tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    font-family: var(--tdc-mono); font-size: 11px; letter-spacing: .06em;
    color: var(--tdc-bg); background: var(--a1); padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.tb-plan__name { font-family: var(--tdc-display); font-weight: 700; font-size: 20px; }
.tb-plan__range { font-size: 12.5px; color: var(--tdc-muted-2); margin-top: 4px; }
.tb-plan__price { font-family: var(--tdc-display); font-weight: 700; font-size: 32px; color: var(--a1); margin-top: 16px; line-height: 1; }
.tb-plan__price-note { font-size: 12px; color: var(--tdc-muted-2); margin-top: 6px; }
.tb-plan__webbot {
    font-size: 12px; color: var(--tdc-muted); margin: 18px 0 8px; padding: 10px 12px;
    border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--tdc-line-soft);
    line-height: 1.4;
}
.tb-plan__webbot span { font-weight: 700; color: var(--tdc-muted-3); }
.tb-plan__webbot--ok { color: #cfeede; border-color: color-mix(in srgb, var(--a1) 35%, transparent); background: color-mix(in srgb, var(--a1) 10%, transparent); }
.tb-plan__webbot--ok span { color: var(--a1); }
.tb-plan__example { font-size: 12px; color: var(--tdc-muted-3); line-height: 1.45; margin-bottom: 18px; min-height: 34px; }
.tb-plan a { margin-top: auto; }

/* ---- Bot web corporativo ---- */
.tb-webbot {
    display: flex; align-items: center; gap: 22px; margin-top: 22px;
    background: linear-gradient(135deg, #0d1426, #0a0f1f);
    border: 1px solid var(--tdc-line); border-radius: 22px; padding: 26px 30px;
}
.tb-webbot__icon {
    width: 56px; height: 56px; flex: none; border-radius: 16px; font-size: 26px;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--a1) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--a1) 30%, transparent);
}
.tb-webbot__copy { flex: 1; min-width: 0; }
.tb-webbot__title { font-family: var(--tdc-display); font-weight: 600; font-size: 19px; margin: 0; }
.tb-webbot__text { font-size: 14px; line-height: 1.55; color: var(--tdc-muted-2); margin: 6px 0 0; }
.tb-webbot__text b { color: var(--tdc-ink); }
.tb-webbot .tdc-btn { flex: none; }

/* ---- Calculadora (extras sobre .rg-roi) ---- */
.tb-calc__plan { text-align: center; font-size: 13px; color: var(--tdc-muted-2); margin-bottom: 14px; }
.tb-calc__plan b { font-family: var(--tdc-display); color: var(--a1); font-size: 15px; }
.tb-calc__hint { font-size: 12px; color: var(--tdc-muted-3); margin: 0; line-height: 1.45; }
.tb-check { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.tb-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.tb-check__box {
    width: 22px; height: 22px; flex: none; border-radius: 7px;
    border: 1px solid var(--tdc-line-strong); background: rgba(255, 255, 255, .04);
    display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.tb-check__box::after { content: "✓"; font-size: 13px; font-weight: 700; color: var(--tdc-bg); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.tb-check input:checked + .tb-check__box { background: var(--a1); border-color: var(--a1); }
.tb-check input:checked + .tb-check__box::after { opacity: 1; transform: scale(1); }
.tb-check__label { font-size: 13.5px; color: var(--tdc-muted); }
.tb-calc.is-web-included .tb-check, [data-tb-calc].is-web-included .tb-check { opacity: .5; cursor: not-allowed; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .tb-features { grid-template-columns: repeat(2, 1fr); }
    .tb-infra { grid-template-columns: 1fr; }
    .tb-pricing { grid-template-columns: repeat(2, 1fr); }
    .tb-webbot { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
    .tb-features { grid-template-columns: 1fr; }
    .tb-pricing { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
    .tb-plan__example { min-height: 0; }
    .tb-float-chip { left: 0; width: 190px; }
    .tb-phone { width: min(78%, 300px); }
}
