:root {
    /* Paleta exacta del logo */
    --brand-gold: #c79e3e;      /* Dorado YMR */
    --bg-white: #FFFFFF;        /* Blanco fondo */
    --text-main: #c9a247;       
    --text-hover: #FFFFFF;
    
    /* Color para los números del fondo: Un gris/dorado muy pálido */
    --number-watermark: rgba(196, 159, 71, 0.08); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Lato', sans-serif;
    color: var(--text-main);
    padding: 10px;
    position: relative;
    overflow-x: hidden; /* Importante para que los números no estiren la web */
}

/* Contenedor del fondo animado */
#background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Para que no interfieran con los clicks */
    z-index: 0;
    overflow: hidden;
}

/* Estilo de los números del fondo */
.bg-number {
    position: absolute;
    font-family: 'Lato', serif; /* La misma fuente elegante */
    color: var(--brand-gold);
    opacity: 0.07; /* Muy sutil, casi transparente */
    user-select: none;
    font-weight: 400;
    font-size: 50px;
    /* Animación suave de flotación */
    animation: floatNumber 20s infinite linear;
}

@keyframes floatNumber {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Marco exterior estilo "Cuadro" */
.card-frame {
    position: relative;
    z-index: 1; /* Por encima de los números */
    width: 100%;
    max-width: 450px;
    
    /* Fondo semitransparente para que se vean un poco los números detrás */
    background-color: transparent; 
   
    
    border: 2px solid var(--brand-gold);
    outline: 4px solid rgba(196, 159, 71, 0.1); 
    box-shadow: 0 15px 40px rgba(196, 159, 71, 0.15);
    
    padding: 18px 20px; 
    margin: 5px;
    border-radius: 4px;
}

/* Header */
.profile-header {
    text-align: center;
    margin-bottom: 10px; 
}

.logo-circle {
    width: 90px;
    height: 90px;
    border: 2px solid var(--brand-gold);
    border-radius: 50%;
    
    /* Centrado */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
    background: var(--bg-white);
    
    position: relative;
    z-index: 2;
    
    /* CAMBIO CLAVE: Esto asegura que la imagen no se salga del círculo */
    overflow: hidden; 
}

/* Nueva clase para controlar tu imagen */
.logo-img {
    width: 100%;
    height: 100%;
    /* 'cover' recorta la imagen para llenar el circulo sin deformarla */
    /* Si tu logo se corta mucho, cambia 'cover' por 'contain' */
    object-fit: cover; 
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-gold);
    letter-spacing: 2px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--brand-gold);
    margin-bottom: 5px;
    font-weight: 700;
}

h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-gold);
    opacity: 0.8;
    margin-bottom: 10px;
    font-weight: 600;
}

.slogan {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--brand-gold);
    margin-top: 5px;
    border-top: 1px solid rgba(196, 159, 71, 0.3);
    border-bottom: 1px solid rgba(196, 159, 71, 0.3);
    padding: 10px 0;
}

/* Botones y Listas */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: var(--brand-gold);
    font-size: 1.4rem;
    margin: 10px 0 5px; 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.section-title::before, .section-title::after {
    content: '';
    height: 1px;
    width: 20px;
    background: var(--brand-gold);
    margin: 0 8px;
    opacity: 0.5;
}

.btn {
    text-decoration: none;
    padding: 14px 15px; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    position: relative;
    color: var(--brand-gold);
    background: rgba(255,255,255,0.8); /* Fondo blanco sutil */
    border: 1px solid var(--brand-gold);
    border-radius: 4px;
}

.btn span {
    font-size: 1.1rem;
}

.btn:hover {
    background-color: var(--brand-gold);
    color: var(--text-hover); 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 159, 71, 0.25);
}

.btn-primary {
    background-color: var(--brand-gold);
    color: var(--bg-white);
    border: 1px solid var(--brand-gold);
}

.btn-primary:hover {
    background-color: white;
    color: var(--brand-gold);
    border: 1px solid var(--brand-gold);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 4px; 
}

.social-icons a {
    color: var(--brand-gold);
    font-size: 1.4rem;
    transition: all 0.3s;
    border: 1px solid transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--brand-gold);
    color: white;
    transform: scale(1.1);
}

footer {
    text-align: center;
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}