/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-primary: #2c2c2c;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-section: #fafafa;
    --accent: #e65100;
    --border-light: #e5e5e5;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    font-weight: 300;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

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

a:hover {
    color: var(--accent);
}

/* Navigation */
.main-nav {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.25rem;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 120px); /* Account for header and footer */
    display: flex;
    align-items: center;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 20px;
    gap: 4rem;
}

.hero-image {
    flex: 0 0 400px;
    height: 400px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-content {
    flex: 1;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: 'Crimson Text', serif;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #000000;
    color: white;
    border-radius: 2px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.cta-button:hover {
    background: #e65100;
    color: white;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-family: 'Crimson Text', serif;
    color: var(--text-primary);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

/* Latest Writing */
.latest-writing {
    background: var(--bg-light);
}

.featured-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-meta {
    margin-bottom: 1rem;
}

.date {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-title {
    margin-bottom: 1.5rem;
}

.article-title a {
    font-family: 'Crimson Text', serif;
    font-size: 2rem;
    transition: color 0.3s ease;
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Articles Section - Static Layout */
.articles-section {
    padding: 3rem 0;
    background: white;
}

.article-block {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
}

.article-block .article-image {
    flex: 0 0 350px;
    height: 250px;
    overflow: hidden;
}

.article-block .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.article-block:hover .article-image img {
    transform: scale(1.05);
    filter: grayscale(50%) contrast(1.1);
}

.article-block .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
}

.article-block .article-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.article-block .article-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.article-block .article-button {
    display: inline-block;
    padding: 12px 30px;
    background: #000000;
    color: white;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    font-weight: 500;
    width: fit-content;
}

.article-block .article-button:hover {
    background: #e65100;
    color: white;
}

@media (max-width: 768px) {
    .article-block {
        flex-direction: column;
        padding: 1.5rem;
    }

    .article-block .article-image {
        flex: none;
        width: 100%;
        height: 200px;
    }

    .article-block .article-title {
        font-size: 1.8rem;
    }

    .article-block .article-subtitle {
        font-size: 1rem;
    }
}

/* Articles Grid */
.articles-grid {
    padding: 4rem 0;
    background: var(--bg-light);
}

.articles-grid .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.article-card {
    display: flex;
    gap: 2rem;
    background: white;
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-card .article-image {
    flex: 0 0 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
}

.article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card .article-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.article-card .article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.article-card .article-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-card .article-link:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .article-card {
        flex-direction: column;
    }

    .article-card .article-image {
        flex: none;
        width: 100%;
        height: 200px;
    }
}

.read-more {
    display: inline-block;
    color: var(--accent);
    font-weight: 400;
    transition: transform 0.3s ease;
}

.read-more:hover {
    transform: translateX(5px);
}

/* Philosophy Section */
.philosophy {
    background: white;
}

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

.philosophy-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.philosophy-card h3 {
    font-family: 'Crimson Text', serif;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Writings Section */
.writings {
    background: var(--bg-section);
}

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

.writing-card {
    padding: 2rem;
    background: white;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.writing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.writing-card h3 {
    margin-bottom: 0.5rem;
}

.writing-card h3 a {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
}

.writing-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Practice Section */
.practice {
    background: white;
}

.practice-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

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

.step {
    padding: 2rem;
    text-align: center;
}

.step h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Footer */
.main-footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Simple Footer */
.simple-footer {
    position: relative;
    padding: 1.5rem 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.simple-footer p {
    margin: 0;
    font-size: 0.8rem; /* más pequeño que el texto de cuerpo */
    color: #777; /* gris medio, no compite con lo principal */
    letter-spacing: 0.05em; /* un poquito más de aire entre letras */
    text-align: center;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 300;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .main-nav {
        padding: 0.75rem 0;
    }

    .nav-menu {
        gap: 1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        gap: 2rem;
        min-height: auto;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .hero-image {
        flex: 0 0 250px;
        height: 250px;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        position: relative;
        transform: none !important; /* Disable any transform on mobile */
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .simple-footer {
        padding: 1rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .philosophy-grid,
    .writings-list,
    .practice-steps {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 0;
    }
}

/* Article date with PDF link */
.article-date {
    font-size: .92rem;
    color: #6b6b6b;
    margin: .6rem 0 1.2rem;
}

.article-date a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .14em;
    text-decoration-thickness: .06em;
}

.article-date a:hover {
    color: #111;
    text-decoration-color: #111;
}

/* Style for text separators */
.text-separator {
    color: #BDBDBD;
    margin: 1rem 0;
}

.vp-companion-end {
    margin: 28px 0 18px;
    font-size: 0.95rem;
    opacity: .9;
}