/* papel/css/cumpleanos/cumpleanos_7.css
   "Tropical" — layout premium corner-panel. */

@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Source+Sans+3:wght@400;600&display=swap');

.cp7-card {
    --cp-accent: #00b894;
    --cp-accent2: #fdcb6e;
    --cp-tinta: #2d6a4f;
    --cp-sub: #40916c;
    isolation: isolate;
    color: var(--cp-tinta);
    background: #d8f3dc;
}

.cp7-fondo { object-position: center; transform: scale(1.04); }
.cp7-esquina {
    position: absolute; top: 88px; left: 32px; z-index: 2;
    width: 320px; height: 480px;
    background: linear-gradient(160deg, rgba(255,255,255,0.94), rgba(255,255,255,0.78));
    border-radius: 0 80px 24px 24px; border: 1px solid #00b89488;
    box-shadow: 0 24px 50px rgba(0,0,0,0.14);
    pointer-events: none;
}
.cp7-titulo, .cp7-nombres, .cp7-divisor,
.cp7-fecha, .cp7-hora, .cp7-lugar, .cp7-mensaje {
    opacity: 0; animation: cp7In 640ms ease both;
}
.cp7-titulo {
    margin: 0; font-family: 'Source Sans 3', sans-serif;
    font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--cp-accent); animation-delay: 300ms;
}
.cp7-nombres {
    margin: 0; font-family: 'Lobster', serif;
    font-size: 42px; font-weight: 700; line-height: 1.02;
    color: var(--cp-tinta); animation-delay: 400ms;
}
.cp7-divisor {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; width: 76%; margin: 2px 0; animation-delay: 480ms;
}
.cp7-divisor span {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cp-accent), transparent);
}
.cp7-fecha {
    margin: 0; font-family: 'Lobster', serif;
    font-size: 19px; letter-spacing: 0.05em; animation-delay: 540ms;
}
.cp7-hora, .cp7-lugar {
    margin: 0; font-family: 'Source Sans 3', sans-serif;
    font-size: 12px; letter-spacing: 0.07em; color: var(--cp-sub);
}
.cp7-hora { animation-delay: 600ms; }
.cp7-lugar { animation-delay: 660ms; }
.cp7-mensaje {
    max-width: 280px; margin: 8px 0 0;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 15px; font-style: italic; line-height: 1.42;
    color: var(--cp-sub); animation-delay: 720ms;
}

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

.cp7-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%);
}








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

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

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

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





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

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

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

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

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

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

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

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