@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* Scrollbar personalizado para navegadores modernos */
::-webkit-scrollbar {
    width: 8px; /* Ancho del scrollbar */
}

::-webkit-scrollbar-track {
    background: var(--shadow-color); /* Color del fondo del track */
    border-radius: 10px; /* Bordes redondeados */
}

::-webkit-scrollbar-thumb {
    background-color: var(--scroll); /* Color del pulgar (scroll handle) */
    border-radius: 10px; /* Bordes redondeados */
    transition: background-color 0.3s ease; /* Transición de color */
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scroll-hover); /* Cambia de color al pasar el mouse */
}


/* 1. Configuración General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.4s, color 0.4s;
    overflow-x: hidden;
}

.hidden {
    display: none;
}
:root {
    --highlight-color: #FFC107; /* Amarillo vibrante */
    --highlight-color-secondary: #FFA000; /* Amarillo oscuro para contraste */
    --type-color-github: #E6E6E6; /* Blanco plomo para texto principal */
    --project-text-color: #8A8A8A; /* Gris claro para detalles secundarios */
    --navbar-bg: #1A1A1A; /* Negro profundo para la barra de navegación */
    --scroll: #2C2C2C; /* Gris oscuro para scrollbar */
    --scroll-hover: #3E3E3E; /* Gris medio al pasar el mouse */
    --bg-color: #121212; /* Negro mate como fondo principal */
    --text-color: #E6E6E6; /* Texto blanco plomo para elegancia */
    --secondary-text-color: #A1A1A1; /* Gris medio para texto secundario */
    --secondary-text-color-new: #707070; /* Gris oscuro para texto sutil */
    --accent-color: #FFC107; /* Amarillo vibrante para resaltar detalles */
    --accent-color-light: #FFD54F; /* Amarillo claro para elementos destacados */
    --sidebar-bg: #1A1A1A; /* Negro profundo para la barra lateral */
    --card-bg: #1E1E1E; /* Negro ligeramente más claro para tarjetas */
    --shadow-color: rgba(0, 0, 0, 0.5); /* Sombras sutiles para profundidad */
    --border-color-card-bg: #333333; /* Bordes en gris oscuro */
    --service-icon-color: #FFC107; /* Íconos en amarillo vibrante */
    --icon-color-white: #FFFFFF; /* Blanco puro para íconos */
    --text-new-light-color: #D4D4D4; /* Gris claro para texto secundario */
}

/* Variables de Color para Tema Claro (White) */
/* Variables de Color para Tema Claro (White) */
body.light-mode {
    --highlight-color: #FFC107; /* Amarillo vibrante */
    --highlight-color-secondary: #FF8C00; /* Naranja oscuro para contraste */
    --type-color-github: #212529; /* Gris oscuro profesional para texto */
    --project-text-color: #6C757D; /* Gris cálido para texto secundario */
    --navbar-bg: #F1F3F5; /* Gris muy claro para la barra de navegación */
    --scroll: #B0B3B8; /* Gris claro para scrollbar */
    --scroll-hover: #A0A3A8; /* Gris más oscuro al pasar el mouse */
    --bg-color: #F8F9FA; /* Gris claro como fondo principal */
    --text-color: #212529; /* Texto negro elegante */
    --secondary-text-color: #495057; /* Gris oscuro para texto secundario */
    --secondary-text-color-new: #6C757D; /* Gris cálido para texto terciario */
    --accent-color: #FFC107; /* Amarillo vibrante para detalles */
    --accent-color-light: #FFD54F; /* Amarillo claro para destacar */
    --sidebar-bg: #E9ECEF; /* Fondo gris claro para barra lateral */
    --card-bg: #FFFFFF; /* Blanco puro para tarjetas */
    --shadow-color: rgba(0, 0, 0, 0.1); /* Sombra ligera y profesional */
    --border-color-card-bg: #CED4DA; /* Bordes gris claro */
    --service-icon-color: #FFC107; /* Íconos en amarillo vibrante */
    --icon-color-white: #212529; /* Iconos en gris oscuro */
    --text-new-light-color: #ADB5BD; /* Texto claro y profesional */
}

/* 3. Estructura Principal */
.container {
    display: flex;
    height: 100vh;
    max-width: 1100px;
    margin: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-color);
}

/* 4. Partículas de Fondo */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
}

.particles::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-color) 1px, transparent 1px);
    background-size: 10px 10px;
    animation: animateBg 30s linear infinite;
    opacity: 0.2;
}

