* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Archivo', sans-serif;
    background-color: #fbf4e8;
    color: #000000;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
}

h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 14px;
    color: #000000;
    font-weight: 400;
}

/* Secciones */
.section {
    margin-bottom: 50px;
}

h2 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Biografía */
.bio-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.bio-text {
    font-size: 12px;
    text-align: justify;
    line-height: 1.7;
}

.bio-text p {
    margin-bottom: 15px;
}

.bio-image {
    width: 100%;
    height: auto;
    background-color: #000000;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
}

.bio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Muestras */
.exhibitions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    font-size: 12px;
}

.exhibition-item {
    margin-bottom: 20px;
}

.exhibition-title {
    font-weight: 700;
    font-style: italic;
    margin-bottom: 3px;
}

/* Estilos para los enlaces de las exhibiciones */
a.exhibition-title {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
    transition: all 0.3s ease;
}

a.exhibition-title:hover {
    opacity: 0.7;
    text-decoration: underline;
}

a.exhibition-title:visited {
    color: inherit;
}

a.exhibition-title:active {
    color: inherit;
}

.exhibition-details {
    line-height: 1.6;
}

/* Obras */
.obras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.obra-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.obra-item:hover {
    opacity: 0.85;
}

.obra-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.1s ease-out;
    display: block;
    position: relative;
}

.lightbox-image.zoomed {
    cursor: zoom-out;
    max-width: none;
    max-height: none;
    width: auto;
    height: 180vh;
    z-index: 30;
}

.lightbox-info {
    margin-top: 20px;
    text-align: center;
    color: #ffffff;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-info.hidden {
    opacity: 0;
}

.lightbox-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.lightbox-details {
    font-size: 13px;
    color: #cccccc;
    line-height: 1.6;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
    transition: opacity 0.3s ease;
    user-select: none;
    z-index: 20;
}

.lightbox-nav:hover {
    opacity: 0.7;
}

.lightbox-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #cccccc;
}

.contact {
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 500;
}

.copyright {
    font-size: 10px;
    color: #666666;
}

/* Botón flotante de Instagram */
.instagram-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: visible;
    transition: transform 0.3s ease;
    z-index: 999;
    cursor: pointer;
    background: transparent;
}

.instagram-btn:hover {
    transform: scale(1.1);
}

.instagram-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .bio-section,
    .exhibitions {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 16px;
    }
}