/* ------------------ CSS Desktop ------------------ */
body {
  margin: 0;
  background: #000;
  color: white;
  font-family: Helvetica, Arial, sans-serif;
}

/* Barra de título */
.title-bar {
  background: #000;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.title-bar .title {
  font-weight: bold;
  font-size: 14px;
}

.title-bar button {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  margin-left: 5px;
}

/* Layout desktop */
.container {
  display: flex;
  height: calc(100vh - 40px);
}

.main {
  flex: 1;
  padding: 20px;
  text-align: center;
  margin-left: 180px;
  margin-top: 40px;
  transition: all 0.3s ease-in-out;
}

.main img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
}

.main button {
  display: block;
  width: 180px;
  margin: 30px auto;
  padding: 15px;
  background: #000;
  border: 2px solid white;
  border-radius: 10px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}

#parrafo {
  background: black;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid white;
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 20px auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  font-family: Arial, sans-serif;
  text-align: justify;
}

.main button:hover {
  background: #222;
}

/* ------------------ CSS Mobile ------------------ */
@media only screen and (max-width: 600px) {

  /* Contenedor principal */
  .container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* toda la pantalla */
    margin-left: 0;    /* quitar espacio lateral del menú desktop */
  }

  /* Barra de título */
  .title-bar {
    margin-left: 0;        /* quitar espacio lateral */
    width: 100%;           /* ocupa todo el ancho */
    position: fixed;       /* arriba fija */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  /* Contenido principal */
  .main {
    flex: 1;
    padding: 10px;
    margin: 60px 0 130px 0;  /* espacio arriba por la title-bar y abajo por menú */
    text-align: center;
    overflow-y: auto;  
  }

  .main img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
  }

  .main button {
    display: block;
    width: 180px;
    margin: 30px auto;
    padding: 15px;
    background: #000;
    border: 2px solid white;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
  }
  .buttons {
    margin-right: 20px;
  }

  #parrafo {
    max-width: 95%;
    font-size: 16px;
    padding: 15px;
    text-align: justify;
  }
}

.main button:hover {
  background: #222;
}