/* Misma identidad visual que espaixocolata.simoncoll.com: fondo blanco, texto negro,
   titulares serif (Domaine Text en la web real -- Playfair Display aquí, no tenemos
   licencia de esa fuente), resto en Montserrat, botones negros sólidos en mayúsculas. */

body {
    font-family: "Montserrat", sans-serif;
    color: #000;
    background: #fff;
    margin: 0;
}

h1, h2, h3 {
    font-family: "Playfair Display", serif;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
}

h1 {
    font-size: 2rem;
}

.site-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.site-logo {
    text-decoration: none;
    color: #000;
    line-height: 1.1;
}

.site-logo-name {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
}

.site-logo-sub {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #444;
}

.site-logo-divider {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    border-left: 1px solid #ccc;
    padding-left: 0.75rem;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.visit-type-list {
    display: grid;
    gap: 1rem;
}

.visit-type-card {
    display: block;
    background: #fff;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e5e5;
    transition: border-color 0.15s;
}

.visit-type-card:hover {
    border-color: #000;
}

.visit-type-card h2 {
    font-size: 1.2rem;
}

fieldset {
    border: 1px solid #e5e5e5;
    margin: 1.5rem 0;
    padding: 1.25rem;
}

legend {
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
    padding: 0 0.5rem;
}

label {
    display: block;
    margin: 0.6rem 0;
    font-size: 0.95rem;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"], textarea {
    font-family: inherit;
    border: 1px solid #ccc;
    padding: 0.5rem;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
}

.session-option {
    display: inline-block;
    margin-right: 1.25rem;
    font-size: 0.9rem;
}

.tarifa-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tarifa-row span:first-child {
    flex: 1;
}

.tarifa-row input[type="number"] {
    width: 3.5rem;
    border: 1px solid #ccc;
    padding: 0.3rem;
}

.alert {
    background: #f5f5f5;
    color: #000;
    border-left: 3px solid #000;
    padding: 0.75rem 1rem;
}

.aforo-info {
    font-size: 0.85rem;
    color: #666;
}

.confirmacion dt {
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
    margin-top: 0.75rem;
}

.confirmacion dd {
    margin: 0.1rem 0 0 0;
    font-size: 1.05rem;
}

button {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.85rem 1.75rem;
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

button:hover {
    background: #222;
}

.admin-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.admin-table th, .admin-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e5e5;
}

.admin-table button {
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
}

.muted {
    color: #888;
    font-size: 0.85rem;
}

.admin-table tr.needs-review td {
    background: #fcebeb;
}

button:disabled {
    background: #888;
    cursor: wait;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-nav a {
    color: #000;
    text-decoration: none;
}

.admin-nav form {
    margin-left: auto;
}

.admin-nav button {
    padding: 0.35rem 0.9rem;
    font-size: 0.7rem;
}

.push-status {
    font-size: 0.8rem;
    white-space: nowrap;
}

.push-status .muted {
    white-space: normal;
}

.login-form button {
    margin-top: 0.5rem;
}

.filter-form {
    margin: 1rem 0;
}

.test-mode-banner {
    background: #b00020;
    color: #fff;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    padding: 0.4rem 1rem;
}

.admin-table td.attendance {
    font-size: 0.8rem;
}

.admin-table td.attendance.attended {
    font-weight: 600;
}

.filter-form button {
    padding: 0.55rem 1.2rem;
}

/* ---- Configurador (/Admin/Configuracion, /Admin/DiasEspeciales) ---- */

.container.container-admin {
    max-width: 1200px;
}

/* En pantallas estrechas las tablas del admin se desplazan de lado en vez de aplastarse. */
.container-admin .admin-table {
    display: block;
    overflow-x: auto;
}

.config-table td:first-child {
    min-width: 16rem;
}

select, input[type="number"], input[type="time"] {
    font-family: inherit;
    border: 1px solid #ccc;
    padding: 0.45rem;
    background: #fff;
    box-sizing: border-box;
}

input.wide {
    max-width: 420px;
}

input.narrow {
    width: 8rem;
}

input.tiny {
    width: 4.5rem;
}

.config-card p {
    margin: 0.4rem 0;
}

.config-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 0.75rem !important;
}

.config-links a {
    color: #000;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.config-table td {
    vertical-align: top;
}

.config-table td:first-child input[type="text"] {
    width: 100%;
}

.config-table input.narrow {
    width: 7rem;
}

.config-table input.tiny {
    width: 4.5rem;
}

.alert.alert-error {
    border-left-color: #b00020;
    background: #fcebeb;
}

.admin-table tr.row-error td {
    background: #fcebeb;
}

.field-error {
    color: #b00020;
    font-size: 0.8rem;
}

.config-table td.actions {
    white-space: nowrap;
}

.admin-table tr.inactive td {
    color: #999;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 1.25rem;
}

.inline-form label {
    margin: 0.3rem 0;
}

.inline-form.compact {
    gap: 0.3rem;
    margin-top: 0.3rem;
}

button.secondary {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

button.secondary:hover {
    background: #f0f0f0;
}

button.link-button {
    border: none;
    padding: 0 0.3rem;
    text-decoration: underline;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8rem;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: 0 1rem;
}

.month-grid label {
    text-transform: capitalize;
}

.mode-options label {
    margin: 0.35rem 0;
}

.config-form fieldset {
    margin-bottom: 1rem;
}
