/* ========================================
   ARENDTIANO THEME — arendtiano.com.co
   Tema editorial oscuro
   ======================================== */

:root {
    --black: #0A0A0A;
    --dark: #111111;
    --dark-surface: #1E1E1E;
    --charcoal: #2D2D2D;
    --gray: #8A8A8A;
    --light-gray: #B8B0A8;
    --cream: #E8E0D4;
    --white: #F5F0EB;
    --terracotta: #C4572A;
    --terracotta-glow: #E07A4A;
    --teal: #1A6B5C;
    --teal-light: #3AAA9A;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Source Sans 3', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--black);
    color: var(--cream);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Noise texture */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
}

a { color: var(--terracotta); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--terracotta-glow); }

/* ========== NAVIGATION ========== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 87, 42, 0.15);
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--cream);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--light-gray);
    text-decoration: none;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--cream); }
.nav-links a.active::after { width: 100%; }

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(196, 87, 42, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 30% 60%, rgba(26, 107, 92, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-logo {
    width: 220px;
    height: auto;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1.2s ease 0.3s forwards;
    filter: drop-shadow(0 0 40px rgba(196, 87, 42, 0.15));
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1.2s ease 0.5s forwards;
}

.hero-title em { font-style: italic; color: var(--terracotta); }

.hero-subtitle {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--light-gray);
    max-width: 520px;
    letter-spacing: 0.03em;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 1.2s ease 0.8s forwards;
}

.hero-line {
    width: 60px;
    height: 1px;
    background: var(--terracotta);
    margin: 2.5rem auto;
    opacity: 0;
    animation: fadeUp 1.2s ease 1s forwards;
}

.hero-quote {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 300;
    font-style: italic;
    color: var(--gray);
    max-width: 480px;
    opacity: 0;
    animation: fadeUp 1.2s ease 1.2s forwards;
}

.hero-quote cite {
    display: block;
    font-style: normal;
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-top: 0.8rem;
}

/* ========== SECTIONS ========== */
.section {
    padding: 8rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--terracotta);
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 2.5rem;
}

.section-text {
    font-size: 1.05rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    max-width: 680px;
}

.section-text strong { color: var(--cream); font-weight: 500; }

/* ========== BLOG LISTING ========== */
.blog-header {
    padding: 10rem 3rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.blog-grid {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 3rem 6rem;
}

.post-card {
    display: block;
    background: var(--dark-surface);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 2.5rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.3s ease;
    text-decoration: none;
}

.post-card:hover {
    border-color: rgba(196, 87, 42, 0.2);
    transform: translateY(-3px);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--terracotta), var(--teal));
    transition: height 0.5s ease;
}

.post-card:hover::before { height: 100%; }

.post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.post-date {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--gray);
}

.post-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
}

.tag-materia {
    background: rgba(26, 107, 92, 0.15);
    color: var(--teal-light);
}

.tag-bloom {
    background: rgba(196, 87, 42, 0.15);
    color: var(--terracotta-glow);
}

.tag-tipo {
    background: rgba(255,255,255,0.05);
    color: var(--light-gray);
}

.post-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--light-gray);
    line-height: 1.7;
}

/* ========== SINGLE POST / ITEM ========== */
.post-header {
    padding: 10rem 3rem 3rem;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.post-header .post-meta {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.post-header .post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.post-header .post-subtitle {
    font-family: var(--sans);
    font-size: 1.1rem;
    color: var(--light-gray);
    font-weight: 300;
}

.post-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 3rem 6rem;
}

.post-content h2 {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--white);
    margin: 3rem 0 1.2rem;
    line-height: 1.3;
}

.post-content h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--cream);
    margin: 2.5rem 0 1rem;
}

.post-content p {
    font-size: 1.05rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.post-content strong { color: var(--cream); font-weight: 500; }
.post-content em { color: var(--cream); }

.post-content blockquote {
    border-left: 3px solid var(--terracotta);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(196, 87, 42, 0.05);
}

.post-content blockquote p {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--cream);
    margin-bottom: 0;
}

.post-content ul, .post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-gray);
}

