/* --- Variables Globales (Paleta y Fuentes) --- */
:root {
    --primary-dark-blue: #1a3a64; /* Azul oscuro de los posts */
    --accent-gold: #c7b69a;       /* Tono beige/dorado de los textos */
    --primary-white: #ffffff;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* --- Reseteo Básico --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    
    background: radial-gradient(ellipse at center, var(--primary-dark-blue) 40%, #000000 100%);
    background-attachment: fixed; 

    color: var(--primary-white);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    
    /* --- CORRECCIÓN AQUÍ --- */
    /* Quitamos el padding del body */
    /* padding: 20px; */ 
    /* --- FIN DE LA CORRECCIÓN --- */
    
    overflow-x: hidden; 
}

/* --- Contenedor Principal (Tarjeta) --- */
.container {
    width: 100%;
    max-width: 450px;
    
    /* --- CORRECCIÓN AQUÍ --- */
    /* Añadimos un margin horizontal para que no toque los bordes en móviles */
    margin: 0 20px;
    /* --- FIN DE LA CORRECCIÓN --- */

    background: var(--primary-dark-blue); 
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    
    /* Animación de entrada */
    animation: fadeInSlide 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Cabecera del Perfil --- */
.profile-header .logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid var(--accent-gold); 
    margin-bottom: 20px;
    object-fit: cover;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(199, 182, 154, 0.4); }
    50% { transform: scale(1.03); box-shadow: 0 0 20px rgba(199, 182, 154, 0.7); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(199, 182, 154, 0.4); }
}

.profile-header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.profile-header .subtitle {
    font-size: 1rem;
    color: var(--primary-white);
    font-weight: 400;
    margin-bottom: 30px;
}

/* --- Sección de Botones --- */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-body);
    
    transition: all 0.3s ease-in-out;
}

.link-button i {
    margin-right: 12px;
    font-size: 1.3rem;
}

.link-button:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark-blue); /* Invierte colores */
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 5px 15px rgba(199, 182, 154, 0.3);
}

/* --- Adaptabilidad Móvil --- */
@media (max-width: 480px) {
    .container {
        /* El padding interno puede ser un poco más pequeño en móviles */
        padding: 25px; 
    }
    
    .profile-header h1 {
        font-size: 1.8rem;
    }
    .profile-header .subtitle {
        font-size: 0.9rem;
    }
    .link-button {
        padding: 12px;
        font-size: 1rem;
    }
}