:root {
    /* Core EbeneCenter palette: primary = brand/action, secondary = contrast only. */
    --primary: #003d50;
    --primary-hover: #00536b;
    --primary-active: #002c3a;
    --accent: #0b6f8d;
    --secondary: #ffffff;
    --tertiary: #dcebf0;
    --quaternary: #b7d0d9;
    --surface: #ffffff;
    --surface-soft: #f1f6f8;
    --text-muted: #526b74;

    --font-family-base: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-weight-thin: 100;
    --font-weight-xlight: 200;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    --font-weight-ultra: 950;
}

body {
    font-family: var(--font-family-base), sans-serif;
    font-style: normal;
    font-weight: var(--font-weight-regular);
    color: var(--primary);
    background-color: var(--surface-soft);
    padding-right: 0 !important;
}

.ec-guest-header {
    min-height: 10% !important;
}

.page {
    min-height: 85%;
}

.footer {
    min-height: 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: var(--primary);
}

.footer div, .footer a {
    color: var(--secondary);
    text-align: center;
    display: flex;
    justify-content: center;
    font-size: 13px;
    width: fit-content;
    font-weight: var(--font-weight-medium);
}

.footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Nombres de personas: se guardan en mayúsculas (decisión 105) y así se ven al escribirlos. */
.ec-uppercase {
    text-transform: uppercase;
}

/* Campos de la nota pastoral (PastoralNoteType). */
.form-control::placeholder {
    color: var(--primary);
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
}

/* Logo del equipo (decisión 111): negro en modo claro, blanco en modo oscuro; con una sola versión, placa que contraste. */
.ec-avatar.ec-team-logo { display: grid; place-items: center; overflow: hidden; padding: 4px; background: transparent; }
.ec-team-logo img { width: 100%; height: 100%; object-fit: contain; }
.ec-team-logo .ec-team-logo__white { display: none; }
.ec-avatar.ec-team-logo:not(.has-black) { background: #0d2229; }
.ec-team-logo:not(.has-black) .ec-team-logo__white { display: block; }
[data-theme="dark"] .ec-team-logo.has-white .ec-team-logo__white { display: block; }
[data-theme="dark"] .ec-team-logo.has-white .ec-team-logo__black { display: none; }
[data-theme="dark"] .ec-avatar.ec-team-logo.has-black:not(.has-white) { background: #ffffff; }

/* En móvil los campos necesitan 16px como mínimo: con menos, iOS amplía la página al enfocarlos. */
@media (max-width: 991px) {
    input,
    select,
    textarea {
        font-size: max(16px, 1em) !important;
    }
}