@import url('https://fonts.googleapis.com/css2?family=Lavishly+Yours&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Almendra:ital,wght@0,400;0,700;1,400;1,700&display=swap');



*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Mifuente";
    src: url(/Assets/fonts/brilon-11-regular.otf) format("opentype"),
         url(/Assets/fonts/brilon-11-regular.ttf) format("truetype");
    font-style: normal;
}

/*Variables*/


:root{
    --azul: 	#0d1d2b;
    --azul2: #0e1d3e;
    --rojo-primary: #d93d4a;
    --rojo-secundary: #bf3636;
    --negro: #0d0d0d;
    --azul-sec: #819fa6;
    --gold: #cdac49;
    --gold2: #d9c176;
    --gold-shaded: rgba(205, 172, 73, 0.65);
}


/*SISTEMA DE SPOILERS*/

.spoiler-input{
    display: none;
}

/*OCULTAR POR DEFECTO*/

.spoiler-block{
    display: none;
}

.spoiler-conten-full{
    display: none;
}

.spoiler-gate {
    display: block;
}

.spoiler-lock {
    display: inline;
}

.spoiler-off-text {
    display: inline;
}

.spoiler-on-text {
    display: none;
}

/*SPOILER ACTIVADO*/

.spoiler-input:checked ~ * .spoiler-block {
    display: flex;
}

.spoiler-input:checked ~ * .spoiler-content-full {
    display: block;
}

.spoiler-input:checked ~ * .spoiler-gate {
    display: none;
}

.spoiler-input:checked ~ * .spoiler-lock {
    display: none;
}

.spoiler-input:checked ~ * .spoiler-off-text {
    display: none;
}

.spoiler-input:checked ~ * .spoiler-on-text {
    display: inline;
}

/*FICHA PERSONAJE*/

.ficha-main {
    background-color: var(--azul);
    min-height: 100vh;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.breadcrumb {
    font-family: "Mifuente", serif;
    font-size: 0.8rem;
    color: rgba(205, 172, 73, 0.5);
}

.breadcrumb a {
    color: rgba(205, 172, 73, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--gold);
}


/*BANNER DE SPOILER*/

.spoiler-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(13, 29, 43, 0.8);
    border: 1px solid var(--gold);
    border-radius: 0.4rem;
    padding: 1rem 1.5rem;
}

.spoiler-banner-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spoiler-icon {
    font-size: 1.5rem;
}

