@font-face {
  font-family: 'Corporate Logo Ver2';
}
  
  @font-face {
  font-family: 'Gil Sans or'; /* Este es el "apodo" que usaremos */
  src: url('fonts/GillSans.woff2') format('woff2'), /* <-- ¡REVISA ESTE NOMBRE DE ARCHIVO! */
       url('fonts/GillSans.woff') format('woff');   /* <-- ¡REVISA ESTE NOMBRE DE ARCHIVO! */
  font-weight: 100; /* "Thin" suele ser un peso de 100 */
  font-style: normal;
}

@font-face {
  font-family: 'Furgatorio'; /* Este es el "apodo" que usaremos */
  src: url('fonts/Furgatorio.woff2') format('woff2'), /* <-- ¡REVISA ESTE NOMBRE DE ARCHIVO! */
       url('fonts/Furgatorio.woff') format('woff');   /* <-- ¡REVISA ESTE NOMBRE DE ARCHIVO! */
  font-weight: 100; /* "Thin" suele ser un peso de 100 */
  font-style: normal;
}

@font-face {
  font-family: 'Raleway Thin Italic'; /* Este es el "apodo" que usaremos */
  src: url('fonts/Raleway-ThinItalic.woff2') format('woff2'), /* <-- ¡REVISA ESTE NOMBRE DE ARCHIVO! */
       url('fonts/Raleway-thinitalic.woff') format('woff');   /* <-- ¡REVISA ESTE NOMBRE DE ARCHIVO! */
  font-weight: 100; /* "Thin" suele ser un peso de 100 */
  font-style: italic;
}

@font-face {
  font-family: 'Norwester'; /* Este es el "apodo" que usaremos */
  src: url('fonts/Norwester-Regular.woff2') format('woff2'), /* <-- ¡REVISA ESTE NOMBRE DE ARCHIVO! */
       url('fonts/Norwester-Regular.woff') format('woff');   /* <-- ¡REVISA ESTE NOMBRE DE ARCHIVO! */
  font-weight: normal; /* "Regular" es un peso normal */
  font-style: normal;
}

@font-face {
  font-family: 'Gill Sans MT'; /* Apodo limpio y fácil de usar */
  src: url('fonts/GillSansMT.woff') format('woff'), /* ¡REVISA EL NOMBRE DE ARCHIVO REAL! */
       url('fonts/GillSansMT.woff2') format('woff2');   /* ¡REVISA EL NOMBRE DE ARCHIVO REAL! */
  font-weight: normal;
  font-style: normal;
}


/* --- COLORES BASE Y FUENTE --- */
:root {
    --main-color: #7ec4c7;
    --shadow-color: #e2710a;
    --text-color: #FFFFA2;
    --red-damage: #cb2742;
    --white-damage: #efecc0;
    --black-damage: #814a84;
    --pale-damage: #3fccbd;
    --waw-level: #594f80;
}

body {
    min-height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #161E2E;
    padding: 20px 0; 
}

/* --- OVERLAY DE EFECTO TV ANTIGUA --- */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4) 2px, transparent 1px, transparent 4px);
    pointer-events: none;
    z-index: 9999;
    animation: scanline 20s linear infinite;
}

p {
    font-family: 'Raleway Thin Italic', sans-serif;
    font-weight: 100;
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.6;
}

a {
    font-family: 'Norwester', sans-serif;
    text-shadow: 2px 2px 4px rgba(255, 0, 0, 0.5);
}

.OutLimbus {
    font-family: 'Gil Sans MT';
    font-style: normal;
    font-weight: normal; /* 'normal' equivale a un grosor de 400 */
}

.Nquotes {
    font-family: 'Gil Sans or';
    font-style: normal;
    font-weight: bold;
    font-size: 110%;
    letter-spacing: 1px;
    color: white;
    border-color: red green blue purple;
    text-shadow: 2px 2px 2px var(--shadow-color);
}

/* --- CONTENEDOR PRINCIPAL --- */
.main-wrapper {
    background: black;
    max-width: 1140px;
    font-size: 1.25em;
}
.main-container {
    color: var(--text-color);
    margin: 0px;
}
.main-row {
    margin: -4px -19px;
}

/* --- COLUMNA IZQUIERDA (NAVEGACIÓN) --- */
.left-column {
    background: var(--main-color);
    padding: 4px;
    font-size: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.name-level-box {
    background: black;
    padding: 5px;
    margin-top: 4px;
    margin-bottom: 4px;
    font-weight: bold;
}
#level {
    padding: 4px;
    float: left;
    margin-top: -14px;
    font-size: 36px;
}
#name {
    text-shadow: 2px 2px 2px var(--shadow-color);
}
#name .first-letter {
    font-size: 26px;
}
.nav-buttons-box {
    background: black;
    padding: 8px;
    margin-top: 2px;
    font-weight: bold;
}
.nav-buttons-box .nav {
    font-size: 22px;
}
.nav-buttons-box .nav-item {
    padding: 8px;
    margin-top: 7px;
}
.nav-buttons-box .nav-link {
    padding: 0px;
    color: var(--text-color);
}
.nav-buttons-box .nav-link .fa-square {
    padding: 6px 6px 12px 6px;
}

