body {
      font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
      margin: 0;
      padding: 0;
    }

    .titulo-historia {
      width: 100%;
      text-align: center;
      font-size: 2.5rem;
      margin-bottom: 30px;
      font-weight: bold;
      text-transform: uppercase;
      color: #333;
      position: sticky;
      top: 0;              
      background-color: #fff; 
      padding: 10px 0;
      z-index: 2;         
    }

    .text-block h3{
        color: #999;
        font-size: 2.5rem;
        margin-bottom: 30px;
        font-weight: normal;
        transition: color 0.3s ease, font-weight 0.3s ease;
    }
    .text-block p {
        color: #999;
        font-size: 1.1rem;
        font-weight: normal;
        transition: color 0.3s ease, font-weight 0.3s ease;
    }

    /* Cuando el bloque esté activo */
    .text-block.activo h3{
        color: #000;
        font-weight: bold;
    }
    .text-block.activo p {
        color: #000;
        font-weight: normal;
    }

    .container {
      display: flex;
      flex-wrap: wrap;
      max-width: 1900px;
      margin: 0 auto;
      padding: 20px;
    }

    .historia-wrapper {
        display: flex;
        justify-content: center;   
        align-items: flex-start;   
        gap: 40px;                 
        max-width: 1200px;         
        margin: 0 auto;            
        padding: 20px;
    }

    .sticky-media {
      flex: 2;
      position: sticky;
      top: 46px;
      align-self: flex-start;
    }
    .sticky-media img {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        opacity: 0;
        transition: opacity 1s ease-in-out; 
        position: absolute; 
    }
    .sticky-media img.activa {
        opacity: 1;
        position: relative; 
    }
    .text-blocks {
      flex: 1;
    }
    .text-block {
      margin: 100px 0;
      font-size: 1.2rem;
      padding: 20px;
    }

    .text-block .texts {
        /*padding: 20px;      */
    }

    @media (max-width: 768px) {
      .historia-wrapper {
        flex-direction: column;    
        align-items: center;
        gap: 20px;
      }

      .sticky-media {
        position: sticky;           
        top: 20px;                 
        width: 100%;
        max-width: 100%;
      }

      .text-blocks {
        width: 100%;
      }

      .text-block {
        margin: 20px 0;
        padding: 20px;
      }

      .titulo-historia {
        font-size: 1.8rem;
        margin-bottom: 20px;
      }

      .text-block h3{
        font-size: 1.7rem;
      }

    }