@keyframes animateBg {
    from { transform: translate(0, 0); }
    to { transform: translate(-50%, -50%); }
}

/* 5. Diseño de la Barra Lateral (Sidebar) */
.sidebar {
    width: 25%;
    background-color: var(--sidebar-bg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-color);
    object-fit: cover; /* Asegura que la imagen se ajuste sin perder su proporción */
}

.profile-img:hover {
    transform: scale(1.05);
}

.profile-info {
    text-align: center;
    margin-bottom: 15px;
}

.profile-info h2 {
    font-size: 1.0rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
    font-family: 'Merriweather', serif;

}

.profile-info h4 {
    font-size: 0.65rem;
    color: var(--accent-color);
    text-transform: uppercase;
}

/* 6. Información del Perfil con Iconos */
/* Información del Perfil con Iconos */
.info-section {
    width: 100%;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.info-icon {
    background-color: var(--bg-color);
    padding: 8px;
    font-size: 1.0rem;
    color: var(--accent-color);
    border-radius: 50%;
}

.info-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-title {
    font-size: 0.6rem;
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.info-value-email {
    font-size: 0.7rem;
    color: var(--text-color);
    font-weight: 500;
    position: relative; /* Asegúrate de que el tooltip se posicione correctamente */
}
.info-value {
    font-size: 0.7rem;
    color: var(--text-color);
    font-weight: 500;
    position: relative; /* Asegúrate de que el tooltip se posicione correctamente */
}

/* Estilo para el contenedor de correos adicionales */
.additional-emails {
    position: absolute;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 10px;
    border-radius: 5px;
    font-size: 0.6rem;
    top: 120%; /* Ajuste la posición del tooltip */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Sombra para el tooltip */
    transition: opacity 0.3s, visibility 0.3s;
    opacity: 0; /* Inicialmente invisible */
    visibility: hidden; /* Inicialmente oculto */
}

/* Mostrar el tooltip cuando se activa */
.additional-emails.show {
    opacity: 1;
    visibility: visible;
}




/* 7. Boton de descarga */
/* Botón Principal */
.button {
    --width: 8rem;
    --height: 2.7rem;
    --tooltip-height: 25px;
    --tooltip-width: 80px;
    --gap-between-tooltip-to-button: 18px;
    --button-color: var(--card-bg);
    --tooltip-color: var(--accent-color);
    
    width: var(--width);
    height: var(--height);
    background: var(--button-color);
    border-radius: 0.45em;
    position: relative;
    cursor: pointer;
    font-family: "Arial";
    text-align: center;
    transition: background 0.3s;
    margin-top: 40px;
    box-shadow: 0 4px 20px var(--shadow-color);

}

/* Tooltip (Texto) */
.button::before {
  content: attr(data-tooltip);
  position: absolute;
  width: var(--tooltip-width);
  height: var(--tooltip-height);
  background-color: var(--tooltip-color);
  color: #111;
  font-size: 0.55rem;
  border-radius: 0.25em;
  line-height: var(--tooltip-height);
  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5%); /* Centra el tooltip */
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
}

/* Tooltip (Flecha) */
.button::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: var(--tooltip-color);
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + var(--gap-between-tooltip-to-button) - 8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
}

/* Contenedor del Texto y del Icono */
.button-wrapper, .button-wrapper i , .text{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* Centra el contenido horizontalmente */
  color: var(--icon-color-white);
  overflow: hidden;
}

.text {
  transition: top 0.5s;
  font-size: 8.5px;
}

.button-wrapper i {
  top: 100%; /* Inicialmente el icono está fuera de la vista */
  transition: top 0.5s;
  display: flex;
  align-items: center;
  justify-content: center; /* Centra el icono horizontalmente */
  text-align: center;
}
/* Estilo del SVG para ajustar el tamaño */
.button-wrapper i svg {
    width: 1.0em; /* Ajusta el tamaño según sea necesario */
    height: 1.0em; /* Ajusta el tamaño según sea necesario */
}

/* Efectos Hover */
.button:hover {
  background: var(--bg-color);
}

.button:hover .text {
  top: -100%; /* Mueve el texto hacia arriba */
}

.button:hover .button-wrapper i  {
  top: 0; /* Mueve el icono hacia el centro */
}

.button:hover::before,
.button:hover::after {
  opacity: 1;
  visibility: visible;
}

