/* CSS Variables for Organic Theme */
:root {
    --bg-color: #2b1d14; /* Dark elegant brown */
    --surface-color: #3d2b1f; /* Slightly lighter for cards */
    --text-primary: #f8f1e5; /* Creamy off-white for readability */
    --text-secondary: #d4c4b7; /* Muted light brown */
    --accent-color: #e6b981; /* Elegant light yellow/gold */
    --accent-hover: #d4a373;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-text: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-text);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(43, 29, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: 600;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-left: 1rem;
    font-size: 0.9rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    padding: 0;
    transition: color 0.3s ease;
}

.lang-btn:hover {
    color: var(--accent-color);
}

.lang-btn.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color);
}

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

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 1px solid var(--text-secondary);
    transition: all 0.3s ease;
    z-index: 2;
}

/* Base Parallax Classes */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    z-index: 1;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(43, 29, 20, 0.88); /* Elegant dark brown filter */
    z-index: 0;
}

/* Individual Background Assignments */
#audios { background-image: url('assets/images/DSC_0126.JPG'); }
#galeria { background-image: url('assets/images/IMG_5601.jpg'); }
#videos { background-image: url('assets/images/DSC_0045.JPG'); }
#biografia { background-image: url('assets/images/DSC_0058.JPG'); }
#fechas { background-image: url('assets/images/IMG_2958.jpg'); }
#experiencia { background-image: url('assets/images/IMG_5565.jpg'); }

/* MASONRY GALLERY */
.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-img {
    width: 100%;
    margin-bottom: 1.5rem;
    display: block;
    break-inside: avoid;
    border-radius: 4px; /* Un radius más sutil para un aspecto más maduro */
    filter: grayscale(60%) contrast(1.1); /* Toque desaturado elegante como ecoyraiz */
    transition: filter 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

.gallery-img:hover {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.02);
}

.formats { background-image: url('assets/images/IMG_5573.jpg'); }
#opiniones { background-image: url('assets/images/DSC_0045.JPG'); }
#contacto { background-image: url('assets/images/IMG_4138.JPG'); }

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-text {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

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

/* General Layout */
.section {
    padding: 6rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--accent-color);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    background-image: url('assets/images/IMG_6615.jpg'); /* Añade un fallback JPG */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Esto crea el efecto parallax lujoso */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(43, 29, 20, 0.7), rgba(43, 29, 20, 0.95));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-secondary);
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

/* Experience Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 3rem;
    background: var(--surface-color);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
}

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

.card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.card p {
    color: var(--text-secondary);
}

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

.art-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.art-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.art-book {
    text-align: center;
    background: linear-gradient(135deg, var(--surface-color), #23352a);
}

.label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 1rem;
}

/* Contact */
.contact {
    text-align: center;
    background: var(--surface-color);
}

.contact p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.email-large {
    font-family: var(--font-heading);
    font-size: 3vw;
    color: var(--text-primary) !important;
    margin-bottom: 2rem !important;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 5% 2rem 5%;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-links a {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.social-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Video Grid layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* Featured Video Full Width */
.video-featured {
    grid-column: 1 / -1;
}

.video-featured video {
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.video-title {
    text-align: center; 
    color: var(--accent-color); 
    margin-bottom: 0.8rem; 
    font-weight: 500; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* Video Card Interactions */
.video-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.video-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.video-grid video {
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .nav { display: none; /* In a full app, add a hamburger menu */ }
    .stats-grid, .art-split { grid-template-columns: 1fr; }
    .email-large { font-size: 2rem; }
    .cta-group { flex-direction: column; }
}
