* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', monospace;
    background-color: #d4d4d4;
    color: #2d2d2d;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 0em 10em;
}

p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 20px;
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .logo,
body.dark-mode nav a {
    color: #e0e0e0;
}

body.dark-mode .theme-toggle {
    background-color: #2d2d2d;
    border-color: #e0e0e0;
}

body.dark-mode .theme-toggle::after {
    background-color: #e0e0e0;
    left: 2px;
    right: auto;
}

body.dark-mode .skill-card {
    background-color: #2d2d2d;
    border-color: #e0e0e0;
    color: #e0e0e0;
}

body.dark-mode .project-image img {
    border-color: #e0e0e0;
}

body.dark-mode .github-button {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #e0e0e0;
}

body.dark-mode .github-button:hover {
    background-color: #e0e0e0;
    color: #2d2d2d;
}

body.dark-mode .social-icons a {
    background-color: #e0e0e0;
    color: #2d2d2d;
}

header {
    display: flex;
    align-items: center;
    padding: 5vh 60px;
    height: 7vh;
}

.div-logo{
    padding: 0px;
}

.div-logo img {
    width: 8%;
    padding-top: 2%;
    object-fit: contain;
    filter: brightness(1.1);
    transition: transform 1s ease; /* El tiempo que durara haciendo la animacion */
}

.div-logo img:hover {
    transform: scale(1.2) rotate(15deg);
}

nav {
    display: flex;
    gap: 7vh;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #2d2d2d;
    font-size: 16px;
    white-space: nowrap; 
}

.theme-toggle {
    width: 40px;
    height: 22px;
    background-color: #fff;
    border: 2px solid #2d2d2d;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.theme-toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #2d2d2d;
    border-radius: 50%;
    top: 1px;
    right: 2px;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1%;
    margin-top: 2vh;
}

.hero-text {
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text h1 {
    font-size: 6em;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -3px;
    font-family: Arial, sans-serif;
}

.hero-text h2 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: normal;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2d2d2d;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 20px;
}

.hero-image {
    width: 1300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
}

section {
    padding: 60px;
}

h2.section-title {
    font-size: 3.5em;
    font-weight: 900;
    margin-bottom: 7vh;
    letter-spacing: -2px;
    font-family: Arial, sans-serif;
}

.section-title-click {
    font-size: 0.5em;
}

.sobreMi{
    display: flex;
    flex-direction: column;
    margin-left: 10%;
}

.sobre-content strong {
    font-weight: bold;
}

.sobre-content a {
    color: #2d2d2d;
}

#skills{
    margin-top: 8%;
}

.conocimientos-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.div-conocimientos{
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-left: 7%;
}

.punto{
    font-size: 1.3em; 
    margin-right: 10px;
}

/* Estilos para el contenedor de la categoría (Backend y Lógica, Base de Datos, etc.) */
.skill-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    margin-bottom: 20px;
    
    overflow-x: auto;
    padding-bottom: 10px;
}

.skill-category-title{
    display: flex; 
    align-items: center;
    margin-bottom: 1%;
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 20%;
    padding: 15px 20px;
    background-color: #fff;
    border: 3px solid #2d2d2d;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
}

.skill-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.project-card {
    display: flex;
    gap: 5%;
    margin-bottom: 10vh;
    align-items: flex-start;
}

.project-card:hover {
    filter: brightness(0.85);
    background-color: rgba(45, 45, 45, 0.3);
    border-radius: 20px; 
    padding-top: 0.2%;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.project-image {
    flex: 1;
    max-width: 60vh;
}

.project-image img {
    width: 100%;
    border: 4px solid #2d2d2d;
    border-radius: 8px;
    transform: rotate(-1deg);
}

.project-info {
    flex: 1;
}

.project-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.finalizada-badge {
    background-color: #4ade80;
    color: #000;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.enProceso-badge {
    background-color: orange;
    color: #000;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}


.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4vh;
    margin-bottom: 4vh;
}

.tag {
    background-color: #a8a8a8;
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.github-button-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.github-button {
    padding: 12px 30px;
    background-color: #fff;
    color: #2d2d2d;
    text-decoration: none;
    border: 3px solid #2d2d2d;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.github-button:hover {
    background-color: #2d2d2d;
    color: #fff;
}