﻿/* ==========================================================================
   1. CONFIGURACIÓN GLOBAL, BASE Y CONFIGURACIÓN DE RESTRICCIONES
   ========================================================================== */
* {
  box-sizing: border-box;
}

body {
  top: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 150%;
  background-color: #f0f7ff;
}

/* ==========================================================================
   2. MAQUETACIÓN, CONTENEDORES Y GRIDS
   ========================================================================== */
.contenedorlie {
  width: 100%;
  max-width: 716.5px;
  margin: auto;
}

.pagewrap {
  margin-top: 0;
  margin-bottom: 11px;
  padding: 11px;
  background-color: #fff;
  border-left: 1px solid;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.row {
  width: 100%;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Grids Flex y Grid (Escritorio / Por defecto) */
.grid-palabras0, 
.grid-palabras {
  display: flex;
  width: 100%;
  padding: 7px;
  gap: 10px;
  box-sizing: border-box;
}

.grid-palabras0 {
  justify-content: center;
  align-items: center;
}

.grid-palabras {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.grid-palabras1 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  padding: 7px;
  box-sizing: border-box;
}

.grid-graficasxxxxxxxxxxxxxx {
  display: flex;
  box-sizing: border-box;
}

.item-palabra {
  border: 1px solid #CCCCCC;
  padding: 7px;
  text-align: center;
  box-sizing: border-box;
}

/* ==========================================================================
   3. TEXTOS, TIPOGRAFÍA Y ENLACES
   ========================================================================== */
.maylie, h1, h2, h3, h4, h5, h6 {
  font: message-box;
  font-weight: 600;
  text-transform: uppercase;
}

.h3resumen {
  font: inherit;
  font-weight: inherit;
  text-transform: inherit;
}

.textoa, a, h3 a {
  font-size: .77em;
  text-decoration: none;
  text-transform: uppercase;
}

.textoa2 {
  font-size: .6em;
  text-decoration: none;
  text-transform: uppercase;
}

h2 a {
  font-size: inherit;
}

a:visited {
  color: green;
}

.eautor {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.palabrasrojas {
  color: red;
}
.letracapital{
 text-transform: capitalize;}

/* ==========================================================================
   4. COMPONENTES, BOTONES Y FORMULARIOS
   ========================================================================== */
.btnlie {
  display: inline-block;
  margin-bottom: 4px;
  padding-left: 5px;
  padding-right: 5px;
  background-color: #fff;
  border: 1px solid;
  cursor: pointer;
}

.btnlieabc {
  display: inline-block;
  width: 35px;
  margin-bottom: 4px;
  padding-left: 7px;
  padding-right: 7px;
  background-color: #fff;
  border: 1px solid;
}

.botonerito {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  padding-left: 7px;
  padding-right: 7px;
}

.campores {
  display: inline-block;
  width: 24%;
  margin: .0625rem;
  padding: 4.5px;
  border: .0625em solid;
  text-align: left;
}

.campores:after {
  content: "";
  display: table;
  clear: both;
}

.camporespalabras {
  display: inline-block;
  width: auto;
  text-align: left;
}

.camporespalabras:after {
  content: "";
  display: table;
  clear: both;
}

.inputcampo {
  width: 73%;
  font-size: .77em;
  padding: 12px 7px;
  border: 1px solid #ddd;
  margin-right: 3px;
}

.inputboton {
  width: 23.5%;
  font-size: .77em;
  padding: 12px 0;
  border: 1px solid #ddd;
  cursor: pointer;
}

/* ==========================================================================
   5. GALERÍA E IMÁGENES
   ========================================================================== */
div.gallery-container {
  width: 100%;
  padding: 10px;
}

div.gallery-item { 
  width: 100%;
  padding: 10px;
  text-align: center; 
}

div.gallery-item img { 
  width: 100%;       
  max-width: 180px; 
  height: 266px; 
  object-fit: cover; 
  border-radius: 4px; 
}

div.gallery-item div.desc { 
  padding: 10px 0; 
  font-size: 0.9em; 
}

.img-mini {
  float: left;
  width: 100%;
  max-width: 177px;
  aspect-ratio: 177/126;
  margin-right: .6875rem;
}

.grafica {
  width: 100%;
  max-width: 611px;
  aspect-ratio: 611/434;
}

/* ==========================================================================
   6. ELEMENTOS FIJOS, DINÁMICOS Y UTILIDADES
   ========================================================================== */
.cssxxx {
  position: sticky;
  top: 0;
  padding-top: .3px;
  padding-bottom: 11px;
  background: #f0f7ff;
  border-bottom: 1px solid;
}

.img-arriba {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  z-index: 2;
}

#barra-carga {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #3498db;
  z-index: 9999;
  transition: opacity .5s ease;
}

.borde-delgado {
  border: 1px solid #000000 !important;
}

.centro {
  text-align: center;
}

.maylie2 {
  margin: 7px;
}

.maylie3 {
  margin-top: 7px;
  margin-bottom: 0;
}

/* ==========================================================================
   7. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

/* --- Vista Tablets / Móviles (Hasta 768px) --- */
@media only screen and (max-width: 768px) {
  .table-responsive, 
  .table-responsive tbody, 
  .table-responsive tr {
    display: block !important;
    width: 100% !important;
  }

  /* Fusionado y corregido usando Flexbox para evitar fallos de desborde */
  .table-responsive tr {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .table-responsive td {
    display: block !important;
    flex: 1 0 50% !important;
    max-width: 50% !important;
    padding: 5px !important;
    box-sizing: border-box;
  }

  .gallery-item img, 
  .borde-delgado {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

  .campores { 
    width: 48%; 
  }
}

/* --- Vista Móviles intermedios (Hasta 628px) --- */
@media (max-width: 628px) {
  .grid-palabras {
    grid-template-columns: 1fr;
  }
  .grid-palabras1 {
    grid-template-columns: repeat(2, 1fr);
  } 
  .divcentro {
    text-align: center; 
    width: 100%;
  }
}

/* --- Vista Pantallas muy pequeñas (Hasta 350px) --- */
@media (max-width: 350px) {
  .grid-palabras,
  .grid-palabras1 {
    grid-template-columns: repeat(1, 1fr);
  }
  .divcentro {
    text-align: center; 
    width: 100%;
  }
}

/* --- Modo Retrato (Orientación Vertical) --- */
@media (orientation: portrait) {
  .campores {
    width: 48%;
  }
  .img-mini {
    float: none;
    max-width: 611px;
    margin-right: 0;
    text-align: center;
  }
  .img-arriba {
    display: none;
  }
  .scrollxp {
    scroll-margin-top: 133px;
  }
  .btnliebq {
    display: inline-block;
    border: 1px solid;
    background-color: #fff;
    padding-left: 2px;
    padding-right: 2px;
    cursor: pointer;
    font-size: .66em;
  }
}
