/* papel/css/aniversario/aniversario_28.css
   "Rosas Doradas" — Medallon rosas doradas con anillo botanico. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@500;600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

.aniv28-card {
    --aniv28-c1: #8a3848;
    --aniv28-c2: #d4a840;
    --aniv28-tinta: #3a1828;
    --aniv28-sub: #3a1828;
    --aniv28-metal: #b8944f;
    --aniv28-bg: #fdf8f6;
    isolation: isolate;
    color: var(--aniv28-tinta);
    background: var(--aniv28-bg);
}

.aniv28-fondo {
    object-position: center center;
    transform: scale(1.05);
    filter: saturate(0.98) contrast(1.04);
}

.aniv28-medallon {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 340px;
    height: 340px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 252, 248, 0.94), rgba(255, 250, 244, 0.88));
    border: 2px solid rgba(184, 148, 79, 0.42);
    box-shadow:
        0 24px 50px rgba(58, 24, 40, 0.14),
        inset 0 0 0 10px rgba(255, 255, 255, 0.42);
}

.aniv28-titulo,
.aniv28-nombres,
.aniv28-divisor,
.aniv28-fecha,
.aniv28-hora,
.aniv28-lugar,
.aniv28-mensaje {
    opacity: 0;
    animation: aniv28Texto 660ms ease both;
}

.aniv28-titulo {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 8px 18px;
    font-family: 'Cormorant Infant', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--aniv28-c1);
    background: #ffffff;
    border: 2px solid var(--aniv28-c1);
    border-radius: 3px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 4px 14px rgba(58, 24, 40, 0.14);
    text-shadow: none;
    animation-delay: 280ms;
}

.aniv28-nombres {
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: 100%;
    font-family: 'Libre Baskerville', 'Cormorant Garamond', serif;
    font-size: clamp(30px, 7.2vw, 38px);
    font-weight: 700;
    line-height: 1.06;
    color: var(--aniv28-tinta);
    text-shadow:
        0 1px 0 rgba(255, 252, 248, 0.98),
        0 3px 16px rgba(184, 148, 79, 0.2),
        0 1px 5px rgba(58, 24, 40, 0.28);
    animation-delay: 380ms;
}

.aniv28-divisor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 76%;
    margin: 2px 0;
    position: relative;
    z-index: 2;
    animation-delay: 460ms;
}

.aniv28-divisor span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--aniv28-c1), transparent);
}

.aniv28-corazon {
    width: 10px;
    height: 10px;
    display: block;
    background: var(--aniv28-c1);
    transform: rotate(45deg);
    flex: 0 0 auto;
}

.aniv28-fecha {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 5px 14px;
    font-family: 'Libre Baskerville', serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--aniv28-tinta);
    background: #fdf8f6;
    border: 1px solid rgba(184, 148, 79, 0.38);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(58, 24, 40, 0.1);
    text-shadow: none;
    animation-delay: 540ms;
}

.aniv28-hora,
.aniv28-lugar {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin: 0;
    padding: 5px 14px;
    font-family: 'Cormorant Infant', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--aniv28-tinta);
    background: #fdf8f6;
    border: 1px solid rgba(138, 56, 72, 0.34);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(58, 24, 40, 0.1);
    text-shadow: none;
}

.aniv28-hora { animation-delay: 600ms; }
.aniv28-lugar { animation-delay: 660ms; max-width: 250px; }

.aniv28-mensaje {
    position: relative;
    z-index: 3;
    max-width: 272px;
    margin: 8px 0 0;
    padding: 14px 16px;
    font-family: 'Libre Baskerville', 'Cormorant Garamond', serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.52;
    color: var(--aniv28-tinta);
    background: #ffffff;
    border: 2px solid rgba(138, 56, 72, 0.42);
    border-left: 5px solid var(--aniv28-c1);
    border-radius: 0 8px 8px 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 8px 22px rgba(58, 24, 40, 0.18);
    text-shadow: none;
    animation-delay: 740ms;
}

@keyframes aniv28Texto {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.aniv28-card { overflow: hidden; }

.aniv28-velo {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 84% 72% at 50% 42%, rgba(253, 248, 246, 0.86), transparent 72%),
        linear-gradient(180deg, rgba(255, 252, 248, 0.5) 0%, rgba(253, 248, 246, 0.16) 58%, rgba(58, 24, 40, 0.08) 100%);
}

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

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

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

.aniv28-contenido {
    position: absolute;
    z-index: 7;
    left: 50%;
    top: 68px;
    width: 288px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 22px 18px 20px;
    text-align: center;
    background: transparent;
    transform: translateX(-50%);
}

.aniv28-card .aniv28-contenido .papel-editable {
    text-shadow: none;
}

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

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

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

.aniv28-card .aniv28-contenido::before {
    content: '';
    position: absolute;
    inset: -20px -18px;
    z-index: 0;
    border: 1px solid rgba(184, 148, 79, 0.58);
    border-radius: 8px;
    pointer-events: none;
    background: #fdf8f6;
    box-shadow:
        inset 0 0 0 3px #fffdf9,
        inset 0 0 0 4px rgba(184, 148, 79, 0.28),
        0 16px 36px rgba(58, 24, 40, 0.16);
    opacity: 1;
}

.aniv28-card .aniv28-contenido::after {
    content: '';
    position: absolute;
    left: -14px;
    right: -14px;
    top: 34%;
    bottom: -18px;
    z-index: 1;
    border-radius: 0 0 7px 7px;
    pointer-events: none;
    background: #ffffff;
    border: 1px solid rgba(138, 56, 72, 0.28);
    border-top: 2px solid rgba(184, 148, 79, 0.34);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.96),
        0 10px 24px rgba(58, 24, 40, 0.14);
}

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

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

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