/* =========================
   HOME
   ========================= */
.wrap > .container {
    width: 100%;
    padding: 0 !important;
}

.home-page {
    color: #252525;
}

.home-section {
    padding: 55px 0;
}

.home-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.home-section-alt {
    background: rgba(13, 15, 19, 0.035);
}

.home-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 32px;
}

.home-section-header.text-left {
    text-align: left;
    margin-left: 0;
}

.home-section-header h2 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 500;
}

.home-section-header p {
    color: #555;
    font-size: 16px;
    line-height: 1.55;
}

/* HERO */

.home-hero {
    padding: 105px 0 50px;
    background:
        radial-gradient(circle at top left, rgba(201, 169, 110, 0.13), transparent 32%),
        linear-gradient(to bottom, rgba(13, 15, 19, 0.04), transparent);
}

.home-hero-row {
    display: flex;
    align-items: center;
}

.home-hero-content h1 {
    margin: 0 0 16px;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.15;
}

.home-hero-text {
    max-width: 620px;
    color: #444;
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 28px;
}

/* Buscador grande */

.home-search {
    margin-bottom: 22px;
}

.home-search-box {
    position: relative;
    max-width: 660px;
}

.home-search-input.form-control {
    height: 58px;
    border-radius: 999px;
    border: 1px solid rgba(13, 15, 19, 0.12);
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    padding: 0 68px 0 24px;
    font-size: 16px;
}

.home-search-input.form-control:focus {
    border-color: rgba(201, 169, 110, 0.85);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.15),
        0 0 0 4px rgba(201, 169, 110, 0.14);
}

.home-search-button {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #0d0f13;
    color: #d7dbe2;
    transition: all 0.2s ease;
}

.home-search-button:hover,
.home-search-button:focus {
    background: #c9a96e;
    color: #0d0f13;
}

/* Botones */

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-btn-primary,
.home-btn-secondary {
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.home-btn-primary {
    background: #0d0f13;
    color: #fff !important;
    border: 1px solid #0d0f13;
}

.home-btn-primary:hover,
.home-btn-primary:focus {
    background: #c9a96e;
    border-color: #c9a96e;
    color: #0d0f13 !important;
}

.home-btn-secondary {
    background: transparent;
    color: #0d0f13 !important;
    border: 1px solid rgba(13, 15, 19, 0.18);
}

.home-btn-secondary:hover,
.home-btn-secondary:focus {
    background: rgba(201, 169, 110, 0.12);
    border-color: rgba(201, 169, 110, 0.65);
}

.home-hero-bg {
    min-height: 560px;
    padding: 0;
    background:
        linear-gradient(
            90deg,
            rgba(13, 15, 19, 0.96) 0%,
            rgba(13, 15, 19, 0.88) 35%,
            rgba(13, 15, 19, 0.45) 65%,
            rgba(13, 15, 19, 0.15) 100%
        ),
        url("../imagenes/backgrounds/bg2.jpg") center / cover no-repeat;
}

.home-hero-bg {
    background:
        linear-gradient(
            to bottom,
            rgba(13, 15, 19, 0.95) 0%,
            rgba(13, 15, 19, 0.85) 40%,
            rgba(13, 15, 19, 0.55) 70%,
            rgba(13, 15, 19, 0.2) 90%,
            rgba(13, 15, 19, 0.0) 100%
        ),
        url("../imagenes/backgrounds/bg2.jpg") center / cover no-repeat;
    box-shadow: inset 0 -35px 45px rgba(13, 15, 19, 0.18);
}

.home-hero-overlay {
    min-height: 560px;
    display: flex;
    align-items: center;
}

.home-hero-bg .home-hero-content {
    max-width: 720px;
}

.home-hero-bg h1 {
    color: #ffffff;
    font-size: 46px;
}

.home-hero-bg .home-hero-text {
    color: #d7dbe2;
}

.home-hero-bg .home-search-input.form-control {
    background: rgba(255, 255, 255, 0.96);
}

.home-hero-bg .home-btn-secondary {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3);
}

.home-hero-bg .home-btn-secondary:hover {
    background: rgba(201, 169, 110, 0.16);
    border-color: rgba(201, 169, 110, 0.7);
}

/* Cards generales */

.home-card,
.home-quick-card {
    display: block;
    min-height: 190px;
    margin-bottom: 24px;
    padding: 24px 22px;
    border-radius: 18px;
    background: #fff;
    color: #252525;
    text-decoration: none !important;
    border: 1px solid rgba(13, 15, 19, 0.08);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.055);
    transition: all 0.2s ease;
}

.home-card:hover,
.home-quick-card:hover {
    transform: translateY(-4px);
    color: #252525;
    border-color: rgba(201, 169, 110, 0.45);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.11);
}

