/* titles.css */

.title-page {
    padding-top: 50px; /* Espacio para el header fijo */
    background-color: var(--light);
}

.content-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem; /* Reducimos el margen inferior de 3rem a 1.5rem */
    padding-bottom: 0;     /* Eliminamos padding extra si lo hubiera */
}
.description-text {
    margin-bottom: 1rem;   /* Espacio pequeño antes de las fotos */
}

.content-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* --- GRID DE GALERÍA --- */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 0;        /* Quitamos cualquier espacio superior del grid */
    padding-bottom: 2rem;
}

.gallery-item {
    break-inside: avoid;    /* Evita que una foto se parta entre dos columnas */
    display: block;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-item img {
    width: 100% !important;   /* Ocupa todo el ancho de la columna */
    height: auto !important;  /* ¡ESTO evita que se estiren! La altura será la natural */
    display: block;
    object-fit: contain;      /* Asegura que se vea la foto íntegra */
}
/* Control de fotos Verticales (ocupan 2 filas) */
.gallery-item.vertical {
    grid-row: span 2;
}

/* Control de fotos Horizontales (ocupan 2 columnas en pantallas grandes) */
.gallery-item.horizontal {
    grid-column: span 1;
}

@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- BOTÓN FINAL --- */
.action-footer {
    text-align: center;
    padding: 5rem 0;
}

/* Ajuste móvil */
/* Móviles: 1 columna (se verán a tamaño completo de pantalla) */
@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
        padding: 1rem;
    }
}
    .gallery-item.vertical, .gallery-item.horizontal {
        grid-row: span 1;
        grid-column: span 1;
    }
    .gallery-item img {
        height: 400px; /* En móvil todas se ven grandes */
    }
}

.event-detail {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.event-detail h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.event-meta {
    color: #555555;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.event-description p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.event-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.event-gallery img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.event-buy {
    margin-bottom: 3rem;
}

/* Header container */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Logo a la izquierda, menú a la derecha */
    padding: 1rem 2rem;
    background-color: #ffffff;
}

/* Logo */
.header-container .logo a {
    text-decoration: none;
    color: #1C1C1C;
    font-weight: 600;
    font-size: 1.2rem;
}

/* Back button */
.back-btn {
    display: none; /* solo se muestra en móvil */
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border: 1px solid #1C1C1C;
    border-radius: 6px;
    margin-left: 1rem;
    color: #1C1C1C;
}

/* Navegación */
nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links li a {
    text-decoration: none;
    color: #1C1C1C;
    font-weight: 500;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #1C1C1C;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 2rem;
        background: #ffffff;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .back-btn {
        display: inline-block;
    }
}
