body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: url('../imagenes/fondometal.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow-x: hidden;
}

.sobre-contenido {
  max-width: 1000px;
  width: 90%;
  padding: 40px 30px;
  text-align: justify;
  line-height: 1.8;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sobre-contenido p {
  margin: 20px 0;
  font-size: 1.1em;
}

.sobre-contenido p:first-child {
  margin-top: 0;
}

h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
  color: white;
}

strong {
  color: white;
  font-weight: bold;
}

span {
  color: #ffc107;
  font-weight: bold;
}

.negrita {
  font-weight: bold;
  color: white;
}

.dorado {
  color: #ffc107;
  font-weight: bold;
}

.volver {
  display: inline-block;
  margin-top: 30px;
  background-color: #0033aa;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
}

.volver:hover {
  background-color: #0055ff;
}

/* ───────────── RESPONSIVE: SMARTPHONES VERTICAL ───────────── */
@media screen and (max-width: 767px) and (orientation: portrait) {
  body {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    min-height: 100vh;
    padding: 20px 0;
  }

  .sobre-contenido {
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 25px 20px;
    text-align: center;
  }

  h2 {
    font-size: 1.5em;
  }

  .sobre-contenido p {
    font-size: 0.95em;
    text-align: center;
  }

  .volver {
    font-size: 14px;
    padding: 10px 20px;
    margin-top: 20px;
  }
}

/* ───────────── RESPONSIVE: SMARTPHONES HORIZONTAL ───────────── */
@media screen and (max-width: 900px) and (orientation: landscape) {
  body {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    min-height: 100vh;
    padding: 15px 0;
  }

  .sobre-contenido {
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px 25px;
  }

  h2 {
    font-size: 1.6em;
  }

  .sobre-contenido p {
    font-size: 0.9em;
  }

  .volver {
    font-size: 13px;
    padding: 9px 18px;
  }
}

/* ───────────── RESPONSIVE: TABLETS ───────────── */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  body {
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
  }

  .sobre-contenido {
    padding: 30px 25px;
    width: 85%;
  }

  h2 {
    font-size: 1.8em;
  }

  .sobre-contenido p {
    font-size: 1.05em;
  }

  .volver {
    font-size: 15px;
    padding: 12px 22px;
  }
}

/* ───────────── RESPONSIVE: PC Y PORTÁTILES ───────────── */
@media screen and (min-width: 1024px) {
  body {
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
  }

  .sobre-contenido {
    padding: 40px 30px;
  }

  h2 {
    font-size: 2em;
  }

  .sobre-contenido p {
    font-size: 1.1em;
  }

  .volver {
    font-size: 16px;
    padding: 12px 28px;
  }
}