.home-card > i,
.home-quick-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(201, 169, 110, 0.14);
    color: #8f6d2b;
    font-size: 20px;
}

.home-card h3,
.home-quick-card h3 {
    margin: 0 0 9px;
    font-size: 19px;
    font-weight: 600;
}

.home-card p,
.home-quick-card p {
    margin: 0;
    color: #666;
    line-height: 1.45;
}

.home-card-grid {
    display: flex;
    flex-wrap: wrap;
}

.home-card-grid > [class*="col-"] {
    display: flex;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.home-card-grid > [class*="col-"].open-col {
    z-index: 999;
}

.home-card {
    width: 100%;
    height: 100%;
    min-height: 200px;
    margin-bottom: 0;
    min-width: 200px;
}

.home-hub-card {
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-hub-card > i {
    flex: 0 0 42px;
    margin-bottom: 18px;
}

.home-hub-card h3 {
    margin: 0 0 10px;
    display: flex;
    align-items: flex-start;
}

.home-hub-card p {
    margin: 0;
    font-size: 14px;
}

.home-hub-card.active {
    border: 1px solid rgba(201, 169, 110, 0.8);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
    background: #ffffff;
}

/* Seccion de jugadores */

.home-hub {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
}

/* GRID DE 3 COLUMNAS */
.home-hub-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* PANEL DERECHO */
.home-hub-panel {
    height: 520px; /* altura fija controlada */
    overflow: hidden;

    display: flex;
    flex-direction: column;

    border-radius: 22px;
    background: linear-gradient(to bottom, #171b21, #101318);
    border: 1px solid rgba(201, 169, 110, 0.35);
    padding: 28px;
}

/* CONTENIDO */
.home-hub-panel {
    height: 669.7px;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    border-radius: 22px;
    background: linear-gradient(to bottom, #171b21, #101318);
    border: 1px solid rgba(201, 169, 110, 0.35);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
    padding: 28px;
}

.home-hub-content {
    display: none;
    height: 100%;
    min-height: 0;
}

.home-hub-content.active {
    display: flex;
    flex-direction: column;
}

/* Título del panel */
.home-hub-panel-title {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.home-hub-panel-title i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(201, 169, 110, 0.14);
    color: #c9a96e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.home-hub-panel-title i.fa-external-link-alt {
    width: 25px;
    height: 25px;
    background: none;
}

.home-hub-panel-title h3 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
}

/* Contenedor de links */
.home-hub-links {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* Lista */
.home-hub-links > ul {
    height: 100%;
    overflow-y: auto;
    padding: 0 8px 0 0;
    margin: 0;
    list-style: none;
}

/* Links principales */
.home-hub-links > ul > li {
    margin-bottom: 6px;
}

.home-hub-links a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: #d7dbe2;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.home-hub-links a:hover,
.home-hub-links a:focus {
    background: rgba(201, 169, 110, 0.12);
    color: #ffffff;
    padding-left: 16px;
}

/* Sublistas */
.home-hub-links ul ul {
    margin: 4px 0 8px 14px;
    padding-left: 12px;
    border-left: 1px solid rgba(201, 169, 110, 0.22);
    list-style: none;
}

.home-hub-links ul ul a {
    font-size: 13px;
    color: #bfc6d0;
    padding: 7px 10px;
}

/* Scroll dorado */
.home-hub-links > ul {
    scrollbar-width: thin;
    scrollbar-color: #c9a96e transparent;
}

.home-hub-links > ul::-webkit-scrollbar {
    width: 6px;
}

.home-hub-links > ul::-webkit-scrollbar-track {
    background: transparent;
}

.home-hub-links > ul::-webkit-scrollbar-thumb {
    background: #c9a96e;
    border-radius: 999px;
}

/* Quick start un poco más oscuro/fantasy */

.home-quick-card {
    min-height: 170px;
    background: linear-gradient(to bottom, #171b21, #111419);
    color: #fff !important;
    border-color: rgba(201, 169, 110, 0.22);
}

.home-quick-card p {
    color: #bfc6d0;
}

.home-hub-card {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}

.home-hub-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.3;
}

.home-hub-card > * {
    position: relative;
    z-index: 2;
}

.card-conceptos::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-conceptos.png');
    background-size: cover;
    background-position: center;
}

.card-razas::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-razas.png');
    background-size: cover;
    background-position: center;
}

.card-clases::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-clases.png');
    background-size: cover;
    background-position: center;
}

.card-habilidades::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-habilidades.png');
    background-size: cover;
    background-position: center;
}

.card-dotes::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-dotes.png');
    background-size: cover;
    background-position: center;
}

.card-equipo::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-equipo.png');
    background-size: cover;
    background-position: center;
}

.card-combate::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-combate.png');
    background-size: cover;
    background-position: center;
}