/* --- ESTILOS PARA LA CAJA DEL BLINKIE (CORREGIDO Y AÑADIDO) --- */
.blinky-box {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1px 0;
}
.blinky-box img {
    margin: 1px;
}

/* --- COLUMNA DERECHA (CONTENIDO) --- */
.main-content-column {
    padding: 0;
    margin: 0;
}
.top-info-box {
    background: black;
    height: 176px;
}
.info-fields-wrapper {
    margin: 0;
    padding: 0;
    border: 4px solid var(--main-color);
    border-left: none;
}
#title {
    font-family: 'Norwester', sans-serif;
    height: 52px;
    font-weight: bold;
    font-size: 26px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 4px solid var(--red-damage);
    color: var(--red-damage);
    text-shadow: 2px 2px 4px rgba(255, 0, 0, 0.5);
    animation: typing 1.8s steps(15, end) forwards, blink-cursor 0.75s step-end 3 forwards;
    margin: 0 auto;
    padding-top: 10px;
    width: fit-content;
}
#title .first-letter-title {
    font-family: 'Norwester', sans-serif;
    font-size: 26px;
}
#infofields {
    margin: 0px;
    height: 125px;
    padding-top: 4px;
    overflow: hidden;
    overflow-wrap: anywhere;
}
#infofields .info-col-left {
    border-right: 4px dashed var(--main-color);
    height: 117px;
    margin-left: -1px;
}
.info-item { height: 41px; }
.info-item-last { height: 36px; }
.info-value { float: right; padding-right: 8px; }

/* --- STATS --- */
#stats {
    padding: 0px;
    font-size: 27px;
    border: 4px solid var(--main-color);
    border-left: none;
    font-weight: bold;
}
#fortitude { color: var(--red-damage); }
#prudence { color: var(--white-damage); }
#temperance { color: var(--black-damage); }
#justice { color: var(--pale-damage); }
.stat-item { height: 44px; }
.stat-icon { float: left; margin-left: 10px; }
.stat-icon.red { color: var(--red-damage); }
.stat-icon.white { color: var(--white-damage); }
.stat-icon.black { color: var(--black-damage); }
.stat-icon.pale { color: var(--pale-damage); }

/* --- PANELES DE CONTENIDO (TABS) --- */
.tab-content-pane {
    min-height: 428px;
    border: 4px solid var(--main-color);
    border-top: none;
    margin-top: 8px;
    padding: 8px;
}
.tab-header-text {
    position: absolute;
    float: right;
    width: 66%;
    text-align: right;
    padding-right: 18px;
    font-size: 18px;
    margin-top: -2px;
    color: black;
    font-weight: bold;
    transform: scale(2, 1) skew(-15deg);
}
.tab-header-shape-container {
    height: 25px;
}

.tab-content {
    height: auto;
}
.tab-pane {
    background-color: transparent;
}

.main-content-column {
    background-color: transparent;
    height: fit-content;
}
.tab-header-shape-left {
    width: 15%;
    border-top: 25px solid var(--main-color);
    border-right: 25px solid transparent;
    display: inline-block;
}
.tab-header-shape-right {
    width: 83%;
    border-bottom: 25px solid var(--main-color);
    border-left: 25px solid transparent;
    display: inline-block;
    float: right;
}
.tab-scroll-content {
    min-height: 380px;
    padding-top: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}
.tab-scroll-content::-webkit-scrollbar {
    display: none;
}

/* --- ESTILOS DE TEXTO Y SEPARADORES --- */
blockquote {
    border-left: 4px solid var(--main-color);
    padding-left: 1rem;
    margin-left: 0.5rem;
}
h1, h2 {
    font-family: 'Norwester', sans-serif;
    font-weight: bold;
    text-shadow: 2px 2px 2px var(--shadow-color);
}
.hr-dashed-skew { border: 2px dashed var(--main-color); transform: skew(-45deg) scale(2, 1); }
.hr-dashed-skew-thin { border: 2px dashed var(--main-color); transform: skew(-45deg) scale(2, 1); }
.hr-dashed-skew-thick { border: 4px dashed var(--main-color); transform: skew(-45deg) scale(2, 1); }

/* --- SECCIÓN RELATIONSHIPS --- */
.relationship-status {
    float: right;
    padding-right: 8px;
}
.relationship-img-box {
    width: 200px;
    margin: 16px;
    margin-top: 0px;
    float: left;
    border: 5px outset var(--main-color);
}
.relationship-img-box img {
    display: block;
}
#relationships a {
    color: var(--text-color);
}

