/*==========================================================TRANSICION DE INICIO==============================================================*/
#preloader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #5c5c5c;  /* Fondo gris */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease; /* Suavizado de salida */
}

.loader {
    position: relative;
    width: 2.5em;
    height: 2.5em;
    transform: rotate(165deg);
}

.loader:before, .loader:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 0.5em;
    height: 0.5em;
    border-radius: 0.25em;
    transform: translate(-50%, -50%);
}

.loader:before {
    animation: before8 3s infinite;
}

.loader:after {
    animation: after6 2s infinite;
}

@keyframes before8 {
    0% {
        width: 0.5em;
        box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
    }
    35% {
        width: 2.5em;
        box-shadow: 0 -0.5em rgba(225, 20, 98, 0.75), 0 0.5em rgba(111, 202, 220, 0.75);
    }
    70% {
        width: 0.5em;
        box-shadow: -1em -0.5em rgba(225, 20, 98, 0.75), 1em 0.5em rgba(111, 202, 220, 0.75);
    }
    100% {
        box-shadow: 1em -0.5em rgba(225, 20, 98, 0.75), -1em 0.5em rgba(111, 202, 220, 0.75);
    }
}

@keyframes after6 {
    0% {
        height: 0.5em;
        box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
    }
    35% {
        height: 2.5em;
        box-shadow: 0.5em 0 rgba(61, 184, 143, 0.75), -0.5em 0 rgba(233, 169, 32, 0.75);
    }
    70% {
        height: 0.5em;
        box-shadow: 0.5em -1em rgba(61, 184, 143, 0.75), -0.5em 1em rgba(233, 169, 32, 0.75);
    }
    100% {
        box-shadow: 0.5em 1em rgba(61, 184, 143, 0.75), -0.5em -1em rgba(233, 169, 32, 0.75);
    }
}

/* Ocultar el contenido de la página principal hasta que el preloader desaparezca */
.hidden {
    display: none;
}

/* Transición suave para el contenido de la página principal */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards; /* Efecto de desvanecimiento para el contenido principal */
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/*=========================================================BODY=====================================================*/
/* Cambiar la fuente a Times New Roman en toda la página */
body {
    font-family: "Times New Roman", Times, serif;
}

/* Sección contenedor */
.section {
    padding: 40px;
    margin-bottom: 50px;
    background-color: #f6f6f6; /* Color de fondo para diferenciar las secciones */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra ligera */
}

/* Estilos del formulario */
form {
    margin-top: 20px;
}

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

form button {
    padding: 10px 20px;
    background-color: #272727;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #fddb3a;
    color: #272727;
}

/* Barra lateral de navegación a la izquierda y fija */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 290px; /* Ancho de la barra lateral */
    height: 100%; /* Altura completa */
    background-color: #1f2e5f; /* Color de fondo */
    padding: 40px; /* Espaciado interno */
      z-index: 1000; /* Colocar la barra lateral en un nivel superior */
}

/* Estilos para el nombre en blanco */
.profile h2 {
    color: #d4d4d4; /* Nombre José Carlos en blanco */
    text-align: center;
}

.redes-sociales h2 {
    color: #d4d4d4; /* Nombre Redes Sociales en blanco */
    text-align: center;
}

/* Contenedor principal centrado y respetando margen */
.container {
    margin-left: 330px; /* Deja espacio para la barra lateral */
    padding: 20px;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente si es necesario */
    height: 100vh; /* Ajustar para ocupar toda la altura de la ventana */
    box-sizing: border-box; /* Incluye padding en el ancho y alto */
    z-index: 0; /* Colocar la barra lateral en un nivel superior */
}

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

.profile-image {
    width: 200px;
    height: 200px; /* Hacer la imagen más simétrica */
    border-radius: 50%;
    margin-bottom: 10px;
}

/* Estilos de la navegación */
.navMenu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.navMenu a {
    color: #65c5f1; /* Color de hover */
    text-decoration: none;
    padding: 10px;
    transition: background-color 0.3s;
    border-radius: 5px;
}

.navMenu a:hover {
    color: #d4d4d4;
}

/* Animación fade-in */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Redes sociales en bloque con texto blanco */
.redes-sociales {
    margin-top: 40px;
    display: flex;
    gap: 10px; /* Espacio entre cada enlace */
    justify-content: center; /* Centrar las tarjetas horizontalmente */
}

.redes-sociales a {
    color: #65c5f1; /* Texto de redes sociales en blanco */
    text-decoration: none;
    padding: 10px; /* Espacio alrededor del texto del enlace */
    background-color: #272727; /* Color de fondo para los enlaces */
    border-radius: 5px; /* Bordes redondeados */

}

.redes-sociales a:hover {
    color: #d4d4d4; /* Color de hover */
   
}

.navMenu a.active {
    color: #d4d4d4; /* Color de texto blanco */
    position: relative; /* Posicionamiento relativo para el pseudo-elemento */
}

.navMenu a.active::after {
    content: ""; /* Pseudo-elemento para el punto */
    display: block; /* Muestra el pseudo-elemento como bloque */
    width: 5px; /* Ancho del punto */
    height: 5px; /* Alto del punto */
    background-color: #d4d4d4; /* Color del punto */
    border-radius: 50%; /* Hace que el punto sea redondo */
    position: absolute; /* Posición absoluta para colocarlo correctamente */
    right: -10px; /* Ajusta la posición del punto a la derecha */
    top: 50%; /* Centra verticalmente el punto */
    transform: translateY(-50%); /* Ajusta el punto para que esté centrado */

}

/* Estilo general para el modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1001; /* Aseguramos que esté por encima de otros elementos */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro semi-transparente */
    justify-content: center;
    align-items: center;
}