.post-content li { margin-bottom: 0.5rem; font-size: 1.05rem; }

.post-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    background: var(--dark-surface);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    color: var(--terracotta-glow);
}

.post-content pre {
    background: var(--dark-surface);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 4px;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--cream);
}

.post-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(196, 87, 42, 0.3), transparent);
    margin: 3rem 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.post-content a {
    color: var(--terracotta);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content a:hover { color: var(--terracotta-glow); }

/* Post navigation */
.post-nav {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 3rem 4rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}

.post-nav a {
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--light-gray);
}

.post-nav a:hover { color: var(--terracotta); }

/* ========== MATERIAS GRID ========== */
.materias-section {
    padding: 6rem 3rem 8rem;
    background: var(--dark);
    position: relative;
}

.materias-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(26, 107, 92, 0.3), transparent);
}

.materias-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.materias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.materia-card {
    background: var(--dark-surface);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.3s ease;
}

.materia-card:hover {
    border-color: rgba(26, 107, 92, 0.3);
    transform: translateY(-4px);
}

.materia-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--teal), var(--terracotta));
    transition: width 0.5s ease;
}

.materia-card:hover::after { width: 100%; }

.materia-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(26, 107, 92, 0.1);
    border: 1px solid rgba(26, 107, 92, 0.25);
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--teal-light);
    margin-bottom: 1.2rem;
}

.materia-name {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.materia-name a { color: var(--white); text-decoration: none; }
.materia-name a:hover { color: var(--terracotta); }

.materia-code {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

.materia-recursos {
    list-style: none;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1rem;
}

.materia-recursos li { margin-bottom: 0.5rem; }

.materia-recursos a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    color: var(--cream);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.materia-recursos a:hover { background: rgba(196, 87, 42, 0.1); }

.recurso-tipo {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    background: rgba(196, 87, 42, 0.15);
    color: var(--terracotta-glow);
    border-radius: 2px;
    white-space: nowrap;
}

/* ========== PILARES (Bloom) ========== */
.pilares-section {
    padding: 6rem 3rem 8rem;
    position: relative;
}

.pilares-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(196, 87, 42, 0.3), transparent);
}

.pilares-inner { max-width: 1100px; margin: 0 auto; }

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pilar-card {
    background: var(--dark-surface);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.3s ease;
}

.pilar-card:hover {
    border-color: rgba(196, 87, 42, 0.2);
    transform: translateY(-4px);
}

.pilar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--terracotta), var(--teal));
    transition: height 0.5s ease;
}

.pilar-card:hover::before { height: 100%; }

.pilar-number {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 300;
    color: rgba(196, 87, 42, 0.3);
    line-height: 1;
    margin-bottom: 1rem;
}

.pilar-name {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.pilar-bloom {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 1rem;
}

.pilar-desc {
    font-size: 0.95rem;
    color: var(--light-gray);
    line-height: 1.7;
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(26, 107, 92, 0.4);
    color: var(--teal-light);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ========== FOOTER ========== */
footer {
    padding: 4rem 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-name {
    font-family: var(--serif);
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--gray);
    margin-bottom: 1rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--gray);
    letter-spacing: 0.05em;
}

.footer-copy a { color: var(--terracotta); }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--terracotta), transparent);
    margin: 0 auto;
    animation: scrollPulse 2s ease infinite;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0 4rem;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: var(--sans);
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--light-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
}

.pagination .active {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { gap: 1.5rem; }
    .nav-links a { font-size: 0.7rem; }
    .section { padding: 5rem 1.5rem; }
    .materias-section, .pilares-section { padding: 5rem 1.5rem; }
    .blog-header { padding: 8rem 1.5rem 3rem; }
    .blog-grid { padding: 0 1.5rem 4rem; }
    .post-header { padding: 8rem 1.5rem 2rem; }
    .post-content { padding: 2rem 1.5rem 4rem; }
    .post-nav { padding: 0 1.5rem 3rem; }
    .hero-logo { width: 160px; }
}

@media (max-width: 480px) {
    .nav-links { display: none; }
    .pilares-grid, .materias-grid { grid-template-columns: 1fr; }
}