.button:hover::after {
  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) - 20px);
}

.button:hover::before {
  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button));
}


/* 7. Redes Sociales */
.social-icons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    position: relative;
}

.social-icons a {
    color: var(--icon-color-white);
    font-size: 1.2rem;
    transition: color 0.3s ease;
    position: relative;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.social-icons a:hover::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover::before {
    content: attr(data-preview);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    text-align: center;
    font-size: 0.75rem;
    background-color: black;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(8px);
}



/* Reloj arriba */
.clock-container {
    position: fixed;
    top: 20px; /* Ahora está arriba */
    left: 20px;
    font-size: 0.8rem;
    color: var(--text-color);
    background-color: var(--card-bg);
    padding: 5px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clock-container i {
    margin-right: 5px;
    color: var(--accent-color);
}

.clock-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 12px var(--shadow-color);
}

/* Switch debajo */
.mode-switch {
    position: fixed;
    top: 60px; /* Ahora está debajo del reloj */
    left: 20px;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background-color: var(--card-bg);
    border: none;
    cursor: pointer;
    /* display: flex; */
    display: none;
    align-items: center;
    padding: 0 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    overflow: hidden;
}

/* Slider circular */
.mode-switch::before {
    content: '';
    position: absolute;
    left: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--highlight-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 2;
}

/* Iconos dentro del interruptor */
.mode-switch .icons {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px; /* Aumentado el padding para mejor posicionamiento */
    z-index: 1;
}

.mode-switch .icon-moon {
    margin-left: auto; /* Mantiene el icono de luna a la derecha */
    color: var(--text-color);
    opacity: 0.7;
    font-size: 14px;
    transform: translateX(2px); /* Ajuste fino para centrar */
}

.mode-switch .icon-sun {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 14px;
    transform: translateX(-2px); /* Ajuste fino para centrar */
}

/* Cuando está en modo claro */
body.light-mode .mode-switch::before {
    transform: translateX(28px);
    background-color: var(--highlight-color);
}

body.light-mode .mode-switch {
    background-color: var(--card-bg);
}

body.light-mode .mode-switch .icon-sun {
    opacity: 1;
}

body.light-mode .mode-switch .icon-moon {
    opacity: 0.7;
}

/* Cuando está en modo oscuro */
body.dark-mode .mode-switch .icon-moon {
    opacity: 1;
}

body.dark-mode .mode-switch .icon-sun {
    opacity: 0.7;
}

/* Efecto hover */
.mode-switch:hover {
    box-shadow: 0 3px 12px var(--shadow-color);
    transform: translateY(-2px);
}



/* 9. Diseño del Navbar */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--navbar-bg);
}
.AllContent{
    width: 100%;
    display: flex;
    justify-content: center;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    color: var(--text-color);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: var(--accent-color);
}

/* 10. Contenido Principal */
.main-content {
    flex: 1;
    padding: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content:flex-start;
    align-items: flex-start;
    background-color: var(--bg-color);
    overflow-y: auto;
}

/* 11. Contenedor de Título y Presentación */
.presentation-container {
    margin-bottom: 30px;
}

.presentation-container h2 {
    font-size: 1.6rem;
    color: var(--accent-color);
    display: inline-block;
    margin-bottom: 15px;
    overflow: hidden;
    border-right: 2px solid var(--accent-color);
    white-space: nowrap;
    animation: typing 3.7s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 16ch; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-color); }
}

.presentation-container p {
    font-size: 0.8rem;
    color: var(--text-color);
    line-height: 1.6;
    text-align: justify;
    font-family: 'Merriweather', serif;
}

/* 12. Diseño de las Tarjetas de Servicio */

.services {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 0px 0; /* Espaciado superior e inferior */
}
.services::before {
    content: "";
    display: block;
    width: 100%; /* Ancho del separador */
    height: 1px; /* Grosor del separador */
    background-color: var(--card-bg); /* Color del separador */
    margin: 0 auto 20px auto; /* Centra el separador y añade espacio debajo */
}
.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 30px;
    margin-bottom: 30px;
}
.services h2 {
    font-size: 0.8rem; /* Tamaño de fuente más sutil */
    font-weight: 600; /* Peso de fuente moderado */
    color: var(--secondary-text-color); /* Color del texto */
    text-transform: uppercase; /* Mayúsculas para un estilo profesional */
    letter-spacing: 1px; /* Espaciado entre letras para un look más limpio */
    position: relative;
    display: inline-block;
    transition: color 0.3s ease; /* Transición de color suave */

}
/* Efecto Hover en la Sección `services` */
.services:hover h2 {
    color: var(--text-new-light-color); /* Cambia el color del título en hover */
}
.services h2::after {
    content: "";
    display: block;
    width: 50px; /* Ancho de la línea decorativa debajo del título */
    height: 1px; /* Grosor de la línea decorativa */
    background-color: var(--accent-color-light); /* Color de la línea decorativa */
    margin: 8px auto 0; /* Espaciado superior y centra la línea */
    opacity: 0.8; /* Hace la línea más sutil */
}

