.flotante{
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
    min-height: 100px;
    overflow: hidden;
    box-sizing: border-box;
    background: linear-gradient(to left, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    border: solid 1px #ffffff2b;
    border-radius: 0.5em;
}
.flotante::before {

    background: linear-gradient(to left, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
  
}

.flotante.derecha {
    flex-direction: row-reverse;
    text-align: left;
}
.flotante.izquierda {
    flex-direction: row;
    text-align: right;
}

.fondo{
    min-height: 100px;
    /*max-height: 200px;*/
    overflow: hidden;
    /*border: 1px solid red;*/
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    border: solid 1px #ffffff2b;
    border-radius: 0.5em;
}
.fondo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
    z-index: 0;
}
.fondo > .contenido{
    position: relative;
    z-index: 2;
}
.fondo > .titulo,
.fondo > .texto {
    position: relative;
    z-index: 1;
}

.izquierda{/*imagen a la izquierda y texto a la derecha*/

}
.derecha{/*imagen a la derecha y texto a la izquierda*/

}
.fondo.izquierda{
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left center;
    text-align: right;
    padding: 20px;
}
.fondo.derecha{
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right;
    text-align: left;
    padding: 20px;
}


.ancho-50{
    flex: 0 0 49.5%;
    max-width: 49.5%;
}
.ancho-100{
    flex: 0 0 100%;
    max-width:100%;

}
.parrafos{
    display: flex;
    flex-wrap: wrap; /* permite que los hijos salten a la siguiente línea */
    gap: 10px;
}
.parrafos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    width: 100%;
}
.parrafo{
    display: none;
    text-align: justify;
    font-size:18px;
}
.parrafo2{
    display: block;
    text-align: justify;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 5px;
    font-size:18px;
}
@media (max-width: 500px) {
    .parrafo{
        display: block;
        font-size:14px;
    }
    .parrafo2{
        display: none;
        font-size:14px;
    }
    h1 {
        margin-top: 20px;
        font-size: 2rem;
        margin-bottom: 1.5em;
    }
    .flotante{
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 15px;
        box-sizing: border-box;
        min-height: 100px;
        overflow: hidden;
        box-sizing: border-box;
        background: linear-gradient(to left, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
        border: solid 1px #ffffff2b;
        border-radius: 0.5em;
    }
}

/* En pantallas pequeñas, forzar apilado */
@media (max-width: 768px) {
.parrafos-grid {
    display: block;   /* ya no es grid */
}
.parrafos-grid > div {
    width: 100%;      /* cada bloque ocupa todo el ancho */
    max-width: 100%;
    margin-bottom: 10px; /* separación entre bloques */
}
.ancho-50{
    flex: 0 0 100%;
    max-width:100%;
}
    .flotante {
        flex-direction: column !important;
        text-align: center;
    }

    .flotante img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .contenido {
        padding: 10px 0;
    }
}


.bloque-1 { grid-column: 1; grid-row: 1; }
.bloque-2 { grid-column: 1; grid-row: 2; }
.bloque-3 { grid-column: 2; grid-row: 1 / span 2; }


.titulo {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    margin-top: 0;
    padding: 0.5rem 1rem;
    display: block;
    width: 100%;
    cursor: pointer;
    /*margin-bottom: 3rem;
    
    display: -webkit-box;           /* Define un contenedor flexible */
    /*-webkit-line-clamp: 2;          /* Número de líneas máximo */
   /* -webkit-box-orient: vertical;   /* Orientación vertical */
    /*overflow: hidden;               /* Oculta el contenido sobrante */
    /*text-overflow: ellipsis;        /* Añade los puntos suspensivos */
    /*line-height: 2rem;       /* altura fija */
   /* max-height: calc(2rem * 2); /* exactamente 2 líneas */

}
.fondo.derecha .contenido > .titulo{
    border-left: 5px solid #00bfff;
}
.fondo.izquierda .contenido > .titulo{
    border-right: 5px solid #00bfff;
}
.flotante.derecha .contenido > .titulo{
    border-left: 5px solid #00bfff;
}
.flotante.izquierda .contenido > .titulo{
    border-right: 5px solid #00bfff;
}

.texto {
    display: block;
     width: 100%;

    font-size: 1.1rem;
    line-height: 1.6;
    color: #f0f0f0;
    
    padding: 1rem 1.5rem;
    /*border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    background-color: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(2px);*/
}
.contenido {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    
}
.containerLBV {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}


/* Breakpoints similares a Bootstrap */
@media (max-width: 575px) {

    .titulo{
        font-size: 2rem;
        margin-bottom: 1rem;
        margin-top: 0rem;
    }
    
}
@media (min-width: 576px) {
    .containerLBV {
        max-width: 100%;
    }
    .titulo{
        font-size: 2rem;
        margin-bottom: 1rem;
        margin-top: 0;
    }
}


@media (min-width: 768px) {
    .containerLBV {
        max-width: 100%;
    }
    .titulo{
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 0;
}
}

@media (min-width: 992px) {
    .containerLBV {
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .containerLBV {
        max-width: 80%;
    }
}

@media (min-width: 1400px) {
    .containerLBV {
        max-width: 80%;
    }
}
.modal-title{
    text-transform: uppercase !important;
    font-weight: bold !important;
    font-size: 1.5rem !important;
}
.modal-header{
    text-transform: uppercase !important;
    font-weight: bold !important;
    font-size: 1.5rem !important;
    background:black;
    color:white;
    position: relative;
    z-index:1;
    padding-right:50px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;   /* el SVG usará este color */
    z-index: 3;     /* por encima del header */
    transition: transform 0.2s ease; /* animación suave */
}
.close-modal:hover{
    transform: scale(1.2); /* agranda un 20% */
}
.btn-cerrar{
    text-transform: uppercase;
    font-weight: bold;
    background-color: black;
    margin-right: auto;
    margin-left: auto;
}