  * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: 'Cascadia Code', monospace;
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* Internet Explorer y Edge */
  
    }

    body, html {
      height: 100vh;
      max-width: 100vw;
      overflow: hidden;
      background: #f0f0f0;
      transition: background-color 0.5s ease;
      /* cursor: url('./assets/fibra-optima-128px.ico'), 64 0, auto; */
      cursor: url('./assets/fibra-optima-32px.ico') 16 0, auto;

      /* cursor: crosshair; */
    }

#preloader {
  position: fixed;
  inset: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 101vh;
  z-index: 9999;
  background-color: #9AC17F;
  background-color: rgba(93, 107, 84, 1);
  animation: fadeOutLogo 1s 3s forwards;
}


#preloader-content {
  display: flex;
  align-items: center;
  gap: 50px; 
  opacity: 0;
  z-index: 2;
  animation: fadeInLogo 0.5s 1s forwards, fadeOutLogo 1s 3s forwards;
}

#preloader-logo {
  width: 17rem; 
}


@keyframes fadeInLogo {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOutLogo {
  from { opacity: 1; }
  to { opacity: 0; 
  display: none;
width: 0px;}
}

#preloader.hide {
  width: 0px;
  display: none;
}

    
    .container {
      display: flex;
      height: 100vh;
    }

    .sidebar {

      height: 100vh;
      border-right: 1px solid black;
      position: relative;
    }

    .logo {
      width: 50px;
      height: 60px;
      background: url('/assets/fibra-optima.svg') no-repeat center center;
      background-size: contain;
      cursor: cell;

    }

  #mobile-menu, .mobile-header{
    display: none;
  }
  
    .menu {
      width: 60px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: center;
      height: 100%;
      padding-bottom: 20px;
      gap: 20px; 
    }

    .menu-item {
      
      font-size: 0.8em;
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      cursor: cell;

    }

    .menu-item:hover{
      text-decoration: line-through;
      text-decoration:wavy;
      text-decoration:underline;
      font-weight: 700;
    cursor: cell;
      
    }

    .content {
      display: flex;
      flex: 1;

      display: flex;
      flex-direction: row;
    }

    .section {

      pointer-events: auto;
      display: flex;
      flex: 1;
      overflow-y: auto;

      padding: 10px;
      height: 100vh;
      transition: flex 1s ease, opacity 0.4s ease;

      flex-direction: column;
      opacity: 1; /* estado visible */

    }

    .section-header {
      height: 30px;
      line-height: 30px;
      font-weight: bold;
      text-transform: uppercase;
      border-bottom: 1px solid #000;
      background-color: white;
      border-radius: 15px;
      position: sticky;
      top: 0;
      z-index: 1;
      padding-left: 10px;
      display: flex;
      align-items: center;
      cursor: cell;

      /*  OPCION 1 like y loki
      font-family: 'Special Elite', cursive;
      font-size: 16px;*/

          /* opcion 2*/
      font-family: "Geist", sans-serif;
      font-optical-sizing: auto;
      font-weight: 600;
      font-style: normal;
      font-size: 1rem;
    
      transition: all 0.5s ease;
    }
    
    .section-header.hidden {
      background-color: transparent;
      border-radius: 0;
      border-bottom: none;  /* Eliminamos la línea inferior */
      color: transparent;   /* Hacemos el texto invisible */
    }
    
    .section-content {
      padding: 10px;
    }
    
    
    .section img {
      transition: opacity 0.5s ease;
    }


    .section:last-child {
      border-right: none;
    }


    
 
#section-b {
  flex: none;
  width: 30vw;
  min-width: 30vw;
}


  .cards-recomendaciones-content.open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem; /* Espacio para el scroll */
    gap: 17px;
  }

  .card-recomendaciones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000;
    padding: 1rem;
    margin: 7px;
  }

  .card-recomendaciones-text {
    flex: 1;
    padding-right: 1rem;
  }
  
  .card-recomendaciones-text h3 {
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    font-size: 0.7rem;
    text-transform: uppercase;
  }

  .card-recomendaciones-text h3:hover{
    text-decoration: underline;
    
    cursor: cell;
  }

  .card-recomendaciones-text h4 {
    font-weight: bold;
    margin: 0 0 0.4rem 0;
    font-size: 0.6rem;
    
    text-transform: uppercase;
  }
  
  .card-recomendaciones-text p,
  .card-blockg p {
    margin: 0;
    max-width: 100%;
    font-size: 0.8rem;
    text-align: justify;
  }

  .card-blockg{
  border-bottom: 1px solid #000;
    padding: 1rem;
    }
  .fecha-al-pie{
    padding-top: 15px;
    font-size: 0.7em;
    color: #333;
    font-weight: 500;
    font-style: italic;
    
    justify-self: right;

  }
  
  .card-recomendaciones-img {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    background-size: cover;
  }