.card {
    position: relative;
    cursor: pointer;
    width: 100%;
    max-width: 11em;
    padding: 1em;
    background: var(--card-bg);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    border: 1px solid var(--border-color-card-bg); /* Borde azul */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Sombra más sutil al hacer hover */
}

/* Efecto de Línea en la Tarjeta */
.card::before, .card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.card::before {
    background: var(--accent-color);
    width: 0;
    opacity: 0;
    transition: opacity 0 ease, width 0 ease;
    transition-delay: 0.5s;
}

.card::after {
    background: var(--card-bg);
    width: 100%;
    transition: width 0.5s ease;
}

.card:hover::before {
    width: 100%;
    opacity: 1;
    transition: opacity 0.5s ease, width 0.5s ease;
    transition-delay: 0;
}

.card:hover::after {
    width: 0;
    opacity: 0;
    transition: width 0 ease;
}

/* Icono y Título de Servicio */
.service-icon {
    font-size: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    margin-bottom: 6px;
}

.h6 {
    font-size: 0.6rem;
    color: var(--secondary-text-color);
    font-family: 'Merriweather', serif;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
    margin-top: 9px;
    transition: color 0.3s ease;
}

.card:hover .h6 {
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 0.61rem;
}


.hover_content {
    font-family: 'Merriweather', serif;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    text-align: justify;
    color: var(--secondary-text-color);
    line-height: 1.3em;
    font-size: 0.6rem;
}

.card:hover .hover_content {
    max-height: 80px;
    opacity: 1;
}

/* 13. Sección de Experiencia y Línea de Tiempo */
.experience-section {
    position: relative;
    width: 100%;
    text-align: start;
    margin: 20px 0;
    transition: color 0.3s ease; /* Transición de color suave */
}

/* Efecto Hover en la Sección `services` */
.experience-section:hover h2 {
    color: var(--text-new-light-color); /* Cambia el color del título en hover */
}
.experience-section::before {
    content: "";
    display: block;
    width: 100%; /* Ancho del separador */
    height: 1px; /* Grosor del separador */
    background-color: var(--card-bg); /* Color del separador */
    margin: 0 auto 20px auto; /* Centra el separador y añade espacio debajo */
}

.experience-section h2 {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: auto;
}

.timeline::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--accent-color);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.1; /* Más sutil */
}

.timeline-subtitle {
    font-size: 0.9rem;
    color: var(--secondary-text-color-new);
    margin-top: 3px;
    margin-bottom: 9px;
}

.timeline-subtitle .year {
    color: var(--text-color); /* Color personalizado para los años */
}


.timeline-item {
    display: flex;
    align-items: center; /* Alinea los iconos verticalmente al centro */
    width: 60%;
    padding: 10px 20px;
    background-color: var(--card-bg);
    border-radius: 5px;
    position: relative;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    border: 1px solid var(--border-color-card-bg); /* Borde azul */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Merriweather', serif;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    align-self: flex-start;
    margin-right: auto;
    text-align: justify;
}

.timeline-item.right {
    align-self: flex-end;
    margin-left: auto;
    text-align: justify;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.7; /* Punto más sutil */
}

.timeline-item.left::before {
    right: -15px;
}

.timeline-item.right::before {
    left: -15px;
}

.timeline-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
    background-color: var(--bg-color);
    padding: 8px;
    border-radius: 50%;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.timeline-content {
    max-width: 80%; /* Ajuste para hacerlo más pequeño */
}

.timeline-item h3 {
    font-size: 0.70rem; /* Más pequeño */
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-item p {
    font-size: 0.60rem; /* Más pequeño */
    color: var(--secondary-text-color);
    line-height: 1.4;
}

.timeline-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Sombra más sutil al hacer hover */
}

