
:root {
    --bg-color: #121212;
    --primary-surface: #1E1E1E;
    --secondary-surface: #2C2C2C;
    --primary-text: #E0E0E0;
    --accent-color: #BB86FC;
    --link-color: #03DAC6;
}
body {
    background-color: var(--bg-color);
    color: var(--primary-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 1em;
    font-size: 16px;
    line-height: 1.6;
}
.container {
    max-width: 600px;
    margin: 2em auto;
    padding: 1em;
}
h1 {
    text-align: center;
    color: var(--accent-color);
}
p { text-align: center; margin-bottom: 1.5em; }
form {
    background-color: var(--primary-surface);
    padding: 2em;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1em;
    border: 1px solid var(--secondary-surface);
}
input, select, button {
    padding: 0.8em;
    border: 1px solid var(--secondary-surface);
    background-color: var(--secondary-surface);
    color: var(--primary-text);
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}
button {
    background-color: var(--accent-color);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}
button:hover { opacity: 0.8; }
a { color: var(--link-color); text-decoration: none; }
a:hover { text-decoration: underline; }
.mensaje {
    padding: 1em;
    background-color: var(--secondary-surface);
    border-left: 4px solid var(--accent-color);
    text-align: left;
}
.galeria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.foto-item img { width: 100%; height: auto; display: block; border-radius: 5px; }
@media (min-width: 768px) {
    .galeria-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}
/* --- Estilos para el Título del Evento --- */
.event-title {
    color: var(--primary-text); /* Color blanco o similar al texto principal */
    font-size: 1.8em; /* Tamaño de fuente grande, ajusta si quieres más o menos */
    text-align: center;
    margin-top: 0.5em; /* Espacio superior */
    margin-bottom: 1em; /* Espacio inferior */
    text-transform: uppercase; /* Para que se vea en mayúsculas */
    letter-spacing: 2px; /* Un poco de espacio entre letras */
}

/* Ajuste al h1 del formulario para diferenciarlo del título del evento */
h1:not(.event-title) {
    font-size: 1.4em;
    color: var(--accent-color); /* Para que el h1 del formulario sea de color acento */
    margin-top: 1.5em; /* Más espacio para separarlo del título del evento */
}
/* --- Estilos para el Logo en la Esquina --- */
.logo-esquina {
    position: absolute; /* Lo saca del flujo normal del documento */
    top: 15px;          /* 15px desde arriba */
    left: 15px;         /* 15px desde la izquierda */
    max-width: 60px;    /* Mucho más pequeño, ajústalo si quieres */
    height: auto;
}

/* --- Ajuste para el contenedor principal --- */
.container {
    max-width: 600px;
    margin: 0 auto; /* Lo dejamos centrado horizontalmente */
    padding: 2em;   /* Un poco más de padding para que respire en móvil */
}
/* --- Estilos para el Modal --- */
.modal-overlay {
    display: none; /* This is the key line. It hides the modal by default. */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex; /* We set display: flex here so that when we change it from none to flex in JS, it works as expected. */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--primary-surface);
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-imagen-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: var(--primary-text);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
