/* =========================================================
   MOMENTOS - BRANDING FASE 2.5
   ========================================================= */

/* =========================================================
   VARIABLES DE CADA EVENTO
   ========================================================= */

.event-branded-page {
    --event-background: #f5f2ec;
    --event-accent: #171717;
    --event-accent-text: #ffffff;

    background:
        var(--event-background);
}

.event-branded-page .btn:not(.danger) {
    background:
        var(--event-accent);

    color:
        var(--event-accent-text);
}

.event-branded-page .btn.secondary {
    border:
        1px solid
        color-mix(
            in srgb,
            var(--event-accent) 22%,
            transparent
        );

    background:
        color-mix(
            in srgb,
            var(--event-accent) 10%,
            #ffffff
        );

    color:
        var(--text);
}


/* =========================================================
   TIPOGRAFÍAS
   ========================================================= */

.font-modern h1,
.font-modern h2,
.font-modern .brand-title {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        sans-serif;
}

.font-serif h1,
.font-serif h2,
.font-serif .brand-title {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 500;
}

.font-bold h1,
.font-bold h2,
.font-bold .brand-title {
    font-family:
        Impact,
        Haettenschweiler,
        "Arial Narrow Bold",
        sans-serif;

    text-transform: uppercase;

    letter-spacing: 0.01em;
}


/* =========================================================
   PÁGINA DEL INVITADO
   ========================================================= */

.event-brand-card {
    overflow: hidden;

    padding-top: 0;
}

.event-brand-hero {
    position: relative;

    min-height: 180px;

    margin:
        0
        -30px
        26px;

    display: grid;
    place-items: center;

    overflow: hidden;

    background:
        color-mix(
            in srgb,
            var(--event-accent) 10%,
            var(--event-background)
        );
}

.event-brand-hero.has-cover {
    min-height: 260px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.event-brand-hero.has-cover::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.26)
        );
}

.event-brand-logo {
    position: relative;
    z-index: 2;

    display: block;

    max-width: min(250px, 68%);
    max-height: 110px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 8px 22px
            rgba(0, 0, 0, 0.18)
        );
}

.event-brand-hero.has-cover .event-brand-logo {
    max-height: 125px;
}

.event-welcome {
    max-width: 520px;

    margin:
        0 auto 22px;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.55;
}

.event-branded-page .upload-box {
    border-color:
        color-mix(
            in srgb,
            var(--event-accent) 28%,
            #d7d0c5
        );
}


/* =========================================================
   ÁLBUM PERSONALIZADO
   ========================================================= */

.album-brand-hero {
    position: relative;

    min-height: 250px;

    margin-bottom: 26px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border-radius: 24px;

    background:
        color-mix(
            in srgb,
            var(--event-accent) 10%,
            var(--event-background)
        );
}

.album-brand-hero.has-cover {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.album-brand-hero.has-cover::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        rgba(0, 0, 0, 0.22);
}

.album-brand-logo {
    position: relative;
    z-index: 2;

    max-width: min(300px, 70%);
    max-height: 130px;

    object-fit: contain;
}

.album-welcome {
    max-width: 680px;

    margin:
        -10px auto 22px;

    text-align: center;

    color: var(--muted);

    line-height: 1.6;
}


/* =========================================================
   EDITOR DE BRANDING
   ========================================================= */

.branding-section {
    margin-top: 4px;

    padding-top: 22px;

    border-top:
        1px solid var(--line);
}

.branding-section-title {
    margin-bottom: 4px;

    font-size: 18px;
}

.branding-section-copy {
    margin-top: 0;
}

.form-card textarea,
.form-card input[type="color"],
.form-card input[type="file"] {
    width: 100%;
}

.form-card textarea {
    min-height: 96px;
}

.color-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.color-field {
    display: grid;
    gap: 8px;
}

.color-input-row {
    display: flex;
    align-items: center;

    gap: 10px;
}

.color-input-row input[type="color"] {
    width: 58px;
    height: 44px;

    padding: 3px;

    border:
        1px solid var(--line);

    border-radius: 12px;

    background: #ffffff;
}

.color-code {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;

    font-size: 13px;

    color: var(--muted);
}

.checkbox-row {
    display: flex !important;
    align-items: center;

    grid-template-columns: none !important;

    gap: 9px !important;

    font-weight: 650 !important;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
}

.brand-file-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.brand-file-card {
    display: grid;
    gap: 10px;

    padding: 14px;

    border:
        1px solid var(--line);

    border-radius: 16px;
}

.brand-preview {
    min-height: 130px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border-radius: 12px;

    background: #f4f1eb;
}

.brand-preview img {
    display: block;

    width: 100%;
    height: 150px;

    object-fit: contain;
}

.brand-preview.cover img {
    object-fit: cover;
}

.brand-preview-empty {
    padding: 18px;

    text-align: center;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {
    .event-brand-hero {
        margin:
            0
            -22px
            22px;
    }

    .color-grid,
    .brand-file-grid {
        grid-template-columns: 1fr;
    }
}
