body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: white;
  background: url('../imagenes/fondometal.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

.contacto-contenido {
  background: rgba(0, 0, 0, 0.85);
  max-width: 900px;
  width: 90%;
  padding: 40px 30px;
  text-align: center;
  line-height: 1.8;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.contacto-contenido p {
  margin: 15px 0;
  color: #eee;
  font-size: 1.1em;
}

.contacto-contenido strong {
  color: white;
  font-weight: 600;
}

.contacto-contenido .destacado {
  color: #ffc107;
  font-weight: 600;
}

.contacto-contenido .importante {
  font-weight: 700;
  color: white;
}

.contacto-contenido .gris {
  color: #ccc;
  font-weight: 500;
}

.volver {
  display: inline-block;
  margin-top: 40px;
  background-color: #0033aa;
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.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;
    height: auto;
  }

  .contacto-contenido {
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 25px 20px;
    box-sizing: border-box;
  }

  .contacto-contenido p {
    font-size: 0.95em;
  }

  .volver {
    font-size: 14px;
    padding: 10px 20px;
    margin-top: 30px;
  }
}

/* ───────────── 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;
  }

  .contacto-contenido {
    width: 85%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px 25px;
  }

  .contacto-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;
    min-height: 100vh;
  }

  .contacto-contenido {
    padding: 30px 25px;
    width: 85%;
  }

  .volver {
    font-size: 14px;
    padding: 10px 20px;
    margin-top: 30px;
  }
}

/* ───────────── RESPONSIVE: PC ───────────── */
@media screen and (min-width: 1024px) {
  body {
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
  }

  .contacto-contenido {
    padding: 50px;
  }
}
