@import url("https://fonts.googleapis.com/css2?family=Righteous&family=Work+Sans:wght@100;300;400;600;800&display=swap");

* {
  box-sizing: border-box;
  font-family: "Work Sans";
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* MENU */
.contenedor-header {
  transition: transform 0.4s ease, opacity 0.4s ease;
  background: #1e23264b;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 99;
}

.contenedor-header.oculto {
  transform: scale(0.8) translateY(-50px);
  opacity: 0;
  pointer-events: none;
}

.contenedor-header header {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.contenedor-header header .logo a {
  font-family: "Righteous";
  font-size: 36px;
  color: #552e5957;
  text-decoration: none;
}

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

.contenedor-header header nav ul li a {
  color: #a1a1a5;
  margin: 0 15px;
  padding: 3px;
  transition: 0.5s;
  text-decoration: none;
}

.contenedor-header header nav ul li a:hover {
  color: #1cb6a99e;
}

.nav-responsive {
  background-color: #252a2ea3;
  color: #d9d9d99c;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  display: none;
}

/* SECCION INICIO */
.inicio {
  background: linear-gradient(to top, rgba(30, 35, 38, 0.8), rgb(30 35 38 / 87%)), url(img/fondo.jpg);
  background-size: cover;
  height: 100vh;
  color: #ffffff94;
  display: flex;
  align-items: center;
}

.inicio .contenido-banner {
  padding: 20px;
  background-color: #1e232652;
  max-width: 350px;
  margin: 100px auto 70px auto;
  text-align: center;
  border-radius: 40px;
}

.inicio .contenido-banner img {
  margin-top: 40px;
  border: 5px solid #a52dd74d;
  display: block;
  width: 80%;
  margin: auto;
  border-radius: 100%;
}

.inicio .contenido-banner h1 {
  margin-top: 40px;
  font-size: 42px;
  font-family: "Righteous";
}

.inicio .contenido-banner h2 {
  font-size: 15px;
  font-weight: normal;
}

.redes a {
  color: #ffffff;
  margin: 0 10px;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.redes a:hover {
  color: #08e9da;
  transform: scale(1.3);
}

.inicio .contenido-banner .redes a {
  color: #ffffff94;
  display: inline-block;
  text-decoration: none;
  border: 1px solid #ffffff94;
  border-radius: 100%;
  width: 42px;
  height: 42px;
  line-height: 42px;
  margin: 40px 5px;
  font-size: 20px;
  transition: 0.3s;
}

.inicio .contenido-banner .redes a:hover {
  background-color: #cecece5d;
}

/* SECCION SOBRE MI */
.sobremi {
  background-color: #1e2326;
  color: #edeeef;
  padding: 50px 20px;
}

.sobremi .contenido-seccion {
  max-width: 1100px;
  margin: auto;
}

.sobremi h2 {
  font-size: 48px;
  font-family: "Righteous";
  text-align: center;
  padding: 20px 0;
}

/* CORRECCIÓN DE TAMAÑO DE LETRA: Lo bajamos a 16px (estándar) */
.sobremi .contenido-seccion p {
  font-size: 16px; 
  line-height: 22px;
  margin-bottom: 20px;
}

.sobremi .contenido-seccion p span {
  color: #1cb698;
  font-weight: bold;
}

.sobremi .fila {
  display: flex;
}

.sobremi .fila .col {
  width: 50%;
}

.sobremi .fila .col h3 {
  font-size: 28px;
  font-family: "Righteous";
  margin-bottom: 25px;
}

.sobremi .fila .col ul {
  list-style: none;
}

.sobremi .fila .col ul li {
  margin: 12px 0;
}

.sobremi .fila .col ul li strong {
  display: inline-block;
  color: #1cb6a99e;
  width: 130px;
}

.sobremi .fila .col ul li span {
  background-color: #1cb698;
  padding: 3px;
  font-weight: bold;
  border-radius: 5px;
}

.sobremi .fila .col .contenedor-intereses {
  display: flex;
  flex-wrap: wrap;
}

.sobremi .fila .col .contenedor-intereses .interes {
  width: 100px;
  height: 100px;
  background-color: #252a2e;
  border-radius: 10px;
  margin: 0 15px 15px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  animation: flotarInteres 4s ease-in-out infinite;
}

.sobremi .fila .col .contenedor-intereses .interes:hover {
  background-color: #1cb698;
}

.sobremi .fila .col .contenedor-intereses .interes i {
  font-size: 30px;
  margin-bottom: 10px;
}

.sobremi .fila .col .contenedor-intereses .interes:nth-child(even) {
  animation-duration: 3.5s;
  animation-delay: 0.2s;
}

/* --- BOTÓN DESCARGAR CV CORREGIDO --- */
.sobremi button {
  cursor: pointer;
  background-color: transparent;
  border: 2px solid #fff;
  width: fit-content;
  display: block;
  margin: 20px auto;
  padding: 0; /* Quitamos padding aquí para que lo tenga el enlace */
  font-size: 16px;
  color: #fff;
  position: relative;
  z-index: 10;
  border-radius: 50px;
  transition: 0.3s;
}

/* Quitamos el overlay raro que tenías antes */
.sobremi button .overlay {
  display: none; 
}

/* Estilo del enlace dentro del botón (para quitar lo azul) */
.sobremi button a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  color: #fff !important; /* Fuerza color blanco */
  text-decoration: none !important; /* Quita subrayado */
  width: 100%;
  height: 100%;
}

/* Efecto simple y bonito al pasar el mouse */
.sobremi button:hover {
  background-color: #1cb698; /* Fondo verde al pasar mouse */
  border-color: #1cb698;
  transform: scale(1.05);
}

/* SECCION PORTFOLIO */
.portfolio {
  background-image: url(img/contact_bg.png);
  background-color: #252a2e;
  color: #fff;
  padding: 50px 20px;
}

.portfolio .contenido-seccion {
  max-width: 1100px;
  margin: auto;
}

.portfolio h2 {
  font-size: 48px;
  font-family: "Righteous";
  text-align: center;
  padding: 20px 0;
}

.portfolio .galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

/* Tarjeta de Proyecto */
.portfolio .galeria .proyecto {
  position: relative;
  max-width: 340px;
  height: fit-content;
  margin: 10px;
  cursor: pointer;
  border-radius: 15px; 
  overflow: hidden;
  background: #342a35;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio .galeria .proyecto:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio .galeria .proyecto img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio .galeria .proyecto:hover img {
  transform: scale(1.1);
}

/* Overlay (Fondo oscuro transparente) */
.portfolio .galeria .proyecto .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}

.portfolio .galeria .proyecto:hover .overlay {
  opacity: 1;
}

/* CORRECCIÓN LETRAS AZULES EN PORTFOLIO */
.portfolio .galeria .proyecto .overlay a {
  text-decoration: none !important;
  color: #fff !important; /* Fuerza blanco siempre */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portfolio .galeria .proyecto .overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
  color: #fff !important;
}

/* Botón "Ver Video" */
.portfolio .galeria .proyecto .overlay p {
  font-size: 1rem;
  background: #8637a17f; 
  color: #fff !important;
  padding: 5px 15px;
  border-radius: 20px;
  display: inline-block;
  transform: translateY(20px);
  transition: transform 0.5s ease;
  font-weight: bold;
}

.portfolio .galeria .proyecto:hover h3,
.portfolio .galeria .proyecto:hover p {
  transform: translateY(0);
}

/* FOOTER */
footer {
  background-color: #252a2e;
  color: #fff;
  padding: 50px 0 30px 0;
  text-align: center;
  position: relative;
  width: 100%;
}

footer .redes {
  margin-bottom: 20px;
}

footer .redes a {
  color: #fff;
  display: inline-block;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 100%;
  width: 42px;
  height: 42px;
  line-height: 42px;
  margin: 40px 5px;
  font-size: 20px;
  transition: 0.3s;
}

footer .arriba {
  display: block;
  width: 50px;
  height: 50px;
  background-color: #1cb698;
  color: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -25px;
  border-radius: 50%;
  line-height: 50px;
  font-size: 18px;
}

footer .arriba:hover i {
  animation: saltoIndicador 0.6s ease infinite;
}

/* ANIMACIONES */
.contenedor-img {
  position: relative;
  display: inline-block;
}

.contenedor-img img {
  animation: flotar 3s ease-in-out infinite;
}

.contenedor-img::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 10%;
  width: 80%;
  height: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  filter: blur(5px);
  animation: sombra 3s ease-in-out infinite;
}

@keyframes flotar {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes sombra {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(0.7); opacity: 0.2; }
}

@keyframes flotarInteres {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes saltoIndicador {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ANIMACIONES EXTRA (si las usabas) */
@keyframes flotePuro {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes reboteIcono {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* MEDIA QUERIES (Responsive) */
@media screen and (max-width: 980px) {
  nav { display: none; }
  .nav-responsive { display: block; }
  
  nav.responsive {
    display: block;
    position: absolute;
    right: 0;
    top: 75px;
    background-color: #252a2ec4;
    width: 180px;
  }
  
  nav.responsive ul { display: block !important; }
  nav.responsive ul li { border-bottom: 1px solid #a1a2a373; padding: 10px 0; }
}

@media screen and (max-width: 700px) {
  .sobremi .fila { display: block; }
  .sobremi .fila .col { width: fit-content; }
  
  .portfolio .galeria {
    display: block;
    width: 100%;
  }
  .portfolio .galeria .proyecto { max-width: 100%; }
  .portfolio .galeria .proyecto img { width: 100%; }
}
