/* ===========================================
   Migiri Static Site - Shared Styles
   =========================================== */

/* CSS Variables */
:root {
    /* Fondos - Brand Primary */
    --bg-primary: #2F085D;           /* Brand Primary-700: fondo principal */
    --bg-secondary: #411772;         /* Brand Primary-600: fondo gradiente */
    --bg-dark: #130D1F;              /* Neutral-900-dark: fondo más oscuro */
    --bg-card: rgba(255, 255, 255, 0.05);

    /* Texto */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);

    /* Acentos - Brand Primary */
    --accent: #411772;               /* Brand Primary-600: botones, links */
    --accent-hover: #59209B;         /* Brand Primary-500: hover */
    --accent-light: #CCAEEE;         /* Brand Primary-200: partículas, highlights */

    /* Bordes */
    --border: rgba(255, 255, 255, 0.1);

    /* Estados (forms) */
    --error: #DA4D4B;                /* Status Alert */
    --success: #1ECCA6;              /* Status Success */
}

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

/* Safari iOS overscroll fix - shows this color during bounce */
html {
    background-color: #411772;
}

/* Base Body Styles */
body {
    font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(80% 80% at 50% 30%, #5a2d91 0%, #411772 40%, #2f085d 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ===========================================
   Background Particles Animation
   =========================================== */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(204, 174, 238, 0.3); /* --accent-light / brand-primary-200 */
    border-radius: 50%;
    animation: float 20s infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; }
.particle:nth-child(3) { left: 60%; top: 10%; animation-delay: 4s; }
.particle:nth-child(4) { left: 80%; top: 50%; animation-delay: 6s; }
.particle:nth-child(5) { left: 40%; top: 60%; animation-delay: 8s; }
.particle:nth-child(6) { left: 90%; top: 30%; animation-delay: 10s; }
.particle:nth-child(7) { left: 5%; top: 50%; animation-delay: 12s; }
.particle:nth-child(8) { left: 75%; top: 85%; animation-delay: 14s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.6; }
}

/* ===========================================
   Header
   =========================================== */
header {
    position: relative;
    z-index: 10;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 34px;
    width: auto;
}

.cta-button {
    background: #FFFFFF;
    border: none;
    color: var(--accent);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ===========================================
   Main Content Container
   =========================================== */
main {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

/* ===========================================
   Hero Section
   =========================================== */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400; /* DM Serif Display se ve mejor en 400 */
    margin-bottom: 1rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.hero .last-update {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ===========================================
   Footer
   =========================================== */
footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-light);
}

.footer-section a {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* ===========================================
   Responsive - Base
   =========================================== */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    main {
        padding: 1.5rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
        width: 100%;
    }
}
