body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #000;
    padding: 20px;
    margin: 0;
    line-height: 1.3;
}

.page-container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 15px;
}

header h1 {
    font-size: 4.2em;
    margin: 0 0 8px 0;
    color: #333;
}

header h1 .c-yellow { color: #fcd116; }
header h1 .o-blue { color: #003893; }
header h1 .l-red { color: #ce1126; }

.subtitle {
    font-size: 0.95em;
    color: #555;
    margin: 0;
}

.auth-bar {
    text-align: right;
    font-size: 0.85em;
    margin-bottom: 20px;
    color: #555;
}

.auth-bar a {
    color: #0000ee;
    text-decoration: underline;
    cursor: pointer;
}

.auth-box {
    background: #fafafa;
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    display: none;
}

.auth-box h3 {
    margin: 0 0 10px 0;
    font-size: 0.95em;
    color: #333;
}

.auth-split {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.auth-form-block {
    flex: 1;
    min-width: 250px;
}

.controls-panel {
    background: #fafafa;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
}

.category-nav {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.category-nav span {
    color: #555;
    margin-right: 5px;
}

.category-nav a {
    color: #0000ee;
    text-decoration: underline;
    margin-right: 12px;
    cursor: pointer;
}

.category-nav a.active {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.search-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.9em;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-grow: 1;
}

#search-bar {
    width: 100%;
    max-width: 400px;
}

.counter-box {
    font-size: 0.85em;
    color: #444;
    background: #eee;
    padding: 2px 6px;
    border: 1px solid #bbb;
}

input[type="text"], input[type="password"], input[type="url"], select, textarea {
    border: 1px solid #777;
    padding: 3px 5px;
    font-family: Arial, sans-serif;
    background: #fff;
}

.archive-form {
    background: #fdfefe;
    border: 1px dashed #444;
    padding: 12px;
    margin-bottom: 20px;
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.archive-form h3 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #333;
}

.form-group {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.form-group label {
    font-size: 0.85em;
    flex-shrink: 0;
}

.form-group input, .form-group select, .form-group textarea {
    flex-grow: 1;
    box-sizing: border-box;
}

button {
    background: #f0f0f0;
    border: 1px solid #555;
    cursor: pointer;
    padding: 3px 12px;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

button:hover {
    background: #ddd;
}

hr {
    border: 0;
    border-top: 1px dashed #ccc;
    margin: 20px 0;
}

.grid-archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
}

.archive-card {
    border: 1px solid #ccc;
    padding: 10px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.archive-card:hover {
    border-color: #0000ee;
    background: #fff;
}

.archive-card img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    display: block;
    margin-bottom: 8px;
    border: 1px solid #eee;
}

.tag-category {
    font-size: 0.75em;
    color: #666;
    margin-bottom: 4px;
}

.archive-card a.project-link {
    color: #0000ee;
    text-decoration: underline;
    font-size: 1.1em;
    font-weight: bold;
    word-break: break-word;
}

.archive-card p {
    font-size: 0.85em;
    color: #333;
    margin: 8px 0 0 0;
}

/* --- ESTILO DE BOTONES RETRO (BLOG 2000s) --- */
.card-footer-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 6px;
    border-top: 1px dotted #ccc;
    font-size: 0.8em;
}

.action-btn, .action-link {
    color: #0000ee;
    cursor: pointer;
    text-decoration: none;
    background: #eee;
    padding: 1px 4px;
    border: 1px solid #999;
}

.action-btn:hover, .action-link:hover {
    background: #fff;
    border-color: #000;
}

/* --- VISTA DE DETALLE --- */
.nav-back-title {
    text-decoration: none !important;
    color: inherit !important;
}

.detail-container {
    margin-top: 20px;
    background: #fff;
}

.detail-title {
    font-size: 2.2em;
    margin: 5px 0 10px 0;
    text-transform: lowercase;
}

/* Barra de herramientas tipo bitácora antigua */
.blog-toolbar {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 5px;
    margin-bottom: 15px;
    font-size: 0.85em;
    display: flex;
    gap: 15px;
    align-items: center;
}

.tool-btn {
    color: #0000ee;
    cursor: pointer;
    text-decoration: underline;
}

.tool-btn:hover {
    color: #000;
}

.tool-static {
    color: #555;
    margin-left: auto;
}

.project-view-split {
    display: flex;
    gap: 30px;
    flex-wrap: wrap-reverse;
}

.project-info-block {
    flex: 1;
    min-width: 300px;
}

.project-media-block {
    width: 320px;
    flex-shrink: 0;
}

.meta-specs {
    font-size: 0.9em;
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 8px;
    margin: 15px 0;
    color: #444;
}

.blog-view {
    max-width: 750px;
    margin: 0 auto;
}

.detail-img-large {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

.detail-body-text {
    font-size: 1.05em;
    line-height: 1.5;
    color: #111;
    word-break: break-word;
}

/* --- SECCIÓN DE COMENTARIOS --- */
.comments-section {
    margin-top: 30px;
}

.comments-section h3 {
    font-size: 1.1em;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

#comment-text {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    font-family: Arial, sans-serif;
    margin-bottom: 5px;
    resize: vertical;
}

.comments-list {
    margin-top: 25px;
}

.comment-item {
    border-left: 2px solid #999;
    padding-left: 10px;
    margin-bottom: 18px;
    background: #fafafa;
    padding-top: 4px;
    padding-bottom: 6px;
}

.comment-meta {
    font-size: 0.78em;
    color: #666;
    margin-bottom: 4px;
}

.comment-body {
    font-size: 0.92em;
    line-height: 1.4;
    color: #222;
}


/* --- EXTENSIONES DE ESTRELLAS DE VALORACIÓN --- */
.spacing-stars {
    justify-content: space-between;
    align-items: center;
}

.star-rating {
    display: inline-flex;
    gap: 2px;
}

.star {
    font-size: 1.3em;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.star.full {
    color: #ffcc00; /* Dorado retro */
}

.star.empty {
    color: #ccc;
}

.star:hover,
.star:hover ~ .star {
    color: #ff9900;
}

/* Toolbar de clasificación en la vista de detalles */
.project-rating-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fdfefe;
    border: 1px solid #ddd;
    padding: 6px 10px;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.detail-stars .star {
    font-size: 1.5em;
}

.votes-counter {
    font-size: 0.85em;
    color: #666;
}


/* --- ESTILOS DE FICHA TÉCNICA EXHAUSTIVA --- */
.meta-specs {
    font-size: 0.9em;
    background: #fdfefe;
    border: 1px solid #777; /* Bordes sólidos retro */
    padding: 10px;
    margin: 15px 0;
    color: #000;
}

.spec-row {
    display: flex;
    padding: 4px 0;
    border-bottom: 1px dashed #eee;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row strong {
    width: 170px;
    flex-shrink: 0;
    color: #333;
}

.spec-row span, .spec-row a {
    word-break: break-all;
}

.blog-meta-header {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 10px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
}

.external-resource-link {
    color: #0000ee;
    text-decoration: underline;
}

.external-resource-link:hover {
    color: #ce1126;
}