.card-recomendaciones,
.card-blockg,
.card-ezpezial {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.card-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}



  .card-ezpezial{
    /* border-bottom: 1px solid #000; */
    padding: 0 1rem 11rem 0;
    margin: 7px; 
    height: 33vh;;
    overflow-y: hidden;
    transition: height 0.5s ease, padding 0.3s ease;
    cursor: cell;
    border-style: solid;
    border-width: thin;
  }

  #section-ezpezialez .card-ezpezial{
    /* background: rgba(93,107,84,1); */
    /* BYN */
    /* background: linear-gradient(180deg, rgb(90, 90, 90) 0%, rgba(240, 240, 240, 1) 80%); */
    border-radius: 20px;
  }


      /* Cuando está expandido */ 
    .card-ezpezial.expanded {
      height:90vh; 
      overflow-y: scroll;
    }

  .card-ezpezial h1{
    font-size: 1rem;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    text-transform: uppercase;
    /* color: #f0f0f0;  */
  }

  .card-ezpezial p,h2{
      text-align: justify;
      font-size: 0.8rem;
      padding-left:10px;
      padding-right: 10px;
      padding-top:10px;
      text-indent: 2em;
      margin-top: 1rem;
      line-height: 1.6;
      /* color: #f0f0f0; */
    }
    .card-ezpezial h2{
      text-decoration: underline;
    }
    
    .card-ezpezial img{
      width: -webkit-fill-available;
      height: auto;
    }

    #section-ezpezialez iframe{
      width: 100%;
      aspect-ratio: 16 / 9;
    }




    #section-articulos iframe{
      width: 60%;
      aspect-ratio: 16 / 9;
    }
  
    #section-articulos h1{
      font-size: 1rem;
      padding-left: 10px;
      padding-right: 10px;
      padding-top: 10px;
      text-transform: uppercase;
    }

    #section-articulos p,h2{
      text-align: justify;
      font-size: 0.8rem;
      padding-left:10px;
      padding-right: 10px;
      padding-top:10px;
      text-indent: 2em;
      margin-top: 1rem;
      line-height: 1.6;
    }

    #section-articulos h2{
      text-decoration: underline;
    }

    #section-articulos img{
      width: 550px;
      padding:50px;
      height: auto;
    }

    #section-articulos{
      /*para que la imagen quede centrada*/
      text-align: center;
    
    }

    
   
    

/*
.search-container {
  padding: 20px;
  text-align: center;
}

#search-input {
  width: 300px;
  max-width: 90%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #aaa;
  border-radius: 4px;
}

*/
.tags{
  height: 150px;
  width: 100vw;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  position: fixed;
  bottom: 0;
  border-top: 1px solid #000;
  background-color: #f0f0f0;
  left: 61px;
  padding: 2rem;
  
  transform: translateY(100%);
  transition: transform 1s ease;

  z-index: 1000;
  align-items: center;
  align-content: stretch;
  justify-content: space-around;
  justify-items: center;
}

/* Cuando está visible */
.tags.visible {
  transform: translateY(0);
}
.tag {
  padding: 6px 12px;
  border-radius: 50px;
  cursor: cell;
  user-select: none;
  transition: background-color 0.3s ease;
    font-weight: 500;
  transition: all 0.1s ease;
  font-size: small;
  text-transform:lowercase;
  cursor: cell;
}

.tag:hover,
.tag.active {
  background-color: #9AC17F;
  background-color: rgba(93, 107, 84, 1);

    cursor: cell;
}


