/*
 * Templo de Chatgi — v0.4
 * Únicamente formateado y comentado desde el CSS original confirmado.
 * Sin modificar selectores, propiedades, valores ni orden de las reglas.
 */


/* ============================================================
 * 01. Contenedor general y colores
 * ============================================================ */
.gtc {
    --gtc-text: #eaf0ff;
    --gtc-line: #42568e;
    max-width: 1600px;
    margin: 0 auto;
    color: var(--gtc-text);
    background: #070c22;
    border-radius: 16px;
    overflow: hidden;
    font-family: system-ui,Segoe UI,sans-serif;
}

.gtc * {
    box-sizing: border-box;
}


/* ============================================================
 * 02. Ilustración completa (sin recortes)
 * ============================================================ */
.gtc .gtc-scene {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    background: none !important;
    overflow: visible !important;
    line-height: 0 !important;
}

.gtc .gtc-scene img,.gtc .gtc-scene .gtc-scene-image {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ============================================================
 * 03. Área interior y bienvenida
 * ============================================================ */
.gtc-body {
    padding: 20px clamp(16px,3vw,40px) 55px;
}

.gtc-welcome {
    margin: 0 0 16px;
    color: #c1cef0;
}


/* ============================================================
 * 04. Buscador
 * ============================================================ */
.gtc-search {
    max-width: 650px;
    margin: 0 auto 12px;
}

.gtc-search input {
    display: block;
    width: 100%;
    min-height: 44px;
    background: #060b25;
    border: 1px solid #4773df;
    border-radius: 30px;
    color: white;
    padding: 9px 20px;
    font-size: 16px;
}


/* ============================================================
 * 05. Filtros de categorías
 * ============================================================ */
.gtc-search input::placeholder {
    color: #b6c8ef;
}

.gtc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    margin: 0 auto 25px;
}

.gtc-tabs button {
    border: 1px solid #6b80ce;
    border-radius: 99px;
    background: #0b1235;
    color: white;
    padding: 9px 13px;
    font-size: 13px;
    cursor: pointer;
}


/* ============================================================
 * 06. Título de la sección
 * ============================================================ */
.gtc-tabs button.is-active {
    background: #317cf4;
}

.gtc-body h2 {
    color: #eaf0ff;
    font-size: clamp(1.25rem,2vw,1.7rem);
    margin: 0 0 18px;
}


/* ============================================================
 * 07. Rejilla y tarjetas
 * ============================================================ */
.gtc-body h2 small {
    font-size: .7em;
    color: #a6b8e4;
    font-weight: 400;
}

.gtc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr));
    gap: 16px;
}

