/* Variables CSS Globales (Look 2025) */
:root {
    --bg-color: #0d0d0d;
    --surface-color: #1a1a1a;
    --primary-color: #007CF0;
    --primary-hover: #3399FF;
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --gradient-button: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    --gradient-button-hover: linear-gradient(45deg, var(--primary-hover), #66B2FF);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --border-radius-lg: 15px;
    --border-radius-md: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

/* --- Fondo "Aurora" --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 124, 240, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(0, 240, 220, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 60% 80%, rgba(0, 124, 240, 0.25) 0%, transparent 30%);
    filter: blur(100px);
    animation: aurora-flow 20s infinite linear;
}
@keyframes aurora-flow {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(50px, 50px) rotate(10deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* --- NUEVO: Preloader de Carga --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color); /* Fondo sólido para tapar todo */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}
#preloader img {
    width: 100px; /* Tamaño del logo */
    height: 100px;
    animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}
/* Ocultar contenido mientras carga */
header, main, footer {
    opacity: 0;
    transition: opacity 0.6s ease-in;
}
/* Mostrar contenido cuando 'body.loaded' */
body.loaded header,
body.loaded main,
body.loaded footer {
    opacity: 1;
}
/* --- Fin Preloader --- */


/* Header (sin cambios) */
header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 20px;
    width: 100%;
    max-width: 1200px;
}
.logo-link {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
    position: relative;
    transition: transform 0.3s ease-out;
}
.logo-link:hover {
    transform: translateY(-3px);
}
.logo-link:hover .logo-text {
    text-shadow: 0 0 15px var(--primary-color), 0 0 25px var(--primary-color);
}
.logo-text {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    transition: color 0.3s ease-out, text-shadow 0.3s ease-out;
    letter-spacing: -1px;
}
.subtitle {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Main Global */
main {
    width: 100%;
    max-width: 1200px;
    flex-grow: 1;
    padding: 0 10px;
}

/* --- NUEVO: Estructura del Footer --- */
footer {
    width: 100%;
    max-width: 1200px;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-shrink: 0;
    
    /* Layout de 3 columnas */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-left p {
    margin: 0;
    line-height: 1.5;
}
.footer-left .location {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-center {
    display: flex;
    gap: 20px;
}
.footer-center a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}
.footer-center a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}
.footer-right:hover {
    color: var(--primary-hover);
}
.footer-right img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}
.footer-right:hover img {
    border-color: var(--primary-color);
}
/* --- Fin Footer --- */


/* Contenedor Legal (sin cambios) */
.legal-container {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px 40px;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 0 8px 25px var(--shadow-color);
}
/* ... (resto de .legal-container sin cambios) ... */


/* --- NUEVO: Animación de Copiado --- */
@keyframes jiggle {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1) rotate(-3deg); }
  75% { transform: scale(0.9) rotate(3deg); }
}

.copy-btn-small.copied,
.action-button.copy-btn.copied {
    animation: jiggle 0.4s ease-in-out;
}
/* --- Fin Animación Copiado --- */


/* Responsividad */
@media (max-width: 768px) {
    /* ... (resto de media queries sin cambios) ... */

    /* Footer responsivo */
    footer {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .footer-center {
        order: -1; /* Mover enlaces legales al inicio en móvil */
    }
}