/* papel/css/cumpleanos/cumpleanos_20.css
   "Neon party" — layout premium neon-dark. */

@import url('https://fonts.googleapis.com/css2?family=Monoton&family=Rubik:wght@400;600&display=swap');

.cp20-card {
    --cp-accent: #ff006e;
    --cp-accent2: #00f5d4;
    --cp-tinta: #ffffff;
    --cp-sub: rgba(255,255,255,0.75);
    isolation: isolate;
    color: var(--cp-tinta);
    background: #0a0a0a;
}

.cp20-fondo { object-position: center; transform: scale(1.06); filter: brightness(0.55) saturate(1.2); }
.cp20-neon-borde {
    position: absolute; inset: 14px; z-index: 3;
    border: 2px solid #ff006e; box-shadow: inset 0 0 28px #00f5d444, 0 0 18px #ff006e55;
    pointer-events: none; border-radius: 6px;
}
.cp20-titulo, .cp20-nombres, .cp20-divisor,
.cp20-fecha, .cp20-hora, .cp20-lugar, .cp20-mensaje {
    opacity: 0; animation: cp20In 640ms ease both;
}
.cp20-titulo {
    margin: 0; font-family: 'Rubik', sans-serif;
    font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--cp-accent); animation-delay: 300ms;
}
.cp20-nombres {
    margin: 0; font-family: 'Monoton', serif;
    font-size: 32px; font-weight: 700; line-height: 1.02;
    color: var(--cp-tinta); animation-delay: 400ms;
}
.cp20-divisor {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; width: 76%; margin: 2px 0; animation-delay: 480ms;
}
.cp20-divisor span {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cp-accent), transparent);
}
.cp20-fecha {
    margin: 0; font-family: 'Monoton', serif;
    font-size: 19px; letter-spacing: 0.05em; animation-delay: 540ms;
}
.cp20-hora, .cp20-lugar {
    margin: 0; font-family: 'Rubik', sans-serif;
    font-size: 12px; letter-spacing: 0.07em; color: var(--cp-sub);
}
.cp20-hora { animation-delay: 600ms; }
.cp20-lugar { animation-delay: 660ms; }
.cp20-mensaje {
    max-width: 280px; margin: 8px 0 0;
    font-family: 'Rubik', sans-serif;
    font-size: 15px; font-style: italic; line-height: 1.42;
    color: var(--cp-sub); animation-delay: 720ms;
}

@keyframes cp20In {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
to { opacity: 1; transform: translate(-50%, 0); }
}
.cp20-card { overflow: hidden; }

.cp20-velo {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(8,12,20, 0.35), rgba(8,12,20,0.12) 78%);
}








.cp20-decor {
    position: absolute;
    z-index: 4;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.14));
    opacity: 0;
    animation: cp20DecorIn 900ms ease 160ms both, cp20Float 6s ease-in-out 1.1s infinite;
}

.cp20-decor--uno {
    left: -24px;
    top: 36px;
    width: 200px;
    --cp20-rot: -10deg;
    transform: rotate(-10deg);
}

.cp20-decor--dos {
    right: 12px;
    bottom: 20px;
    width: 150px;
    --cp20-rot: -6deg;
    transform: rotate(-6deg);
    animation-delay: 280ms, 1.1s;
    opacity: 0.88;
}

.cp20-contenido {
    position: absolute;
    z-index: 7;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 460px;
    background: transparent;
    right:30px;top:96px;width:266px;align-items:flex-end;text-align:center;padding:28px 20px;
}





.cp20-titulo,
.cp20-nombres,
.cp20-fecha,
.cp20-hora,
.cp20-lugar,
.cp20-mensaje,
.cp20-divisor {
    position: relative;
    text-shadow: 0 2px 14px rgba(0,0,0,0.34);
}

@keyframes cp20DecorIn {
    from { opacity: 0; translate: 0 14px; }
    to { opacity: 0.94; translate: 0 0; }
}

@keyframes cp20Float {
    0%, 100% { transform: translateY(0) rotate(var(--cp20-rot, -10deg)); }
    50% { transform: translateY(-10px) rotate(calc(var(--cp20-rot, -10deg) + 2deg)); }
}

/* Segunda pasada premium: marco visible y textura de papel realista. */
.cp20-marco {
    position: absolute;
    inset: 26px;
    z-index: 3;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--cp20-metal, #d4af37) 78%, transparent);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 30%, rgba(255, 255, 255, 0.10) 68%, transparent),
        linear-gradient(90deg, transparent, color-mix(in srgb, var(--cp20-metal, #d4af37) 10%, transparent), transparent);
    box-shadow:
        inset 0 0 0 6px rgba(255, 255, 255, 0.12),
        inset 0 0 0 7px color-mix(in srgb, var(--cp20-metal, #d4af37) 30%, transparent),
        inset 0 0 34px color-mix(in srgb, var(--cp20-ink, #2d261c) 12%, transparent),
        0 18px 42px rgba(0, 0, 0, 0.10);
}

.cp20-contenido::before {
    content: '';
    position: absolute;
    inset: -22px -18px;
    z-index: -1;
    width: auto;
    height: auto;
    left: auto;
    bottom: auto;
    transform: none;
    border: 1px solid color-mix(in srgb, var(--cp20-metal, #d4af37) 28%, transparent);
    border-radius: 18px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--cp20-bg, #fffaf2) 72%, rgba(255, 255, 255, 0.62)), color-mix(in srgb, var(--cp20-soft, #f4e8e0) 40%, transparent)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.20), transparent 46%, rgba(255, 255, 255, 0.10));
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12);
    opacity: 0.88;
    filter: none;
}

.cp20-decor {
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.18));
}

.cp20-decor--uno {
    left: auto;
    right: 32px;
    top: 30px;
    bottom: auto;
    width: 104px;
    max-width: 24%;
    transform: rotate(8deg);
    transform-origin: 100% 0;
    opacity: 0.86;
}

.cp20-decor--dos {
    right: auto;
    left: 32px;
    top: auto;
    bottom: 34px;
    width: 94px;
    max-width: 22%;
    transform: rotate(-7deg);
    transform-origin: 0 100%;
    opacity: 0.84;
}
