/* --- Configuración Global y Fondo de PC --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- 
--- AJUSTE: FONDO "PLATEADO OSCURO" ANIMADO (MÁS CONTRASTE) ---
--- 
*/
body {
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* AJUSTE: Gradiente mucho más oscuro (Grafito/Acero) */
    background: linear-gradient(135deg, #212529, #495057, #6c757d, #495057, #212529);
    background-size: 400% 400%;
    /* Mantenemos la animación elegante */
    animation: animatedBackground 15s ease infinite;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center; 
    min-height: 100vh; 
    padding: 20px; 
}

/* --- 
--- LOADER OSCURO Y ANIMACIONES (Sin cambios) ---
--- 
*/
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1e1e26; /* Fondo oscuro del loader */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; 
    opacity: 1;
    transition: opacity 1s ease-out; 
}

.loader-logo {
    width: 200px; 
    height: 200px;
    background-color: #ffffff; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

.animated-logo {
    width: 150px; 
    height: 150px; 
    object-fit: contain;
    animation: spin 2s linear infinite; 
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animación de fondo (la velocidad se controla en 'body') */
@keyframes animatedBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- 
--- ESTILOS DE TARJETA MUESTRA 1 (Cabecera alta) ---
--- 
*/

/* --- Contenedor Principal de la Tarjeta --- */
.card-container {
    width: 100%;
    max-width: 420px; 
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); 
    overflow: hidden; 
    text-align: center;
}

/* --- 1. Cabecera de Color --- */
.card-header {
    background: linear-gradient(135deg, #007bff, #0056b3); 
    /* La cabecera más alta que pediste */
    height: 150px; 
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* --- 2. Cuerpo Blanco de la Tarjeta --- */
.card-body {
    padding: 0 30px 30px 30px;
    margin-top: -100px; 
    position: relative; 
}

/* El logo grande de 180px */
.profile-picture {
    width: 180px; 
    height: 180px;
    border-radius: 50%;
    object-fit: contain; 
    border: 6px solid #ffffff; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
    margin-bottom: 15px;
    background-color: #fff; 
    display: block; 
    margin-left: auto;
    margin-right: auto;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.profile-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #007bff; /* Acento azul */
    margin-bottom: 8px; 
}

.profile-description {
    font-size: 0.95rem; 
    line-height: 1.6;
    color: #444; 
    font-weight: 300; 
    margin-bottom: 25px;
}

/* --- 3. Iconos de Contacto --- */
.contact-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.contact-icons a {
    display: flex; 
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 100%; 
    height: 100%; 
}

.contact-icons img {
    width: 100%;
    max-width: 50px; 
    display: block;
}

@media (hover: hover) {
    .contact-icons a:hover {
        transform: scale(1.15); 
        opacity: 0.9;
    }
}

/* --- 4. Botón de Guardar Contacto --- */
.save-contact {
    margin-top: 10px;
}

.save-button {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 16px;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
}

.save-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.5);
}