:root {
    /* PALETA DE COLORES: "Organic Focus" */
    --bg-color: #f4f4f0;
    /* Crema Papel (Hueso) */
    --text-color: #1a1a1a;
    /* Negro Suave */
    --accent-dark: #1a3c34;
    /* VERDE BOSQUE PROFUNDO */
    --accent-light: #dcdcd9;
    /* Gris piedra claro */
    --white: #ffffff;

    /* TIPOGRAFÍA */
    --font-display: 'Cormorant Garamond', serif;
    /* Elegante, toque clásico */
    --font-sans: 'Manrope', sans-serif;
    /* Geométrica, limpia */
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Ocultamos cursor default para poner el nuestro */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

/* CURSOR PERSONALIZADO */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--accent-dark);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(26, 60, 52, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Efecto Hover del cursor */
body.hovering .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(26, 60, 52, 0.1);
    border-color: transparent;
}

body.dark-cursor .cursor-dot {
    background-color: var(--bg-color);
}

body.dark-cursor .cursor-outline {
    border-color: rgba(244, 244, 240, 0.5);
}

/* NAVEGACIÓN */
.nav-floating {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    color: var(--bg-color);
    /* Truco para que se vea en blanco o negro */
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.menu-links {
    display: flex;
    gap: 2rem;
}

.menu-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
}

.menu-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.menu-links a:hover::after {
    width: 100%;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
}

.hero h1 {
    font-family: var(--font-sans);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--accent-dark);
}

.hero-line {
    width: 2px;
    height: 60px;
    background-color: var(--accent-dark);
    margin: 0 auto 2rem;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    line-height: 1.2;
    color: #444;
}

.italic-accent {
    font-style: italic;
    color: var(--accent-dark);
    font-weight: 400;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background-color: var(--accent-dark);
}

/* MANIFIESTO */
.manifesto {
    padding: 8rem 2rem;
    display: flex;
    justify-content: center;
}

.container-text {
    max-width: 900px;
    text-align: center;
}

.large-text {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.4;
    color: var(--text-color);
}

.highlight {
    color: var(--accent-dark);
    font-style: italic;
    border-bottom: 1px solid var(--accent-dark);
}

/* OBRA VISUAL (MIRADA) */
.work-section {
    padding: 6rem 3rem;
    position: relative;
    z-index: 10;
}

.section-header {
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header .label {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    color: var(--accent-dark);
}

.work-list {
    display: flex;
    flex-direction: column;
}

.work-item {
    display: flex;
    align-items: center;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.work-item:hover {
    padding-left: 2rem;
}

.work-number {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #aaa;
    margin-right: 3rem;
}

.work-info {
    flex-grow: 1;
}

.work-info h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.work-info .category {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.btn-arrow {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.work-item:hover .btn-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Hover Image Reveal Effect */
.hover-image-reveal {
    position: fixed;
    top: 0;
    left: 0;
    width: 350px;
    height: 450px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.3s, transform 0.3s;
}

.reveal-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.work-item:hover~.hover-image-reveal .reveal-inner {
    filter: grayscale(0%);
}

/* ESCRITURA (MANOS) - TEMA OSCURO */
.writing-section {
    padding: 6rem 3rem;
    background-color: var(--accent-dark);
    color: var(--bg-color);
}

.writing-section .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.writing-section h2 {
    color: var(--bg-color);
}

.writing-section .label {
    color: rgba(255, 255, 255, 0.5);
}

.writing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.writing-card {
    display: block;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    background: transparent;
}

.writing-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.writing-card .date {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.writing-card h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.writing-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* FOOTER */
.footer-simple {
    padding: 8rem 3rem 4rem;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-content {
    width: 100%;
    max-width: 1000px;
}

.footer-intro {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.big-email-link {
    display: block;
    font-family: var(--font-sans);
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 800;
    color: var(--accent-dark);
    line-height: 1;
    margin-bottom: 4rem;
    transition: color 0.3s ease;
}

.big-email-link:hover {
    color: #000;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.socials a {
    margin-right: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--accent-dark);
}

/* ANIMACIONES UTILITARIAS */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-floating {
        padding: 0 1.5rem;
    }

    .menu-links {
        display: none;
        /* Simplificado para móvil, idealmente un menú hamburguesa */
    }

    .hero {
        padding: 0 1rem;
    }

    .work-item {
        padding: 2rem 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .work-number {
        margin-bottom: 1rem;
    }

    .work-info h3 {
        font-size: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Desactivar cursor custom y hover reveal en táctil */
    .cursor-dot,
    .cursor-outline,
    .hover-image-reveal {
        display: none;
    }

    * {
        cursor: auto;
    }
}