:root {
    --bg: #fffaf1;
    --paper: #fff;
    --gold: #c9a646;
    --gold-soft: #f7dd9a;
    --gold-deep: #8b6424;
    --burgundy: #6a1020;
    --burgundy-soft: #8b2034;
    --ink: #3c0010;
    --muted: #7a5a4f;
    --max: 1180px;
    --radius: 30px;
    --img-civil: url('https://github.com/BlixDarkHorse/mya2026.galaxymanager.systems-by-LORD-BDH/blob/main/9.jpeg?raw=true')
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    color: var(--ink);
    background: radial-gradient(circle at 15% 8%, rgba(201, 166, 70, .2), transparent 28%), radial-gradient(circle at 85% 20%, rgba(106, 16, 32, .08), transparent 30%), linear-gradient(135deg, #fffdf7, #fff7e8 48%, #f6e4c5);
    overflow-x: hidden
}

body:before {
    content: "";
    position: fixed;
    inset: -20%;
    background-image: radial-gradient(circle, rgba(201, 166, 70, .45) 0 1px, transparent 2px);
    background-size: 120px 120px;
    animation: float 34s linear infinite;
    pointer-events: none;
    opacity: .48
}

@keyframes float {
    to {
        transform: translate(-80px, 90px)
    }
}

a {
    color: inherit
}

.page-shell {
    position: relative;
    z-index: 1
}

.top-nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    width: min(94vw, 900px);
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(201, 166, 70, .45);
    border-radius: 999px;
    background: rgba(255, 253, 247, .74);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 36px rgba(106, 16, 32, .12)
}

.top-nav a {
    text-decoration: none;
    color: var(--burgundy);
    font-family: Cinzel, serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 10px 12px;
    border-radius: 999px;
    white-space: nowrap
}

.top-nav a:hover {
    background: rgba(106, 16, 32, .08)
}

.hero {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 96px 20px 48px
}

.civil-card {
    width: min(100%, var(--max));
    min-height: 720px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(18px, 4vw, 46px);
    align-items: center;
    padding: clamp(18px, 3.2vw, 48px);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 250, 241, .92));
    box-shadow: 0 24px 70px rgba(106, 16, 32, .16);
    border: 1px solid rgba(201, 166, 70, .62);
    position: relative;
    overflow: hidden
}

.civil-card:before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 24px;
    border: 1px solid rgba(201, 166, 70, .7);
    pointer-events: none
}

.civil-card:after {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: 16px;
    border: 1px solid rgba(106, 16, 32, .12);
    pointer-events: none
}

.rings {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 132px;
    min-height: 72px;
    z-index: 8;
    display: grid;
    place-items: center
}

.rings img {
    width: 100%;
    filter: drop-shadow(0 10px 22px rgba(106, 16, 32, .18))
}

.rings span {
    display: none
}

.rings-empty {
    border: 1px solid rgba(201, 166, 70, .5);
    border-radius: 18px;
    background: rgba(255, 255, 255, .8);
    font-family: Cinzel, serif;
    color: var(--gold-deep);
    font-size: .7rem;
    letter-spacing: .14em
}

.rings-empty span {
    display: block
}

.civil-photo {
    min-height: 620px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(106, 16, 32, .12)), var(--img-civil), linear-gradient(135deg, #fff, #f3dfac 50%, #6a1020);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(201, 166, 70, .72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65), 0 20px 48px rgba(106, 16, 32, .14);
    position: relative;
    overflow: hidden
}

.civil-photo:after {
    content: "M&A";
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff8df;
    font-family: 'Pinyon Script', cursive;
    font-size: 2.1rem;
    background: radial-gradient(circle, #8b2034, #4a0712 72%);
    border: 2px solid rgba(247, 221, 154, .76)
}

.civil-content {
    text-align: center;
    position: relative;
    z-index: 3;
    padding: 20px
}

.eyebrow,
.section-sub {
    font-family: Cinzel, serif;
    color: var(--gold-deep);
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: .82rem;
    font-weight: 700
}

.script-title {
    font-family: 'Great Vibes', cursive;
    color: var(--burgundy);
    font-size: clamp(4.2rem, 9vw, 8rem);
    line-height: .86;
    margin: 0;
    text-shadow: 0 5px 18px rgba(201, 166, 70, .21)
}

.script-title span {
    font-family: 'Pinyon Script', cursive;
    color: var(--gold)
}

.intro,
.helper {
    max-width: 620px;
    margin: 22px auto;
    font-size: clamp(1.2rem, 2.4vw, 1.56rem);
    line-height: 1.35;
    color: var(--ink)
}

.date-block {
    margin: 28px auto;
    width: min(100%, 420px);
    padding: 18px;
    border-block: 1px solid rgba(201, 166, 70, .75);
    display: flex;
    justify-content: center;
    gap: 18px;
    align-items: center;
    font-family: Cinzel, serif;
    text-transform: uppercase;
    color: var(--burgundy);
    font-weight: 700
}

.day {
    font-size: clamp(3rem, 6vw, 4.8rem);
    color: var(--gold-deep);
    line-height: 1
}

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 28px auto;
    max-width: 650px
}

