/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000; /* Negro */
  color: #d4af37
; /* Oro */
  line-height: 1.6;
}

/* Contenedor central */
.contenedor {
  max-width: 960px;
  margin: auto;
  padding: 2em;
  text-align: center;
}

/* Encabezado */
header {
  padding: 2em 0;
  background-color: #111;
  border-bottom: 2px solid #d4af37
;
}

.logo {
  width: 100px;
  height: auto;
  margin-bottom: 1em;
}

.subtitulo {
  font-size: 1.2em;
  color: #ccc;
}

/* Botón */
.boton {
  display: inline-block;
  padding: 0.7em 1.5em;
  background-color: #d4af37
;
  color: #000;
  text-decoration: none;
  margin-top: 1em;
  border-radius: 5px;
  font-weight: bold;
}

.boton:hover {
  background-color: #e6c200;
}

/* Redes */
.redes {
  margin: 2em 0;
  display: flex;
  justify-content: center;
  gap: 2em;
}

.redes a {
  color: #d4af37
;
  text-decoration: none;
  font-size: 1.1em;
}

.redes a:hover {
  text-decoration: underline;
}

/* Proyectos */
.proyectos {
  background-color: #111;
  padding: 3em 1em;
  margin-top: 2em;
}

/* Footer */
footer {
  text-align: center;
  padding: 2em;
  background-color: #000;
  border-top: 1px solid #d4af37
;
  font-size: 0.9em;
  color: #888;
}
/* SOBRE MÍ */
.sobre-mi {
  background-color: #000;
  color: #fff; /* blanco como secundario */
  padding: 3em 1em;
}

.sobre-mi h2 {
  color: #d4af37
;
  font-size: 2em;
  margin-bottom: 1em;
}

.sobre-mi p {
  margin-bottom: 1.2em;
  font-size: 1.1em;
}
/* PROYECTOS */
.proyectos {
  background-color: #111;
  color: #fff;
  padding: 3em 1em;
}

.proyectos h2 {
  color: #d4af37
;
  font-size: 2em;
  margin-bottom: 2em;
}

.grid-proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
}

.tarjeta-proyecto {
  background-color: #000;
  border: 1px solid #333;
  border-radius: 10px;
  overflow: hidden;
  padding: 1em;
  text-align: left;
  transition: transform 0.3s ease;
}

.tarjeta-proyecto:hover {
  transform: scale(1.02);
}

.tarjeta-proyecto img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1em;
}

.tarjeta-proyecto h3 {
  color: #d4af37
;
  margin-bottom: 0.5em;
}

.tarjeta-proyecto p {
  margin-bottom: 0.5em;
}

.tarjeta-proyecto span {
  display: block;
  font-size: 0.9em;
  color: #ccc;
  margin-bottom: 1em;
}

.botones a {
  display: inline-block;
  margin-right: 1em;
  padding: 0.5em 1em;
  background-color: #d4af37
;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.botones a:hover {
  background-color: #e6c200;
}
/* CONTACTO */
.contacto {
  background-color: #000;
  color: #fff;
  padding: 3em 1em;
}

.contacto h2 {
  color: #d4af37
;
  margin-bottom: 1em;
}

.contacto form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 2em;
}

.contacto input,
.contacto textarea {
  padding: 1em;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #111;
  color: #fff;
  resize: none;
}

