/* papel/css/cumpleanos/cumpleanos_1.css
   "Confeti festivo" — layout premium side-right. */

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

.cp1-card {
    --cp-accent: #ff6b6b;
    --cp-accent2: #ffd93d;
    --cp-tinta: #2d3436;
    --cp-sub: #5a5a5a;
    isolation: isolate;
    color: var(--cp-tinta);
    background: #fff5f5;
}

.cp1-fondo { object-position: 32% center; transform: scale(1.04); filter: saturate(1.05); }
.cp1-titulo, .cp1-nombres, .cp1-divisor,
.cp1-fecha, .cp1-hora, .cp1-lugar, .cp1-mensaje {
    opacity: 0; animation: cp1In 640ms ease both;
}
.cp1-titulo {
    margin: 0; font-family: 'Nunito', sans-serif;
    font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--cp-accent); animation-delay: 300ms;
}
.cp1-nombres {
    margin: 0; font-family: 'Fredoka', serif;
    font-size: 42px; font-weight: 700; line-height: 1.02;
    color: var(--cp-tinta); animation-delay: 400ms;
}
.cp1-divisor {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; width: 76%; margin: 2px 0; animation-delay: 480ms;
}
.cp1-divisor span {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cp-accent), transparent);
}
.cp1-fecha {
    margin: 0; font-family: 'Fredoka', serif;
    font-size: 19px; letter-spacing: 0.05em; animation-delay: 540ms;
}
.cp1-hora, .cp1-lugar {
    margin: 0; font-family: 'Nunito', sans-serif;
    font-size: 12px; letter-spacing: 0.07em; color: var(--cp-sub);
}
.cp1-hora { animation-delay: 600ms; }
.cp1-lugar { animation-delay: 660ms; }
.cp1-mensaje {
    max-width: 280px; margin: 8px 0 0;
    font-family: 'Nunito', sans-serif;
    font-size: 15px; font-style: italic; line-height: 1.42;
    color: var(--cp-sub); animation-delay: 720ms;
}

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

.cp1-velo {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(255,255,255,0.82), rgba(255,255,255,0.08) 72%);
}








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

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

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

.cp1-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;
}





.cp1-titulo,
.cp1-nombres,
.cp1-fecha,
.cp1-hora,
.cp1-lugar,
.cp1-mensaje,
.cp1-divisor {
    position: relative;
    text-shadow: 0 2px 16px rgba(255,255,255,0.86), 0 0 1px rgba(255,255,255,0.7);
}

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

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

/* Segunda pasada premium: marco visible y textura de papel realista. */
.cp1-marco {
    position: absolute;
    inset: 26px;
    z-index: 3;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--cp1-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(--cp1-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(--cp1-metal, #d4af37) 30%, transparent),
        inset 0 0 34px color-mix(in srgb, var(--cp1-ink, #2d261c) 12%, transparent),
        0 18px 42px rgba(0, 0, 0, 0.10);
}

.cp1-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(--cp1-metal, #d4af37) 28%, transparent);
    border-radius: 18px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--cp1-bg, #fffaf2) 72%, rgba(255, 255, 255, 0.62)), color-mix(in srgb, var(--cp1-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;
}

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

.cp1-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;
}

.cp1-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;
}
