/**
 * Landing Pages - Estilos compartidos
 * Purity Servity - index.php & login.php
 *
 * Centraliza: reset, tipografía, fondo animado, animaciones fade-up,
 * footer y accesibilidad para las páginas públicas.
 */

/* ── Reset ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Base ── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fafafa;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Animated background blobs ── */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-decoration::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBlob 20s ease-in-out infinite;
}

.bg-decoration::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 61, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBlob 25s ease-in-out infinite reverse;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ── Fade-in animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.6s ease-out both;
}

.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
.fade-up-d4 { animation-delay: 0.4s; }
.fade-up-d5 { animation-delay: 0.5s; }

/* ── Pulse dot ── */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Shared footer ── */
.landing-footer {
    text-align: center;
    padding: 2rem 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.landing-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.landing-footer-logo {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    overflow: hidden;
}

.landing-footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.landing-footer-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.landing-footer p {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ── Focus states (accessibility) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}

/* ── Responsive blobs ── */
@media (max-width: 640px) {
    .bg-decoration::before {
        width: 300px;
        height: 300px;
    }

    .bg-decoration::after {
        width: 250px;
        height: 250px;
    }
}
