
header ul li:nth-of-type(6) {
    text-decoration: overline;
}

.Imagenesbody {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 100%;
    height: auto;
}

.Info {
    width: 70px;
    height: 70px;
    position: fixed;
    left: 32%;
}

.Sombreado {
    margin: auto;
    width: 380px;
    height: 100px;
    margin-top: 2%;
    padding: 20px 0px;
    background-color: #CCD1D1;
    text-align: center;
    float: center;
    margin-bottom: 1%;
}

#reloj {
    font-size: 48px;
}

.reloj {
    margin: auto;
    width: 300px;
    height: 60px;
    border: 1px solid black;
    background-color: white;
    font: bold 1.5em dotum, calibri, arial;
    text-align: center;
}

h1 {
    margin: auto;
    width: 100%;
    padding-bottom: 0%;
    font-size: 34px;
    font-weight: bold;
    text-align: center;
}

.DirMap {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 100%;
}

caption {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

table {
    border-collapse: collapse; /* Une los bordes */
    border: none;
    table-layout: fixed;       /* Ajusta las columnas al contenido */
    margin: auto;
    margin-bottom: 3%;
    width: 50%;
    text-align: center;
    border-color: 1px black;
    border-style: solid;
    box-shadow: 0 8px 12px rgba(73, 67, 67, 0.8); /*los valores están entre el 0.0 y el 1. El 0.0 es el más bajo y el 1 el más alto*/
}

tr:first-of-type {
    font-weight: bold;
    font-size: 18px;
    padding-top: 3%;
    padding-bottom: 3%;
}

tr {
    background-color: lightcyan;
}

td, th {
    padding: 2px 5px;          /* Espacio mínimo dentro de las celdas */
    white-space: nowrap;       /* Evita que se parta el texto en varias líneas */
    border: none;
}

p {
    text-align: center;
    font-size: 18px;
    margin: auto;
    width: 75%;
    margin-bottom: 2%;
}

.Demo {
    display: flex;
    justify-content: center; /* centra horizontalmente */
    align-items: center;     /* centra verticalmente si tiene altura */
    margin: 2%;
    height: 100px; /* opcional, para centrar verticalmente dentro del div */
}

.Trigger {
    padding: 10px 20px;
    background: #0ea5a4;
    color: white;
    border: none;
    border-radius: 6px;
	cursor: pointer;
	font-size: 24px;
}

.Demo:hover {
    opacity: 1;
    visibility: visible;
}

/* --- MEDIA QUERIES --- */

/* para portátiles  */

@media (min-width: 1281px) and (max-width: 1440px) {
  .Imagenesbody {
    display: flex;
    flex-direction: row; /* apila elementos verticalmente */
    justify-content: center;
    align-items: center;
    width: 35%;
    margin: auto;
  }

  .Info {
    position: static; /* elimina el fixed */
    display: block;
    margin: 0 auto 15px auto; /* centra y separa del sombreado */
    width: 40px;
    height: 40px;
  }

  .Sombreado {
    width: 400px;
    height: 100px;
    background-color: #CCD1D1;
    padding: 20px 0;
    text-align: center;
    margin: 2% auto 1% .5%;
  }

  #reloj {
    font-size: 48px;
  }

  .reloj {
    width: 320px;
    height: 60px;
    background-color: white;
    border: 1px solid black;
    text-align: center;
    font: bold 1.5em dotum, calibri, arial;
    margin: auto;
  }

  h1 {
    font-size: 34px;
    text-align: center;
    font-weight: bold;
    margin: 1% auto;
  }

  .DirMap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 2% auto;
  }

  table {
    width: 50%;
    font-size: 18px;
    margin: auto;
    box-shadow: 0 8px 12px rgba(73, 67, 67, 0.8);
  }

  caption {
    font-size: 24px;
    font-weight: bold;
    padding: 10px;
  }

  td, th {
    padding: 6px 10px;
  }

  .TextoSociedad p {
    width: 70%;
    font-size: 18px;
    margin: 1% auto;
    text-align: justify;
  }

  .TextoSociedad p:first-child {
    margin-top: 5%;
  }

  .Demo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    margin: 2% auto;
  }

  .Trigger {
    padding: 10px 20px;
    background: #0ea5a4;
    color: white;
    border-radius: 6px;
    font-size: 22px;
    text-decoration: none;
  }
}

/* Para tables */
@media (max-width: 768px) {
	.Imagenesbody {
    flex-direction: column;
    width: 90%;
  }

  .Info {
    width: 60px;
    height: 60px;
    left: 28%;
  }

  .Sombreado {
    width: 90%;
    height: auto;
    padding: 15px 0;
  }

  #reloj {
    font-size: 36px;
  }

  .reloj {
    width: 250px;
    height: 50px;
    font-size: 1.3em;
  }

  h1 {
    font-size: 28px;
  }

  .DirMap {
    flex-direction: column;
    width: 95%;
  }

  table {
        width: 80%;              /* La tabla ocupa más ancho */
        font-size: 16px;
    }

    caption {
        font-size: 20px;
        padding: 8px;
    }

    td, th {
        padding: 6px 8px;
        white-space: normal;     /* Permite saltos de línea */
    }

    .TextoSociedad {
        width: 90%;
        font-size: 17px;
        text-align: justify;
    }
}

/* Para móviles */
@media (max-width: 480px) {
	.Imagenesbody {
    flex-direction: column;
    width: 95%;
  }

  .Info {
    position: static; /* Quita el position fixed */
    display: block;
    margin: 0 auto 10px auto; /* Centra la imagen y deja un margen inferior */
    width: 50px;
    height: 50px;
  }

  .Sombreado {
    width: 95%;
    height: auto;
    padding: 10px 0;
  }

  #reloj {
    font-size: 28px;
  }

  .reloj {
    width: 200px;
    height: 45px;
    font-size: 1.1em;
  }

  h1 {
    font-size: 22px;
  }

  .DirMap {
    flex-direction: column;
    margin: auto;
    width: 30%;
    margin-left: 0%;
  }

   table {
        width: 100%;             /* La tabla ocupa todo el ancho */
        font-size: 14px;
    }

    caption {
        font-size: 18px;
        padding: 6px;
    }

    td, th {
        padding: 4px 6px;
        white-space: normal;     /* Permite saltos de línea */
   }
   
   .TextoSociedad p {
        width: 100%;
        font-size: 18px;
        text-align: justify;
        padding-left: 10%;
        padding-top: 2%;
    }

    .TextoSociedad p:first-child {
        padding-top: 5%;
    }
}