.xqsomos {
  position: absolute;
  top: -1px;
  left: 59px;
  width: 500px;
  height: 100vh;
  padding: 1rem;
  border: 1px solid #000;
  background-color: #f0f0f0;
  box-sizing: border-box;
  opacity:0;
  z-index: 1000;
  font-family: 'Cascadia Code', monospace;
  transition: opacity 0.4s ease;
  pointer-events: none;
  overflow-y: scroll;
text-align: justify;
}

#menu-xqsomos:hover + #xqsomos,
#xqsomos:hover {
  opacity: 1;
  
    cursor: cell;
}
#xqsomos-panel.active {
  opacity: 1;
}
.xqsomos[style*="opacity: 1"] {
  pointer-events: auto;
}

.xqsomos p{
  font-size: 0.9em;
}
.titulo-xqsomos{
  font-size: 1em;
  font-weight: 700;
}


.social-grid-mobile {
  display: grid;
  grid-template-columns: auto 1fr; /* ícono + link */
  gap: 0.8rem 1rem;               /* espacio entre filas y columnas */
  align-items: center;           /* centra verticalmente los íconos con los textos */
  max-width: 600px;
  margin: 0 auto;
}

.social-item-mobile {
  display: contents; /* permite que imagen y link se alineen directamente en las columnas del grid */
}

.social-item-mobile img {
  margin-left: 20px;
  width: 28px;
  height: 28px;
  object-fit: contain;
  justify-self: end;
}

.social-item-mobile a {
  text-decoration: none;
  color: inherit;
  font-size: 1rem;
  word-break: break-word;
}

.social-item-mobile a:hover {
  text-decoration: underline;
  
    cursor: cell;
}

.social-icons {
  display: flex;
  position: fixed;
  justify-content: right; /* centra horizontalmente */
  align-items: center;     /* alinea verticalmente */
  gap: 1.2rem;             /* espacio entre íconos */
  padding: 1rem 0;
  bottom: 1rem;

}

.social-icons a img {
  width: 32px;             /* tamaño del ícono */
  height: 32px;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
  opacity: 0.8;
    cursor: cell;
}

.dev-info p{
  color: #333;
  position: fixed;
  bottom: 1rem;
  justify-self: right;
}



a{
  color: #000;
  text-decoration: none;
}
.sets {
  position: absolute;
  top: -1px;
  left: 59px;
  width: 500px;
  height: 100vh;
  /* padding: 35vh 1rem 1rem 1rem; */
  padding: 0.5rem;
  border: 1px solid #000;
  background-color: #f0f0f0;
  box-sizing: border-box;
  opacity:0;
  z-index: 1000;
  font-family: 'Cascadia Code', monospace;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#menu-sets:hover + #sets,
#sets:hover {
  opacity: 1;
    cursor: cell;
}
.sets[style*="opacity: 1"] {
  pointer-events: auto;
}

audio{
  width: 450px;
}

/* EZPEZIALEZ.HTML */
  #section-search {
    width: 300px;
    border-left: 1px solid #000;
    padding: 1em;
    overflow-y: auto;
  }

  #section-articulos {
     width: calc(100vw - 361px);
    flex-grow: 1;
    padding: 1em 2em;
    overflow-y: auto;
  }

  .card-articulo{
    height: auto;
    margin-bottom: 1.5em;
    padding: 1em 1.5em;
    border-bottom: 1px solid #000;
  }

  .card-articuloh2 {
    margin-top: 0;
  }
  .card-articulo h3 {
    margin-top: 0;
    border-bottom: 1px solid #ccc;
  }
  .card-articulo ul {
    list-style: none;
    padding-left: 0;
  }
  .card-articulo li {
    margin-bottom: 0.6em;
  }
  .card-articulo a {
    color: #0066cc;
    text-decoration: none;
  }
  .card-articulo a:hover {
    text-decoration: underline;
    cursor: cell;
  }
  
  .archive-header{
      height: 30px;
      line-height: 30px;
      font-weight: bold;
      text-transform: uppercase;
      border-bottom: 1px solid #000;
      background-color: white;
      border-radius: 15px;
      z-index: 1;
      padding-left: 10px;
      display: flex;
      align-items: center;
    margin: 25px 0px 25px 0px;
      /*  OPCION 1 like y loki
      font-family: 'Special Elite', cursive;
      font-size: 16px;*/
      /* opcion 2*/
      font-family: "Geist", sans-serif;
      font-optical-sizing: auto;
      font-weight: 600;
      font-style: normal;
      font-size: 1rem;
      transition: all 0.5s ease;
  }

  #section-ezpezialez-title{
    /* background: rgba(93, 107, 84, 1); */
  }

  .card-articulo{
    height: auto;
    margin-bottom: 1.5em;
    padding: 1em 1.5em;
    border-bottom: 1px solid #000;

  }