.timeline-item::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 25px;
    height: 1px;
    background-color: var(--accent-color);
    transform: translateY(-50%);
    opacity: 0.1; /* Línea más sutil */
}

.timeline-item.left::after {
    right: -25px;
}

.timeline-item.right::after {
    left: -25px;
}

.highlight {
    color: var(--highlight-color); /* Color por defecto y variable para modo claro */
}

.highlight-secondary {
    color: var(--highlight-color-secondary); /* Color por defecto y variable para modo claro */
}


/* Sección de Reseñas */
.reviews-section {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 0px 0; /* Espaciado superior e inferior */
}
.reviews-section::before {
    content: "";
    display: block;
    width: 100%; /* Ancho del separador */
    height: 1px; /* Grosor del separador */
    background-color: var(--card-bg); /* Color del separador */
    margin: 0 auto 20px auto; /* Centra el separador y añade espacio debajo */
}

.reviews-section h2 {
    font-size: 0.8rem; /* Tamaño de fuente más sutil */
    font-weight: 600; /* Peso de fuente moderado */
    color: var(--secondary-text-color); /* Color del texto */
    text-transform: uppercase; /* Mayúsculas para un estilo profesional */
    letter-spacing: 1px; /* Espaciado entre letras para un look más limpio */
    position: relative;
    display: inline-block;
    transition: color 0.3s ease; /* Transición de color suave */

}

.reviews-section:hover h2 {
    color: var(--text-new-light-color); /* Cambia el color del título en hover */
}
.reviews-section h2::after {
    content: "";
    display: block;
    width: 50px; /* Ancho de la línea decorativa debajo del título */
    height: 1px; /* Grosor de la línea decorativa */
    background-color: var(--accent-color-light); /* Color de la línea decorativa */
    margin: 8px auto 0; /* Espaciado superior y centra la línea */
    opacity: 0.8; /* Hace la línea más sutil */
}

.reviews-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 30px;
    margin-bottom: 30px;
}

.review-card {
    background-color: var(--card-bg); /* Fondo negro sutil */
    border-radius: 8px;
    padding: 15px;
    width: 200px; /* Ancho fijo para las tarjetas */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    border: 1px solid var(--border-color-card-bg); /* Borde azul */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Sombra más sutil al hacer hover */
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: center;
}

.reviewer-img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 10px;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-size: 0.65rem;
    color: var(--icon-color-white);
    font-weight: 500;
}

.review-stars {
    display: flex;
    gap: 3px;
}

.star, .star-half {
    color: #FFD700; /* Color dorado para las estrellas */
    font-size: 0.3rem;
}

.review-text {
    font-size: 0.6rem;
    color: var(--secondary-text-color);
    line-height: 1.4;
    font-style: italic;
}


/* 15. PROYECTOS */

#proyectos{
    width: 100%;

}
.filter-section {
    margin-bottom: 30px;
    width: auto;
}
.filter-container {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: start;
}

.group {
    display: flex;
    line-height: 28px;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 120px; /* Ajusta el tamaño según sea necesario */
}

.group-search{
    display: flex;
    line-height: 28px;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 220px; /* Ajusta el tamaño según sea necesario */
}

.input {
    font-family: "Montserrat", sans-serif;
    width: 100%;
    height: 45px;
    padding-left: 2.8rem;
    box-shadow: 0 0 0 1.5px var(--bg-color), 0 0 25px -17px #000;
    border: 0;
    border-radius: 12px;
    background-color: var(--card-bg);
    outline: none;
    color: var(--text-color);
    transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: text;
    z-index: 0;
    appearance: none; /* Oculta el diseño nativo de los select */
}

.input::placeholder {
    color: var(--secondary-text-color);
}

.input:hover {
    box-shadow: 0 0 0 2.5px var(--bg-color), 0px 0px 25px -15px #000;
}

.input:active,
.input:focus {
    transform: scale(0.95);
    box-shadow: 0 0 0 2.5px var(--card-bg);
}

.search-icon,
.icon {
    position: absolute;
    left: 1rem;
    fill: #bdbecb;
    width: 1.2rem;
    height: 1.2rem;
    pointer-events: none;
    z-index: 1;
}

.icon {
    width: 1.1rem;
    height: 1.1rem;
}


.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: start;
    align-items: center;
}

.gallery-section {
    min-width: 100%; /* Define una altura mínima para evitar que colapse */
}


