/* ============================================================
   TINKUY360 — Estilos globales
   ============================================================ */

:root {
    --tinkuy-fondo: #020817;
    --tinkuy-oro: #FFD700;
    --tinkuy-oro-oscuro: #B38F00;
    --tinkuy-cian: #00FFFF;
    --tinkuy-verde: #2ECC71;
    --tinkuy-rojo: #E74C3C;
    --tinkuy-gris: #95A5A6;
    --tinkuy-blanco: #FFFFFF;
}

* { box-sizing: border-box; }

body {
    font-family: "Segoe UI", Roboto, -apple-system, sans-serif;
    background: var(--tinkuy-fondo);
    color: var(--tinkuy-blanco);
    min-height: 100vh;
    margin: 0;
}

/* NAVBAR */
.tinkuy-navbar {
    background: rgba(2, 8, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    padding: 12px 0;
}

.tinkuy-brand {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.brand-tinkuy { color: var(--tinkuy-oro); }
.brand-360    { color: var(--tinkuy-blanco); }

.tinkuy-navbar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}

.tinkuy-navbar .nav-link:hover {
    color: var(--tinkuy-oro);
}

.tinkuy-user {
    color: var(--tinkuy-oro) !important;
}

/* HERO */
.hero-tinkuy {
    padding: 120px 20px 60px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.08), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.06), transparent 40%);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
    margin: 0 auto;
}

/* FOOTER */
.tinkuy-footer {
    background: rgba(2, 8, 23, 0.95);
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    padding: 40px 20px 25px;
    text-align: center;
    margin-top: 80px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   BRANDING TINKUY360
   Isotipo + marca reutilizable
   ============================================================ */

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.brand-logo-wrap:hover {
    transform: translateY(-2px);
}

/* Tamaños */
.brand-logo-wrap.size-sm { gap: 8px; }
.brand-logo-wrap.size-sm .brand-logo-svg { width: 32px; height: 32px; }
.brand-logo-wrap.size-sm .brand-logo-texto { font-size: 1.1rem; }

.brand-logo-wrap.size-md { gap: 12px; }
.brand-logo-wrap.size-md .brand-logo-svg { width: 42px; height: 42px; }
.brand-logo-wrap.size-md .brand-logo-texto { font-size: 1.35rem; }

.brand-logo-wrap.size-lg { gap: 16px; }
.brand-logo-wrap.size-lg .brand-logo-svg { width: 64px; height: 64px; }
.brand-logo-wrap.size-lg .brand-logo-texto { font-size: 2rem; }

.brand-logo-wrap.size-xl { gap: 20px; }
.brand-logo-wrap.size-xl .brand-logo-svg { width: 96px; height: 96px; }
.brand-logo-wrap.size-xl .brand-logo-texto { font-size: 3rem; }

/* SVG */
.brand-logo-svg {
    display: block;
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.15));
    transition: filter 0.3s ease;
}

.brand-logo-wrap:hover .brand-logo-svg {
    filter: drop-shadow(0 6px 18px rgba(255, 215, 0, 0.35));
}

/* Texto */
.brand-logo-texto {
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
}

.brand-tinkuy {
    color: #FFD700;
}

.brand-360 {
    color: #FFFFFF;
}

/* ============================================================
   ANIMACIONES DEL ISOTIPO (secuencia)
   ============================================================ */

.brand-anillo {
    stroke-dasharray: 290;
    stroke-dashoffset: 290;
    animation: brandTrazarAnillo 1.6s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes brandTrazarAnillo {
    to { stroke-dashoffset: 0; }
}

.brand-vector {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: brandDibujarVector .7s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes brandDibujarVector {
    to { stroke-dashoffset: 0; }
}

.brand-v-gris  { animation-delay: 0.4s; }
.brand-v-rojo  { animation-delay: 1.0s; }
.brand-v-oro   { animation-delay: 1.6s; }
.brand-v-verde { animation-delay: 2.2s; }

.brand-texto-360 {
    transform-origin: center;
    transform: scale(0);
    opacity: 0;
    animation: brandPopTexto .6s cubic-bezier(.34,1.56,.64,1) 2.6s forwards;
}

@keyframes brandPopTexto {
    to { transform: scale(1); opacity: 1; }
}

.footer-brand-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

/* ============================================================
   BRANDING TINKUY360 — VERSIÓN COMPLETA
   Isotipo + Nombre + Línea multicolor
   ============================================================ */

/* ------------------------------------------------------------
   CONTENEDOR PRINCIPAL
   ------------------------------------------------------------ */

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
    position: relative;
}

.brand-logo-wrap:hover {
    transform: translateY(-2px);
}

/* ------------------------------------------------------------
   ISOTIPO (SVG)
   ------------------------------------------------------------ */

.brand-logo-isotipo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-svg {
    display: block;
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.15));
    transition: filter 0.3s ease;
}

