html { background-color: #0f172a; scroll-behavior: smooth; }

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, #00d1ff 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-warm {
    background: linear-gradient(135deg, #f472b6 0%, #fbbf24 50%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: linear-gradient(135deg, #00d1ff, #0099cc);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 209, 255, 0.4);
}

.btn-memorial {
    background: linear-gradient(135deg, #f472b6, #fb923c);
    transition: all 0.3s ease;
}

.btn-memorial:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(244, 114, 182, 0.4);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: white;
}

.form-input:focus {
    outline: none;
    border-color: rgba(244, 114, 182, 0.5);
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.upload-zone {
    border: 2px dashed rgba(244, 114, 182, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(244, 114, 182, 0.02);
    position: relative;
    overflow: hidden;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: rgba(244, 114, 182, 0.7);
    background: rgba(244, 114, 182, 0.08);
    transform: scale(1.01);
}

.upload-zone .preview-img {
    max-height: 200px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.rainbow-bridge-bg {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(244, 114, 182, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 50%, rgba(167, 139, 250, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(52, 211, 153, 0.05) 0%, transparent 50%),
        #0f172a;
}

.bg-style-default {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.90)), url('https://images.unsplash.com/photo-1506318137071-a8e063b4bec0?auto=format&fit=crop&w=1200&q=80') no-repeat center center scroll;
    background-size: cover;
}
.bg-style-pradera {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.90)), url('https://images.unsplash.com/photo-1500627869374-13cd993b1115?auto=format&fit=crop&w=1200&q=80') no-repeat center center scroll;
    background-size: cover;
}
.bg-style-atardecer {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.90)), url('https://images.unsplash.com/photo-1470252649378-9c29740c9fa8?auto=format&fit=crop&w=1200&q=80') no-repeat center center scroll;
    background-size: cover;
}
.bg-style-pequeno {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.90)), url('https://images.unsplash.com/photo-1465146344425-f00d5f5c8f07?auto=format&fit=crop&w=1200&q=80') no-repeat center center scroll;
    background-size: cover;
}
.bg-style-bosque {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.90)), url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1200&q=80') no-repeat center center scroll;
    background-size: cover;
}
.bg-style-arcoiris {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.90)), url('https://images.unsplash.com/photo-1517030330234-94c4fa948ebc?auto=format&fit=crop&w=1200&q=80') no-repeat center center scroll;
    background-size: cover;
}
.bg-style-aurora {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.90)), url('https://images.unsplash.com/photo-1483168527879-c66136b56105?auto=format&fit=crop&w=1200&q=80') no-repeat center center scroll;
    background-size: cover;
}
.bg-style-galaxia {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.90)), url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&w=1200&q=80') no-repeat center center scroll;
    background-size: cover;
}
.bg-style-paz {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.90)), url('https://images.unsplash.com/photo-1475924156734-496f6cac6ec1?auto=format&fit=crop&w=1200&q=80') no-repeat center center scroll;
    background-size: cover;
}
.bg-style-rudo {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.90)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1200&q=80') no-repeat center center scroll;
    background-size: cover;
}
.bg-style-rosado {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.90)), url('https://images.unsplash.com/photo-1534447677768-be436bb09401?auto=format&fit=crop&w=1200&q=80') no-repeat center center scroll;
    background-size: cover;
}

.photo-frame {
    background: conic-gradient(
        from 0deg,
        #fbbf24, #f472b6, #a78bfa, #34d399, #fbbf24
    );
    padding: 4px;
    animation: glowPulse 4s ease-in-out infinite;
}

