/* ====================================================================
   Topcal21: página de producto (mismo lenguaje visual que Digi3D y MDTopX)
   Color de acento: azul de la página de Digi3D (#2d4ba0 en el tema claro y #8fb0ee en el tema oscuro).
   ==================================================================== */

:root {
    --t21-acento: #2d4ba0;
    --t21-acento-suave: #eaeefb;
    --t21-acento-suave-2: #e0e7f7;
}

[data-bs-theme="dark"] {
    --t21-acento: #8fb0ee;
    --t21-acento-suave: #1b2340;
    --t21-acento-suave-2: #222c4d;
}

/* ---------- Hero ---------- */
.t21-hero {
    background: var(--brand-hero);
    color: #fff;
    padding: 4rem 0 4.5rem;
}

.t21-hero .lead {
    font-size: 1.4rem;
    font-weight: 500;
}

.t21-hero-sub {
    max-width: 48rem;
    opacity: .9;
}

.t21-hero-titulo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.t21-hero-icono {
    width: 5rem;
    height: 5rem;
    flex: none;
    object-fit: contain;
}

.t21-hero-img {
    max-width: 100%;
    height: auto;
    border-radius: .75rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .35);
}

/* ---------- Secciones ---------- */
.t21-seccion {
    scroll-margin-top: 4.5rem;
}

.t21-seccion-cabecera {
    border-left: 4px solid var(--t21-acento);
    padding-left: .85rem;
}

.t21-seccion-cabecera .bi {
    color: var(--t21-acento);
}

/* ---------- Dos formas de uso ---------- */
.t21-uso {
    border-radius: .75rem;
    border-top: 4px solid var(--t21-acento) !important;
}

.t21-uso .bi-check2 {
    color: var(--t21-acento);
}

.t21-etiqueta {
    display: inline-block;
    padding: .15rem .6rem;
    border-radius: 2rem;
    background: var(--t21-acento-suave-2);
    color: var(--t21-acento);
    font-size: .8rem;
    font-weight: 600;
}

.btn-t21 {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2d4ba0;
    --bs-btn-border-color: #2d4ba0;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #24408a;
    --bs-btn-hover-border-color: #24408a;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1b2a6b;
    --bs-btn-active-border-color: #1b2a6b;
    font-weight: 600;
}

.btn-outline-t21 {
    --bs-btn-color: #2d4ba0;
    --bs-btn-border-color: #2d4ba0;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2d4ba0;
    --bs-btn-hover-border-color: #2d4ba0;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #24408a;
    --bs-btn-active-border-color: #24408a;
    font-weight: 600;
}

[data-bs-theme="dark"] .btn-outline-t21 {
    --bs-btn-color: #8fb0ee;
    --bs-btn-border-color: #8fb0ee;
    --bs-btn-hover-color: #1a1d21;
    --bs-btn-hover-bg: #8fb0ee;
    --bs-btn-hover-border-color: #8fb0ee;
}

/* ---------- Capturas ---------- */
.t21-captura {
    border-radius: .75rem;
    overflow: hidden;
}

.t21-captura img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #14285e;
}

/* ---------- Tarjetas de características ---------- */
.t21-tarjeta {
    border-radius: .75rem;
    transition: transform .15s ease, box-shadow .15s ease;
}

.t21-tarjeta:hover {
    transform: translateY(-3px);
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .15) !important;
}

.t21-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: none;
    border-radius: .75rem;
    background: var(--t21-acento-suave);
    color: var(--t21-acento);
    font-size: 1.35rem;
}

/* ---------- Aviso de edición del croquis ---------- */
.t21-aviso {
    border-left: 4px solid var(--t21-acento);
    background: var(--t21-acento-suave);
    border-radius: .5rem;
    padding: .75rem 1rem;
}

/* ---------- Navegación por áreas (chips) ---------- */
.t21-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    position: sticky;
    top: 0;
    z-index: 5;
    padding: .75rem 0;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

[data-bs-theme="dark"] .t21-nav {
    background: rgba(20, 24, 28, .92);
    border-bottom-color: rgba(255, 255, 255, .08);
}

.t21-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .8rem;
    border-radius: 2rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--t21-acento);
    background: var(--t21-acento-suave);
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.t21-chip:hover,
.t21-chip:focus {
    background: var(--t21-acento);
    color: #fff;
}

[data-bs-theme="dark"] .t21-chip:hover,
[data-bs-theme="dark"] .t21-chip:focus {
    color: #1a1d21;
}