.gallery-item {
    position: relative;
    width: 300px; /* Ajusta el tamaño de las imágenes según sea necesario */
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    border: 1px solid var(--border-color-card-bg); /* Borde azul */
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .project-img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.project-name {
    font-size: 13px;
    font-weight: bold;
    color: var(--project-text-color);
    margin-bottom: 10px; /* Espacio entre el título y los iconos */
    text-align: center;
}

.code-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    color: var(--icon-color-white);
    background-color: var(--bg-color);
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s;
    text-decoration: none;
}

.code-icon:hover {
    background-color: var(--bg-color);
    cursor: pointer;
    color: var(--secondary-text-color);
}


.icon-container {
    display: flex;
    gap: 15px;
}

.icon-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 80px; /* Ajusta el ancho del tooltip según sea necesario */
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    position: absolute;
    bottom: 125%; /* Posición encima del icono */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 9.5px;
    white-space: nowrap;
    z-index: 1;
}

.icon-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.project-icon {
    color: white;
    font-size: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.project-icon:hover {
    transform: scale(1.2);
    color: var(--accent-color); /* Cambia el color del icono al pasar el ratón por encima */
}


/* 15. ACTIVIDAD GITHUB */
/* Sección mejorada de Actividad de GitHub */
.github-activity-section {
    text-align: start;
}
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.activity-item {
    display: flex;
    gap: 15px;
    padding: 30px;
    border-radius: 6px;
    background-color: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    border: 1px solid var(--border-color-card-bg); /* Borde azul */
    margin-bottom: 15px;
    overflow: hidden;
    align-items: flex-start;
    width: 100%;
}
.activity-item:hover {
    transform: translateY(-2px);
}
.profile-picture {
    margin-top: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
}
.activity-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}
.activity-title {
    font-size: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
}
.activity-title a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 5px;
    font-size: 0.75rem;
    cursor: pointer;
}
.activity-type {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--type-color-github);
    text-transform: uppercase;
}
.activity-type.push {
    background-color: #4CAF50;
}
.activity-type.pull {
    background-color: #2196F3;
}
.activity-type.fork {
    background-color: #FF9800;
}
.activity-type.issue {
    background-color: #f44336;
}
.activity-type.create {
    background-color: #8e44ad;
}
.activity-type.delete {
    background-color: #e74c3c;
}

.description-label {
    font-size: 0.65rem;
    color: var(--secondary-text-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.description-value {
    font-size: 0.55rem;
    color: var(--accent-color);
    line-height: 1.4;
}
.additional-details {
    font-size: 0.65rem;
    color: var(--secondary-text-color);
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.additional-details span {
    display: flex;
    gap: 5px;
    align-items: center;
}
.data-title {
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 5px;
}
.data-value {
    font-size: 0.55rem;
    color: var(--accent-color-light);
}
.activity-time-container {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    color: var(--secondary-text-color);
    margin-top: 5px;
}
.clock-icon {
    font-size: 0.8rem;
}
.forked-by {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}
.forked-by a{
    display: flex;
    align-items: center;
}
.forked-picture {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    cursor: pointer;
}
.forked-text {
    font-size: 0.65rem;
    color: var(--secondary-text-color);
}


#contacto{
    width: 100%;
}
/* 3. Estructura del formulario de contacto */
.container-contact {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    border: 1px solid var(--border-color-card-bg); /* Borde azul */
    width: 60%;
    margin: 0 auto;
    animation: fadeIn 1s ease-in-out;
}

.container-contact:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Sombra más sutil al hacer hover */
}

.container-contact h2 {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 30px;
    font-size: 1.0rem;
}

/* Estilo de los inputs */
.input-group {
    margin-bottom: 20px;
}

.input-group label, .input-group p {
    display: block;
    color: var(--secondary-text-color);
    font-size: 0.65rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.input-group span {
    color: #dc3545; /* Rojo para error */
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color-card-bg);
    border-radius: 8px;
    background-color: var(--border-color-card-bg);
    color: var(--text-color);
    font-size: 0.8rem;
    transition: border 0.3s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Estilo del botón */
.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-color);
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn:hover {
    color: var(--bg-color);
    background-color: var(--accent-color);
}

.submit-btn i {
    margin-right: 10px;
}

/* Animación del formulario */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4. Notificación emergente */
.notification {
    position: fixed;
    top: 20px;
    right: 15px;
    background-color: #28a344; /* Verde para éxito */
    color: var(--text-color);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(-50px);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.notification.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.notification.error {
    background-color: #dc3545; /* Rojo para error */
}

.notification i {
    margin-right: 10px;
}

#message {
    resize: vertical;  /* Permite redimensionar solo verticalmente */
    max-height: 300px; /* Límite máximo de altura */
}





/* Estilo para el ícono flotante */
.music-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4em;
    height: 4em;
    position: fixed;
    bottom: 30px;  /* Ajusta la distancia desde el fondo */
    right: 30px;  /* Ajusta la distancia desde la derecha */
    background-color: #1DB954;  /* Color verde de Spotify */
    color: white;
    border-radius: 50%;
    font-size: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    transition: all 0.3s ease-in-out;
}

