/*Eventos*/

.mainnavbar{
    border-bottom: 1px solid #E79E2C;    
}

.maincontent{
  padding-top: 60px;
  background-color: #FFF;
  margin: 0 auto 20px auto;
  width: 80%;
}

section{
    margin-bottom: 10px;    
}

.footer {
    width: 100vw !important;
    margin-left: calc((80vw - 100vw) / 2);
}

/*Generico*/

.generico h4 {
  text-align: center;
  margin-bottom: 3rem;
  font-family: 'Inter', sans-serif;
  font-size: var(--title-font-size);
  font-weight: 700;
  line-height: normal;
  color: #7AABDE;
}

.generico-container {
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* ensures responsiveness */
  align-items: stretch;
}

/* Reverse layout when image on right */
.generico-container.reverse {
  flex-direction: row-reverse;
}

.generico-image-container{
  flex: 1;
  max-width: 50%;
}

.generico-image-caption{
  text-align: left;
  font-size: 11px;
}

.generico-container .generico-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.generico-text-wrapper {
  flex: 1;
  max-width: 50%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center; /* centers content horizontally */
}

.generico-text-wrapper p {
  text-align: left; /* centers text inside <p> */
  width: 100%;        /* ensures paragraph takes full wrapper width */
  margin: 0.5rem 0;   /* optional spacing */
  white-space: normal;  /* allow text to wrap */
  word-wrap: break-word; /* break long words if needed */
  overflow-wrap: break-word; /* standard modern property */
}

/* StandAlone Images and Lists */
.richtext-image.full-width {
  width: 100%;
  height: auto;
}

/*Background Texts*/
.background-text-block {
    /* Container properties */
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    
    /* Text wrapping */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal; /* Use normal first, break-word as fallback */
    hyphens: auto;
    
    /* If you're using flexbox or grid in parent */
    min-width: 0; /* Important for flex items */
}

.background-text-block h2,
.background-text-block p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    margin: 0 0 1em 0;
}

/*Media Query*/
@media (max-width: 768px) {

  .generico-container,
  .generico-container.reverse{

    padding: 0px;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .generico-text-wrapper{
    max-width: none;
    padding: 0px;
  }

  .generico-image-container {
      max-width: 100%;
  }

  .generico p {
    font-size: 14px;
  }

}

@media (max-width: 425px) {


  .maincontent{
    width: unset;
    margin: 0px 20px 10px 20px;
  }

  .generico{
    margin-bottom: 10px;
  }

  .generico-container.reverse, .generico-container{
    flex-direction: column;
  }

  .generico-container .generico-image {
    flex: 1;
    max-width: 100%;
  }

  .generico-text-wrapper{
    max-width: 100%;
  }

}