input{
  height: 30px;
  line-height: 30px;
  font-weight: bold;
  border: 1px solid #000;
  background-color: white;
  border-radius: 15px;
  z-index: 1;
  padding: 13px;
  display: flex;
  align-items: center;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 0.9em;
  width: 275px;
}



.archive-month-list,
.archive-title-list {
  display: none;
}

.archive-month-list.visible,
.archive-title-list.visible {
  display: block;
}

.archive-year, .archive-month {
  background: none;
  border: none;
  cursor: cell;
  /* font-family: monospace; */
  font-size: 0.9rem;
}

.archive-list li{
  margin-left: 20px;
  padding-top: 8px;
}

.archive-title-list a {
  text-decoration: none;
  color: blue;
  cursor: cell;
  font-size: 0.8em;
}

.archive-year:hover, 
.archive-month:hover, 
.archive-title-list a:hover{
  text-decoration: underline;
  
    cursor: cell;
}

ul {
  list-style:none ;
}

li::before {
  content: '► ';
}

#menu-recomendaciones, 
#menu-blockg,
#menu-ezpezialez{
  display: none;
}

#menu-recomendaciones-ezpezialez,
#menu-blockg-ezpezialez{
  font-weight: 800;
}
.xqsomos-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9996;
  /* backdrop-filter: blur(6px); */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.info-call {
  position: absolute;
  padding: 15px 0px 15px 4px;
  color: red;
  font-weight: 900;
  font-size: 22px;
  cursor: cell;
  user-select: none;
  z-index: 9997;
}

#info-layer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: transform 1s ease opacity 0.3s ease;
  z-index: 9999;
}

#info-layer.active {
  transform: scale(1);
  opacity: 1;
}



#info-panel {
  background: #f8f8f8;
  color: #111;
  max-width: 500px;
  width: calc(100% - 40px);
  padding: 2rem;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  
  border-radius: 14px;

  transition: transform 0.3s ease, opacity 0.3s ease;
}

#info-layer.active #info-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#info-panel h2 {
  font-family: 'Special Elite', monospace;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 1rem;
}

#info-panel p {
  font-size: 0.9rem;
  margin: 0.6rem 0;
}


.blockg-content{
      padding-top: 15px;

}


/*TABLET*/
@media (min-width: 821px) and (max-width: 1200px) {

  .info-call{
    display: none;
  }
  #info-panel{
    max-width: 80vw;
  }
  .sidebar{
    height: 90vh;
  }

  #section-ezpezialez{
    display: none;
  }


  #menu-ezpezialez{
    display: block;
    font-weight: 800;
  }


  /*EZPEZIALEZ HTML*/

  #menu-recomendaciones-ezpezialez,
  #menu-blockg-ezpezialez{
    display: block;
    font-weight: 800;
  }




  
  
  /* Overlay oscuro detrás */
#overlay-detalle {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Card ampliada */
#overlay-detalle .detalle-card {
  background: #fff;
  border-radius: 1rem;
          width: 75vw;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  gap: 15px;
        padding: 50px;
}

#overlay-detalle img {
height: 50vh;
  width: auto;
  flex-shrink: 0;
}

#overlay-detalle h3 {
  margin: 1rem 0 0.5rem;
}

#overlay-detalle p {
  padding: 0 1rem;
  flex-grow: 1;
  overflow-y: auto;
}

/* Flechas navegación */
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: cell;
  color: #000;
  opacity: 0.6;
}

.flecha:hover {
  opacity: 1;
  
    cursor: cell;
}

#flecha-prev { left: 1rem; }
#flecha-next { right: 1rem; }


  .card-blockg{
    align-items: center;
    border-bottom: 1px solid #000;
    padding: 10px;
    margin: 7px;  
  }

  #overlay-blockg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9996;
  padding: 1rem;
}

