/* ============================================================
   Selah — estilos globales
   Responsive: mobile-first tweaks + centered layout on desktop
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: #eef2f7;
    margin: 0;
    padding: 0;
}

h1 {
    background: #1f2a44;
    color: #ffffff;
    padding: 20px;
    margin: 0;
    font-size: clamp(20px, 4vw, 28px);
    line-height: 1.3;
}

/* Barra de marca (nombre del centro de convenciones) por locación.
   Estilo fijo/oscuro a propósito -- el color de fondo de la página
   lo elige cada locación libremente, así que el nombre necesita un
   fondo propio para seguir siendo legible sin importar qué color
   hayan escogido. */
.selah-marca-banner {
    background: #1f2a44;
    color: #ffffff;
    text-align: center;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.3px;
}

h2 {
    color: #2c3e50;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px;
}

.container.narrow {
    max-width: 560px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

button {
    width: 100%;
    padding: 16px;
    margin: 10px 0;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    background: #3498db;
    color: white;
    cursor: pointer;
    font-family: inherit;
}

button:hover {
    background: #2980b9;
}

input, select, textarea {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
}

textarea {
    resize: vertical;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
}

/* ---- Desktop: give breathing room / avoid overly-wide single columns ---- */
@media (min-width: 700px) {
    .container {
        padding: 40px 32px;
    }

    button {
        width: auto;
        padding: 14px 26px;
    }

    button.full,
    form button[type="submit"],
    .card button {
        width: 100%;
    }
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    .container {
        padding: 16px;
    }

    h1 {
        padding: 16px;
        font-size: 20px;
    }

    .card {
        padding: 16px;
    }

    button {
        font-size: 16px;
        padding: 14px;
    }

    input, select, textarea {
        font-size: 16px;
        padding: 12px;
    }

    table th, table td {
        padding: 8px 10px !important;
        font-size: 14px;
    }
}

/* ============================================================
   Barra de "evento activo" — visible en las páginas operativas
   para que siempre quede claro bajo qué evento se está reservando.
   Todo el bloque es un solo <a> a eventos.php (texto = enlace, sin
   "Cambiar evento" aparte).
   ============================================================ */
.evento-titlebar,
.evento-titlebar:link,
.evento-titlebar:visited{
    display:block;
    background:#1f2a44;
    color:#ffffff;
    font-weight:bold;
    padding:10px 20px;
    margin:0 0 18px;
    border-radius:8px;
    text-decoration:none;
    font-size:14px;
    transition:background 0.15s;
}

.evento-titlebar:hover,
.evento-titlebar:active{
    background:#28345a;
    color:#ffffff;
    text-decoration:none;
}

.evento-titlebar strong{
    color:#ffffff;
}

.evento-titlebar .chevron{
    float:right;
    opacity:0.55;
}

.evento-titlebar.evento-titlebar-vacio,
.evento-titlebar.evento-titlebar-vacio:link,
.evento-titlebar.evento-titlebar-vacio:visited{
    background:#7a2e28;
    color:#ffe1dc;
}

.evento-titlebar.evento-titlebar-vacio:hover,
.evento-titlebar.evento-titlebar-vacio:active{
    background:#8f372f;
    color:#ffe1dc;
}

/* Variante para vivir DENTRO de la barra azul superior de index.php, en
   vez de como su propia franja separada debajo. */
.topbar .evento-titlebar,
.topbar .evento-titlebar:link,
.topbar .evento-titlebar:visited{
    background:transparent;
    color:#ffffff;
    font-weight:bold;
    padding:4px 10px;
    margin:0;
    border-radius:6px;
    border:1px solid rgba(255,255,255,0.35);
}

.topbar .evento-titlebar:hover,
.topbar .evento-titlebar:active{
    background:rgba(255,255,255,0.12);
    color:#ffffff;
}

.topbar .evento-titlebar.evento-titlebar-vacio,
.topbar .evento-titlebar.evento-titlebar-vacio:link,
.topbar .evento-titlebar.evento-titlebar-vacio:visited{
    border-color:rgba(255,150,140,0.6);
    color:#ffcac2;
}

@media (max-width:620px){
    .topbar .evento-titlebar{
        order:3;
        flex-basis:100%;
        text-align:center;
    }
}
