* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #080808;
    color: #e8e3d9;
    font-family: Georgia, "Times New Roman", serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("arkhe.png");
    background-position: center;
    background-size: 600px;
    background-repeat: no-repeat;
    opacity: 0.07;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(35, 31, 25, 0.3),
        rgba(8, 8, 8, 0.96) 75%
    );
    z-index: -1;
    pointer-events: none;
}

nav {
    width: 100%;
    min-height: 75px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(9, 9, 9, 0.96);
    border-bottom: 1px solid #292722;
    position: relative;
    z-index: 10;
}

.logo {
    color: #d6b56e;
    text-decoration: none;
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 5px;
}

.menu {
    display: flex;
    gap: 35px;
}

.menu a {
    color: #aaa59c;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.menu a:hover {
    color: #d6b56e;
}

header {
    width: 100%;
    min-height: 420px;
    padding: 110px 20px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(
            ellipse at center,
            #30291f 0%,
            #151310 35%,
            #080808 78%
        );
    border-bottom: 1px solid #292722;
}

header .pre-titulo {
    width: 100%;
    margin: 0 0 20px;
    color: #8f7950;
    font-family: Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 6px;
    text-align: center;
}

header h1 {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #d6b56e;
    font-size: clamp(60px, 10vw, 120px);
    font-weight: normal;
    line-height: 1;
    letter-spacing: 15px;
    text-align: center !important;
}

header .descripcion {
    width: 100%;
    max-width: 650px;
    margin: 30px auto 0;
    color: #aaa59c;
    font-size: 17px;
    line-height: 1.8;
    text-align: center;
}

.jerarquia {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto 20px;
    display: flex;
    align-items: stretch;
    border-top: 1px solid #292722;
    border-bottom: 1px solid #292722;
}

.jerarquia a {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #aaa59c;
    text-decoration: none;
    text-align: center;
    border-right: 1px solid #292722;
    background: transparent;
    transition: 0.3s;
}

.jerarquia a:last-child {
    border-right: none;
}

.jerarquia a:hover {
    background: #11100e;
}

.jerarquia span {
    display: inline;
    margin: 0;
    color: #8f7950;
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
}

.jerarquia h2 {
    color: #aaa59c;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 1px;
    transition: 0.3s;
}

.jerarquia a:hover h2 {
    color: #d6b56e;
}

.jerarquia a::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #d6b56e;
    transform: translateX(-50%);
    transition: 0.3s;
}

.jerarquia a:hover::after {
    width: 60%;
}

.categoria {
    width: 90%;
    max-width: 1300px;
    margin: 110px auto;
    scroll-margin-top: 40px;
}

.titulo-categoria {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.titulo-categoria::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to right,
        #292722,
        transparent
    );
}

.titulo-categoria span {
    color: #8f7950;
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
}

.titulo-categoria h2 {
    color: #d6b56e;
    font-size: 27px;
    font-weight: normal;
    letter-spacing: 5px;
}

.texto-categoria {
    max-width: 700px;
    margin-bottom: 40px;
    color: #77736c;
    line-height: 1.8;
}

.dioses {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.dios {
    position: relative;
    min-height: 250px;
    padding: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(
            145deg,
            #181816,
            #0e0e0d
        );
    border: 1px solid #292722;
    color: #e8e3d9;
    text-decoration: none;
    transition:
        transform 0.35s,
        border-color 0.35s,
        box-shadow 0.35s;
}

.dios::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    top: -105px;
    right: -105px;
    border-radius: 50%;
    background: var(--color);
    opacity: 0.07;
    transition: 0.5s;
}

.dios::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            transparent 55%,
            rgba(255, 255, 255, 0.015)
        );
    pointer-events: none;
}

.dios:hover {
    transform: translateY(-8px);
    border-color: var(--color);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.4),
        0 0 25px color-mix(in srgb, var(--color) 10%, transparent);
}

.dios:hover::before {
    opacity: 0.18;
    transform: scale(1.45);
}

.numero {
    position: absolute;
    top: 22px;
    left: 28px;
    color: var(--color);
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
}

.dios h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 9px;
    color: #e8e3d9;
    font-size: 20px;
    font-weight: normal;
}

.dios p {
    position: relative;
    z-index: 1;
    color: #77736c;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

.ver-mas {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: var(--color);
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.3s;
}

.dios:hover .ver-mas {
    opacity: 1;
    transform: translateY(0);
}

.durmiente {
    --color: #d6b56e;
}

.tiempo {
    --color: #4c8ed9;
}

.tejedora {
    --color: #9b6bd6;
}

.sol {
    --color: #d6ca18;
}

.luna {
    --color: #002a7e;
}

.naturaleza {
    --color: #5ca564;
}

.vida {
    --color: #86d8a3;
}

.muerte {
    --color: #555555;
}

.amor {
    --color: #e47ca5;
}

.juego {
    --color: #d63fa5;
}

.caos {
    --color: #884cc7;
}

.sueno {
    --color: #b49ad8;
}

.comercio {
    --color: #d8943d;
}

.mensajero {
    --color: #ed4f9d;
}

.emisario {
    --color: #303030;
}

@media (max-width: 1100px) {
    .dioses {
        grid-template-columns: repeat(3, 1fr);
    }

    .jerarquia {
        grid-template-columns: repeat(3, 1fr);
    }

    .jerarquia a:nth-child(3) {
        border-right: none;
    }
}

@media (max-width: 800px) {
    .dioses {
        grid-template-columns: repeat(2, 1fr);
    }

    .jerarquia {
        grid-template-columns: repeat(2, 1fr);
    }

    .jerarquia a {
        border-right: none;
        border-bottom: 1px solid #292722;
    }

    .jerarquia a:last-child {
        border-bottom: none;
    }
}

@media (max-width: 650px) {
    nav {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .encabezado {
        padding: 80px 20px 65px;
    }

    .encabezado h1 {
        font-size: 55px;
        letter-spacing: 8px;
    }

    .descripcion {
        font-size: 15px;
    }

    .jerarquia {
        width: 90%;
        grid-template-columns: 1fr;
    }

    .jerarquia a {
        border-right: none;
        border-bottom: 1px solid #292722;
    }

    .jerarquia a:last-child {
        border-bottom: none;
    }

    .categoria {
        margin: 80px auto;
    }

    .titulo-categoria {
        gap: 12px;
    }

    .titulo-categoria::after {
        display: none;
    }

    .titulo-categoria h2 {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .dioses {
        grid-template-columns: 1fr;
    }

    .dios {
        min-height: 220px;
    }
}