.detalle-blockg {
    position: relative;
    background: #fff;
    width: 75vw;
    padding: 55px;
    border-radius: 16px;
    flex-direction: column;
}

.detalle-blockg .contenido {
  font-size: 1rem;
  line-height: 1.4;
}

.detalle-blockg .fecha-al-pie {
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
  text-align: right;
}

.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  color: black;
  cursor: cell;
  z-index: 10000;
}

#flecha-prev-blockg { left: 10px; }
#flecha-next-blockg { right: 10px; }


}



/*MOBILE*/
@media (max-width: 820px) {
  .info-call{
    display: none;
  }
  
  body {
    overflow-y: auto; 
    max-height: 100%; 
    overflow-x: hidden;
  }

  /* MOBILE MENU */

  .mobile-header {
   display: flex;
        justify-content: space-between;
        align-items: flex-end;
        height: 150px;
        padding: 5px 10px 3px 3px;
        background: white;
        position: fixed;
        width: 100vw;
        top: -90px;
        left: 0;
        z-index: 1000;
        position: fixed;
  }

  .mobile-logo img {
    height: 50px;
  }

  .hamburger {
    cursor: cell;
    padding-bottom: 11px;
  }

  #mobile-menu {  
    display: flex;
  }

  .mobile-menu {
    max-width: 100vw;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    overflow: hidden;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    gap: 17px;
    transition: height 0.8s ease;
    z-index: 999;
  }

  .mobile-menu.open {
    height: 101vh;
    top: -1px;
    /* height: -webkit-fill-available; */
  }

  .mobile-menu a {
    color: black;
    text-decoration: none;
    margin: 0.1rem 0;
    letter-spacing: 0.02em;
  }

  .sidebar {
    display: none;
  }

  /* SECCIONES */

  .content {
    flex-direction: column;
    padding-top: 70px;
    display: flex;
    flex-direction: column-reverse; 
    height: calc(100% - 10px);
    justify-content: flex-end;
    overflow-y: scroll;
    overflow-x: hidden;
    width: 100vw;
  }


  .section {
    display: flex;
    flex: 1;
    padding: 10px;
    max-width: 100vw;
    transition: flex 1s ease, opacity 0.4s ease;
    opacity: 1; 
    align-content: space-around; 
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
    border-right: 0px;
    transition: height 0.4s ease;
    /* height: var(--section-collapsed-height, 50px);   */
    height: 50px;
    max-height: 50px;
  }

  

  .section.active {
    /* height: calc(100vh - 2 * var(--section-collapsed-height, 60px)); */
    overflow-y: scroll;
    height: calc(100vh - 10px);
    max-height: calc(100vh - 10px);
    margin-bottom: 5vh;
  }


  .section-header{
    width: 90vw;
    height: var(--section-collapsed-height, 30px);
    display: flex;
    align-items: center;
    cursor: cell;
    max-height: 50px;
  }



  .cards-recomendaciones-content{
    display: flex;
    flex-direction: column;
    overflow-y: scroll; 
    /* padding-bottom: 1rem;  */
    gap: 17px;
    justify-content: flex-start;
    align-items: center;
    width: 100vw;
    margin-left: -10px;
    
  }

  .cards-recomendaciones-content.active {
    display: flex;
    flex-direction: row;
    overflow-y: scroll; 
    padding-bottom: 1rem; 
    gap: 17px;
    padding: 15px;
    margin: 7px;
    width: -webkit-fill-available;

  }

  #overlay-detalle {
  display: none;
  align-items: center;
  justify-content: center;
}

#overlay-detalle.active {
  display: flex;
}

