:root {
    --bg-color: #060608;
    --text-color: #f0f0f5;
    --accent-color: #c9a77c; /* A classic philosophy/champagne gold */
    --accent-glow: rgba(201, 167, 124, 0.4);
    --bg-glass: rgba(15, 15, 20, 0.6);
    --border-glass: rgba(255, 255, 255, 0.05);
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --cursor-size: 10px;
}

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

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* custom cursor */
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Custom Cursor */
.cursor {
    width: var(--cursor-size);
    height: var(--cursor-size);
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: exclusion;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-glow);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.cursor.hovering {
    width: 60px;
    height: 60px;
    background: rgba(201, 167, 124, 0.1);
    backdrop-filter: blur(2px);
    border: 1px solid var(--accent-color);
}

.cursor-follower.hovering {
    opacity: 0;
}

/* Background Layers */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    transform: scale(1.05); /* for subtle parallax later */
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6,6,8,0.2) 0%, rgba(6,6,8,1) 100%);
}

/* Typography */
h1, h2, h3 {
    font-weight: 400;
    line-height: 1.1;
}

.highlight {
    color: var(--accent-color);
    font-style: italic;
    font-family: var(--font-serif);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    font-family: var(--font-sans);
    font-weight: 300;
}

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

/* Layout Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 8rem 0;
    position: relative;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(6, 6, 8, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 8rem);
    letter-spacing: -2px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #999;
    margin-bottom: 3rem;
    font-family: var(--font-serif);
    font-style: italic;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: none;
}

.btn-primary {
    background: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-color);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-color);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    /* overflow removed to allow tags to float */
}

/* Olyve Style Profile Picture */
.olyve-style {
    border-radius: 50% !important;
    aspect-ratio: 1/1;
    max-width: 400px;
    margin: 0 auto;
    overflow: visible;
}

.olyve-style::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(6,6,8,0.5) 0%, transparent 50%);
    border-radius: 50%;
    pointer-events: none;
}

.olyve-style img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
    border: 1px solid var(--border-glass);
}

.olyve-style:hover img {
    filter: grayscale(0%) contrast(1);
}

/* Floating Tags */
.floating-tag {
    position: absolute;
    background: #f0f0f5;
    color: #060608;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.tag-1 {
    top: 15%;
    left: -10%;
    animation: float-tag 6s ease-in-out infinite;
}

.tag-2 {
    bottom: 25%;
    right: -15%;
    animation: float-tag 5s ease-in-out infinite reverse;
}

.tag-3 {
    top: 65%;
    left: -20%;
    animation: float-tag 7s ease-in-out infinite;
}

@keyframes float-tag {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@media (max-width: 768px) {
    .floating-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    .tag-1 { left: 0%; top: 5%; }
    .tag-2 { right: 0%; bottom: 10%; }
    .tag-3 { left: 5%; top: 70%; }
}

.about-text p {
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 1.5rem;
}

.quote {
    font-family: var(--font-serif);
    font-size: 1.5rem !important;
    font-style: italic;
    color: var(--accent-color) !important;
    border-left: 2px solid var(--accent-color);
    padding-left: 2rem;
    margin-top: 3rem;
}

/* Glass & Publications */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 3rem;
}

.book-card {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.book-info {
    position: relative;
    z-index: 2;
}

.book-tag {
    color: var(--accent-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.book-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    font-style: italic;
}

.book-desc {
    color: #aaa;
    margin-bottom: 2rem;
}

/* Ventures */
.ventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.venture-card {
    display: block;
    padding: 3rem 2rem;
    border: 1px solid var(--border-glass);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s ease;
}

.venture-content {
    position: relative;
    z-index: 2;
}

.venture-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.venture-card p {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.venture-domain {
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.venture-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--accent-glow), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.venture-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.venture-card:hover .venture-hover {
    opacity: 1;
}

.venture-card:hover .venture-domain {
    color: var(--text-color);
}

/* Socials Config */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-link:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Footer */
footer {
    padding: 2rem 5%;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.scroll-to-top {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-to-top:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* Basic mobile nav hidden for simplicity, will add a hamburger if needed, but for a simple single page it's okay */
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

/* ── Nav Crítica button ──────────────────────────────── */
.nav-critica {
    color: var(--accent-color) !important;
    border: 1px solid rgba(201, 167, 124, 0.3);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem !important;
    transition: background 0.3s, border-color 0.3s !important;
}
.nav-critica:hover {
    background: rgba(201, 167, 124, 0.1);
    border-color: var(--accent-color);
}
.nav-critica::after { display: none !important; }

/* ── Sección Crítica · Yardiel ───────────────────────── */
.critica-section {
    border-top: 1px solid var(--border-glass);
}

.critica-header {
    max-width: 640px;
    margin-bottom: 4rem;
}

.critica-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.critica-desc {
    color: #888;
    font-size: 1.1rem;
    line-height: 1.7;
    font-family: var(--font-serif);
    font-style: italic;
    margin-top: .75rem;
}

/* Grid de artículos */
.critica-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.critica-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--border-glass);
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.critica-card:last-child { border-right: none; }

.critica-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-bottom: 1px solid var(--border-glass);
}
.critica-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}
.critica-card:hover .critica-card-img img {
    transform: scale(1.08);
}

.critica-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.critica-card-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: .8rem;
    display: block;
}
.critica-card-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: .8rem;
}
.critica-card-deck {
    font-size: .85rem;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.critica-card-meta {
    margin-top: auto;
    font-size: .68rem;
    color: #555;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.critica-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: 2;
}
.critica-card:hover { background: rgba(255,255,255,0.04); }
.critica-card:hover::before { transform: scaleX(1); }

/* Loading / empty state */
.critica-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: #444;
    font-size: .9rem;
    font-style: italic;
    font-family: var(--font-serif);
}

/* CTA */
.critica-cta {
    text-align: center;
}

@media (max-width: 768px) {
    .critica-grid { grid-template-columns: 1fr; }
    .critica-card { border-right: none; border-bottom: 1px solid var(--border-glass); }
    .critica-card:last-child { border-bottom: none; }
}

