:root {
    --color-fondo: #ffffff;
    --color-texto: #000000;
}

/* Estilos generales */
body {
    width: 100vw;
    font-family: "montserrat", sans-serif;
    margin: 0;
    padding: 0;
}

/* Encabezado */
.header {
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  background-image:  url(imagenes/tanque.png ) ;
  background-size: 100% 100%;
  display: flex;
    z-index: 1;
}
.edit {
  position: absolute;
  margin-left: 80%;
  margin-right: 0;
  margin-top: 50px;
  width: 9.5vw;
  height: 28vh;
  background: #e4e8ec7d;
  border: 2px solid #000;
  border-radius: 10px;
}
.edit img {
  margin-right: 30px;
  width: 120px;
  height: 50px;
}
.editimg, .edith3, .editp, .editn {
  margin: 0;
  text-align: center;

}
.edith3{
  margin-top: 5px;
  font-size: 1.2em;
}
.editn {
  font-size: 1.3em;
}


.header__item-container {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 90%;
    text-shadow: 5px #000;
    margin: auto;
}
.login {
    display: flex;
    justify-content: center;
}
  .logo {
      width: 30%;
      font-size: 3.5rem;
      font-weight: bold;
      letter-spacing: 2px;
      overflow: hidden;
      background-color: #d4a86bf1;
    }

    .logo .i {
      color: #005B96; /* Azul profundo */
      font-size: 4rem;
    }

    .logo .resto {
      color: #D2691E; /* Naranja tierra */
    }
    .logo img {
      width: 40%;
      margin: 0%;
    }

    .subtexto {
      font-size: 1.2rem;
      color: #5C4033; /* Marrón oscuro */
      text-align: center;
      margin-top: 4px;
      font-style: italic;
    }

