/* ---- VARIABLES DE COLOR Y FUENTE ---- */
:root {
    --bg-color: #121212; /* Fondo principal muy oscuro */
    --card-color: #1e1e1e; /* Fondo de las tarjetas un poco más claro */
    --primary-text-color: #e0e0e0; /* Texto principal casi blanco */
    --secondary-text-color: #b3b3b3; /* Texto secundario gris claro */
    --accent-color: #00BFFF; /* Azul eléctrico para detalles */
    --accent-hover-color: #009acd; /* Azul para pasar el mouse */
    --font-family: 'Poppins', sans-serif;
}

/* ---- ESTILOS GENERALES ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
}

/* ---- ENCABEZADO ---- */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.header h2 {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--accent-color);
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    margin-bottom: 20px;
    object-fit: cover;
}


/* ---- TARJETAS (SECCIONES) ---- */
.card {
    background-color: var(--card-color);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 25px;
    border: 1px solid #2e2e2e;
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(252, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.card p {
    color: var(--secondary-text-color);
}

/* ---- HABILIDADES ---- */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.skill {
    background-color: #333;
    color: var(--primary-text-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 400;
    border: 1px solid var(--accent-color);
}

/* ---- CONTACTO ---- */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.contact-button {
    text-decoration: none;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-button:hover {
    transform: scale(1.05);
}

.contact-button i {
    font-size: 1.2rem;
}

.whatsapp { background-color: #25D366; }
.gmail { background-color: #D44638; }
.instagram { background-color: #E1306C; }

/* ---- FOOTER ---- */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}


.download { 
    background-color: #5a67d8; /* Un color diferente, ej: índigo */
}

/* ---- DISEÑO ADAPTABLE PARA MÓVILES ---- */
@media (max-width: 600px) {
    .header h1 {
        font-size: 2rem;
    }

    .header h2 {
        font-size: 1rem;
    }

    .contact-links {
        flex-direction: column;
    }
    
    .contact-button {
        justify-content: center;
    }
}