body {
    background-color: #f8f5f2;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wedding-title {
    font-family: "Georgia", "Times New Roman", serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 1.4rem;
}

.wedding-card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.wedding-card .card-body {
    padding: 2.25rem 2.5rem;
}

@media (max-width: 576px) {
    .wedding-card .card-body {
        padding: 1.75rem 1.5rem;
    }
}

.monospace {
    font-family: monospace, "Courier New", Courier, monospace;
}

.text-justify {
    text-align: justify;
}

/* Fondo vaporwave / synthwave con rejilla y neones */
body.vaporwave-bg {
    min-height: 100vh;
    margin: 0;
    /* Fondo general claro con texto ligeramente oscuro */
    background-color: #fdfbff;
    color: #241638;
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

body.vaporwave-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    /* Fondo azul muy claro con fundido suave hacia blanco */
    background:
        radial-gradient(circle at center,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.99) 38%,
            rgba(240, 247, 255, 0.98) 62%,
            rgba(220, 236, 255, 0.96) 80%,
            rgba(204, 228, 255, 0.94) 100%),
        radial-gradient(circle at top,
            #ffffff 0%,
            #f4f9ff 30%,
            #e2f0ff 55%,
            #c7e2ff 78%,
            #b2d7ff 100%);
    background-size: cover;
    background-position: center;
}

body.vaporwave-bg::after {
    content: "";
    position: fixed;
    left: -10%;
    right: -10%;
    bottom: -5%;
    top: 40%;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(0, 255, 255, 0.45) 1px, transparent 1px),
        linear-gradient(to top, rgba(255, 0, 255, 0.5) 1px, transparent 1px);
    background-size: 70px 70px;
    background-position: 0 0, 0 0;
    transform-origin: center top;
    transform: perspective(700px) rotateX(72deg);
    opacity: 0.55;
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.35);
    animation: gridMove 28s linear infinite;
}

/* Halo de neón en el horizonte */
.vaporwave-horizon {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 40vh;
    height: 5vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center,
                rgba(255, 255, 255, 0.4) 0%,
                hsla(200, 100%, 50%, 0.45) 22%,
                rgba(0, 255, 255, 0.0) 68%);
    filter: blur(3px);
    opacity: 0.45;
    /* Sol estático y más suave para no molestar la lectura */
}

/* Contenedor principal con efecto cristal */
body.vaporwave-bg .container {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    background: transparent;
    border-radius: 0.75rem;
    padding: 1.75rem 1.25rem;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

body.vaporwave-bg .wedding-title {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: #CCC 2px 2px 4px;
    color: #222;
    /* text-shadow:
        0 0 8px rgba(255, 0, 255, 0.9),
        0 0 18px rgba(0, 255, 255, 0.75),
        0 0 32px rgba(255, 255, 255, 0.6); */
}

body.vaporwave-bg footer {
    color: #6d5c88;
}

/* Ajusta los textos muted/secundarios para fondo claro */
body.vaporwave-bg .text-muted,
body.vaporwave-bg .text-secondary,
body.vaporwave-bg .text-dark {
    color: #6b5a85 !important;
}

/* Bocadillo de conversación con avatar */
.bocadillo {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.bocadillo-avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    /* background: #e0d7ff;*/
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 6px 14px rgba(0, 0, 0, 0.12); */
}

.bocadillo-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bocadillo-contenido {
    position: relative;
    background: #ffffff;
    font-family: monospace;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border: 4px solid #a7a7a766;
}

.bocadillo-contenido::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 14px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-left: 4px solid #a7a7a766;
    border-bottom: 4px solid #a7a7a766;
    transform: rotate(45deg);
}

.bocadillo p {
    margin-bottom: 0.4rem;
}

.bocadillo p:last-child {
    margin-bottom: 0;
}

.hidden {
    display: none !important;
}

/* Animación para el párrafo del Bizum en el resumen */
.psst-caja {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    transition: opacity 1s ease, max-height 1s ease, transform 1s ease;
}

.psst-caja.psst-visible {
    max-height: 800px;
    opacity: 1;
    transform: translateY(0);
}

@keyframes skyShift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 100%; }
}

@keyframes gridMove {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 260px, 0 260px; }
}
