@font-face {
    font-family: 'NotoSerifCJKsc-Regular';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/NotoSerifCJKsc-Regular.otf');
}
@font-face {
    font-family: 'NotoSerifCJKsc-Bold';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/NotoSerifCJKsc-Bold.otf');
}
@font-face {
    font-family: 'AlibabaSans-Regular';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/AlibabaSans-Regular.otf');
}
@font-face {
    font-family: 'LongCang-Regular';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/LongCang-Regular.ttf');
}

/* ==================== VARIABLES ==================== */
:root {
    /* Modo Claro (por defecto) */
    --bg-dark: #1a1a1a;
    --text-light: #e5e5e5;
    --accent-gold: #c5a47e;
    --deep-navy: #1f2937;
    --charcoal: #2d2d2d;
    --soft-white: #f3f4f6;
    --bg-light: #F5F5F0;
    --bg-beige: #e8e6e1;
    
    /* Variables de tema claro */
    --bg-primary: #F5F5F0;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e6e1;
    --text-primary: #2d2d2d;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --border-color: #e5e5e5;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --navbar-bg: #1a1a1a;
    --navbar-text: #ffffff;
    --footer-bg: #1a1a1a;
}

/* Modo Oscuro */
[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #262626;
    --text-primary: #e5e5e5;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #333333;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --navbar-bg: #000000;
    --navbar-text: #ffffff;
    --footer-bg: #000000;
    --bg-light: #0f0f0f;
    --bg-beige: #1a1a1a;
    --charcoal: #e5e5e5;
    --soft-white: #2d2d2d;
}

/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'AlibabaSans-Regular', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.serif-font {
    font-family: 'NotoSerifCJKsc-Regular', serif;
}

.serif-bold {
    font-family: 'NotoSerifCJKsc-Bold', serif;
}

.handwritten-font {
    font-family: 'LongCang-Regular', cursive;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--navbar-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 5rem;
    transition: background-color 0.3s ease;
}

.nav-container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'NotoSerifCJKsc-Bold', serif;
    font-size: 1.5rem;
    color: var(--navbar-text);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: var(--accent-gold);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: var(--navbar-text);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 0.3rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--navbar-text);
    color: var(--navbar-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
    transform: rotate(180deg);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 5rem;
    transition: background-color 0.3s ease;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: var(--bg-tertiary);
    transition: background-color 0.3s ease;
}

.bg-border {
    position: absolute;
    top: 5rem;
    right: 5rem;
    width: 600px;
    height: 800px;
    border: 1px solid var(--border-color);
    opacity: 0.5;
}

.hero-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-content {
    width: 50%;
    padding-right: 5rem;
}

.hero-date {
    color: var(--accent-gold);
    letter-spacing: 0.3em;
    font-size: 0.875rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'NotoSerifCJKsc-Bold', serif;
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.hero-subtitle {
    color: var(--accent-gold);
    font-family: 'NotoSerifCJKsc-Regular', serif;
    font-style: italic;
}

.hero-text {
    font-family: 'NotoSerifCJKsc-Regular', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 80%;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    padding: 0.875rem 2rem;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    background-color: transparent;
}

.btn-primary:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
}

.hero-image-container {
    width: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 800px;
}

.hero-image {
    position: relative;
    width: 500px;
    height: 700px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px var(--shadow-medium);
    z-index: 10;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 10;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 1s ease;
}

.hero-image:hover img {
    filter: grayscale(0%);
}

.hero-blur {
    position: absolute;
    bottom: -2.5rem;
    left: -2.5rem;
    width: 16rem;
    height: 16rem;
    background-color: var(--accent-gold);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.hero-vertical-text {
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--accent-gold);
    opacity: 0.6;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.2em;
    font-weight: bold;
    font-size: 0.875rem;
}

/* ==================== OBRAS SECTION ==================== */
.obras-section {
    width: 100%;
    padding: 8rem 5rem;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
}

.section-title {
    font-family: 'NotoSerifCJKsc-Bold', serif;
    font-size: 4rem;
    text-align: center;
    margin-bottom: 5rem;
    color: var(--text-primary);
}

.obras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.obra-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    box-shadow: 0 10px 15px -3px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.obra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px var(--shadow-medium);
}

.obra-image {
    height: 320px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.obra-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.obra-card:hover .obra-image img {
    transform: scale(1.05);
}

.obra-title {
    font-family: 'NotoSerifCJKsc-Bold', serif;
    font-size: 1.875rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.obra-year {
    font-family: 'NotoSerifCJKsc-Regular', serif;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.obra-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== POEM SECTION ==================== */
.poem-section {
    width: 100%;
    padding: 8rem 5rem;
    background-color: var(--bg-primary);
    margin-top: 5rem;
    transition: background-color 0.3s ease;
}

.poem-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5rem;
    gap: 3rem;
}

.poem-header-left {
    width: 33.333%;
    position: relative;
}

.poem-number {
    position: absolute;
    font-size: 9rem;
    font-weight: bold;
    color: var(--border-color);
    top: -4rem;
    left: -1rem;
    z-index: 0;
}

.poem-main-title {
    font-family: 'NotoSerifCJKsc-Bold', serif;
    font-size: 4rem;
    line-height: 1.1;
    position: relative;
    z-index: 10;
    color: var(--text-primary);
}

.title-line {
    width: 6rem;
    height: 4px;
    background-color: var(--accent-gold);
    margin-top: 2rem;
}

.poem-header-right {
    width: 66.666%;
    padding-top: 2rem;
}

.poem-intro {
    font-family: 'NotoSerifCJKsc-Regular', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.poem-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.poem-image-container {
    position: relative;
    height: 700px;
}

.poem-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 10;
    box-shadow: 0 25px 50px -12px var(--shadow-medium);
}

.poem-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.poem-image:hover img {
    filter: grayscale(0%);
}

.image-dark-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 10;
}

.image-border-decoration {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-gold);
    z-index: 0;
}