.mini-card,
.time-card,
.count-box {
    border: 1px solid rgba(201, 166, 70, .45);
    border-radius: 20px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 28px rgba(106, 16, 32, .08);
    text-align: center
}

.mini-card h3,
.time-card h3 {
    font-family: Cinzel, serif;
    font-size: .9rem;
    letter-spacing: .13em;
    color: var(--gold-deep);
    text-transform: uppercase;
    margin: 0 0 8px
}

.mini-card p,
.time-card p {
    font-size: 1.12rem;
    line-height: 1.25;
    margin: 0
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px
}

.btn {
    border: 0;
    cursor: pointer;
    text-decoration: none;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 19px;
    border-radius: 999px;
    font-family: Cinzel, serif;
    letter-spacing: .06em;
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-soft));
    box-shadow: 0 12px 28px rgba(106, 16, 32, .18)
}

.btn.gold {
    background: linear-gradient(135deg, #b88731, #efca76);
    color: #3c0010
}

.btn.ghost {
    background: rgba(255, 255, 255, .78);
    color: var(--burgundy);
    border: 1px solid rgba(201, 166, 70, .68);
    box-shadow: none
}

.section {
    width: min(100% - 34px, var(--max));
    margin: 0 auto 34px;
    padding: clamp(26px, 4vw, 48px);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(201, 166, 70, .56);
    box-shadow: 0 18px 50px rgba(106, 16, 32, .11);
    position: relative;
    z-index: 1;
    overflow: hidden
}

.section h2 {
    margin: 0 0 18px;
    text-align: center;
    color: var(--burgundy);
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 7vw, 5.4rem);
    font-weight: 400
}

.family-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    border: 1px solid rgba(201, 166, 70, .48);
    border-radius: 24px;
    padding: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 250, 241, .92))
}

.family-side {
    text-align: center
}

.family-side h3 {
    font-family: Cinzel, serif;
    color: var(--gold-deep);
    font-size: .92rem;
    letter-spacing: .12em;
    text-transform: uppercase
}

.family-side p {
    font-size: 1.32rem;
    line-height: 1.42
}

.family-divider {
    width: 1px;
    height: 140px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent)
}

.memory {
    font-style: italic;
    color: var(--burgundy)
}

.timeline,
.countdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 26px
}

.time {
    font-family: Cinzel, serif;
    color: var(--burgundy);
    font-size: 1.45rem;
    font-weight: 700
}

