/* Estilos generales */
body {
    font-family: 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
}

/* Estilos para el encabezado */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

header.nav-scroll {
    background-color: rgba(44, 62, 80, 0.8);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #ecf0f1;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

/* Estilos para el encabezado normal en pantallas más grandes */
.navbar {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-right: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #ecf0f1;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* Estilos para el menú hamburguesa en dispositivos móviles */
.menu-icon {
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 30px;
}

.bar {
    background-color: #ecf0f1;
    height: 4px;
    width: 100%;
    transition: transform 0.3s ease;
}

.menu-icon.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-icon.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Estilos para dispositivos móviles (menú hamburguesa) */
@media (max-width: 768px) {
 /* Estilos para el menú hamburguesa en dispositivos móviles */
 .menu-icon {
    cursor: pointer;
    display: flex;
    /* Muestra el icono del menú en dispositivos móviles */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.bar {
    background-color: #ecf0f1;
    height: 4px;
    width: 100%;
    transition: transform 0.3s ease;
}

.menu-icon.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-icon.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Ajusta el estilo de los elementos de navegación */
nav ul {
    flex-direction: column;
    /* Muestra los elementos de navegación en una columna */
    align-items: center;
    /* Centra los elementos horizontalmente */
    padding: 10px 0;
    background-color: #2c3e50;
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    z-index: 99;
}

nav ul.active {
    display: flex;
    /* Muestra los elementos de navegación cuando el menú está activo */
}

nav ul li {
    margin: 10px 0;
    /* Añade espacio entre los elementos de navegación */
}

nav ul li:last-child {
    margin-bottom: 0;
    /* Elimina el espacio inferior del último elemento */
}

/* Ajusta el estilo de los enlaces en dispositivos móviles */
nav ul li a {
    font-size: 16px;
    /* Reduce el tamaño de fuente */
    margin-right: 0;
    /* Elimina el margen derecho */
}

.menu-icon {
    display: flex;
}

.nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #2c3e50;
    position: absolute;
    top: 60px;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links.active {
    display: flex;
    opacity: 1;
}

.nav-links li {
    margin: 10px 0;
}

.nav-links a {
    font-size: 16px;
}

header {
    padding: 10px 0;
    /* Reduce el espaciado vertical */
}

nav {
    flex-direction: column;
    /* Muestra los elementos de navegación en una columna */
    align-items: center;
    /* Centra los elementos horizontalmente */
    padding: 10px 0;
    position: relative;
    /* Añade posición relativa para que funcione el menú hamburguesa */
}

nav ul {
    position: absolute;
    /* Coloca la lista de navegación en la parte superior en dispositivos móviles */
    top: 60px;
    /* Ajusta la posición superior según sea necesario */
    left: -100%;
    /* Inicialmente oculta la lista de navegación */
    width: 100%;
    background-color: #2c3e50;
    transition: left 0.3s ease;
}

nav.active ul {
    left: 0;
    /* Muestra la lista de navegación cuando está activa */
}

nav ul li {
    margin: 10px 0;
    /* Añade espacio entre los elementos de navegación */
}

nav ul li:last-child {
    margin-bottom: 0;
    /* Elimina el espacio inferior del último elemento */
}

.menu-icon {
    cursor: pointer;
    color: #ecf0f1;
    font-size: 24px;
    position: absolute;
    top: 20px;
    right: 20px;
    display: block;
}



    /* Estilos para la sección de Redes Sociales */
    .social-media {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .social-icons {
        flex-direction: column;
    }

    .social-icon {
        font-size: 24px;
        margin: 10px 0;
    }

    .social-text {
        font-size: 16px;
        margin-top: 5px;
    }

    .social-icon i {
        font-size: 24px;
    }

    /* Estilos para el footer */
    footer {
        padding: 20px 0;
    }

    .footer-logo {
        font-size: 24px;
    }

    .footer-text {
        font-size: 16px;
    }

    .footer-social {
        margin-top: 10px;
    }

    .footer-social a {
        font-size: 20px;
        margin: 0 10px;
    }
}

/* Estilos para la sección de Redes Sociales */
.social-media {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 32px;
    color: #000000;
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icon {
    text-decoration: none;
    color: #000000;
    font-size: 36px;
    margin: 0 20px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #3498db;
}

.social-text {
    font-size: 18px;
    margin-top: 10px;
    color: #000000;
}

/* Efecto de escala al pasar el mouse sobre los íconos */
.social-icon:hover {
    transform: scale(1.2);
}

/* Estilos para los íconos individuales */
.social-icon i {
    display: block;
    margin-bottom: 10px;
}

/* Estilo de sombra sutil */
.social-icon {
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}


/* Estilos para el footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
}

.footer-logo a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.footer-logo a:hover {
    color: #3498db;
}

.footer-text {
    font-size: 18px;
    max-width: 800px;
    text-align: center;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    font-size: 24px;
    margin: 0 15px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #3498db;
}
/* Estilos avanzados para la sección de título "Mis Habilidades" */
.skills-title {
    background-color: #3498db;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.skills-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3498db, #e74c3c);
    opacity: 0.8;
    z-index: -1;
}

.skills-title h2.section-title {
    font-size: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.skills-title p.section-subtitle {
    font-size: 24px;
    margin-bottom: 0;
}

/* Efecto de zoom al pasar el mouse sobre el título */
.skills-title:hover h2.section-title {
    transform: scale(1.05);
}

/* Efecto de animación al subtítulo */
.skills-title p.section-subtitle::before {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.skills-title:hover p.section-subtitle::before {
    width: 100%;
}
/* Estilos para la sección de Habilidades Destacadas */
.skills {
    background-color: #f9f9f9;
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 30px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skill {
    width: calc(33.33% - 40px);
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
}

.skill-info {
    text-align: left;
    margin-bottom: 10px;
}

.skill-name {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.skill-level {
    font-size: 18px;
    color: #777;
}

.skill-bar {
    height: 12px;
    background-color: #f1f1f1;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    width: 0;
    background-color: #3498db;
    border-radius: 5px;
    transition: width 1s ease;
}

/* Estilos para las barras de progreso */
.skill-bar .progress {
    height: 100%;
    border-radius: 5px;
}

/* Establece los niveles de habilidad */
.skill:nth-child(odd) .bar {
    width: 90%;
}

.skill:nth-child(even) .bar {
    width: 80%;
}

/* Estilos para la sección de imágenes de habilidades */
.skill-images {
    background-color: #f8f8f8;
    padding: 60px 0;
    text-align: center;
}

.skill-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    justify-content: center;
}

.skill-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.skill-icon {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3498db;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.skill-icon img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.skill-name {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.skill-info {
    font-size: 18px;
    color: #777;
    text-align: center;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.skill-icon:hover {
    background-color: #ff6b6b;
    transform: scale(1.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