.photo-frame img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-decoration::before {
    content: '\201C';
    font-size: 4rem;
    line-height: 1;
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    opacity: 0.15;
    font-family: Georgia, serif;
    background: linear-gradient(135deg, #f472b6, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quote-decoration::after {
    content: '\201D';
    font-size: 4rem;
    line-height: 1;
    position: absolute;
    bottom: -1.5rem;
    right: -0.5rem;
    opacity: 0.15;
    font-family: Georgia, serif;
    background: linear-gradient(135deg, #f472b6, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
}

.particle-star {
    width: 3px;
    height: 3px;
    background: #fbbf24;
    box-shadow: 0 0 6px #fbbf24, 0 0 12px rgba(251, 191, 36, 0.3);
}

.particle-firefly {
    width: 4px;
    height: 4px;
    background: #34d399;
    box-shadow: 0 0 8px #34d399, 0 0 16px rgba(52, 211, 153, 0.3);
}

.particle-rose {
    width: 3px;
    height: 3px;
    background: #f472b6;
    box-shadow: 0 0 6px #f472b6, 0 0 12px rgba(244, 114, 182, 0.3);
}

.paw-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ctext x='20' y='50' font-size='30' fill='white'%3E🐾%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
}

.date-divider {
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
    height: 1px;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #f472b6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes checkDraw {
    0% { stroke-dashoffset: 50; }
    100% { stroke-dashoffset: 0; }
}

.success-check {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkDraw 0.6s ease forwards 0.3s;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up-delay-1 { animation-delay: 0.2s; opacity: 0; }
.fade-in-up-delay-2 { animation-delay: 0.4s; opacity: 0; }
.fade-in-up-delay-3 { animation-delay: 0.6s; opacity: 0; }
.fade-in-up-delay-4 { animation-delay: 0.8s; opacity: 0; }
.fade-in-up-delay-5 { animation-delay: 1.0s; opacity: 0; }

.calor-wave-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(251, 146, 60, 0.35) 0%, rgba(249, 115, 22, 0.2) 50%, rgba(239, 68, 68, 0.05) 100%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.calor-wave-overlay.active {
    opacity: 1;
    animation: calorWavePulse 3s ease-in-out infinite alternate;
}
@keyframes calorWavePulse {
    0% { transform: scale(1); filter: saturate(1.1) blur(0px); }
    50% { transform: scale(1.03); filter: saturate(1.3) blur(2px); }
    100% { transform: scale(1.01); filter: saturate(1.2) blur(1px); }
}

.burning-candle-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(251, 191, 36, 0.4);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(251, 191, 36, 0.25);
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transform: translateY(120px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}
.burning-candle-container.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.candle-visual-wrapper {
    position: relative;
    width: 50px;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}
.candle-wick {
    width: 2px;
    height: 7px;
    background: #334155;
    position: absolute;
    bottom: var(--candle-height, 45px);
    left: calc(50% - 1px);
}
.candle-body {
    width: 18px;
    height: var(--candle-height, 45px);
    background: linear-gradient(to right, #fef08a 0%, #fde047 45%, #eab308 100%);
    border-radius: 4px 4px 0 0;
    box-shadow: inset -2px 0 4px rgba(0, 0, 0, 0.2), 0 0 10px rgba(253, 224, 71, 0.2);
    transition: height 0.3s ease-out;
    position: relative;
}
.candle-flame {
    position: absolute;
    bottom: calc(var(--candle-height, 45px) + 6px);
    left: calc(50% - 6px);
    width: 12px;
    height: 20px;
    background: radial-gradient(ellipse at bottom, #ffffff 15%, #fde047 45%, #f97316 75%, #ef4444 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.7), 0 0 24px rgba(251, 146, 60, 0.45);
    animation: flameFlicker 0.12s infinite alternate;
}
@keyframes flameFlicker {
    0% { transform: skewX(-2deg) scaleX(0.95); }
    100% { transform: skewX(2deg) scaleX(1.05); }
}
.candle-wax-melt {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 3px;
    height: 12px;
    background: #fef08a;
    border-radius: 0 0 2px 2px;
    animation: waxDrop 5s infinite linear;
}
@keyframes waxDrop {
    0% { height: 2px; opacity: 1; }
    50% { height: 8px; opacity: 0.8; }
    100% { height: 12px; opacity: 0; transform: translateY(8px); }
}

#premium-success-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 99999;
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(251,191,36,0.1));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(16,185,129,0.4);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #d1fae5;
    font-weight: 600;
    min-width: 280px;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(16,185,129,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#premium-success-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.lapida-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    text-decoration: none;
}
.lapida-wrapper:hover {
    transform: translateY(-12px) scale(1.03);
    filter: drop-shadow(0 20px 40px rgba(244, 114, 182, 0.25));
}
.lapida-card {
    width: 195px;
    min-height: 290px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 55%),
        linear-gradient(170deg, #1a2a3f 0%, #0b1321 60%, #060d18 100%);
    border-radius: 50% 50% 0 0 / 18% 18% 0 0;
    border: 1px solid rgba(255,255,255,0.07);
    border-bottom: none;
    box-shadow:
        0 -2px 20px rgba(244,114,182,0.06),
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 30px 60px rgba(0,0,0,0.9);
    padding: 32px 18px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.lapida-card::after {
    content: '';
    position: absolute;
    top: 14px; left: 14px; right: 14px; bottom: 14px;
    border: 1px solid rgba(255,255,255,0.035);
    border-radius: 44% 44% 0 0 / 16% 16% 0 0;
    pointer-events: none;
}
.lapida-base {
    width: 215px;
    height: 12px;
    background: linear-gradient(to bottom, #0b1321, #060d18);
    border-radius: 0 0 8px 8px;
    border: 1px solid rgba(255,255,255,0.06);
    border-top: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
}
.lapida-base-foot {
    width: 170px;
    height: 8px;
    background: linear-gradient(to bottom, #070e19, #04090f);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.7);
    margin-top: -1px;
}
.lapida-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,114,182,0.18), rgba(251,191,36,0.06));
    border: 1px solid rgba(244,114,182,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    position: relative;
    z-index: 1;
}
.lapida-icon.glow-amber {
    background: radial-gradient(circle, rgba(251,191,36,0.2), rgba(251,191,36,0.04));
    border-color: rgba(251,191,36,0.25);
    animation: glowPulse 4s ease-in-out infinite;
}
.lapida-photo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(251,191,36,0.28);
    box-shadow: 0 0 18px rgba(251,191,36,0.12), 0 0 35px rgba(244,114,182,0.08);
    position: relative;
    z-index: 1;
}
.lapida-name {
    font-size: 21px;
    font-weight: 800;
    background: linear-gradient(135deg, #fde68a 0%, #f472b6 60%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.04em;
    line-height: 1;
    position: relative;
    z-index: 1;
}
.lapida-especie {
    font-size: 9px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    z-index: 1;
}
.lapida-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251,191,36,0.2), transparent);
    position: relative;
    z-index: 1;
}
.lapida-dates {
    font-size: 9px;
    color: rgba(255,255,255,0.3);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.06em;
    position: relative;
    z-index: 1;
}
.lapida-msg {
    font-size: 9px;
    color: rgba(255,255,255,0.42);
    font-style: italic;
    line-height: 1.55;
    padding: 0 6px;
    flex: 1;
    position: relative;
    z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lapida-candle-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: rgba(251,191,36,0.65);
    font-weight: 700;
    position: relative;
    z-index: 1;
    padding: 5px 12px;
    background: rgba(251,191,36,0.04);
    border-radius: 20px;
    border: 1px solid rgba(251,191,36,0.08);
}
.lapida-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 700;
    color: rgba(244,114,182,0.75);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(244,114,182,0.18);
    background: rgba(244,114,182,0.04);
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}
.lapida-btn:hover {
    background: rgba(244,114,182,0.12);
    border-color: rgba(244,114,182,0.35);
    color: #f472b6;
}
.lapida-glow {
    width: 120px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(244,114,182,0.15), transparent 70%);
    filter: blur(8px);
    margin-top: 8px;
}
@keyframes pulse-fast {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}
.animate-pulse-fast {
    animation: pulse-fast 0.3s ease-in-out infinite;
}

@keyframes fallingRose {
    0% {
        transform: translateY(-50px) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(20px) rotate(45deg) scale(1.5);
    }
    80% {
        opacity: 1;
        transform: translateY(180px) rotate(315deg) scale(1.5);
    }
    100% {
        transform: translateY(250px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}
.falling-rose {
    position: absolute;
    font-size: 3rem;
    animation: fallingRose 2.5s ease-in forwards;
    z-index: 50;
    pointer-events: none;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

.scroll-hide::-webkit-scrollbar { display: none; }
