/* Reset y estilos globales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    background: linear-gradient(180deg, #0b0b0b 0%, #1a1a1a 40%, #2a2a2a 100%) fixed;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

body {
    min-height: 100%;
    color: #ddd;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1.5rem;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.02), transparent 70%);
    background-attachment: fixed;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
    margin: 1.5rem auto;
    filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.35));
}


/* Fondos laterales */
.fixed-bg {
    position: fixed;
    top: 0;
    width: 300px;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
}

.fixed-bg.left {
    left: 0;
    background-image: url('img/bg-i.png');
}

.fixed-bg.right {
    right: 0;
    background-image: url('img/bg-d.png');
}


/* Contenedor principal */
.site {
    width: 100%;
    max-width: 900px;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.55), rgba(10, 10, 10, 0.85));
    border-radius: 10px;
    padding: 2rem 2.5rem 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* Decoración interna: líneas, texturas y drift */
.site::before,
.site::after {
    content: "";
    position: absolute;
    left: -10%;
    top: -30%;
    width: 140%;
    height: 160%;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
    opacity: 0.2;
    background-repeat: repeat;
}

.site::before {
    background:
        radial-gradient(closest-side, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 60%),
        radial-gradient(closest-side, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0) 55%);
    animation: drift 30s linear infinite alternate;
    filter: blur(20px);
}

.site::after {
    background-image:
        linear-gradient(transparent 92%, rgba(0, 0, 0, 0.06) 93%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 6px);
    opacity: 0.08;
    mix-blend-mode: overlay;
    animation: flicker 8s infinite;
}

@keyframes drift {
    from {
        transform: translate3d(-4%, 0, 0) rotate(-2deg);
    }

    to {
        transform: translate3d(4%, 8%, 0) rotate(2deg);
    }
}

@keyframes flicker {
    0% {
        opacity: 0.07;
    }

    50% {
        opacity: 0.11;
    }

    100% {
        opacity: 0.06;
    }
}


/* Niebla */
.fog-layer {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(220, 40, 40, 0.08) 0%, transparent 70%),
        radial-gradient(circle at 70% 60%, rgba(120, 20, 20, 0.06) 0%, transparent 70%),
        radial-gradient(circle at 50% 80%, rgba(180, 0, 0, 0.05) 0%, transparent 80%);
    background-repeat: repeat;
    mix-blend-mode: lighten;
    filter: blur(35px);
    opacity: 0.35;
    animation: fogMove 70s ease-in-out infinite, fogPulse 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

.fog-layer:nth-child(2) {
    animation: fogMove 110s ease-in-out infinite reverse, fogPulse 16s ease-in-out infinite alternate;
    opacity: 0.28;
    filter: blur(45px);
    transform: scale(1.15);
}

/* Animaciones de niebla */
@keyframes fogMove {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }

    50% {
        background-position: 60% 40%, 40% 20%, 70% 90%;
    }

    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
}

@keyframes fogPulse {
    0% {
        opacity: 0.3;
        filter: blur(35px) brightness(0.8);
    }

    50% {
        opacity: 0.4;
        filter: blur(38px) brightness(1);
    }

    100% {
        opacity: 0.35;
        filter: blur(36px) brightness(0.9);
    }
}

.site>*:not(.fog-layer) {
    position: relative;
    z-index: 2;
}


/* Cabecera, banner y menú */
header {
    margin-bottom: 1.8rem;
    text-align: center;
}

.banner {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.menu-frame {
    width: 100%;
    height: 72px;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    display: block;
    overflow: hidden;
    background: #0f0f0f;
}


/* Tipografía */
h1,
h2 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #f0e0e0;
    animation: pulseRed 8s infinite alternate ease-in-out;
}

h1 {
    font-size: 2.4rem;
    text-shadow:
        0 0 12px rgba(255, 40, 40, 0.75),
        0 0 22px rgba(180, 0, 0, 0.55);
}

h2 {
    font-size: 1.8rem;
    text-shadow:
        0 0 10px rgba(255, 60, 60, 0.6),
        0 0 18px rgba(200, 0, 0, 0.45);
}

@keyframes pulseRed {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }

    100% {
        filter: hue-rotate(-20deg) brightness(1.35);
    }
}

p.lead {
    color: #bfbfbf;
    margin-bottom: 1.6rem;
    text-align: center;
}


/* Contenido */
main {
    display: block;
}

article {
    padding: 2rem;
    margin-bottom: 25px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.00));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}


/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
    color: #eee;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

thead tr {
    background: linear-gradient(90deg, rgba(120, 0, 0, 0.18), rgba(40, 10, 10, 0.08));
}

th,
td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-align: left;
    font-size: 0.95rem;
}

tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.01);
}

tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.00));
    transform: translateX(0.5%);
}

caption {
    padding: 0.6rem 0.8rem;
    font-weight: 600;
    color: #f0dcdc;
    text-align: left;
}


/* Listas */
ul,
ol {
    margin-left: 1.5rem;
    padding-left: 0.5rem;
}

ul {
    list-style: none;
    padding-left: 0;
    margin: 1.2rem auto;
    width: fit-content;
}

ul li {
    position: relative;
    margin-bottom: 0.6rem;
    padding-left: 1.3rem;
}

ul li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0.05rem;
    color: #ff2e2e;
    font-size: 1.1rem;
    text-shadow:
        0 0 6px rgba(255, 0, 0, 0.8),
        0 0 10px rgba(200, 0, 0, 0.6);
    animation: bulbpulse 1.3s infinite ease-in-out alternate;
}

/* Botones */
.list-buttons {
    list-style: none;
    padding: 0;
    margin: 1.5rem auto;
    width: fit-content;
}