.gtc-card {
    background: linear-gradient(145deg,#162347,#10172e);
    border: 1px solid var(--gtc-line);
    border-radius: 15px;
    padding: 19px;
    min-width: 0;
    box-shadow: 0 9px 28px #0005;
}

.gtc-card[hidden],.gtc-link[hidden],.gtc-group[hidden] {
    display: none !important;
}


/* ============================================================
 * 08. Grupos y enlaces
 * ============================================================ */
.gtc-card h3 {
    font-size: 1.12rem;
    color: white;
    margin: 0 0 6px;
}

.gtc-card p {
    color: #adbee6;
    font-size: .9rem;
    margin: 0 0 14px;
}

.gtc-items,.gtc-group {
    display: grid;
    gap: 7px;
}

.gtc-group {
    margin: 8px 0;
}

.gtc-group>strong {
    color: #cbd8ff;
    font-size: .88rem;
}


/* ============================================================
 * 09. Elementos no disponibles y métricas
 * ============================================================ */
.gtc-link {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    text-decoration: none !important;
    color: #f1f5ff !important;
    background: #192a52;
    border: 1px solid #314f88;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: .92rem;
}

.gtc-link:hover,.gtc-link:focus-visible {
    background: #254379;
    border-color: #8db8ff;
}

.gtc-unavailable {
    opacity: .65;
}

.gtc-kpis {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.gtc-kpis>div {
    background: #0b1530;
    padding: 10px;
    border-radius: 8px;
}


/* ============================================================
 * 10. Mensajes y accesibilidad
 * ============================================================ */
.gtc-kpis strong,.gtc-kpis span {
    display: block;
}

.gtc-kpis span {
    font-size: .75rem;
    color: #aabbe1;
}


/* ============================================================
 * 11. Adaptación a móviles
 * ============================================================ */
.gtc-none {
    color: #bdc8e5;
}

.gtc-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media(max-width:700px) {
    .gtc-body {
        padding-top: 15px;
    }

    .gtc-tabs button {
        font-size: 12px;
    }
}


/* ============================================================
 * 12. Identidad del templo: texto HTML sobre la imagen limpia
 *     Sin editar el PNG, sin interferir con el contenido existente.
 * ============================================================ */
.gtc .gtc-scene {
    position: relative !important;
    container-type: inline-size;
}
.gtc .gtc-hero-brand {
    position: absolute;
    z-index: 2;
    top: 6.4%;
    left: 2%;
    width: 31%;
    max-width: 540px;
    text-align: center;
    line-height: 1.2;
    pointer-events: none;
    color: #f8f7ff;
    text-shadow: 0 2px 8px #060827, 0 0 18px #203fca;
}
.gtc .gtc-hero-crown {
    display: block;
    width: 48px;
    height: 40px;
    margin: 0 auto 2px;

    background-image: url("../img/gusinet_crown.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;

    filter: drop-shadow(0 0 7px rgba(255, 210, 120, .45));
}
/* Texto GUSINET (Imagen) */
.gtc .gtc-hero-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(18px, 4.2cqw, 68px);
    font-weight: 500;
    letter-spacing: .035em;
    line-height: 1.04;
    text-shadow: 0 0 3px #fff, 0 0 14px #4667ed, 0 0 26px #3656e6;
}
/* Texto EL TEMPLO DE CHATGI (Imagen) */
.gtc .gtc-hero-subtitle {
    margin-top: .4cqw;
    padding: .4cqw 0;
    border-top: 1px solid rgba(205, 217, 255, .85);
    border-bottom: 1px solid rgba(205, 217, 255, .85);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(9px, 1.25cqw, 19px);
    font-weight: 700;
    letter-spacing: .045em;
    white-space: nowrap;
    text-shadow: 0 0 9px #365eea, 0 2px 6px #000;
}
/* Texto LEMA (Imagen) */
.gtc .gtc-hero-motto {
    margin: 1cqw 0 0 !important;
    color: #f5f4ff;
    font-size: clamp(15px, 1.15cqw, 18px);
    font-weight: 450;
    line-height: 1.45;
    text-shadow: 0 2px 5px #020414, 0 0 10px #090b2b;
}


/* TEMPLO DE CHATGI - MÓVIL COMPACTO */
@media (max-width: 650px) {

    .gtc .gtc-hero-brand {
        position: absolute;
        top: 2%;
        left: 1%;
        width: 32%;
        max-width: none;
        margin: 0;
        padding: 0;
        background: none;
        text-align: center;
        z-index: 3;
    }

    .gtc .gtc-hero-crown {
        display: block;
        width: 16px;
        height: 13px;
        margin: 0 auto 1px;
        font-size: 0;
        line-height: 0;
    }

    .gtc .gtc-hero-name {
        font-size: clamp(13px, 3.8vw, 21px);
        line-height: 1;
        white-space: nowrap;
    }

    .gtc .gtc-hero-subtitle {
        display: block;
        font-size: clamp(6px, 1.5vw, 9px);
        letter-spacing: 0;
        padding: 2px 0;
        white-space: nowrap;
    }

    .gtc .gtc-hero-motto {
        margin-top: 4px !important;
        font-size: clamp(7px, 1.6vw, 9px);
        line-height: 1.2;
    }

}