body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f7fa;
    color: #333;
}

.header {
    text-align: center;
    background: #1e293b;
    color: white;
    padding: 30px 20px;
}

.profile-img {
    width: 120px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.contact a {
    color: #38bdf8;
    text-decoration: none;
}

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

.social-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

section {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

h2 {
    border-bottom: 2px solid #1e293b;
    padding-bottom: 5px;
}

.card {
    background: white;
    padding: 15px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

ul {
    padding-left: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

input, textarea {
    margin: 5px 0 15px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    background: #1e293b;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

button:hover {
    background: #334155;
}

.btn-outline {
    background: transparent;
    color: #1e293b;
    padding: 8px 13px;
    border: 2px solid #1e293b;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: all 0.2s ease-in-out;
}

.btn-outline:hover {
    background: #1e293b;
    color: white;
}

footer {
    text-align: center;
    padding: 20px;
    background: #1e293b;
    color: white;
    margin-top: 30px;
}

/* Estilo de las etiquetas (Badges) */

.tech-badge:hover {
    background-color: #1e293b;
    color: white;
}

.tech-stack {
    margin-top: 25px; /* Espacio extra arriba de las etiquetas */
    padding-top: 15px;
    border-top: 1px solid #f1f5f9; /* Una línea muy sutil para separar */
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* Espacio horizontal y vertical entre badges */
}

.tech-badge {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.85rem;
    padding: 6px 14px; /* Un poco más grandes */
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    white-space: nowrap; /* Evita que una tecnología se parta en dos líneas */
}

/* Espaciado entre grupos de habilidades */
.skill-group {
    margin-bottom: 20px;
}

.skill-group strong {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-size: 1rem;
}

.skills-list {
    list-style: none;
    padding-left: 10px;
    margin: 10px 0 20px 0;
    display: grid;
    /* Crea columnas de al menos 180px de ancho */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.skills-list li {
    position: relative;
    padding-left: 15px;
    font-size: 0.9rem;
    color: #475569;
}

.skills-list li::before {
    content: "•";
    color: #1e293b;
    position: absolute;
    left: 0;
    font-weight: bold;
}