.detalle-card {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.detalle-card.closing {
  transform: translateY(120px);
  opacity: 0;
}

.detalle-card {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.detalle-card.slide-left {
  transform: translateX(-120px);
  opacity: 0;
}

.detalle-card.slide-right {
  transform: translateX(120px);
  opacity: 0;
}

  #section-a, #section-b{
    
        overflow-x: hidden;
  }
  #section-b {
    flex: 1;
    width: auto;
  }

  #section-b .blockg-content {
    flex-direction: row;
  }


  
    /* EZPEZIALEZ */
  #section-ezpezialez{   
    display: none;
    }

     #section-articulos iframe{
      width: 100%;
      aspect-ratio: 16 / 9;
    }


  /* RECOMENDACIONES */
  #section-a .cards-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    /* scroll-snap-type: x mandatory;
    scroll-behavior: smooth; */
  }

  #section-a .card {
    flex: 1 1 calc(33.33% - 2rem);
    flex-wrap: wrap;
    border-bottom: 0px;
    border-right: 1px solid black;
  }
  
  #section-a .card-img {
    width: 100px;
    height: 100px;
  }

  #section-a .card-text {
    padding: 1rem;
    text-align: justify;
  }  

  #xqsomos-panel{
    display: none;
  }
/*   
.tags-mobile {
        display: grid;
        align-content: center;
        justify-content: center;
        align-items: center;
        justify-items: center;
        grid-template-columns: repeat(2, 1fr);
        padding-bottom: 25px;
    }

    
.tag.active {
  background-color: #9AC17F;

} */



  /* WEB XQSOMOS (SOLO EL MOBILE)*/

  .xqsomos-mobile{
    text-align: justify;
    font-size: small;
    padding: 100px 20px 100px 20px;
    margin-bottom: 5vh;
  }




  /* WEB EZPEZIIALEZ */

  .container{
    display: flex;
    flex-direction: column ;
    align-items: center;
    justify-content: flex-start;
  }
   #section-search {
        height: 60px;
        width: 100vw;
        position: fixed;
        top: 60px;
        border-left: 0px;
        background: #f0f0f0;
  } 
#section-articulos {
        width: 100vw;
        padding: 130px 0px 50px 0px;
        overflow-y: auto;
}

#section-articulos img {
    width: -webkit-fill-available;
    padding: 0;
    height: auto;
}

input {
    height: 30px;
    line-height: 30px;
    font-weight: bold;
    border: 1px solid #000;
    background-color: white;
    border-radius: 15px;
    z-index: 1;
    padding: 2vw;
    display: flex;
    align-items: center;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 0.9em;
    width: 90vw;
}
 
.card-articulo{
  padding: 1em 15px;

}
.xqsomos p{
  font-size: 0.7em;
}
.titulo-xqsomos{
  font-size: 1em;
  font-weight: 700;
}


#info-panel{
    max-width: 88vw;
  }
  
  #info-panel p {
    font-size: 0.7rem;
    margin: 0.5rem 0;
  text-align: justify;

  }

  #info-layer {
  opacity: 0;
  transition: opacity .3s ease;
}

#info-layer.active {
  opacity: 1;
}

#info-panel {
  transform: translateY(40px);
  transition: transform .35s ease;
}

#info-layer.active #info-panel {
  transform: translateY(0);
}


  /* Overlay oscuro detrás */
#overlay-detalle {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Card ampliada */
#overlay-detalle .detalle-card {
  background: #fff;
  border-radius: 1rem;
  width: 90vw;
  height: 80vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

#overlay-detalle img {
  width: 100%;
  height: auto;
  flex-shrink: 0;
}

#overlay-detalle h3 {
  margin: 1rem 0 0.5rem;
}

#overlay-detalle p {
  padding: 0 1rem;
  flex-grow: 1;
  overflow-y: auto;
}

/* Flechas navegación */
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: cell;
  color: #000;
  opacity: 0.6;
}

.flecha:hover {
  opacity: 1;
  
    cursor: cell;
}

#flecha-prev { left: 1rem; }
#flecha-next { right: 1rem; }


  .card-blockg{
    align-items: center;
    border-bottom: 1px solid #000;
    padding: 10px;
    margin: 7px;  
  }

  #overlay-blockg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.detalle-blockg {
  position: relative;
  background: #fff;
  width: 90%;
  height: 80%;
  overflow-y: auto;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.detalle-blockg .contenido {
  font-size: 1rem;
  line-height: 1.4;
}

.detalle-blockg .fecha-al-pie {
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
  text-align: right;
}

.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  color: black;
  cursor: cell;
  z-index: 10000;
}

#flecha-prev-blockg { left: 10px; }
#flecha-next-blockg { right: 10px; }


}