.spoiler-banner-title {
    font-family: "Mifuente", serif;
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.spoiler-banner-sub {
    font-family: "Mifuente", serif;
    color: rgba(205, 172, 73, 0.6);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.spoiler-btn {
    font-family: "Mifuente", serif;
    background-color: var(--rojo-secundary);
    color: antiquewhite;
    padding: 0.55rem 1.4rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
    user-select: none;
}

.spoiler-btn:hover {
    background-color: var(--rojo-primary);
}

/*BARRA IZQ */

.ficha-layout {
    display: grid;
    grid-template-columns: 14rem 1fr 16rem;
    gap: 2rem;
    align-items: start;
}

.ficha-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sidebar-title {
    font-family: "Mifuente", serif;
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(205, 172, 73, 0.2);
    padding-bottom: 0.4rem;
}

.sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sidebar-list a {
    font-family: "Mifuente", serif;
    color: rgba(205, 172, 73, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.sidebar-list a:hover,
.sidebar-list li.active a {
    color: var(--gold);
}

.sidebar-more {
    color: rgba(205, 172, 73, 0.4);
    font-size: 0.85rem;
}

.sidebar-falta {
    background-color: rgba(13, 29, 43, 0.6);
    border: 1px solid rgba(205, 172, 73, 0.2);
    border-radius: 0.4rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-falta-title {
    font-family: "Mifuente", serif;
    color: var(--gold);
    font-size: 0.85rem;
}

.sidebar-falta-sub {
    font-family: "Mifuente", serif;
    color: rgba(205, 172, 73, 0.5);
    font-size: 0.75rem;
    line-height: 1.4;
}

/*HEADER DE PERSONAJE */

.pj-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background-color: rgba(13, 29, 43, 0.5);
    border: 1px solid rgba(205, 172, 73, 0.15);
    border-radius: 0.4rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.pj-portrait {
    width: 12rem;
    height: 14rem;
    object-fit: cover;
    object-position: top;
    border-radius: 0.3rem;
    border: 1px solid rgba(205, 172, 73, 0.3);
    flex-shrink: 0;
}

.pj-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pj-nombre {
    font-family: "Mifuente", serif;
    color: var(--gold);
    font-size: 2.5rem;
    letter-spacing: 0.08em;
}

.pj-titulo {
    font-family: "Mifuente", serif;
    color: rgba(205, 172, 73, 0.6);
    font-size: 1rem;
}

.pj-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    font-family: "Mifuente", serif;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tag-principal {
    background-color: var(--rojo-secundary);
    color: antiquewhite;
}

.tag-aliado {
    border: 1px solid var(--gold);
    color: var(--gold);
}

.pj-cita-intro {
    font-family: "Mifuente", serif;
    color: rgba(205, 172, 73, 0.7);
    font-size: 0.9rem;
    font-style: italic;
    border-left: 2px solid var(--gold);
    padding-left: 1rem;
    line-height: 1.6;
}

.spoiler-tag {
    font-family: "Mifuente", serif;
    font-size: 0.75rem;
    color: rgba(205, 172, 73, 0.4);
    letter-spacing: 0.03em;
}

.spoiler-content {
    font-family: "Mifuente", serif;
    color: rgba(205, 172, 73, 0.7);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/*PESTAÑAS*/

.tabs-wrapper {
    background-color: rgba(13, 29, 43, 0.5);
    border: 1px solid rgba(205, 172, 73, 0.15);
    border-radius: 0.4rem;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid rgba(205, 172, 73, 0.2);
}

.tab-btn {
    font-family: "Mifuente", serif;
    background: none;
    border: none;
    color: rgba(205, 172, 73, 0.5);
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: var(--gold);
}

.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.tab-lock {
    font-size: 0.7rem;
    opacity: 0.5;
}

.tab-panel {
    display: none;
    padding: 1.5rem;
}

.tab-panel.active {
    display: block;
}

/*INFO PRINCIPAL*/

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-row {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(205, 172, 73, 0.08);
}

.info-label {
    font-family: "Mifuente", serif;
    color: rgba(205, 172, 73, 0.5);
    font-size: 0.8rem;
    min-width: 9rem;
}

.info-val {
    font-family: "Almendra", serif;
    color: var(--gold2);
    font-size: 0.85rem;
}

.info-desc {
    font-family: "Almendra", serif;
    color: rgba(205, 172, 73, 0.65);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.info-desc-title{
    font-family: "Almendra", serif;
    color: var(--rojo-primary);
    font-size: 1rem;
}


/*SPOILERS  */

.spoiler-gate {
    text-align: center;
    padding: 3rem 1rem;
}

.spoiler-gate-txt {
    font-family: "Mifuente", serif;
    color: rgba(205, 172, 73, 0.4);
    font-size: 0.9rem;
}

/*RELACIONES*/

.relaciones-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.relacion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(205, 172, 73, 0.08);
}

.relacion-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(205, 172, 73, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Mifuente", serif;
    color: var(--gold);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.relacion-nombre {
    font-family: "Almendra", serif;
    color: var(--gold2);
    font-size: 0.9rem;
}

.relacion-tipo {
    font-family: "Mifuente", serif;
    color: rgba(205, 172, 73, 0.5);
    font-size: 0.75rem;
}

/* CITAS */

.citas-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.cita-item {
    border-left: 2px solid var(--gold);
    padding-left: 1rem;
}

.cita-item p {
    font-family: "Almendra", serif;
    color: rgba(205, 172, 73, 0.7);
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.6;
}

.cita-item cite {
    font-family: "Almendra", serif;
    color: rgba(205, 172, 73, 0.4);
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: block;
}


/* APARICIONES */

.apariciones-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.apariciones-list li {
    font-family: "Almendra", serif;
    color: var(--gold2);
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(205, 172, 73, 0.08);
}

/* CURIOSIDADES */

.curiosidades-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.curiosidades-list li {
    font-family: "Almendra", serif;
    color: rgba(205, 172, 73, 0.65);
    font-size: 0.85rem;
    line-height: 1.6;
    padding-left: 1rem;
    border-left: 1px solid rgba(205, 172, 73, 0.2);
}

/* SIDEBAR DERECHO */

.ficha-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-right-section {
    background-color: rgba(13, 29, 43, 0.5);
    border: 1px solid rgba(205, 172, 73, 0.15);
    border-radius: 0.4rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sidebar-right-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-right-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Mifuente", serif;
    color: rgba(205, 172, 73, 0.6);
    font-size: 0.8rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(205, 172, 73, 0.06);
}

.spoiler-lock-icon {
    font-size: 0.7rem;
    opacity: 0.4;
}

.tabs-select {
    display: none;
}

/*RESPONSIVE*/


@media (max-width: 1024px) {

    .ficha-layout {
        grid-template-columns: 12rem 1fr;
        grid-template-areas:
            "sidebar-left content"
            "sidebar-right sidebar-right";
    }

    .ficha-sidebar {
        grid-area: sidebar-left;
    }

    .ficha-content {
        grid-area: content;
    }

    .ficha-sidebar-right {
        grid-area: sidebar-right;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .pj-portrait {
        width: 9rem;
        height: 11rem;
    }

    .pj-nombre {
        font-size: 1.8rem;
    }

    .ficha-main {
        padding: 1.5rem 2rem;
    }

    .tabs-nav {
        flex-wrap: wrap;
    }

    .tab-btn {
        font-size: 0.78rem;
        padding: 0.6rem 0.9rem;
    }
}



@media (max-width: 768px) {

    /* LAYOUT */
    .ficha-main {
        padding: 1rem;
    }

    .ficha-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /* SIDEBAR IZQUIERDO → DROPDOWN */
    .ficha-sidebar {
        order: 2;
    }

    .sidebar-dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background-color: rgba(13, 29, 43, 0.8);
        border: 1px solid rgba(205, 172, 73, 0.3);
        border-radius: 0.4rem;
        padding: 0.8rem 1rem;
        font-family: "Mifuente", serif;
        color: var(--gold);
        font-size: 0.9rem;
        cursor: pointer;
        letter-spacing: 0.05em;
    }

    .sidebar-dropdown-toggle::after {
        content: '▼';
        font-size: 0.7rem;
        transition: transform 0.3s ease;
    }

    .sidebar-dropdown-toggle.open::after {
        transform: rotate(180deg);
    }

    .sidebar-collapsible {
        display: none;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        background-color: rgba(13, 29, 43, 0.6);
        border: 1px solid rgba(205, 172, 73, 0.15);
        border-top: none;
        border-radius: 0 0 0.4rem 0.4rem;
    }

    .sidebar-collapsible.open {
        display: flex;
    }

    /* SIDEBAR DERECHO → DROPDOWN */
    .ficha-sidebar-right {
        order: 3;
    }

    .sidebar-right-collapsible {
        display: none;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        background-color: rgba(13, 29, 43, 0.6);
        border: 1px solid rgba(205, 172, 73, 0.15);
        border-top: none;
        border-radius: 0 0 0.4rem 0.4rem;
    }

    .sidebar-right-collapsible.open {
        display: flex;
    }

    /* CONTENIDO PRINCIPAL */
    .ficha-content {
        order: 1;
    }

    /* CABECERA PERSONAJE */
    .pj-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    .pj-portrait {
        width: 100%;
        height: 16rem;
        object-fit: cover;
        object-position: top;
    }

    .pj-tags {
        justify-content: center;
    }

    .pj-nombre {
        font-size: 1.8rem;
    }

    .pj-cita-intro {
        text-align: left;
    }

    /* PESTAÑAS → SELECT */
    .tabs-nav {
        display: none;
    }

    .tabs-select {
        display: block;
        width: 100%;
        padding: 0.7rem 1rem;
        background-color: rgba(13, 29, 43, 0.8);
        border: 1px solid rgba(205, 172, 73, 0.3);
        border-radius: 0.4rem 0.4rem 0 0;
        color: var(--gold);
        font-family: "Mifuente", serif;
        font-size: 0.9rem;
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cdac49' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
    }

    .tabs-select:focus {
        outline: none;
        border-color: var(--gold);
    }

    /* INFO GRID */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* SPOILER BANNER */
    .spoiler-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .spoiler-banner-left {
        flex-direction: column;
        text-align: center;
    }

    .spoiler-btn {
        width: 100%;
        text-align: center;
    }

    /* HEADER */
    .nav-left, .nav-right {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}




@media (max-width: 480px) {

    .pj-nombre {
        font-size: 1.4rem;
    }

    .pj-portrait {
        height: 12rem;
    }

    .tab-panel {
        padding: 1rem 0.7rem;
    }

    .info-label {
        min-width: 7rem;
        font-size: 0.75rem;
    }

    .info-val {
        font-size: 0.8rem;
    }

    .ficha-main {
        padding: 0.8rem;
    }
}