:root {
    --bg-main: #ffffff;
    --bg-subtle: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-line: #e2e8f0;
    --accent: #2563eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-radius: 0 !important; /* Cero bordes redondeados en todo el sitio */
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.5;
}

/* Header Fijo Recto */
.topbar {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-line);
    position: fixed;
    top: 0;
    width: 100%;
    height: 50px;
    z-index: 100;
}

.topbar-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-back {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--text-dark);
    padding: 4px 10px;
    background: transparent;
}

.btn-back:hover {
    background-color: var(--text-dark);
    color: var(--bg-main);
}

.logo {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.logo span {
    color: var(--accent);
}

/* LAYOUT DE 3 COLUMNAS RECTAS */
.layout-wrapper {
    max-width: 1600px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: 240px 1fr 260px;
    min-height: calc(100vh - 50px);
}

/* COLUMNA 1: Sidebar Izquierdo */
.sidebar-left {
    border-right: 1px solid var(--border-line);
    padding: 32px 16px;
    position: sticky;
    top: 50px;
    height: calc(100vh - 50px);
    overflow-y: auto;
    background-color: var(--bg-main);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 20px 0 8px 0;
    letter-spacing: 0.08em;
}

.nav-category:first-child {
    margin-top: 0;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.15s;
}

.nav-item:hover {
    color: var(--text-dark);
}

.nav-item.active {
    color: var(--accent);
    font-weight: 600;
}

.sub-item {
    padding-left: 12px;
    font-size: 0.8rem;
}

/* COLUMNA 2: Centro (Contenido Editorial) */
.content-center {
    padding: 40px 56px;
    background-color: var(--bg-main);
}

.main-hero {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-line);
}

.status-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 8px;
}

.main-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.main-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 800px;
}

.tech-tags {
    display: flex;
    gap: 12px;
}

.tech-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-line);
    padding-bottom: 2px;
}

.content-section {
    margin-bottom: 56px;
}

.content-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 8px;
}

/* Galería de Capturas Ajustada */
.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Marco Recto para Capturas */
.media-frame {
    width: 100%;
    /* Mantenemos el marco delimitado */
    max-height: 600px; 
    border: 1px solid var(--border-line);
    background-color: var(--bg-subtle);
    overflow: hidden; /* Corta cualquier posible sobrante */
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-frame img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Ajusta toda la captura completa sin deformarla ni cortarla */
    display: block;
}

.media-title {
    font-weight: 600;
    color: var(--text-dark);
}

.media-sub {
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Elementos de Plugins (Sin Cajas, Lista Limpia) */
.plugin-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-line);
}

.plugin-item:last-child {
    border-bottom: none;
}

.plugin-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.plugin-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Filas de Descarga Limpias */
.downloads-list {
    display: flex;
    flex-direction: column;
}

.download-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-line);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
}

.download-row:hover span {
    color: var(--accent);
}

.download-row small {
    color: var(--text-muted);
    font-weight: normal;
}

/* COLUMNA 3: Sidebar Derecho */
.sidebar-right {
    border-left: 1px solid var(--border-line);
    padding: 32px 20px;
    position: sticky;
    top: 50px;
    height: calc(100vh - 50px);
    background-color: var(--bg-main);
}

.info-block {
    margin-bottom: 32px;
}

.info-block h4 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.08em;
}

.info-list {
    list-style: none;
    font-size: 0.85rem;
}

.info-list li {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-line);
    padding-bottom: 4px;
}

.info-list span {
    color: var(--text-muted);
}

.plain-link {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: 8px;
    font-weight: 500;
}

.plain-link:hover {
    color: var(--accent);
}

/* Responsive básico */
@media (max-width: 1024px) {
    .layout-wrapper {
        grid-template-columns: 200px 1fr;
    }
    .sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .layout-wrapper {
        grid-template-columns: 1fr;
    }
    .sidebar-left {
        display: none;
    }
}