.poem-text-card {
    background-color: var(--bg-secondary);
    padding: 3rem;
    box-shadow: 0 10px 15px -3px var(--shadow-light);
    position: relative;
    border-left: 4px solid var(--accent-gold);
    transition: background-color 0.3s ease;
}

.quote-mark {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 8rem;
    color: var(--accent-gold);
    opacity: 0.1;
    font-family: 'NotoSerifCJKsc-Bold', serif;
    line-height: 1;
}

.poem-verses {
    position: relative;
    z-index: 10;
    margin-bottom: 3rem;
}

.verse-text {
    font-family: 'NotoSerifCJKsc-Regular', serif;
    font-size: 1.125rem;
    line-height: 2;
    color: var(--text-secondary);
    font-style: italic;
}

.poem-analysis {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.analysis-title {
    font-family: 'NotoSerifCJKsc-Bold', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1rem;
}

.analysis-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== TRILCE SECTION ==================== */
.trilce-section {
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.trilce-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.trilce-title-group h1 {
    font-family: 'NotoSerifCJKsc-Bold', serif;
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.trilce-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.trilce-year {
    font-size: 8rem;
    font-weight: bold;
    color: var(--border-color);
    opacity: 0.3;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 3rem 0;
}

.trilce-intro {
    max-width: 48rem;
    margin: 0 auto 5rem;
    text-align: center;
}

.trilce-intro-text {
    font-family: 'NotoSerifCJKsc-Regular', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.ml-auto {
    margin-left: auto;
}

.trilce-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.trilce-text-card {
    background-color: var(--bg-tertiary);
    padding: 4rem;
    box-shadow: 0 25px 50px -12px var(--shadow-medium);
    position: relative;
    border-left: 4px solid var(--accent-gold);
    transition: background-color 0.3s ease;
}

.trilce-poem-title {
    font-family: 'NotoSerifCJKsc-Bold', serif;
    font-size: 1.875rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
}

.trilce-verses {
    font-family: monospace;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 2;
    letter-spacing: 0.05em;
}

.trilce-verses .mb-6 {
    margin-bottom: 1.5rem;
}

.trilce-footer {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-line {
    height: 1px;
    background-color: var(--border-color);
    flex-grow: 1;
}

.footer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.trilce-image-container {
    position: relative;
    height: 650px;
}

.dashed-border {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--border-color);
    z-index: 0;
}

.trilce-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 10;
    box-shadow: 0 25px 50px -12px var(--shadow-medium);
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.trilce-image:hover {
    filter: grayscale(0%);
}

.trilce-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
    padding: 1.5rem;
    color: var(--bg-dark);
}

.label-year {
    font-family: 'NotoSerifCJKsc-Bold', serif;
    font-size: 1.25rem;
}

.label-location {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==================== MASA SECTION ==================== */
.masa-section {
    background-color: var(--bg-tertiary);
    transition: background-color 0.3s ease;
}

.poem-number.masa-number {
    color: var(--border-color);
    opacity: 0.5;
}

.masa-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.masa-hero-image {
    width: 100%;
    max-width: 80rem;
    height: 500px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px var(--shadow-light);
    border-radius: 2px;
    margin-bottom: 3rem;
}

.masa-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.masa-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26, 26, 26, 0.6), transparent, rgba(26, 26, 26, 0.6));
    opacity: 0.6;
}

.masa-hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.masa-quote-box {
    text-align: center;
    color: white;
    padding: 2.5rem;
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 42rem;
}

.masa-quote {
    font-family: 'LongCang-Regular', cursive;
    font-size: 2.5rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #f0f0f0;
}

.masa-quote-author {
    font-family: 'NotoSerifCJKsc-Regular', serif;
    font-size: 1.125rem;
    color: var(--accent-gold);
}

.masa-text-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    width: 100%;
    max-width: 96rem;
}

.masa-text-card {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    box-shadow: 0 1px 3px 0 var(--shadow-light);
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.masa-text-card:first-child {
    border-top: 4px solid var(--accent-gold);
}

.masa-card-title {
    font-family: 'NotoSerifCJKsc-Bold', serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.masa-verse {
    font-family: 'NotoSerifCJKsc-Regular', serif;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 2;
    font-size: 1.125rem;
}

.masa-analysis {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 4rem 5rem;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.footer-container {
    max-width: 1920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    font-family: 'NotoSerifCJKsc-Bold', serif;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer-text {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-title {
    color: var(--accent-gold);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: #9ca3af;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-stamp {
    width: 8rem;
    height: 10rem;
    overflow: hidden;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.5s ease;
    margin-bottom: 1rem;
}

.footer-stamp:hover {
    filter: grayscale(0%);
}

.footer-stamp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #4b5563;
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .navbar {
        padding: 1.5rem 2rem;
    }
    
    .hero-container,
    .container {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .obras-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .poem-content-grid,
    .trilce-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .masa-text-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content,
    .hero-image-container {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .obras-grid {
        grid-template-columns: 1fr;
    }
    
    .poem-header {
        flex-direction: column;
    }
    
    .poem-header-left,
    .poem-header-right {
        width: 100%;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}