.header__item-container p {
    color: #3f0457;
    font-size: 1.5em;
    text-shadow: 0 10px 12px rgba(20, 20, 11, 0.6);
    background-color: antiquewhite;
}
.header__item-container h3 {
    font-size: 1.8em;
    color: #3f0457;
    background-color: antiquewhite;
}
.header__item-container p {
  width: 70vw;
  color: #3f0457;
  background-color: antiquewhite;
}
.indice {
    background: #f4e0a688;
    width: 95%;
    height: 30px;
    position: fixed;
    top:0;
    font-size: 1.5em;
    z-index: 30;
}
summary {
  width: 99vw ;
  color: #031425;
  font-style:oblique ;   
}
.indice ul{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-template-rows: repeat(auto-fill, minmax(100px, 1fr));
    color: #237af4; 
}
.indice li {
    display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-around;
  height: 8em;
  margin: 5px;
  border-radius: 20px;
  box-shadow: 0 10px 10px #000;
  text-align: center;
}
.indice li:hover {
  scale: 1.3;
  transition: 0.5s;
}
.indice li h2{
  color: #f9f9f9;
  font-size: 1.2em;
  text-align: center;
}
.indice li p {
    color: #f9f9f9;
    width: 85%;
  margin: 10% 0 10%;
  font-size: 0.7em;
}
.indice .historia1 { 
    background-image: linear-gradient(45deg, #6e431e 40%,#e0b085 );
}
.indice .biografia1 {
    background-image: linear-gradient(45deg, #0b3e5c 40%, #6aa5ca );
}
.indice .salud1 {
    background-image: linear-gradient(45deg, #12673c 40%, #72dfa5)
}
.indice .filosofia1 {
  background-image: linear-gradient(45deg, #12b7c0 40%, #9eb9d5);
}
.indice .adultos-mayores1 {
  background-image: linear-gradient(45deg, #0772be 40%, #b0d3ec)
}

.indice .juegos-d1 {

  background-image: linear-gradient(45deg, #801682 40%, #da6fda);
}
.indice .esp-impor1 {
  background-image: linear-gradient(45deg, #3e08b1 40%, #af9ed5)
}
.indice .arte {
  background-image: linear-gradient(45deg, #8a0b25 40%, #61d1a4)
}
/*rediracción a secciones*/
.his, .bio, .sal, .ad-ma, .j-l, .j-m {
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 0.1em;
  border-radius: 10px;
  color:#031c45;
  font-size: 2em;
  /*subir a github*/
  position: relative;
  top: 10px;
  left: 20px;
}
.his {
background: linear-gradient(to right, #5faad8ad, #847702ad);
} 
.bio {
  background: linear-gradient(to right, #e4b942ad, #0480b5ad);
} 
.sal{
  background: linear-gradient(to right, #8beaf1ad, #9bf231ad);
}
.ad-ma {
  background: linear-gradient(to right, #c403c4ad, #049667ad);
}
.j-l {
  background: linear-gradient(to right, #22d42e, #077a0f);
}
.j-m{
  background: linear-gradient(to right, #6dd5fa, #2980b9);
  top: 40px;
  left: 20px;
}
/*secciones*/
.carta {
  padding-top: 30px;
  background-image: linear-gradient(45deg, #636a87f7 40%, #6c8289fb);
  border-bottom: 40px solid #0c3d7288;
}
.historia {
  background-image: linear-gradient(45deg, #6e431e 40%,#e0b085 );
  border-bottom: 40px solid #2d77af88;
}
.biografia {
  background-image: linear-gradient(45deg, #0b3e5c 40%, #6aa5ca );
  border-bottom: 40px solid #055c4e88;
}
.salud {
  background-image: linear-gradient(45deg, #12673c 40%, #72dfa5);
  border-bottom: 40px solid #17197888;
}
.adultos-mayores {
  background-image: linear-gradient(45deg, #0772be 40%, #b0d3ec);
  border-bottom: 40px solid #720c4488;
}
.juegos2 {

  background-image: linear-gradient( #3939c5 40%, #6fa1da);
  padding-bottom: 80px;
  border-bottom: 40px solid #c1741088;
}
.esp-impor {
  background-image: linear-gradient(45deg, #3e08b1 40%, #af9ed5);
}
.filosofia {
  background-image: linear-gradient(45deg, #35b4bb 40%, #9eb9d5);
}
.arte {
  background-image: linear-gradient(45deg, #149197 40%, #e289f2);
}

/* Estilos de artículos */

.articule  {
    margin-top: 30px;
    margin-left: 20%;
    margin-right: 5%;
    padding: 15px;
    border-top: 3px solid #e90e9c;
}
.arte{
  margin: 0;
    padding: 15px;
    border-top: 3px solid #e90e9c;
}
.arte h2 {
  text-align: center;
}


.articule:last-child {
    border-bottom: brown;
}
.articule h2 {
        color: #441401f5;
    font-size: 1.8em;
    margin-bottom: 10px;
    background-color: #afcecb;
    width: 60%;
    padding: 0.5em;
    border-radius: 10px;
    border-bottom: 3em;
}

.articule h3 {
    color: #583333;
    font-size: 1.4em;
    margin-bottom: 10px;
    background-color: #f4f4ee;
    width: 50%;
    border-radius: 10px;
    padding: 0.3em;
}

a {
    text-decoration: none;
}

.articule p {
    font-weight: 500;
    color: #390e0e;
    line-height: 1.6;
    border-left: 8px solid rgb(252, 170, 6);
    background-color: rgb(223, 228, 233);
    border-radius: 10px;
    padding: 0.3em;
}
.poema {
  width: 80%;
  margin-left: 12%;
  border-radius: 20px;
  padding: 15px;
  background: #f9f9f9;
}
.poema p{
  width: 90%;
  font-weight: 500;
    color: #390e0e;
    line-height: 1.6;
    background-color: rgb(223, 228, 233);
    border-radius: 10px;
    padding: 0.3em;
}
.poema h3 {
  text-align: right;
  margin-right: 20%;
}
.articule li {
    background-color: rgb(236, 244, 244);
    padding: 0.4em;

}
.articule li  h4 {
  font-size: 1.3em;
  border-bottom: 2px solid #1e4a21;
}

.articule img {
    max-width: 60%;
    max-height: 20em;
    border-radius: 15px;
    margin-left: 20%;
}
img:hover {
  scale: 2;
  transition: 0.8s;
  box-shadow: 0 10px 10px #000;
}
#juegos {
  position: relative;
  top: 60px;
}
.juegos-de-lectoescritura {
    margin-left: 10%;
    margin-right: 5%;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #9e4a4a;
}
.juegos-de-lectoescritura h2 {
    color: #441401f5;
    font-size: 1.8em;
    margin-bottom: 10px;
    background-color: #afcecb;
    width: 60%;
    padding: 0.5em;
    border-radius: 10px;
}
.matematica h2 {
    color: #441401f5;
    font-size: 1.8em;
    margin-bottom: 10px;
    background-color: #afcecb;
    width: 60%;
    padding: 0.5em;
    border-radius: 10px;
}
    button {
      margin-top: 10px;
      padding: 10px 20px;
      font-size: 18px;
      background: #4CAF50;
      color: rgb(212, 205, 205);
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    #result {
      margin-top: 20px;
      font-size: 24px;
      font-weight: bold;
    }
    table {
    font-weight: 500;
    color: #390e0e;
    line-height: 1.6;
    border-left: 8px solid rgb(252, 170, 6);
    background-color: rgb(223, 228, 233);
    border-radius: 10px;
    padding: 0.3em;
    font-size: 1.1em;
    width: 75%;
    
}
th,td {
    border-bottom: 2px solid;
}
.turnos-f {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-content: flex-start;
}
.turnos-f img {
  margin: 0;
}
footer {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  grid-template-rows: repeat(2,1fr);
  background-color: #333;
  color: white;
  padding: 10px;
  position: relative;
  bottom: 0;
  width: 98%;
}
.footer-id {
  text-align: center;
  margin: 0;
  grid-column: 1/3;
  grid-row: 2/3;
  margin-left: 10%;
  margin-top: 40%;
}
.footer-yo {
  width: 100px;
  height: 60px;
}
footer img {
  width: 90px;
  height: 130px;
}
.footer-secretaria {
  width: 120px;
  height: 150px;
}

.staf {
  margin-left: 3%;
  grid-column: 1/2;
  grid-row: 1/2;
}
.contactos {
  grid-column: 2/3;
  grid-row: 1/2;
  text-align: left;
  margin-right: 3%;
  margin-left: 15%;
  margin-top: 20%;
}

@media (width < 750px) {
    body {
        background-color: var(--color-fondo);
        color: var(--color-texto);
    }
    .indice ul {
      display: grid;
      grid-template-columns: 1fr;
      width: 80vw;
      height: 100vh;
    }
    .indice li:hover {
      box-shadow: inset 2px 2px 8px #000;
      z-index: 50;
    }    
    .header h3 {
      font-size: 1em;
    }
    .header p {
        font-size: 1em;
    }
    .logo {
      width: 80%;
      margin-top: 8%;
      margin-top: 20%;
    }
    .subtexto {
      font-size: .3em;
    }
    .articule {
      width: 90%;
          margin-left: 0;
          margin-right: 8%;
    }
    .articule h2 {
        font-size: 1.5em;
        margin-top: 10%;

    }
    .matematica h2 {
        font-size: 1.5em;
    }
    .articule p {
        font-size: 1em;
        width: 95%;
        text-align: center;
    }
    .articule li {
    font-size: 1.1em;
        width: 95%;
    }
    .articule li h4 {
      font-size: 1.1em;
    }
    
    .articule input {
        padding: 6px 30px;
    }
    table {
      width: 90%;
    }
    .juegos-de-lectoescritura {
      width: 90%;
      margin-right: 0%;
    }
    .turnos-f {
      width: 80%;
    }
    .turnos-f img {
      width: 80%;
      margin-left: 25%;
    }
    footer {
      grid-template-rows: repeat(3,1fr);
    }
    .staf {
      grid-column: 1/3;
      grid-row: 1/2;
      text-align: center;
    }
    .footer-id {
      grid-column: 1/3;
      grid-row: 3/4;
      text-align: center;
    }
    .contactos {
      grid-column: 1/3;
      grid-row: 2/3;
      text-align: center;
    }
    .edit {
      display: flex;
      width: 90%;
      height: 6%;
      margin: 0;
      margin-top: 8%;
      margin-left: 5%;
    }
    .edit img {
  margin-right: 30px;
  width: 80px;
  height: 30px;
}
.editimg, .edith3, .editp, .editn {
  margin: 0;
  margin-top: 1%;
  text-align: center;

}
.edith3{
  margin-top: 5px;
  font-size: 0.8em;
}
.editn {
  font-size: 1em;
}

  }