.list-buttons li {
    background: rgba(40, 0, 0, 0.35);
    padding: 0.8rem 1.3rem;
    margin: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    text-align: center;
}

.list-buttons li:hover {
    background: rgba(120, 0, 0, 0.4);
    transform: translateX(3px);
}

.list-buttons li:active {
    background: rgba(160, 0, 0, 0.5);
    transform: scale(0.98);
}

.list-rounded {
    list-style: none;
    padding: 0;
    margin: 1.5rem auto;
    width: fit-content;
}

.list-rounded li {
    background: rgba(60, 0, 0, 0.35);
    padding: 0.8rem 2rem;
    margin: 0.6rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, box-shadow 0.25s;
    text-align: center;
}

.list-rounded li:hover {
    background: rgba(150, 0, 0, 0.5);
    box-shadow: 0 0 12px rgba(200, 0, 0, 0.35);
}

.list-rounded li:active {
    background: rgba(200, 0, 0, 0.55);
}

.list-organic {
    list-style: none;
    padding: 0;
    margin: 1.8rem auto;
    width: fit-content;
}

@keyframes organicPulse {
    0% {
        filter: brightness(0.95);
    }

    50% {
        filter: brightness(1.08);
    }

    100% {
        filter: brightness(0.95);
    }
}

@keyframes borderPulse {
    0% {
        border-color: rgba(255, 0, 0, 0.18);
    }

    50% {
        border-color: rgba(255, 80, 80, 0.35);
    }

    100% {
        border-color: rgba(255, 0, 0, 0.18);
    }
}

.list-organic li {
    position: relative;
    background:
        radial-gradient(circle at 70% 30%, rgba(190, 0, 0, 0.25), transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(255, 60, 60, 0.15), transparent 80%),
        rgba(30, 0, 0, 0.45);
    padding: 1rem 1.6rem;
    margin: 0.7rem 0;
    border: 1px solid rgba(255, 0, 0, 0.18);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    color: #e8dada;
    text-shadow: 0 0 5px rgba(255, 80, 80, 0.2);
    transition:
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;

    animation:
        organicPulse 4.5s infinite ease-in-out,
        borderPulse 6s infinite ease-in-out;
}

.list-organic li:hover {
    background:
        radial-gradient(circle at 40% 70%, rgba(140, 0, 0, 0.45), transparent 70%),
        rgba(60, 0, 0, 0.55);
    transform: translateX(5px);
    box-shadow:
        0 0 10px rgba(255, 0, 0, 0.4),
        0 0 25px rgba(255, 20, 20, 0.25),
        0 0 40px rgba(255, 40, 40, 0.15);
}

.list-organic li:active {
    transform: scale(0.97);
}

.list-organic li::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 80, 80, 0.08), transparent 70%);
    opacity: 0.4;
    mix-blend-mode: screen;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.list-organic li:hover::after {
    opacity: 0.7;
}

.shf-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    max-width: 100%;
}

@keyframes infectExpand {
    0% {
        transform: scale(0.4);
        opacity: 0.25;
    }

    60% {
        transform: scale(1.25);
        opacity: 0.45;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes lotusPulse {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.08) rotate(2deg);
        opacity: 0.75;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.45;
    }
}

.shf-list li {
    position: relative;
    padding: 0.9rem 1.6rem 0.9rem 2.6rem;
    background:
        radial-gradient(circle at 70% 30%, rgba(190, 0, 0, 0.25), transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(255, 60, 60, 0.15), transparent 80%),
        rgba(30, 0, 0, 0.45);
    border: 1px solid rgba(255, 0, 0, 0.18);
    border-radius: 10px;
    cursor: pointer;
    color: #e9dada;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 80, 80, 0.2);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.shf-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4),
        0 0 25px rgba(255, 20, 20, 0.25),
        0 0 40px rgba(255, 40, 40, 0.15);
    background:
        radial-gradient(circle at 40% 70%, rgba(140, 0, 0, 0.45), transparent 70%),
        rgba(60, 0, 0, 0.55);
}

/* Bolita */
.shf-list li::before {
    content: "";
    position: absolute;
    left: 0.8rem;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background:
        radial-gradient(circle, rgba(255, 60, 60, 0.9), rgba(100, 0, 0, 0)),
        radial-gradient(circle at 30% 30%, rgba(255, 120, 120, 0.5), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 0, 0, 0.4), transparent 65%);

    border-radius: 50%;
    animation: lotusPulse 4s ease-in-out infinite;
    filter: blur(3px);
    opacity: 0.35;
}

.shf-list li::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 40, 40, 0.22), transparent 65%);
    opacity: 0;
    border-radius: inherit;
    pointer-events: none;
}

.shf-list li:hover::after {
    opacity: 0.65;
    animation: infectExpand 0.8s forwards ease-out;
}


/* Enlaces */
a {
    color: #cc5555;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

a:hover {
    color: #ffb3b3;
    text-shadow: 0 0 6px rgba(255, 80, 80, 0.5);
}

a:active {
    color: rgb(255, 255, 255);
    text-shadow: 0 0 3px rgba(255, 50, 50, 0.5);
}

a:visited {
    color: #d66;
}


/* Botones y clases especiales */
.btn {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
}

.accent {
    color: #d66;
}

.muted {
    color: #9b9b9b;
    font-size: 0.95rem;
}


/* Footer */
footer {
    margin-top: 2rem;
    text-align: center;
    color: #8f8f8f;
    font-size: 0.85rem;
}


/* Responsive */
@media (max-width: 900px) {
    .fixed-bg {
        display: none;
    }
}

@media (max-width: 700px) {
    .site {
        padding: 1.5rem;
    }

    article {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1.5rem 1rem;
    }

    .banner {
        max-height: 200px;
    }

    table th,
    table td {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}