.contacto button {
  background-color: #d4af37
;
  color: #000;
  padding: 0.8em;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.contacto button:hover {
  background-color: #e6c200;
}

.info-contacto p {
  margin: 0.5em 0;
  color: #ccc;
}

.info-contacto a {
  color: #d4af37
;
  text-decoration: none;
}

.info-contacto a:hover {
  text-decoration: underline;
}
.logo-principal {
  width: 200px;
  height: auto;
  margin-bottom: 1em;
  animation: aparecerLogo 1s ease;
}
@keyframes aparecerLogo {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
/* LOGO PRINCIPAL EN CABECERA */
.logo-principal {
  width: 220px;
  height: auto;
  margin-bottom: 1em;
  animation: aparecerLogo 1s ease;
  margin-top: 7em;
}

@keyframes aparecerLogo {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
/* ==================== */
/*   RESPONSIVE MOBILE  */
/* ==================== */

@media screen and (max-width: 768px) {
  body {
    font-size: 16px;
  }

  header h1 {
    font-size: 1.8em;
  }

  .subtitulo {
    font-size: 1em;
  }

  .logo-principal {
    width: 150px;
  }

  .grid-proyectos {
    grid-template-columns: 1fr; /* una sola columna */
  }

  .botones a {
    display: block;
    margin: 0.5em auto;
    width: 80%;
    text-align: center;
  }

  .contacto form {
    width: 100%;
    padding: 0 1em;
  }

  .contacto input,
  .contacto textarea {
    width: 100%;
  }

  .redes {
    flex-direction: column;
    gap: 1em;
  }

  .logo-esquina {
    top: 10px;
    left: 10px;
  }

  footer {
    font-size: 0.8em;
  }
}
/* MENÚ HAMBURGUESA */
.menu-hamburguesa {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  border-bottom: 1px solid #d4af37;
  z-index: 999;
}

.icono-menu {
  font-size: 2em;
  color: #d4af37;
  padding: 1em;
  cursor: pointer;
  display: none; /* se activa en mobile */
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2em;
  padding: 1em;
}

.nav-links li a {
  text-decoration: none;
  color: #d4af37;
  font-weight: bold;
}

.nav-links li a:hover {
  text-decoration: underline;
}

/* Estilos responsive para el menú hamburguesa */
@media screen and (max-width: 768px) {
  .icono-menu {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    display: none;
    background-color: #000;
    border-top: 1px solid #333;
  }

  #toggle-menu:checked ~ .nav-links {
    display: flex;
  }

  .nav-links li {
    padding: 0.5em 0;
  }
}
/* FONDO DE PARTÍCULAS */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: -1;
  top: 0;
  left: 0;
}
.subtitulo {
  font-size: 1.2em;
  color: #fff;
  margin-top: 0.5em;
  font-weight: bold;
  min-height: 1.4em;
}

#typewriter {
  border-right: 2px solid #d4af37;
  padding-right: 4px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0% { border-color: #d4af37; }
  50% { border-color: transparent; }
  100% { border-color: #d4af37; }
}
/* TECNOLOGÍAS */
.tecnologias {
  background-color: #111;
  color: #fff;
  padding: 3em 1em;
  text-align: center;
}

.tecnologias h2 {
  color: #d4af37;
  margin-bottom: 2em;
}

.iconos-tecnologias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
}

.iconos-tecnologias div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.iconos-tecnologias img {
  width: 60px;
  height: auto;
  margin-bottom: 0.5em;
  filter: drop-shadow(0 0 5px #d4af37);
}

.iconos-tecnologias p {
  font-size: 0.9em;
  color: #ccc;
}
/* SERVICIOS */
.servicios {
  background-color: #000;
  color: #fff;
  padding: 3em 1em;
  text-align: center;
}

.servicios h2 {
  color: #d4af37;
  margin-bottom: 2em;
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
}

.servicio {
  background-color: #111;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
  transition: transform 0.3s ease;
}

.servicio:hover {
  transform: scale(1.03);
}

.servicio .icono {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #d4af37;
}

.servicio h3 {
  color: #d4af37;
  margin-bottom: 0.5em;
}

.servicio p {
  font-size: 0.95em;
  color: #ccc;
}
/* TESTIMONIOS */
.testimonios {
  background-color: #111;
  color: #fff;
  padding: 3em 1em;
}

.testimonios h2 {
  color: #d4af37;
  text-align: center;
  margin-bottom: 2em;
}

.grid-testimonios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
}

.testimonio {
  background: #000;
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
  font-style: italic;
  position: relative;
}

.testimonio::before {
  content: "“";
  font-size: 4em;
  color: #d4af37;
  position: absolute;
  top: -20px;
  left: 15px;
  opacity: 0.3;
}

.testimonio strong {
  display: block;
  margin-top: 1em;
  font-style: normal;
  color: #d4af37;
}
.nav-links a {
  text-decoration: none;  /* 🔧 Esto elimina la línea */
  color: #d4af37;
  font-weight: bold;
}
.nav-links a:hover {
  text-decoration: underline;
  color: #fff;
}
.nav-links a,
.nav-links a:visited,
.nav-links a:active {
  text-decoration: none !important;
  color: #d4af37;
  font-weight: bold;
}.nav-links a {
  outline: none;
}
.nav-links a:hover {
  text-decoration: underline;
  color: #fff;
}
body {
  font-family: 'Poppins', sans-serif;
}
.tarjeta-proyecto img {
  width: 100%;
  height: 140px; /* antes 180px */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1em;
}
.redes {
  align-items:center;
}