/* Paleta de colores - Estética Japandi / Nórdica Orgánica */
:root {
    --bg-color: #F7F5F0; 
    --text-dark: #2C2A28; 
    --text-light: #7A756D; 
    --accent: #B8A89A; 
    --white: #FFFFFF;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Georgia', serif;
    font-weight: 400;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--text-dark);
}

/* ==========================================
   NAVEGACIÓN Y CABECERA (GLOBAL)
   ========================================== */
header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.subpagina-header {
    position: relative;
    padding: 2rem 5% 1rem 5%;
    background-color: var(--bg-color);
}

.logo {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.nav-volver a {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-volver a:hover {
    color: var(--text-light);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
}

nav ul li a {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--text-light);
}

/* Botón Menú Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ==========================================
   SECCIÓN HERO (PÁGINA PRINCIPAL)
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding: 8rem 4rem 4rem 5%;
    max-width: 600px;
    z-index: 2;
}

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

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1.3;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem 2rem;
}

.hero-image img {
    width: 100%;
    height: 100%;
    max-height: 85vh;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ==========================================
   CATÁLOGO / COLECCIONES (PÁGINA PRINCIPAL)
   ========================================== */
.collection {
    padding: 8rem 5%;
    background-color: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.grid-catalog {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.sculpture-card {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.sculpture-card:hover {
    opacity: 0.85;
}

.sculpture-card a {
    display: block;
}

.image-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: var(--bg-color);
    margin-bottom: 1rem;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.sculpture-card:hover .image-wrapper img {
    transform: scale(1.03);
}

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

.sculpture-info h3 {
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin: 0;
}

/* ==========================================
   ESTILOS SUBPÁGINAS (.obra-detalle)
   ========================================== */
.obra-detalle {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 5% 4rem 5%;
}

.obra-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem auto;
}

.obra-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.obra-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.obra-meta {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 1rem 0;
    margin-top: 1.5rem;
}

/* Galería de la obra */
.obra-galeria {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.obra-galeria img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    background-color: var(--white);
    display: block;
}

.obra-galeria .img-destacada {
    grid-column: 1 / -1;
    max-height: 650px;
    object-fit: cover;
}

/* Opciones de Colores y Tamaños */
.opciones {
    display: flex;
    justify-content: center;
    gap: 4rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.opcion-detalle {
    text-align: center;
    max-width: 380px;
}

.opcion-titulo {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.opcion-detalle img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}

.opciones-nota {
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
}

/* ==========================================
   FOOTER UNIFICADO
   ========================================== */
footer {
    background-color: #282624;
    color: #FFFFFF;
    padding: 4.5rem 5% 3rem 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-top-link {
    margin-bottom: 2.5rem;
}

.footer-top-link a {
    color: #8E8982;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.footer-top-link a:hover {
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #FFFFFF;
    margin-bottom: 1.2rem;
}

.footer-brand img {
    max-height: 48px;
    width: auto;
}

.footer-cta {
    font-family: 'Georgia', serif;
    font-size: clamp(0.9rem, 3.8vw, 1.4rem);
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.footer-contact-info {
    margin-bottom: 2.5rem;
}

.footer-contact-info p {
    font-size: 0.95rem;
    color: #8E8982;
    margin: 0.3rem 0;
    line-height: 1.6;
}

.footer-contact-info a {
    color: #8E8982;
    transition: color 0.3s;
}

.footer-contact-info a:hover {
    color: #FFFFFF;
}

.footer-copyright p {
    color: #68635C;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* ==========================================
   ADAPTACIÓN RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .grid-catalog { grid-template-columns: repeat(2, 1fr); }
    .hero-content { padding: 8rem 2rem 4rem 4%; }
}

@media (max-width: 768px) {
    header, .subpagina-header {
        padding: 1rem 4%;
        position: relative;
        background-color: var(--bg-color);
        border-bottom: 1px solid rgba(0,0,0,0.05);
        gap: 10px;
    }

    .logo {
        font-size: 1.25rem;
        gap: 8px;
    }

    .logo img {
        height: 32px;
    }

    .nav-volver a {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-color);
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        transition: right 0.4s ease-in-out;
        z-index: 99;
    }

    nav ul.active {
        right: 0;
    }

    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .hero {
        flex-direction: column-reverse;
        height: auto;
        min-height: auto;
        padding-top: 5rem;
    }

    .hero-image {
        width: 100%;
        height: auto;
        padding: 1rem 5%;
        flex: none;
    }

    .hero-image img {
        height: auto;
        max-height: 55vh;
        object-fit: contain;
    }

    .hero-content {
        padding: 2rem 5% 4rem 5%;
        text-align: center;
        max-width: 100%;
        flex: none;
    }

    .hero h1 { font-size: 2.2rem; }

    .collection { padding: 4rem 5%; }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
        line-height: 1.25;
    }

    /* Ajustes móviles para subpáginas */
    .obra-detalle { padding-top: 2rem; }
    .obra-galeria { grid-template-columns: 1fr; }
    .obra-galeria .img-destacada { grid-column: span 1; }
    .opciones { flex-direction: column; align-items: center; gap: 2rem; }
}

@media (max-width: 600px) {
    .grid-catalog { grid-template-columns: 1fr; }
    .image-wrapper { height: 320px; }
    .section-header h2 { font-size: 1.4rem; }
    .footer-cta { font-size: 0.95rem; }
}