/* --- Variables y Estilos Globales --- */
:root {
    --color-primary: #E50914; /* Un rojo vibrante tipo Netflix */
    --color-dark: #121212; /* Negro casi puro para el fondo */
    --color-gray: #1A1A1A; /* Un gris oscuro para tarjetas y secciones */
    --color-light-gray: #8c8c8c;
    --color-white: #FFFFFF;
    
    --font-main: 'Poppins', sans-serif;
    --container-width: 1100px;
    --border-radius: 8px;
}

body {
    background-color: var(--color-dark);
    color: var(--color-white);
    font-family: var(--font-main);
    margin: 0;
    line-height: 1.7;
}

h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--color-primary); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--color-white); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Cabecera y Navegación --- */
.topbar {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-white);
}
.logo:hover { color: var(--color-primary); }

.topbar nav a {
    color: var(--color-light-gray);
    margin-left: 25px;
    font-weight: 600;
    transition: color 0.3s;
}

.topbar nav a:hover, .topbar nav a:focus {
    color: var(--color-white);
}

/* --- Hero Section --- */
.hero {
    color: var(--color-white);
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center center;
}

.hero-inner {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --- Botones --- */
.btn {
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn.primary:hover {
    background-color: #c40812;
    border-color: #c40812;
    transform: translateY(-2px);
}

.btn.ghost {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn.ghost:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
    transform: translateY(-2px);
}

.btn.small { padding: 8px 16px; font-size: 0.9rem; }
.btn.large { padding: 16px 36px; font-size: 1.1rem; }

/* --- Secciones y Tarjetas --- */
.section-spaced {
    padding: 80px 0;
    text-align: center;
}

.subtitle {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: var(--color-light-gray);
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.card-feature {
    background: var(--color-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #222;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    text-align: left;
}

.card {
    background: var(--color-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #222;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card-content {
    padding: 30px;
}
.card .meta {
    font-size: 0.9rem;
    color: var(--color-light-gray);
    margin-bottom: 1rem;
}

.cta-section {
    background: var(--color-gray);
    border-radius: var(--border-radius);
    padding: 60px;
}

/* --- Blog y Páginas de Post --- */
.subhero {
    padding: 60px 0;
    border-bottom: 1px solid #222;
}
.subhero h1 { font-size: 3rem; }

.meta {
    font-size: 1rem;
    color: var(--color-light-gray);
    margin-top: -1rem;
}

.blog-list {
    max-width: 800px;
    margin: 40px auto;
}
.post-list-item {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
}
.post-list-item:last-child {
    border-bottom: none;
}
.post-list-item h2 a { color: var(--color-white); }
.post-list-item h2 a:hover { color: var(--color-primary); }

.read-more {
    font-weight: 600;
}

.post-content {
    max-width: 800px;
    margin: 40px auto;
}
.post-content .lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}
.post-content hr {
    border: 0;
    border-top: 1px solid #333;
    margin: 40px 0;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid #222;
    padding: 20px 0;
    margin-top: 60px;
    text-align: center;
    color: var(--color-light-gray);
    font-size: 0.9rem;
}