/* --- SECCIÓN GEAR --- */
.damage-black { color: var(--black-damage); text-shadow: 2px 2px 2px #520c55; }
.damage-red { color: var(--red-damage); text-shadow: 2px 2px 2px #7d071a; }
.damage-white { color: var(--white-damage); text-shadow: 2px 2px 2px #6f6912; }
.damage-pale { color: var(--pale-damage); text-shadow: 2px 2px 2px #0b7f73; }
.risk-level { float: right; padding-right: 8px; }
.risk-level.waw { color: var(--waw-level); text-shadow: 2px 2px 2px #271e41; }

/* --- FOOTER / REPRODUCTOR --- */
.footer-player {
    border: 4px solid var(--main-color);
    margin: -4px;
    margin-top: 1px;
    height: 64px;
    color: var(--text-color);
    text-shadow: 2px 2px 2px var(--shadow-color);
}
.play-button-container {
    height: 57px;
    margin-right: -4px;
    border-right: 4px solid var(--main-color);
    position: relative;
}
.play-icon {
    opacity: 0.99;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5em;
    pointer-events: none;
}
.video-iframe {
    opacity: 0.001;
    position: absolute;
    height: 100%;
    width: 100%;
    border: none;
    top:0;
    left:0;
}
.song-title-container {
    margin-left: 4px;
    overflow-y: hidden;
    overflow-x: hidden;
    height: 57px;
    padding-top: 4px;
    width: 93.5%;
    padding-right: 48px;
    text-align: center;
}
.song-title {
    font-size: 2em;
    transform: skew(-15deg);
    font-weight: bold;
    display: block;
    overflow-wrap: anywhere;
}

/* --- ESTILOS PARA LOS BLINKIES DEL FONDO --- */
.background-blinkie {
    position: fixed; 
    z-index: -1;     
    opacity: 1;    
    transform: scale(0.4); 
    top: 0;
    left: 0;
    transition: opacity 0.4s ease-in-out;
}

/* ==========================================================================
   ESTILOS PARA TOOLTIPS PERSONALIZADOS (HINT)
   ========================================================================== */

/* 1. Contenedor de la palabra a sobrevolar */
.hint {
    position: relative; /* ¡MUY IMPORTANTE! Es el ancla para el tooltip. */
    cursor: help; /* Cambia el cursor para indicar que hay ayuda. */
    border-bottom: 2px dotted var(--main-color); /* Un subrayado para que destaque. */
}

/* 2. El cuadro del tooltip (oculto por defecto) */
.hint::after {
    /* --- Contenido y Estilo --- */
    content: attr(data-tooltip); /* Coge el texto del atributo data-tooltip */
    background-color: #111;
    color: #FFFFA2;
    border: 2px solid var(--main-color);
    padding: 8px 12px;
    border-radius: 5px;
    font-family: 'Norwester', sans-serif; /* Usa una de tus fuentes */
    font-size: 0.9em;
    text-align: center;
    white-space: nowrap; /* Evita que el texto se parta en varias líneas */
    
    /* --- Posicionamiento --- */
    position: absolute;
    z-index: 10; /* Se asegura de que esté por encima de otros elementos */
    bottom: 120%; /* Lo posiciona encima de la palabra */
    left: 50%;
    transform: translateX(-50%); /* Lo centra perfectamente sobre la palabra */

    /* --- Efecto de aparición --- */
    opacity: 1; /* Totalmente transparente */
    visibility: hidden; /* Totalmente oculto */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 3. Muestra el tooltip cuando se pasa el cursor sobre .hint */
.hint:hover::after {
    opacity: 1; /* Lo hace visible */
    visibility: visible;
}

/* --- (OPCIONAL) AÑADE ESTO PARA LA FLECHITA --- */

/* La flecha (oculta por defecto) */
.hint::before {
    content: "";
    position: absolute;
    z-index: 10;
    
    /* Posicionamiento */
    bottom: calc(120% - 7px); /* La posiciona justo en el borde del tooltip */
    left: 50%;
    transform: translateX(-50%);

    /* La forma de la flecha (un truco con bordes) */
    border-width: 7px;
    border-style: solid;
    border-color: var(--main-color) transparent transparent transparent;

    /* Efecto de aparición */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Muestra la flecha junto con el tooltip */
.hint:hover::before {
    opacity: 1;
    visibility: visible;
}


/* --- ANIMACIONES --- */
@keyframes blink-cursor {
  from, to { border-color: transparent }
  50% { border-color: var(--red-damage); }
}
@keyframes typing {
  from { width: 0 }
  to { width: 15ch; } 
}
@keyframes scanline {
  from { background-position: 0 0; }
  to { background-position: 0 100vh; }
}

/* --- FIX: Altura fija del área de tabs --- */
.tab-content {
    height: 500px;        /* altura fija total del área */
    overflow: hidden;
}

.tab-content-pane {
    height: 100%;         /* ocupa exactamente el contenedor */
    min-height: unset;    /* cancela el min-height anterior */
    overflow: hidden;
}

.tab-scroll-content {
    height: calc(100% - 50px); /* resta el header de la tab */
    min-height: unset;          /* cancela el min-height anterior */
    overflow-y: auto;
    overflow-x: hidden;
}
