body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #060608;
  color: white;
}

/* HERO */
.primeraparte {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)),
    url("../img/inicio.jpg") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.logo {
  width: 180px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(212, 175, 
  55, 0.3));
}

.encabezado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4%;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  background: linear-gradient(to bottom, rgba(13, 9, 6, 0.92), transparent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  align-items: center;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  padding: 8px 18px;
  border-radius: 30px;
  transition: all 0.4s ease;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #d4af37;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: #d4af37;
}

nav ul li a:hover::after {
  width: 60%;
}

.parte1 {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

h1 {
  font-size: 70px;
  color: #f9e3ba;
}

button {
  margin: 15px;
  padding: 12px 35px;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  background: linear-gradient(45deg, #d4af37, #977a5a);
  transition: 0.4s;
}

button a {
  text-decoration: none;
  color: black;
}

button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px #d4af37;
}

/* MAIN */
main {
  padding: 80px 8%;
}

.subtitulo {
  text-align: center;
  color: #d4af37;
  margin-bottom: 40px;
}

.infoq {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  padding: 50px;
  border-radius: 20px;
  max-width: 900px;
  margin: auto;
  line-height: 1.7;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* CARDS */
.final {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.contenedor {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 20px;
  width: 300px;
  text-align: center;
  transition: 0.4s;
}

.contenedor:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.contenedor img {
  width: 60px;
  margin-bottom: 15px;
}

/* FOOTER MODERNO */
.footer-moderno {
  background: #060608;
  padding: 60px 8% 20px 8%;
  margin-top: 80px;
}

.footer-contenido {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col h3 {
  color: #d4af37;
  margin-bottom: 15px;
}

.footer-col a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col a:hover {
  color: #d4af37;
}

.footer-copy {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #777;
}

/* GLOBAL RESPONSIVE IMPROVEMENTS */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

.contenedor-botones {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .primeraparte {
    min-height: 80vh;
  }

  h1 {
    font-size: 56px;
  }

  .infoq {
    padding: 28px;
  }

  .final {
    gap: 24px;
    margin-top: 40px;
  }

  .contenedor {
    width: calc(50% - 20px);
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .primeraparte {
    min-height: 60vh;
  }
}

@media (max-width: 600px) {
  .logo {
    width: 140px;
    height: auto;
    margin: 0 auto;
  }

  .btn-perfil {
    margin: 0 auto;
  }

  .parte1 {
    padding: 40px 0;
  }

  h1 {
    font-size: 40px;
    line-height: 1.1;
  }

  button {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
  }

  .contenedor-botones {
    flex-direction: column;
    align-items: stretch;
  }

  main {
    padding: 60px 6%;
  }

  .infoq {
    padding: 22px;
  }

  .final {
    flex-direction: column;
    align-items: stretch;
  }

  .contenedor {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  }

  .contenedor:hover {
    transform: none;
  }

  .footer-moderno {
    padding: 40px 6% 20px;
  }

  .footer-contenido {
    flex-direction: column;
    align-items: center;
    gap: 26px;
  }
}

@media (max-width: 400px) {
  .primeraparte {
    min-height: 50vh;
  }
  h1 {
    font-size: 32px;
  }
}