/* Contenedor del contenido del modal */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 50%; /* Ancho del modal */
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1002; /* Aseguramos que el contenido del modal esté por encima del fondo */
}

/* Botón de cierre */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1003; /* El botón de cierre está por encima de todo en el modal */
}

/* Hacer visible el modal */
.modal.visible {
    display: flex;
}

/* Evitar que el contenido de fondo sea interactivo */
.modal.visible ~ * {
    pointer-events: none; /* Deshabilita las interacciones con el contenido detrás del modal */
}

/* ==============================================================================CARTA PORTFOLIO=================================================================================================*/
.card {
    --font-color: #323232;
    --font-color-sub: #666;
    --bg-color: #fff;
    --main-color: #323232;
    --main-focus: #2d8cf0;
    width: 230px;
    height: 300px;
    background: var(--bg-color);
    border: 2px solid var(--main-color);
    box-shadow: 4px 4px var(--main-color);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    gap: 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }
  
  .card:last-child {
    justify-content: flex-end;
  }
  
  .card-img {
      /* clear and add new css */
    transition: all 0.5s;
    display: flex;
    justify-content: center;
  }
  
  .card-img .img {
   /* delete */
    transform: scale(1);
    position: relative;
    box-sizing: border-box;
    width: 100px;
    height: 100px;
 
   

   
  }
  
  .card-img .img::before {
   /* delete */
    content: '';
    position: absolute;
    width: 65px;
    height: 110px;
    margin-left: -32.5px;
    left: 50%;
    bottom: -4px;
    background-repeat: no-repeat;
    background-size: 60% 10%,100% 100%,100% 65%,100% 65%,100% 50%;
    background-position: center 3px,center bottom,center bottom,center bottom,center bottom;
    border-radius: 0 0 4px 4px;
    z-index: 2;
  }
  
  .card-img .img::after {
   /* delete */
    content: '';
    position: absolute;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    left: 50%;
    top: -13px;
    background-repeat: no-repeat;
    background-size: 100% 100%,100% 100%,100% 100%,100% 100%,100% 100%,100% 75%,100% 95%,100% 60%;
    background-position: center center;
    border-top-left-radius: 120px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 70px;

    transform: rotate(45deg);
    z-index: 1;
  }

  
  .card-title {
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    color: var(--font-color);
  }
  
  .card-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--font-color-sub);
  }
  
  .card-divider {
    width: 100%;
    border: 1px solid var(--main-color);
    border-radius: 50px;
  }
  
  .card-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .card-price {
    font-size: 20px;
    font-weight: 500;
    color: var(--font-color);
  }
  
  .card-price span {
    font-size: 20px;
    font-weight: 500;
    color: var(--font-color-sub);
  }
  
  .card-btn {
    height: 35px;
    background: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 5px;
    padding: 0 15px;
    transition: all 0.3s;
  }
  
  .card-btn svg {
    width: 100%;
    height: 100%;
    fill: var(--main-color);
    transition: all 0.3s;
  }
  
  .card-btn:hover {
    border-color: var(--main-focus);
    color: var(--main-focus);
}
  .card-btn:hover {
    border: 2px solid var(--main-focus);
  }
  
  .card-btn:hover svg {
    fill: var(--main-focus);
  }
  
  .card-btn:active {
    transform: translateY(3px);
  }
  /* Cartas en filas de 4 en dos*/
  .card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 tarjetas por fila */
    grid-gap: 20px; /* Espacio entre tarjetas */
    justify-items: center; /* Centrar las tarjetas */
    margin: 20px auto; /* Añadir espacio fuera del contenedor */
    max-width: 1000px; /* Limitar el ancho máximo */
}

.card-img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px; /* Ajusta según la altura que necesites */
    overflow: hidden; /* Oculta cualquier parte de la imagen que se salga del contenedor */
}

.card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Asegura que la imagen se ajuste bien dentro del contenedor */
    border-radius: 5px; /* Si quieres que las imágenes tengan bordes redondeados */
}


/*====================================================================HABILIDADES================================================================================*/

.skills-section {
    padding: 20px;
    background-color: #f5f7fa; /* Fondo claro */
    border-radius: 10px;
}

.skills-section h2 {
    font-size: 32px;
    color: #2c3e50;
    border-bottom: 3px solid #0a7ec2;
    display: inline-block;
    margin-bottom: 10px;
}

.skills-section p {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 30px;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 20px; /* Espacio entre columnas */
}

.skill {
    display: flex;
    align-items: center;
}

.skill span {
    width: 100px; /* Ancho del texto */
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 10px;
    background-color: #a0dfff; /* Fondo de la barra (un azul más claro) */
    border-radius: 5px;
    margin: 0 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #007bff; /* Color de progreso azul más fuerte */
    border-radius: 5px;
}

.percentage {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
}


.row {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}
.column {
    width: 45%;
}
.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: #007bff;
}
.timeline-item {
    margin-bottom: 30px;
}
.timeline-item h3 {
    margin: 0;
    font-size: 18px;
}
.timeline-item p {
    margin: 5px 0;
}
.timeline-item span {
    display: block;
    color: gray;
    font-size: 14px;
}
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}


/*-------------------------------------FOOTER-----------------------------------------------------------*/

/* Estilos para el footer */
footer {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9em;
    color: #f6f4e6;
}


/*=======================================RESPONSIVE DISPOSITIVOS===============================================*/
/* Pantallas pequeñas: moviles */
@media (max-width: 600px) {
.sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 290px; /* Ancho de la barra lateral */
    height: 20%; /* Altura completa */
    background-color: #1f2e5f; /* Color de fondo */
    padding: 40px; /* Espaciado interno */
      z-index: 1000; /* Colocar la barra lateral en un nivel superior */
}



}