/* =========================================================
   PALETA & BASE
   ========================================================= */

:root {
    --bg-body: #05070c;
    --bg-main: #0b101b;
    --bg-card: #111827;
    --bg-card-alt: #141b2a;
    --border-soft: #222738;
    --text-main: #e3e6ed;
    --text-muted: #9ca3af;
    --accent: #1f6feb;        /* azul intenso */
    --accent-soft: #1f6feb22;
    --accent-strong: #3b82f6;
    --danger: #ef4444;
}

/* Reset suave */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top left, #111827 0, #020617 60%, #000 100%);
    color: var(--text-main);
    font-family: "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

/* =========================================================
   TIPOGRAFÍA & LINKS
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: "Arvo", "Source Sans Pro", system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 0.75em;
    color: var(--accent-strong);
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1.25em;
    text-align: justify;
    color: var(--text-main);
}

a {
    color: var(--accent-strong);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-soft);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

a:hover {
    color: #ffffff;
    border-bottom-color: transparent;
    background: radial-gradient(circle at 0 100%, #1f6feb33 0, transparent 70%);
}

/* Listas genéricas */
ul, ol {
    margin: 0 0 1.25em 1.25em;
    padding: 0;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

/* =========================================================
   LAYOUT GENERAL
   ========================================================= */

#page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main */
#main {
    background: linear-gradient(180deg, var(--bg-main) 0, #020617 100%);
    padding: 3rem 0 4rem;
}

/* Contenedor responsivo */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Contenido principal */
#content {
    position: relative;
}

/* =========================================================
   CAJAS DE POST / ARTÍCULOS
   ========================================================= */

.box.post {
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    padding: 1.5rem 1.75rem;
    margin: 1.75rem 0;
    position: relative;
    overflow: hidden;
}

/* “borde” lateral azul tipo hacking */
.box.post::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(
        180deg,
        var(--accent-strong),
        #22c1c3
    );
    box-shadow: 0 0 18px #1f6febaa;
}

/* Pequeño efecto de scan/scanline muy sutil */
.box.post::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -50%;
    height: 40px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(148, 163, 184, 0.18),
        transparent
    );
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.box.post:hover::after {
    opacity: 1;
    transform: translateY(210%);
}

/* Fecha */
.box.post > p:first-child {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* Títulos de posts */
.box.post h2,
.box.post h3 {
    margin-bottom: 0.75rem;
}

/* Texto dentro de post */
.box.post p {
    margin-bottom: 0.9rem;
}

/* Header dentro del artículo (cuando usás <header><h2>...) */
.box.post header {
    margin-bottom: 0.8rem;
}

/* Imágenes destacadas */
.image.featured {
    display: block;
    margin: 1.25rem 0 0.5rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #1f2937;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

.image.featured img {
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1.01);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.image.featured img:hover {
    transform: scale(1.03);
    opacity: 0.96;
}

/* Iframe (YouTube) responsivo/light */
iframe {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid #1f2937;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   FOOTER
   ========================================================= */

#footer {
    margin-top: auto;
    background: #020617;
    border-top: 1px solid #111827;
    padding: 1.5rem 0 2rem;
}

#copyright.container {
    max-width: 1100px;
}

/* Lista de links del footer */
#copyright .links {
    list-style: none;
    margin: 0;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

#copyright .links li {
    padding: 0;
    margin: 0;
}

#copyright .links a {
    color: var(--accent-strong);
    border-bottom: 1px dotted var(--accent-soft);
    font-weight: 400;
}

#copyright .links a:hover {
    color: #ffffff;
    border-bottom-color: transparent;
}

/* =========================================================
   ESTADOS GENERALES
   ========================================================= */

body.is-preload * {
    transition: none !important;
}

/* Podés aprovechar la clase .homepage para ajustes específicos */
body.homepage #main {
    padding-top: 2.5rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    #main {
        padding: 2rem 0 3rem;
    }

    .box.post {
        padding: 1.25rem 1.35rem;
        margin: 1.25rem 0;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.05rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }

    .box.post {
        padding: 1.1rem 1.2rem;
    }

    #copyright .links {
        flex-direction: column;
        text-align: center;
    }
}
