:root {
    --bg: #0b0b0b;
    --card: #121212;
    --text: #f5f5f5;
    --muted: #9b9b9b;
    --border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 24px 5%;

    background: rgba(11, 11, 11, 0.9);

    border-bottom: 1px solid var(--border);

    z-index: 999;
}

.logo {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.eyebrow {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    gap: 24px;
}

.main-nav a {
    color: var(--muted);
    transition: 0.3s;
}

.main-nav a:hover {
    color: white;
}

.hero {
    position: relative;

    min-height: 75vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.85)
    );
}

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 800px;

    padding: 40px 20px;
}

.hero-subtitle {
    margin-bottom: 20px;

    color: #cfcfcf;

    text-transform: uppercase;
    letter-spacing: 4px;
}

.hero-content h2 {
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 0.9;

    margin-bottom: 24px;

    text-transform: uppercase;
}

.hero-description {
    margin-bottom: 32px;

    color: #d0d0d0;
}

.button-primary {
    display: inline-block;

    padding: 14px 24px;

    border: 1px solid rgba(255,255,255,0.15);

    transition: 0.3s;
}

.button-primary:hover {
    background: rgba(255,255,255,0.08);
}

.container {
    width: 90%;
    max-width: 1400px;

    margin: auto;

    padding: 80px 0;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.card {
    background: var(--card);

    border: 1px solid var(--border);

    padding: 32px;

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-4px);
}

.sidebar-card {
    grid-column: span 4;
}

.featured-card {
    grid-column: span 8;
}

.large-card {
    grid-column: span 12;
}

.card h2 {
    margin-bottom: 24px;

    font-size: 1.7rem;

    text-transform: uppercase;
}

.card p,
.card li {
    color: #d0d0d0;
    line-height: 1.8;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-nav a {
    padding-bottom: 10px;

    border-bottom: 1px solid rgba(255,255,255,0.08);

    text-transform: uppercase;

    transition: 0.3s;
}

.side-nav a:hover {
    padding-left: 10px;
}

.site-footer {
    padding: 60px 5%;

    border-top: 1px solid var(--border);

    text-align: center;
}

.site-footer p {
    max-width: 700px;

    margin: auto;

    color: #777;
}

@media (max-width: 900px) {

    .grid-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card,
    .featured-card,
    .large-card {
        grid-column: span 1;
    }

    .site-header {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 3rem;
    }
}
/* MEJORA LEGIBILIDAD HERO */

.hero-overlay {
    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.9)
        );
}

.hero-subtitle {
    text-shadow:
        0 2px 10px rgba(0,0,0,0.9),
        0 0 25px rgba(0,0,0,0.8);

    font-weight: 500;
}

.hero-content h2 {
    text-shadow:
        0 4px 20px rgba(0,0,0,0.95),
        0 0 40px rgba(0,0,0,0.7);

    letter-spacing: -2px;
}

.hero-description {
    text-shadow:
        0 2px 12px rgba(0,0,0,0.95);

    max-width: 900px;

    margin-inline: auto;

    font-size: 1.05rem;
    line-height: 1.9;
}

.button-primary {
    background: rgba(0,0,0,0.35);

    backdrop-filter: blur(6px);

    box-shadow:
        0 0 20px rgba(0,0,0,0.45);

    text-shadow:
        0 2px 10px rgba(0,0,0,0.8);
}

/* separacion vertical */

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;
}
/* AVATAR LINK */

.about-image-link {
    display: block;
    overflow: hidden;
}

.about-image {
    transition:
        transform .5s ease,
        filter .5s ease;
}

.about-image:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}