



/* Banner */

#banner {
    background-image: url("../../images/portadas/portada_mujer.jpg");
    background-position: center center;
    background-size: cover;
    height: 25em;
    text-align: center;
    position: relative;
    background-attachment: fixed; /* Hace que la imagen se quede fija mientras haces scroll */
}

@media (max-width: 768px) {
    #banner {
      background-image: url("../../images/portadas/portada_mujer.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;
            }
        }



        .titulo3{
    text-align: center;
    color:#009C8C;
    margin-top: 30px;
}


/* Estilos generales de la sección */
.section {
    max-width: 1300px;
    margin: 50px auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Contenedor de texto */
.text-container {
    flex: 2;
    max-width: 70%;
}

.text-container h2 {
    color: #009C8C;
    margin-bottom: 15px;
    text-align: left;
    font-size: 2em;
}

.text-container p {
    color: #444;
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
}

/* Contenedor de imagen */
.image-container.rectangular {
    flex: 1;
    max-width: 30%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.image-container.rectangular img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Botón debajo de la imagen */
.image-container.rectangular .button {
    margin-top: 15px;
    display: inline-block;
    text-align: center;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .section {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        text-align: center;
    }

    .text-container,
    .image-container.rectangular {
        max-width: 100%;
    }

    .text-container h2 {
        text-align: center;
    }
}
