/*
Theme Name: Rizoma Custom
Author: Antigravity
Description: Tema minimalista y de alto rendimiento para Rizoma Press.
Version: 1.0
*/

:root {
    --bg-color: #121212;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #10b981;
    --accent-hover: #059669;
    --card-bg: #1e1e24;
    --border-color: #2d3748;
    --color-general: #3b82f6;
    --color-salud: #ec4899;
    --color-finanzas: #f59e0b;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-icon {
    width: 38px;
    height: 38px;
    color: var(--accent);
    animation: pulse-glow 4s infinite alternate;
}

@keyframes pulse-glow {
    0% { filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.4)); }
    100% { filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.8)); }
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--text-main);
    margin: 0;
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    padding: 7rem 5%;
    text-align: center;
    position: relative;
}

.tagline {
    display: inline-block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--bg-color);
    background-color: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

h1 {
    font-size: 4.5rem;
    margin: 0;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1.5px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 2rem auto;
    font-weight: 400;
}

.section-header {
    max-width: 1400px;
    margin: 4rem auto 1rem;
    padding: 0 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

.header-general h2 { color: var(--color-general); }
.header-general .section-line {
    background: linear-gradient(90deg, var(--color-general), transparent);
    opacity: 0.5;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem 5% 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.card.general:hover { border-color: rgba(59, 130, 246, 0.5); }

.card-img {
    height: 200px;
    background: #2d3748;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card.general .card-img {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
}

.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(18, 18, 18, 0.8);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(4px);
    color: var(--color-general);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    font-weight: 800;
    color: #fff;
    transition: color 0.3s;
}

.card.general:hover .card-title { color: var(--color-general); }

.card-excerpt {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
    flex-grow: 1;
}

footer {
    text-align: center;
    padding: 3rem 5%;
    border-top: 1px solid var(--border-color);
    background: #0a0a0a;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    .nav-links { display: none; }
}
