/* ===== Estilos para la página de inicio ===== */

/* Banner superior */
.banner {
  background: #0d1b2a;
  color: white;
  padding: 15px 40px;
}

.logo-nav {
  display: flex;
  align-items: center;
  gap: 50px;
}

.inicio a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.inicio a:visited {
  color: white;
  text-decoration: none;
}

.inicio a:hover {
  color: #00b4d8;
  text-decoration: none;
}

/* Menú de navegación */
.banner nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.banner nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.banner nav a:hover {
  color: #00b4d8;
}

/* ===== Hero principal ===== */
.inicio-hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  background: url("img/fondoPantalla.jpg") center center / cover no-repeat;
  background-attachment: fixed;

  color: white;
  padding: 0 20px;
  margin: 0;
  overflow: hidden;
}

.inicio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.inicio-hero .contenido {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.inicio-hero h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.inicio-hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ===== Sección Información Personal ===== */
.info-hero {
  position: relative;
  height: 100vh;
  background: url("img/fondoInfo.jpg") center center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #eaf2f8;
  padding: 40px 20px;
  overflow: hidden;
}

.info-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.info-contenido {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

/* 🔹 Texto blanco con subrayado negro sutil */
.info-contenido h2 {
  font-size: 2.4rem;
  margin-bottom: 25px;
  color: #ffffff;
  text-shadow:
    3px 3px 10px rgba(0, 0, 0, 1),
    -3px -3px 10px rgba(0, 0, 0, 1),
    0 0 15px rgba(0, 0, 0, 1);
  border-bottom: 3px solid rgba(0, 0, 0, 0.8);
  display: inline-block;
  padding-bottom: 6px;
}

.info-contenido p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #ffffff;
  text-shadow:
    3px 3px 10px rgba(0, 0, 0, 1),
    -3px -3px 10px rgba(0, 0, 0, 1),
    0 0 12px rgba(0, 0, 0, 1);
  margin-bottom: 35px;
}



/* === Botón para descargar CV === */
.btn-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0077ff;
  color: white;
  text-decoration: none;
  padding: 14px 35px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.4);
}

.btn-cv:hover {
  background: #005fcc;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 95, 204, 0.5);
}

.btn-cv:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0, 95, 204, 0.3);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  background: #0d1b2a;
  color: white;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== Responsivo ===== */
@media (max-width: 1024px) {
  .inicio-hero {
    background-position: center top;
    background-attachment: scroll;
  }
}

@media (max-width: 600px) {
  .logo-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .inicio-hero {
    background-position: center top;
    background-size: cover;
  }

  .inicio-hero h2 {
    font-size: 1.6rem;
  }

  .inicio-hero p {
    font-size: 1rem;
  }

  .info-contenido h2 {
    font-size: 1.9rem;
  }

  .info-contenido p {
    font-size: 1rem;
  }

  .botones {
    flex-direction: column;
  }

  .btn,
  .btn-cv {
    width: 80%;
  }
}


/* ===== Sección Proyectos ===== */
.proyectos-hero {
  position: relative;
  min-height: 100vh;
  background: url("img/fondoPantalla.jpg") center center / cover no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  color: white;
  padding: 100px 60px;
  overflow: hidden;
}

.proyectos-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.contenido-proyectos {
  position: relative;
  z-index: 1;
  width: 100%;
}

.contenido-proyectos h2 {
  font-size: 2.6rem;
  margin-bottom: 60px;
  text-align: center;
  width: 100%;
  color: #ffffff;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 1);
  position: relative;
  top: -40px; /* lo sube un poco hacia arriba */
}


/* Tarjetas */
.tarjetas {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.tarjeta {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 25px;
  width: 280px;
  backdrop-filter: blur(5px);
  color: #f1f1f1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.tarjeta h3 {
  margin-top: 0;
  color: #00b4d8;
}

.tarjeta p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Responsivo */
@media (max-width: 768px) {
  .proyectos-hero {
    padding: 80px 20px;
  }

  .tarjetas {
    flex-direction: column;
    align-items: center;
  }

  .tarjeta {
    width: 90%;
  }
}
