/* Banner */

#banner {
    background-image: url("../../images/portadas/voluntariado.jpg");
    background-position: center center;
    background-size: cover;
    height: 25em;
    text-align: center;
    position: relative;
    background-attachment: fixed;
   
}
@media (max-width: 768px) {
    #banner {
      background-image: url("../../images/portadas/voluntariado.jpg");
      background-position: center top;
      background-repeat: no-repeat;
      background-size: contain;
      height: 330px; /* Ajustalo según el resultado visual */
    }
  }


#banner header {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #212121;
        background: rgba(27, 27, 27, 0.75);
        color: #fff;
        padding: 1.5em 0;
    }

        #banner header h2 {
            display: inline-block;
            margin: 0;
            font-size: 1.25em;
            vertical-align: middle;
        }

            #banner header h2 em {
                opacity: 0.75;
            }

            #banner header h2 a {
                border-bottom-color: rgba(255, 255, 255, 0.5);
            }

                #banner header h2 a:hover {
                    border-bottom-color: transparent;
                }

        #banner header .button {
            vertical-align: middle;
            margin-left: 1em;
        }
        @media screen and (max-width: 768px) {
   

            #banner header .button {
                display: block;
                margin: 1em auto 0 auto;
            }
        }


.collaboration-horizontal {
    text-align: center;
    background-color: #fff;
    color: #000;
    padding: 2em 0;
    width: 70%;
    margin-left: 15%;
    margin-top: 5%;
    margin-bottom: 5%;
    background-image: url('../../images/portadas/beneficios-voluntariado.jpg')
    }

.general{
    background-color: rgba(255, 255, 255, 0.8); /* 50% de transparencia */

    margin-right: 15%;
    margin-left: 15%;
}
    
    .collaboration-horizontal h2 {
    font-size: 2em;
    margin-bottom: 0.5em;
    }
    
    .collaboration-horizontal p {
    font-size: 1.2em;
    margin-bottom: 2em;
    }
    
    .horizontal-bar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2em;
    max-width: 90%;
    margin: 0 auto;
    }
    
    .horizontal-bar .item {
    text-align: center;
    flex: 1;
    max-width: 200px;
    position: relative;
    }
    
    .horizontal-bar .item .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1em;
    background-color: #009C8C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .horizontal-bar .item h3 {
    margin: 0.5em 0;
    font-size: 1.1em;
    }
    
    .horizontal-bar .item p {
    font-size: 0.9em;
    color: #000;
    }
    
    

    @media (max-width: 768px) {
        .collaboration-horizontal {
            width: 90%;
            margin: 20px auto;
            padding: 1.5em 1em;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }
    
        .general {
            margin: 0 5%;
            background-color: rgba(255, 255, 255, 0.9); /* Un poco más legible en fondo */
        }
    
        .collaboration-horizontal h2 {
            font-size: 1.5em;
        }
    
        .collaboration-horizontal p {
            font-size: 1em;
            margin-bottom: 1.5em;
        }
    
        .horizontal-bar {
            flex-direction: column;
            align-items: center;
            gap: 1.5em;
        }
    
        .horizontal-bar .item {
            max-width: 100%;
        }
    
        .horizontal-bar .item .icon {
            width: 50px;
            height: 50px;
            margin-bottom: 0.8em;
        }
    
        .horizontal-bar .item h3 {
            font-size: 1em;
        }
    
        .horizontal-bar .item p {
            font-size: 0.85em;
        }
    }
    