@import url('https://fonts.googleapis.com/css2?family=Mountains+of+Christmas:wght@700&display=swap');

:root {
    --bg-top: #091d14;
    --bg-bottom: #143626;
    --card-bg: rgba(20, 44, 32, 0.90);
    --gold: #f1c40f;
    --red: #c0392b;
    --red-hover: #a93226;
    --green: #1e8449;
    --green-hover: #196f3d;
}

body {
    background:
        radial-gradient(circle at 15% 20%, rgba(192, 57, 43, 0.22), transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(241, 196, 15, 0.16), transparent 40%),
        linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bottom) 100%) !important;
    background-attachment: fixed !important;
    position: relative;
    overflow-x: hidden;
}

/* Guirnalda superior de luces navideñas */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        #e74c3c 0 20px,
        #f1c40f 20px 40px,
        #2ecc71 40px 60px,
        #3498db 60px 80px
    );
    box-shadow: 0 2px 12px rgba(241, 196, 15, 0.6);
    z-index: 10;
    animation: luces 2.5s infinite alternate;
}

@keyframes luces {
    0% { filter: brightness(0.85); }
    100% { filter: brightness(1.35); }
}

h1, h2, h3 {
    font-family: 'Mountains of Christmas', cursive, system-ui;
    letter-spacing: 0.5px;
    color: #fdf2e9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.box, form, .card {
    background: var(--card-bg) !important;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(241, 196, 15, 0.30);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55) !important;
    position: relative;
    z-index: 2;
}

.header { position: relative; z-index: 2; }

.btn-login, form button[type="submit"] {
    background: linear-gradient(135deg, var(--red), #922b21) !important;
    border: 1px solid rgba(241, 196, 15, 0.4);
}
.btn-reg, .chat-form button {
    background: linear-gradient(135deg, var(--green), #145a32) !important;
    border: 1px solid rgba(241, 196, 15, 0.4);
}

#snow-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.avatar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(241, 196, 15, 0.65);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    vertical-align: middle;
    flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: 0.95rem; margin-right: 6px; }
.avatar-lg { width: 38px; height: 38px; font-size: 1.25rem; margin-right: 8px; }
.msg-author { display: inline-flex; align-items: center; }

/* Escalado tipográfico para alta legibilidad */
html {
    font-size: 19px;
}

body {
    line-height: 1.55;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }

label, p, div, span {
    font-size: 1.05rem;
}

input, textarea, select, button, .btn {
    font-size: 1.08rem !important;
    padding: 0.8rem 1rem !important;
}

.deseos-box {
    font-size: 1.12rem;
    line-height: 1.6;
    padding: 1.15rem !important;
}

.msg {
    font-size: 1.1rem;
    padding: 0.85rem 1.1rem !important;
}

.msg-meta {
    font-size: 0.95rem !important;
}

.day-divider span, small {
    font-size: 0.92rem !important;
}

.avatar-sm { width: 32px; height: 32px; font-size: 1.1rem; }
.avatar-lg { width: 44px; height: 44px; font-size: 1.45rem; }
