/* --- IMPORTACIÓN DE FUENTES PREMIUM --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- RESET BÁSICO Y SCROLL SUAVE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Movimiento sedoso al hacer clic en el menú */
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: #1a1a1a; 
    background-color: #fdfcfaf5; 
}

h1, h2, h3, h4, .logo strong {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* --- CLASES UTILITARIAS --- */
.seccion-padding {
    padding: 120px 20px; 
    text-align: center;
}

.contenedor-texto {
    max-width: 800px;
    margin: 0 auto;
}

.contenedor-texto h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #111;
}

.contenedor-texto p {
    font-size: 1.1rem; 
    color: #333; /* Un poco más oscuro para que se lea mejor sobre el fondo */
    margin-bottom: 20px;
    font-weight: 400;
}

/* --- HEADER Y NAVEGACIÓN --- */
.header-principal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(253, 252, 250, 0.95); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.logo {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 3px;
    color: #000;
}

.menu-navegacion ul {
    display: flex;
    list-style: none;
}

.menu-navegacion ul li {
    margin-left: 35px;
}

.menu-navegacion ul li a {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.menu-navegacion ul li a:hover {
    color: #b59b6d; 
}

/* --- SECCIÓN HERO (PORTADA) --- */
#hero {
    height: 85vh;
    background: linear-gradient(rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 0.7)), url('https://images.unsplash.com/photo-1543857778-c4a1a3e0b2eb?q=80&w=2000&auto=format&fit=crop') center/cover fixed no-repeat;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

#hero h1 {
    font-size: 4.5rem; 
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#hero p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #f0f0f0;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.boton-cta {
    display: inline-block;
    padding: 16px 40px;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    transition: all 0.4s ease;
    border: 1px solid #fff;
}

.boton-cta:hover {
    background-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}

/* --- SECCIÓN LA GALERÍA (FONDO CLARO) --- */
#about {
    /* Fondo de galería con capa blanca transparente y efecto parallax (fixed) */
    background: linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)), url('https://images.unsplash.com/photo-1518998053401-878c730e2f5d?q=80&w=2000&auto=format&fit=crop') center/cover fixed no-repeat;
}

/* --- SECCIÓN ARTISTAS (FONDO OSCURO) --- */
#artistas {
    /* Fondo oscuro de arte con efecto parallax */
    background: linear-gradient(rgba(20, 20, 20, 0.95), rgba(20, 20, 20, 0.95)), url('https://images.unsplash.com/photo-1547826039-bfc35e0f1ea8?q=80&w=2000&auto=format&fit=crop') center/cover fixed no-repeat;
}

#artistas > h2 {
    color: #fff; /* Título en blanco para que resalte en el fondo negro */
    margin-bottom: 40px;
}

/* --- LISTA DE ARTISTAS --- */
.lista-artistas {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tarjeta-artista {
    background: #fff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Sombra un poco más fuerte para destacar sobre el negro */
    text-align: left;
    transition: all 0.4s ease;
}

.tarjeta-artista:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.tarjeta-artista summary::-webkit-details-marker {
    display: none;
}

.nombre-artista {
    padding: 30px;
    font-size: 1.6rem;
    font-family: 'Playfair Display', serif;
    color: #111;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.nombre-artista::after {
    content: '+';
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 2rem;
    color: #b59b6d; 
}

details[open] .nombre-artista::after {
    content: '-';
    color: #000;
}

.contenido-artista {
    padding: 0 30px 40px 30px;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
    padding-top: 30px;
}

.biografia p {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 18px;
    line-height: 1.9;
    font-weight: 300;
}

/* --- GRID DE OBRAS --- */
.titulo-obras {
    margin: 40px 0 25px;
    font-size: 1.8rem;
    color: #000;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.obras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.obra-item {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #eee;
}

.obra-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.espacio-imagen {
    width: 100%;
    height: 380px;
    background-color: #f8f8f8;
    display: flex; 
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.espacio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block; 
}

.texto-temporal {
    color: #999;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: absolute; 
    z-index: 1;
}

.espacio-imagen img + .texto-temporal {
    display: none;
}

.info-obra h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #111;
}

.info-obra p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 4px;
    font-weight: 300;
}

.precio {
    margin-top: 15px;
    font-weight: 600 !important;
    color: #000 !important;
    font-size: 1rem !important;
}

/* --- FOOTER --- */
footer {
    background: #050505; 
    color: #888;
    padding: 80px 20px;
    text-align: center;
    font-size: 0.95rem;
}

footer p {
    margin-bottom: 8px;
    font-weight: 300;
}

footer strong {
    color: #fff;
    letter-spacing: 1px;
}

/* ========================================================= */
/* --- ADAPTACIÓN PARA MÓVILES Y TABLETS (RESPONSIVE) --- */
/* ========================================================= */
@media (max-width: 768px) {
    
    /* 1. Reducimos el aire gigante entre secciones */
    .seccion-padding {
        padding: 60px 15px; 
    }

    /* 2. El menú superior: ponemos el logo arriba y los enlaces debajo centrados */
    .header-principal {
        flex-direction: column;
        gap: 15px;
        padding: 1.5rem 5%;
    }

    .menu-navegacion ul {
        flex-wrap: wrap; 
        justify-content: center;
    }

    .menu-navegacion ul li {
        margin-left: 0;
        margin: 5px 12px; 
    }

    /* 3. Textos de la portada más pequeños para que no se salgan de la pantalla */
    #hero h1 {
        font-size: 2.8rem; 
        line-height: 1.2;
    }

    #hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* 4. Textos de la galería y artistas */
    .contenedor-texto h2 {
        font-size: 2rem;
    }

    .nombre-artista {
        font-size: 1.3rem;
        padding: 20px 15px;
    }

    .contenido-artista {
        padding: 0 15px 30px 15px;
    }

    /* 5. Altura de las fotos un poco más manejable en el teléfono */
    .espacio-imagen {
        height: 320px;
    }
    
    /* 6. En móviles quitamos el efecto "parallax" fijo porque los iPhone lo distorsionan */
    #hero, #about, #artistas {
        background-attachment: scroll;
    }
}