.quote-box {
    margin: 28px auto 0;
    max-width: 760px;
    text-align: center;
    border: 1px solid rgba(201, 166, 70, .45);
    border-radius: 24px;
    padding: 22px;
    background: linear-gradient(135deg, #fff, #fff6e5)
}

.quote-box p {
    font-size: 1.4rem;
    font-style: italic;
    margin: 0
}

.countdown {
    grid-template-columns: repeat(4, 1fr);
    max-width: 760px;
    margin-inline: auto
}

.count-box strong {
    display: block;
    font-family: Cinzel, serif;
    font-size: clamp(1.8rem, 5vw, 3.1rem);
    color: var(--burgundy)
}

.count-box span {
    font-family: Cinzel, serif;
    font-size: .7rem;
    letter-spacing: .12em;
    color: var(--gold-deep);
    text-transform: uppercase
}

.map-layout {
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    gap: 18px
}

.venue-info {
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(160deg, #fffaf1, #fff);
    color: var(--ink);
    border: 1px solid rgba(201, 166, 70, .58)
}

.venue-info h3 {
    font-family: Cinzel, serif;
    color: var(--burgundy);
    letter-spacing: .09em;
    text-transform: uppercase
}

.venue-info p {
    font-size: 1.13rem;
    line-height: 1.35
}

.map-box {
    min-height: 330px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(201, 166, 70, .6);
    background: #efe0bd
}

.map-box iframe {
    width: 100%;
    height: 100%;
    min-height: 330px;
    border: 0
}

.search-form {
    display: flex;
    gap: 12px;
    max-width: 760px;
    margin: 22px auto 0;
    align-items: center
}

.search-form input {
    min-height: 50px;
    flex: 1;
    border: 1px solid rgba(201, 166, 70, .75);
    border-radius: 999px;
    padding: 0 18px;
    font: 600 1.02rem 'Cormorant Garamond', serif;
    color: var(--burgundy);
    background: #fff;
    outline: none
}

.form-message {
    text-align: center;
    margin: 16px auto;
    font-weight: 700
}

.form-message.error {
    color: #ad2232
}

.form-message.ok {
    color: #477a2f
}

.ticket {
    margin: 28px auto 0;
    max-width: 820px;
    position: relative;
    border-radius: 28px;
    padding: 30px;
    background: linear-gradient(135deg, #fff 0 64%, #6a1020 64% 100%);
    border: 2px solid rgba(201, 166, 70, .76);
    box-shadow: 0 22px 50px rgba(106, 16, 32, .14);
    overflow: hidden
}

.ticket-main {
    max-width: 62%;
    text-align: left
}

.ticket h3 {
    font-family: Cinzel, serif;
    color: var(--gold-deep);
    letter-spacing: .14em;
    text-transform: uppercase
}

.ticket-name {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3.4rem, 8vw, 5.8rem);
    line-height: .9;
    color: var(--burgundy);
    margin: 12px 0
}

.ticket-info {
    font-size: 1.28rem;
    line-height: 1.25
}

.ticket-info strong {
    color: var(--gold-deep)
}

.ticket-seal {
    position: absolute;
    right: 40px;
    bottom: 36px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, #8b2034, #4a0712);
    color: var(--gold-soft);
    font-family: 'Pinyon Script', cursive;
    font-size: 2.3rem;
    border: 2px solid rgba(247, 221, 154, .75)
}

.confirm-box {
    margin-top: 20px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(201, 166, 70, .5);
    background: rgba(255, 255, 255, .74);
    max-width: 62%
}

.confirm-box label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px
}

.confirm-box select {
    min-height: 42px;
    border: 1px solid rgba(201, 166, 70, .72);
    border-radius: 12px;
    padding: 8px 12px;
    background: #fff;
    color: var(--burgundy);
    font-weight: 700
}

.confirm-status {
    margin-top: 12px;
    font-weight: 700;
    color: #477a2f
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0)
}

.floating-petal {
    position: fixed;
    top: -20px;
    width: 10px;
    height: 16px;
    border-radius: 80% 20% 80% 20%;
    background: linear-gradient(135deg, #fff, #c9a646);
    opacity: .72;
    z-index: 0;
    pointer-events: none;
    animation: fall linear forwards
}

@keyframes fall {
    to {
        transform: translate3d(var(--x), 105vh, 0) rotate(520deg);
        opacity: 0
    }
}

footer {
    color: var(--burgundy);
    text-align: center;
    padding: 24px 18px 46px;
    font-family: Cinzel, serif;
    letter-spacing: .08em;
    font-size: .75rem;
    opacity: .86
}

@media(max-width:970px) {

    .civil-card,
    .map-layout {
        grid-template-columns: 1fr
    }

    .civil-photo {
        min-height: 510px;
        order: 2
    }

    .civil-content {
        order: 1
    }

    .timeline {
        grid-template-columns: 1fr
    }

    .family-card {
        grid-template-columns: 1fr
    }

    .family-divider {
        width: 220px;
        height: 1px;
        margin: auto;
        background: linear-gradient(to right, transparent, var(--gold), transparent)
    }

    .ticket-main,
    .confirm-box {
        max-width: 100%
    }

    .ticket {
        background: linear-gradient(180deg, #fff 0 74%, #6a1020 74% 100%);
        padding-bottom: 158px
    }

    .ticket-seal {
        right: 26px;
        bottom: 24px
    }

    .rings {
        width: 96px;
        right: 18px;
        top: 18px
    }
}

@media(max-width:650px) {
    .top-nav {
        bottom: 12px;
        top: auto;
        width: min(94vw, 520px);
        overflow: auto;
        justify-content: flex-start
    }

    .hero {
        padding: 26px 14px 38px
    }

    .civil-card {
        padding: 14px
    }

    .civil-card:before {
        inset: 8px
    }

    .civil-photo {
        min-height: 360px
    }

    .mini-grid,
    .countdown {
        grid-template-columns: 1fr
    }

    .date-block {
        gap: 10px;
        padding: 12px 8px;
        font-size: .78rem
    }

    .section {
        width: min(100% - 20px, var(--max));
        padding: 24px 16px
    }

    .search-form {
        flex-direction: column
    }

    .search-form input,
    .search-form .btn {
        width: 100%
    }

    .ticket {
        padding: 22px 18px 144px
    }

    .ticket-name {
        font-size: 3.5rem
    }

    .ticket-seal {
        width: 86px;
        height: 86px;
        font-size: 1.8rem
    }

    .rings {
        width: 78px
    }
}

.next-event {

    margin: 50px auto 30px;

    max-width: 900px;

    text-align: center;

    padding: 40px 30px;

    border-radius: 28px;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, .85),
            rgba(255, 248, 235, .95));

    border: 1px solid rgba(201, 166, 70, .45);

    box-shadow:
        0 15px 40px rgba(106, 16, 32, .08);

}