.card-magia::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-magia.png');
    background-size: cover;
    background-position: center;
}

.card-personaje::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-personaje.png');
    background-size: cover;
    background-position: center;
}

.card-direccion::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-direccion.png');
    background-size: cover;
    background-position: center;
}

.card-dirigir::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-dirigir.png');
    background-size: cover;
    background-position: center;
}

.card-pnj::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-pnj.png');
    background-size: cover;
    background-position: center;
}

.card-entorno::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-entorno.png');
    background-size: cover;
    background-position: center;
}

.card-aflicciones::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-aflicciones.png');
    background-size: cover;
    background-position: center;
}

.card-magicos::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-magicos.png');
    background-size: cover;
    background-position: center;
}

.card-estados::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-estados.png');
    background-size: cover;
    background-position: center;
}

.card-bestiario::before {
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.85),
            rgba(255,255,255,0.75)
        ),
        url('../imagenes/index/bg-bestiario.png');
    background-size: cover;
    background-position: center;
}

/* Libros */

/*.home-books {
    background:
        linear-gradient(to bottom, rgba(13, 15, 19, 0.035), rgba(13, 15, 19, 0.01));
}*/

.home-book-row {
    display: flex;
    align-items: stretch;
}

.home-book-card {
    display: block;
    text-align: center;
    color: #252525;
    text-decoration: none !important;
    transition: all 0.2s ease;
    height: 100%;
}

.home-book-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201, 169, 110, 0.5);
    color: #0d0f13;
}

.home-book-card img {
    display: block;
    height: 240px;
    max-width: 100%;
    object-fit: cover;
    margin: 0 auto 14px;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.home-book-card span {
    display: block;
    font-weight: 600;
}

/* Patreon */

.home-patreon-card {
    border-radius: 22px;
    background: linear-gradient(to bottom, #171b21, #101318);
    color: #fff;
    padding: 34px 36px;
    border: 1px solid rgba(201, 169, 110, 0.28);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.home-patreon-card h2 {
    margin-top: 0;
    font-size: 26px;
}

.home-patreon-card p {
    color: #c9ced6;
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 0;
}

.home-patreon-card .text-right {
    padding-top: 22px;
}

/* Novedades */

.home-news-list {
    max-width: 900px;
    margin: 0 auto;
}

.home-news-item {
    display: flex;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(13, 15, 19, 0.12);
}

.home-news-date {
    flex: 0 0 120px;
    color: #8f6d2b;
    font-weight: 700;
}

.home-news-content p {
    margin: 0;
    color: #444;
    line-height: 1.55;
}

.home-news-footer {
    text-align: center;
    margin-top: 24px;
}

.home-news-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 10px 16px;
    border-radius: 999px;

    background: rgba(201, 169, 110, 0.12);
    color: #8f6d2b;
    text-decoration: none;
    font-weight: 600;

    transition: all 0.2s ease;
}

.home-news-more i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.home-news-more:hover {
    background: #c9a96e;
    color: #0d0f13;
}

.home-news-more:hover i {
    transform: translateX(4px);
}

/* Responsive */

@media (max-width: 991px) {
    .home-hero-row,
    .home-book-row {
        display: block;
    }

    .home-hero-image {
        margin-top: 35px;
    }

    .home-section-header.text-left {
        text-align: center;
        margin-left: auto;
    }

    .home-book-card {
        margin-bottom: 20px;
    }

    .home-book-card img {
        height: 160px;
    }

    .home-patreon-card .text-right {
        text-align: left;
    }

    .home-hub-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .home-section {
        padding: 38px 0;
    }

    .home-hero {
        padding: 100px 0 34px;
    }

    .home-hero-content h1 {
        font-size: 31px;
    }

    .home-hero-text {
        font-size: 16px;
    }

    .home-search-input.form-control {
        height: 52px;
        font-size: 14px;
        padding-left: 18px;
        padding-right: 60px;
    }

    .home-search-button {
        width: 38px;
        height: 38px;
        top: 7px;
        right: 7px;
    }

    .home-hero-actions {
        display: block;
    }

    .home-hero-actions .btn {
        display: block;
        margin-bottom: 10px;
    }

    .home-card,
    .home-quick-card {
        min-height: auto;
    }

    .home-news-item {
        display: block;
    }

    .home-news-date {
        margin-bottom: 8px;
    }

    .home-patreon-card {
        padding: 26px 22px;
    }

    .home-hub {
        display: block;
    }

    .home-hub-panel {
        display: none;
    }

    .home-hub-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        width: 100%;
    }

    .home-hub-card {
        width: 100%;
        max-width: none;
        min-height: 180px;
        margin: 0;
    }

    .home-hub-card h3 {
        min-height: auto;
    }
}