/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Cuerpo de la página */
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  padding: 0;
  margin: 0;
}

/* Contenedor principal */
.contenedor {
  display: flex;
  min-height: 100vh;
  padding-bottom: 50px;
}

/* CV (mitad izquierda) */
.cv {
  flex-basis: 30%;
  padding: 10px;
  background-color: #ffd900;
  border: 10px solid #ddd; /* Separador entre las dos mitades */
}
.cv li {
    color:#8f8e8e
}

.cv-listado {
    text-align: left;
}



/* Estilos del CV */
header {
  background-color: #333;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

header h1 {
  margin-bottom: 10px;
}

header p {
  font-size: 1.2em;
}

section h2 {
  margin-bottom: 10px;
  color: #222;
}

section p {
  margin-bottom: 20px;
}

ul {
  list-style-type: none;
}

ul li {
  margin-bottom: 10px;
}

/* Proyectos (mitad derecha) */
.proyectos {
  flex-basis: 70%; /* Establece que la sección de Proyectos ocupe el 50% del espacio */
  padding: 20px;
  background-color: #f4f4f4;
}

/* Cards de proyectos */
.proyecto {
  display: flex;
  background: white;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  align-items: center;
  gap: 15px;
}

.proyecto-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
}

.proyecto-contenido {
  flex: 1;
}

.proyecto h3 {
  margin-bottom: 5px;
  color: #0066cc;
}

.proyecto p {
  margin-bottom: 10px;
}

.proyecto a {
  color: #0066cc;
  text-decoration: none;
}

.proyecto a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 15px 10px;
  position: fixed;
  width: 100%;
  bottom: 0;
  height: 50px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .contenedor {
    flex-direction: column;
  }

  .cv, .proyectos {
    flex: none;
    width: 100%;
    border-right: none;
  }

  .proyecto {
    flex-direction: column;
    align-items: flex-start;
  }

  .proyecto-img {
    width: 100%;
    height: auto;
  }
}

/*Desplegables*/
.acordeon-titulo {
  width: 100%;
  text-align: center;
  padding: 12px;
  background-color: #333;
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 16px;
}

.acordeon-contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #f9f9f9;
  padding: 0 12px;
}

.acordeon-contenido div, .acordeon-contenido p {
  padding: 10px 0;
}

/*Iconos CV*/
.icono-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icono-titulo i {
  font-size: 20px;
  color:#ffd900;
}

.icono-titulo {
  margin-top: 40px;
}


.cv-info {
    padding: 0px 70px 0px 70px;
}

.foto-perfil {
  box-shadow: 0px 0px 16px 17px rgba(0, 0, 0, 0.582);
}

/*Hover del Nombre*/
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300,600,700,300italic,400italic,600italic,900,200);

.nombre {
  display: flex;
  background-color: black;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.nombre-texto {
  margin: auto;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 45px;
  text-transform: uppercase;
}

.glitch {
  position: relative;
  color: rgb(255, 255, 255);
  mix-blend-mode: lighten;

  &:before,
  &:after {
      content: attr(data-text);
      position: absolute;
      top: 0;
      width: 100%;
      background: black;
      clip: rect(0, 0, 0, 0);
  }
  
  &:before {
      left: -1px;
      text-shadow: 1px 0 rgba(red,0.7);
  }

  &:after {
      left: 1px;
      text-shadow: -1px 0 rgba(blue,0.7);
  }

  &:hover {
    &:before {
      text-shadow: 4px 0 rgba(red,0.7);
      animation: glitch-loop-1 0.8s infinite ease-in-out alternate-reverse;
    }
    &:after {
      text-shadow: -5px 0 rgba(blue,0.7);
      animation: glitch-loop-2 0.8s infinite ease-in-out alternate-reverse;
    }
  }
}

@keyframes glitch-loop-1 {
  0% { clip: rect(36px, 9999px, 9px, 0) }
  25% { clip: rect(25px, 9999px, 99px, 0) }
  50% { clip: rect(50px, 9999px, 102px, 0) }
  75% { clip: rect(30px, 9999px, 92px, 0) }
  100% { clip: rect(91px, 9999px, 98px, 0) }
}

@keyframes glitch-loop-2 {
  0% { top: -1px; left: 1px; clip: rect(65px, 9999px, 119px, 0) }
  25% { top: -6px; left: 4px; clip: rect(79px, 9999px, 19px, 0) }
  50% { top: -3px; left: 2px; clip: rect(68px, 9999px, 11px, 0) }
  75% { top: 0px; left: -4px; clip: rect(95px, 9999px, 53px, 0) }
  100% { top: -1px; left: -1px; clip: rect(31px, 9999px, 149px, 0) }
}
/* Fin Hover del nombre */

.titulo {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 30px;
  color:#8f8e8e;
  background-color: black;
  text-align: center;
  text-shadow: 0px 0px 16px 17px rgba(0, 0, 0, 0.582);
}

.sobreMi {
  flex-basis: 30%;
  padding: 10px;
  background-color: #ffd900;
}