
/*  GLOBALES    */
    :root {
    --bg-orange: rgb(251, 107, 5);
    --bg-orange-light: rgba(251, 107, 5, 0.2);

    --bg-green:rgba(52, 168, 131); 
    --bg-green-light:rgba(52, 168, 131, 0.2);

    --bg-blue:rgb(66, 133, 244);
    --bg-blue-light:rgb(66, 133, 244, 0.2);

    --bg-red: rgb(234, 67, 53);
    --bg-red-light: rgb(234, 67, 53, 0.2);
    }

    * {
        /* border:solid black 1px; */
        box-sizing: border-box;
        margin: 0px;
        padding: 0px;
    }
 
    /* hereda de y llena su contenedor */
    a {    
        display: inline-block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        color: inherit; /* Hereda el color del texto del contenedor */
        line-height: inherit;       
        text-align: inherit; 
        align-content: inherit;  
        }





/*   fuentes vinculadas. */
    .Roboto     {  font-family: "Roboto", sans-serif;}
    .RobotoSlab {  font-family: "Roboto Slab", serif;}


/* <body> 3 filas y sólo 1 columna */
    body { 
        height: 100vh;  
        width: 99vi;
        margin:1px;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows:  1fr 18fr 1fr ;
        background-color: var(--bg-green-light);
    }

/* class="columns" 
    4 columnas por defecto (landscape) , pasan a sólo 1 columna (portrait)  
    válido para <nav> y para  <section>
*/

    .columns {  
        height: 100%;    
        display: grid;
        grid-row-gap: 0.3rem;
        grid-column-gap: 0.3rem;
        grid-template-columns: repeat(4, minmax(0, 1fr)); /* repeat(4,1fr); */
        grid-template-rows:  1fr ;
    }

    .column {    
        /* border:solid black 1px;  */
        background-color: white;
        max-width: 100%;
        padding: 0.5rem;
    }


/* #main-menu */
    #main-menu {     list-style-type: none;}

    #main-menu li {
        align-content: center;  
        text-align: center;
        background-color: var(--bg-orange);  
        color:white;
        /* font-size: 2rem; */
        font-size: 2vw; /* Tamaño de fuente basado en el ancho del viewport */
        max-width: 100%; /* Limita el crecimiento del texto al ancho del contenedor */
    }

    #main-menu li:hover {  
        background-color: var(--bg-green); 
        color: yellow;  
    }



            
/*  <section> =  <article> + <article> + <article> + <aside> */
.section-item,
.aside-item,
.aside-media {
    max-width: 100%;
}
 

.section-item, .aside-item {
    display: flex;
    flex-direction: column;
    justify-content:flex-start;
    align-items: center;    
}

.item-media {
  object-position: top;
    width: 100%;
    height: 300px;
}


.item-textos,
.item-textos ol {
  padding: 1rem;
}


.item-textos h2 {
  /* font-size: 2rem; */
  color: var(--bg-orange);
  border-bottom-style: dotted;
  font-size: 2vw; /* Tamaño de fuente basado en el ancho del viewport */
  max-width: 100%; /* Limita el crecimiento del texto al ancho del contenedor */
}

.item-textos a {
    /* */
    color: var(--bg-orange); 
    text-decoration:underline;
  }

  .item-textos a:hover {
    color: var(--bg-green);
    font-weight: bolder;
  }

.main-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-orange);  
    color:white;    
    font-size: 2rem;
    padding:1rem;

  }





@media (orientation: landscape) {

    .main-footer {
        flex-direction: row;
      }

    .flex-direction::after {
        content: "row";
      }

    .orientation::after {
        content: "lanscape ";
    }
}



@media (orientation: portrait) {

    .columns {
        grid-template-columns: 1fr;
    }
  .main-footer {
    flex-direction: column;
  }
   .flex-direction::after {
    content: "column";
  }   
    .orientation::after {
        content: "lanscape ";
    }

}

 