.brand-logo-wrap:hover .brand-logo-svg {
    filter: drop-shadow(0 6px 18px rgba(255, 215, 0, 0.4));
}

/* ------------------------------------------------------------
   NOMBRE + LÍNEA (columna vertical)
   ------------------------------------------------------------ */

.brand-logo-texto-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.brand-logo-texto {
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
}

.brand-tinkuy {
    color: #FFD700;
}

.brand-360 {
    color: #FFFFFF;
}

/* ------------------------------------------------------------
   LÍNEA MULTICOLOR
   gris → rojo → amarillo → verde
   ------------------------------------------------------------ */

.brand-linea-multicolor {
    display: block;
    width: 40%;
    min-width: 40px;
    height: 2.5px;
    margin-top: 4px;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        #95A5A6 0%,
        #E74C3C 30%,
        #FFD700 65%,
        #2ECC71 100%
    );
    transform-origin: left center;
}

/* ------------------------------------------------------------
   TAMAÑOS
   ------------------------------------------------------------ */

/* TAMAÑO SM — navbar pequeño / móvil */
.brand-logo-wrap.size-sm { gap: 8px; }
.brand-logo-wrap.size-sm .brand-logo-svg { width: 32px; height: 32px; }
.brand-logo-wrap.size-sm .brand-logo-texto { font-size: 1.05rem; }
.brand-logo-wrap.size-sm .brand-linea-multicolor { min-width: 65px; height: 1px; }

/* TAMAÑO MD — navbar estándar */
.brand-logo-wrap.size-md { gap: 12px; }
.brand-logo-wrap.size-md .brand-logo-svg { width: 42px; height: 42px; }
.brand-logo-wrap.size-md .brand-logo-texto { font-size: 1.35rem; }
.brand-logo-wrap.size-md .brand-linea-multicolor { min-width: 82px; height: 1.5px; }

/* TAMAÑO LG — footer */
.brand-logo-wrap.size-lg { gap: 16px; }
.brand-logo-wrap.size-lg .brand-logo-svg { width: 64px; height: 64px; }
.brand-logo-wrap.size-lg .brand-logo-texto { font-size: 2rem; }
.brand-logo-wrap.size-lg .brand-linea-multicolor { min-width: 110px; height: 2px; }

/* TAMAÑO XL — hero / página */
.brand-logo-wrap.size-xl { gap: 20px; }
.brand-logo-wrap.size-xl .brand-logo-svg { width: 96px; height: 96px; }
.brand-logo-wrap.size-xl .brand-logo-texto { font-size: 3rem; }
.brand-logo-wrap.size-xl .brand-linea-multicolor { min-width: 160px; height: 2.5px; }

/* ------------------------------------------------------------
   ANIMACIONES (secuencia como la tarjeta)
   ------------------------------------------------------------ */

/* Anillo */
.brand-anillo {
    stroke-dasharray: 290;
    stroke-dashoffset: 290;
    animation: brandTrazarAnillo 1.6s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes brandTrazarAnillo {
    to { stroke-dashoffset: 0; }
}

/* Vectores */
.brand-vector {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: brandDibujarVector .7s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes brandDibujarVector {
    to { stroke-dashoffset: 0; }
}

/* Delays en secuencia */
.brand-v-gris  { animation-delay: 0.4s; }
.brand-v-rojo  { animation-delay: 1.0s; }
.brand-v-oro   { animation-delay: 1.6s; }
.brand-v-verde { animation-delay: 2.2s; }

/* Texto 360° (dentro del SVG) */
.brand-texto-360 {
    transform-origin: center;
    transform: scale(0);
    opacity: 0;
    animation: brandPopTexto .6s cubic-bezier(.34,1.56,.64,1) 2.6s forwards;
}

@keyframes brandPopTexto {
    to { transform: scale(1); opacity: 1; }
}

/* Nombre (Tinkuy + 360°) */
.brand-logo-wrap .brand-logo-texto {
    opacity: 0;
    transform: translateY(6px);
    animation: brandAparecerTexto .6s cubic-bezier(.16,1,.3,1) 2.8s forwards;
}

@keyframes brandAparecerTexto {
    to { opacity: 1; transform: translateY(0); }
}

/* Línea multicolor */
.brand-logo-wrap .brand-linea-multicolor {
    transform: scaleX(0);
    animation: brandRecorrerLinea .8s cubic-bezier(.16,1,.3,1) 3.4s forwards;
}

@keyframes brandRecorrerLinea {
    to { transform: scaleX(1); }
}

/* ------------------------------------------------------------
   SIN ANIMACIÓN (para navbar en páginas internas)
   ------------------------------------------------------------ */

.brand-logo-wrap.no-animar .brand-anillo,
.brand-logo-wrap.no-animar .brand-vector,
.brand-logo-wrap.no-animar .brand-texto-360,
.brand-logo-wrap.no-animar .brand-logo-texto,
.brand-logo-wrap.no-animar .brand-linea-multicolor {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
}