/* Botón para modo oscuro */
#darkModeToggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#backButton {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    color: white;
    background-color: #a673d1;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#backButton:hover {
    background-color: #fbdce7;
    color: #8a2d7b;
    transform: scale(1.05);
}

body {
    background-color: black;
    background-image: url('../Imgs/fondo_curriculum.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 15px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.card {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Títulos en morado */
.card-title,
h2 {
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #a673d1; /* Color morado */
}

.profile-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    margin: 0 auto 10px;
    display: block;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.social-links img {
    margin: 10px;
    transition: transform 0.3s;
    border-radius: 5px;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* Estilos para el modo oscuro */
.dark-mode {
    background-color: #1a1a1a;
    color: #e4e4e4;
}

.dark-mode .card {
    background-color: rgba(30, 30, 30, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Mantener títulos en morado en modo oscuro */
.dark-mode .card-title,
.dark-mode h2 {
    color: #a673d1;
}

.dark-mode a {
    color: #a673d1; 
}

.dark-mode .profile-img {
    border-color: #a673d1;
}

.dark-mode .btn-dark {
    background-color: #a673d1;
    border-color: #a673d1;
}

.btn-dark:hover {
    background-color: #fbdce7;
    color: #8a2d7b;
    transform: scale(1.05);
}

.dark-mode .social-links img {
    filter: invert(1); 
}

.dark-mode .list-group-item {
    background-color: #333;
    color: #e4e4e4;
    border-color: #444;
}