/* Cambia el tamaño del ícono al pasar el mouse sobre él */
.music-icon:hover {
    transform: scale(1.1);
}

/* Estilo para el reproductor de Spotify (inicialmente oculto) */
.music-player {
    position: fixed;
    bottom: 90px;  /* Ajusta la distancia desde el fondo */
    right: 30px;   /* Ajusta la distancia desde la derecha */
    width: 100%;
    max-width: 400px; /* Limita el ancho máximo */
    background-color: rgba(255, 255, 255, 0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: none; /* Inicialmente oculto */
    z-index: 999; /* Asegura que esté por encima de otros elementos */
}



/* 15. Diseño Responsive */
@media (max-width: 1000px) {
    .activity-title {
        font-size: 0.8rem;
        margin-right: 10px;
    }

    .activity-title a {
        font-size: 0.7rem;
    }

    .description-label {
        font-size: 0.6rem;
    }

    .description-value {
        font-size: 0.5rem;
    }

    .additional-details {
        font-size: 0.6rem;
    }

    .data-value {
        font-size: 0.5rem;
    }

    .activity-time-container{
        font-size: 0.6rem;
    }
    .clock-icon{
        font-size: 0.7rem;
    }
    .forked-text{
        font-size: 0.6rem;
    }

    .activity-type {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    .container-contact{
        width: 80%;
    }
    .container {
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    .sidebar {
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    .main-content {
        flex: 1;
        width: 100%;
        padding: 20px;
        overflow-x: hidden;
        align-items: center;
    }

    .navbar {
        width: 100%;
        justify-content: center;
    }

    .navbar ul li a {
        font-size: 0.8rem;
    }
    .service-cards {
        grid-template-columns: 1fr 1fr;
    }

    .review-card {
        width: calc(50% - 40px);
    }

    .timeline {
        width: 100%;
    }

    .timeline-item {
        width: 100%;
        align-items: flex-start;
    }

    .timeline-item.left, .timeline-item.right {
        align-self: center;
        margin: 20px 0;
    }

    .timeline-item::before {
        left: -25px;
    }

    .timeline-item.right .timeline-icon,
    .timeline-item.left .timeline-icon {
        margin-left: 0;
        margin-right: 15px;
    }
    .filter-section {
        margin-bottom: 30px;
        width: 100%;
        justify-content: center;
    }
    .filter-container {
        flex-direction: column;
        align-items: center;
    }
    .gallery-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .music-icon {
        display: none;  /* Oculta el ícono en pantallas con un ancho de 768px o menos */
    }

}

@media (max-width: 480px) {
    .activity-type {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
    .activity-title {
        font-size: 0.7rem;
    }

    .activity-title a {
        font-size: 0.6rem;
    }
    .description-label {
        font-size: 0.5rem;
    }
    .description-value{
        font-size: 0.4rem;
    }
    .additional-details {
        font-size: 0.5rem;
    }
    .data-value {
        font-size: 0.4rem;
    }
    .activity-time-container{
        font-size: 0.5rem;
    }
    .clock-icon{
        font-size: 0.6rem;
    }
    .forked-text{
        font-size: 0.5rem;
    }
    .container-contact{
        width: 100%;
    }
    .service-cards {
        grid-template-columns: 1fr;
    }

    .review-card {
        width: 100%;
    }
    .main-content {
        width: 100%; /* Asegura que el ancho sea del 100% */
        padding: 30px; /* Ajusta el padding para pantallas más pequeñas */
        overflow-x: hidden; /* Evita el desbordamiento horizontal */
    }

    .filter-section {
        width: 100%; /* Asegura que el ancho sea del 100% */
    }

    .music-icon {
        display: none;  /* Oculta el ícono en pantallas con un ancho de 768px o menos */
    }
}