.next-label {

    margin: 0;

    font-family: 'Cinzel', serif;

    font-size: .8rem;

    letter-spacing: .25em;

    text-transform: uppercase;

    color: #8b6424;

}

.next-event h2 {

    margin: 14px 0;

    font-family: 'Great Vibes', cursive;

    color: #6a1020;

    font-size: clamp(3rem, 7vw, 5rem);

    font-weight: 400;

}

.next-date {

    font-family: 'Cinzel', serif;

    color: #6a1020;

    font-size: 1.1rem;

    font-weight: 700;

    letter-spacing: .05em;

    line-height: 1.8;

    margin: 0 0 15px;

}

.next-text {

    max-width: 650px;

    margin: 0 auto 25px;

    font-size: 1.25rem;

    line-height: 1.4;

    color: #3c0010;

}

.next-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding: 14px 26px;

    text-decoration: none;

    border-radius: 999px;

    background:
        linear-gradient(135deg,
            #6a1020,
            #8b2034);

    color: white;

    font-family: 'Cinzel', serif;

    font-size: .82rem;

    font-weight: 700;

    letter-spacing: .08em;

    transition: .25s ease;

    box-shadow:
        0 10px 25px rgba(106, 16, 32, .18);

}

.next-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 16px 35px rgba(106, 16, 32, .22);

}

@media (max-width:650px) {

    .next-event {

        padding: 28px 18px;

    }

    .next-text {

        font-size: 1.1rem;

    }

}

/* =========================================================
   BLOQUE 9: Lógica del Sello BDH (Minifooter BDH)
   ========================================================= */
/* =========================================================
   FIRMA INFERIOR · BDH MICRO FOOTER
   PEGADA AL PIE DE LA INTERFAZ Y A LA IZQUIERDA
   ========================================================= */

.bdh-footer-bottom {
    width: 100%;
    margin: 0;
    padding: 0.45rem 0 0.35rem 0;
    /* Padding izquierdo en 0 para que pegue al borde */
    display: flex;
    justify-content: flex-start;
    /* Ancla los elementos a la izquierda */
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.58rem;
    line-height: 1.2;
    color: rgba(60, 0, 16, 0.55);
}

/* ---------------------------------------------------------
   COPYRIGHT
   --------------------------------------------------------- */

