:root {
    --tg-rojo: #b11226;
    --tg-rojo-oscuro: #7a0c19;
    --tg-rojo-claro: #ff4d5e;

    --tg-negro: #111111;
    --tg-gris-oscuro: #2b2b2b;
    --tg-gris: #6c757d;
    --tg-gris-claro: #f4f4f4;
    --tg-blanco: #ffffff;
}

/* NAVBAR */
.tg-navbar-publica {
    background: rgba(17, 17, 17, 0.98);
    border-bottom: 4px solid var(--tg-rojo);
    min-height: 68px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.tg-marca {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tg-blanco) !important;
    text-decoration: none;
}

.tg-logo-box {
    width: auto;
    height: 76px;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.tg-logo-navbar {
    width: auto;
    height: 70px;
    object-fit: contain;
}
@media (max-width: 575px) {
    .tg-logo-box {
        height: 52px;
    }

    .tg-logo-navbar {
        height: 48px;
    }
}

.tg-marca-texto {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.tg-marca-texto span {
    font-weight: 900;
    color: #fff;
}

.tg-marca-texto small {
    color: #dcdcdc;
    font-size: 0.8rem;
}

/* BOTONES */
.btn-tg-outline,
.btn-tg-rojo {
    border-radius: 999px;
    padding: 11px 22px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-tg-outline {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-tg-outline:hover {
    background: var(--tg-rojo);
    color: #fff;
    border-color: var(--tg-rojo);
}

.btn-tg-rojo {
    background: var(--tg-rojo);
    border: 1px solid var(--tg-rojo);
    color: #fff;
}

.btn-tg-rojo:hover {
    background: var(--tg-rojo-oscuro);
    border-color: var(--tg-rojo-oscuro);
    color: #fff;
}

/* HERO */
.tg-inicio {
    min-height: calc(100vh - 68px);
    background:
        radial-gradient(circle at top right, rgba(177, 18, 38, 0.35), transparent 34%),
        linear-gradient(135deg, #101010 0%, #262626 48%, #3a0007 100%);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 36px 0;
}

.tg-hero-row {
    min-height: calc(100vh - 150px);
}

.tg-hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    padding: 36px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(12px);
}

.tg-etiqueta {
    display: inline-flex;
    align-items: center;
    background: rgba(177, 18, 38, 0.22);
    color: #ffd6da;
    border: 1px solid rgba(177, 18, 38, 0.48);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.tg-etiqueta i {
    color: var(--tg-rojo-claro);
}

.tg-titulo-principal {
    font-size: clamp(2rem, 4.2vw, 4.1rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.tg-titulo-principal span {
    color: var(--tg-rojo-claro);
}

.tg-texto-principal {
    color: #eeeeee;
    font-size: 1.04rem;
    line-height: 1.6;
    max-width: 620px;
}

.tg-botones-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

/* PANEL DERECHO */
.tg-dashboard-preview {
    background: #f7f7f7;
    color: #111;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tg-dashboard-header {
    background: #111;
    color: #fff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 0.88rem;
}

.tg-punto {
    width: 11px;
    height: 11px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 5px;
}

.tg-punto.rojo {
    background: var(--tg-rojo);
}

.tg-punto.gris {
    background: #b7b7b7;
}

.tg-punto.negro {
    background: #444;
}

.tg-dashboard-body {
    padding: 24px;
}

.tg-card-principal {
    background: linear-gradient(135deg, #111, #2b2b2b);
    color: #fff;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.tg-card-principal small {
    color: #dcdcdc;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.tg-card-principal h3 {
    font-weight: 900;
    margin: 5px 0;
}

.tg-card-principal p {
    margin: 0;
    color: #e7e7e7;
}

.tg-card-principal i {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: rgba(177, 18, 38, 0.22);
    color: var(--tg-rojo-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.tg-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.tg-mini-card {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid #e7e7e7;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tg-mini-card i {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: rgba(177, 18, 38, 0.12);
    color: var(--tg-rojo);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-mini-card small {
    display: block;
    color: #777;
    font-weight: 700;
    font-size: 0.78rem;
}

.tg-mini-card strong {
    font-size: 0.94rem;
}

/* MÓDULOS */
.tg-modulos-resumen {
    background: #f4f4f4;
    padding: 34px 0 46px;
}

.tg-modulos-header {
    text-align: center;
    margin-bottom: 22px;
}

.tg-modulos-header span {
    color: var(--tg-rojo);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 1px;
}

.tg-modulos-header h2 {
    font-weight: 900;
    color: #111;
    margin-top: 5px;
}

.tg-modulo-mini {
    height: 100%;
    background: #fff;
    border-radius: 22px;
    padding: 20px 14px;
    border: 1px solid #e7e7e7;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: 0.2s ease;
}

.tg-modulo-mini:hover {
    transform: translateY(-4px);
    border-color: rgba(177, 18, 38, 0.35);
}

.tg-modulo-mini i {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    background: rgba(177, 18, 38, 0.12);
    color: var(--tg-rojo);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.tg-modulo-mini h3 {
    font-size: 1rem;
    font-weight: 900;
    color: #111;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .tg-inicio {
        padding: 28px 0;
    }

    .tg-hero-row {
        min-height: auto;
    }

    .tg-hero-card {
        padding: 28px;
    }
}

@media (max-width: 575px) {
    .tg-hero-card {
        padding: 24px;
    }

    .tg-titulo-principal {
        font-size: 2rem;
    }

    .tg-botones-hero .btn {
        width: 100%;
    }

    .tg-mini-grid {
        grid-template-columns: 1fr;
    }

    .tg-card-principal {
        flex-direction: column;
        align-items: flex-start;
    }
}