.footer-copy {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.footer-copy span {
    color: rgba(26, 23, 20, 0.75);
}

/* ---------------------------------------------------------
   EMOJI BDH
   --------------------------------------------------------- */

.bdh-emoji-opaco {
    opacity: 0.42;
    filter: grayscale(15%);
}

/* =========================================================
   FIRMA LORD BDH
   ========================================================= */

.bdh-signature-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.bdh-trigger {
    cursor: pointer;
    color: rgba(21, 21, 19, 0.863);
    transition: color 0.25s ease, text-shadow 0.25s ease;
    outline: none;
}

.bdh-trigger:hover {
    color: rgba(255, 0, 212, 0.82);
    text-shadow: 0 0 10px rgba(255, 0, 212, 0.35);
}

/* =========================================================
   FIRMA / BUBBLE
   ========================================================= */

.bdh-bubble {
    position: absolute;
    bottom: calc(100% + 9px);
    /* Se ajusta ligeramente el centro para que no se vea desfasado al estar tan a la izquierda */
    left: 0;
    transform: translateY(4px) scale(0.96);
    transform-origin: bottom left;

    opacity: 0;
    visibility: hidden;
    width: max-content;
    max-width: 280px;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;

    /* GLASS TRANSPARENTE */
    background: rgba(29, 28, 28, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(16, 15, 16, 0.28);
    box-shadow:
        0 8px 30px rgba(30, 29, 29, 0.28),
        0 0 18px rgba(26, 25, 26, 0.08);
    color: #4b4546;
    border: px solid rgba(201, 166, 70, .5);
    text-align: left;
    /* Alineado a la izquierda para coherencia */
    font-family: "Segoe UI", sans-serif;
    font-size: 0.55rem;
    line-height: 1.5;
    white-space: nowrap;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;

    z-index: 9999;
    pointer-events: none;
}

@media (max-width: 650px) {
    .bdh-bubble {
        /* 
         * Incrementa el vector Y de despegue. 
         * 75px compensa los 12px de separación del top-nav + el volumen de la barra + un margen limpio.
         */
        bottom: calc(100% + 75px);
        
        /* 
         * Refuerza la geometría de la animación para que visualmente 
         * siga brotando desde la esquina inferior izquierda donde reside su firma.
         */
        transform-origin: bottom left; 
    }
}
/* ---------------------------------------------------------
   ACTIVACIÓN NATIVA
   SIN JAVASCRIPT (Purgado el foco para evitar retención de clic)
   --------------------------------------------------------- */

.bdh-signature-wrapper:hover .bdh-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

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

@media (max-width: 700px) {
    .bdh-footer-bottom {
    padding: 0.45rem 0 0.35rem 0;
    /* Padding izquierdo en 0 para que pegue al borde */
    display: flex;
    justify-content: flex-start;
    /* Ancla los elementos a la izquierda */
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;    
}
    
/*{
        width: 100%;
        margin: 0;
        align-self: flex-start;
        /* Mantiene izquierda estricta */
        /*padding-bottom: 0;
        margin-bottom: 0;
       white-space: nowrap;
    }*/

    .footer-copy {
        justify-content: flex-start;
        /* Mantiene izquierda estricta */
        flex-wrap: wrap;
        white-space: nowrap;
        margin-bottom: 0;
    }
}

/* =========================================================
   PASE MAESTRO (INYECTADO POR BACKEND) Y MODO IMPRESIÓN
   ========================================================= */
.ticket-master {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    background: #fffdf7;
    border-radius: 28px;
    border: 2px solid rgba(201, 154, 66, 0.7);
    box-shadow: 0 24px 50px rgba(90, 15, 27, 0.18);
    overflow: hidden;
    margin: 20px auto;
    max-width: 850px;
}

.ticket-m-img {
    background: url('https://github.com/BlixDarkHorse/mya2026.galaxymanager.systems-by-LORD-BDH/blob/main/data/IMPRESO/1.jpg?raw=true') center/cover no-repeat;
    position: relative;
    min-height: 100%;
}

.ticket-m-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.ticket-m-info h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold-deep);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 12px;
    font-size: 0.9rem;
}

.ticket-m-name {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 6vw, 4.2rem);
    color: var(--burgundy);
    line-height: 0.9;
    margin: 0 0 20px;
}

.ticket-events {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(201, 154, 66, 0.4);
    border-bottom: 1px solid rgba(201, 154, 66, 0.4);
    margin-bottom: 20px;
}

.e-col h4 {
    font-family: 'Cinzel', serif;
    color: var(--burgundy);
    margin: 0 0 6px;
    font-size: 0.85rem;
}

.e-col p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--burgundy-ink);
}

.ticket-m-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.ticket-m-footer .details p {
    margin: 4px 0;
    font-size: 1.1rem;
}

.qr-box {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    background: #fff;
    padding: 6px;
    border: 1px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.qr-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-print-row {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

@media (max-width: 650px) {
    .ticket-master {
        grid-template-columns: 1fr;
    }
    .ticket-m-img {
        min-height: 280px;
    }
    .ticket-events {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* AISLAMIENTO PARA IMPRESIÓN (OCULTA LA UI INNECESARIA) */
@media print {
    body * {
        visibility: hidden;
    }
    #resultado, #resultado * {
        visibility: visible;
    }
    #resultado {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .ticket-master {
        box-shadow: none;
        border: 2px solid #000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .btn-print-row, .bdh-footer-bottom {
        display: none !important;
    }
}


/* =========================================================
   ENCABEZADO SUPERPUESTO (LORD BDH OVERLAY)
   ========================================================= */
/* =========================================================
   ENCABEZADO SUPERPUESTO (LORD BDH OVERLAY)
   ========================================================= */
.bdh-header-overlay {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100vw; 
    
    /* Altura dinámica: 250px en celular, escala suave, tope de 450px en PC */
    height: clamp(250px, 35vw, 450px); 
    
    /* Anclaje: top center asegura que las flores de arriba NUNCA se corten */
    background: url('https://github.com/BlixDarkHorse/mya2026.galaxymanager.systems-by-LORD-BDH/blob/main/8.png?raw=true') top center / cover no-repeat;
    
    /* HUNDIMIENTO FÁCTICO: Se va al fondo. La tarjeta y las letras quedan arriba */
    z-index: 89; 
    pointer-events: none; 
    
    /* El difuminado inferior para que se funda con tu color de fondo */
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}