.wp-block-group-modal {
    box-sizing: border-box
}

.wp-block-columns-modal {
    align-items: normal!important;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap!important
}

.wp-block-column-modal {
    flex-grow: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.wp-block-group-modal .image-modal-text {
    text-align: center;
}

.wp-block-group-modal .image-modal-text img {
    box-sizing: border-box;
    max-width: 70%;
    vertical-align: bottom;
    height: 57vh !important;
    background-size: cover;
}
.wp-block-group-modal .image-modal-text-90-40 img {
    box-sizing: border-box;
    max-width: 90%;
    vertical-align: bottom;
    height: 40vh !important;
    background-size: cover;
}
.wp-block-group-modal .image-modal-text-90-57 img {
    box-sizing: border-box;
    max-width: 90%;
    vertical-align: bottom;
    height: 57vh !important;
    background-size: cover;
}
.wp-block-group-modal .image-modal-text-100 img {
    box-sizing: border-box;
    max-width: 100%;
    vertical-align: bottom;
    height: 57vh !important;
    background-size: cover;
}
.wp-block-group-modal .image-modal-text-100-40 img {
    box-sizing: border-box;
    max-width: 100%;
    vertical-align: bottom;
    height: 40vh !important;
    background-size: cover;
}
.wp-block-group-modal .image-modal-text-70-67 img {
    box-sizing: border-box;
    max-width: 70%;
    vertical-align: bottom;
    height: 67vh !important;
    background-size: cover;
}

.wp-block-group-modal .image-modal-text-70-40 img {
    box-sizing: border-box;
    max-width: 70%;
    vertical-align: bottom;
    height: 40vh !important;
    background-size: cover;
}
.wp-block-group-modal .image-modal-text-50 img {
    box-sizing: border-box;
    max-width: 50%;
    vertical-align: bottom;
    background-size: cover;
}

@media (min-width: 782px) {
    .wp-block-columns-modal {
        flex-wrap: nowrap !important;
    }
}

@media (min-width: 782px) {
    .wp-block-columns-modal:not(.is-not-stacked-on-mobile)>.wp-block-column-modal {
        flex-basis: 0;
        flex-grow: 1;
    }
} 

.has-global-padding > .alignfull {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.is-layout-constrained > * {
    margin-block-start: 0 !important;
}

.is-layout-flex {
    /* gap: 0 !important; */
    flex-wrap: wrap;
    align-items: center;
}

.wp-block-image img {
    max-width: 85%;
}

:where(.wp-block-columns-modal) {
    margin-bottom: 1.75em;
}

:where(.wp-block-columns-modal.is-layout-flex) {
    gap: 2em;
}

:where(.is-layout-flex) {
    gap: 0.5em;
}

:where(.wp-block-group-modal.wp-block-group-is-layout-constrained) {
    position: relative;
}

:where(figure) {
    margin: 0 0 1em;
}


/* Estilos para las pestañas */
.tab-links div p {
    cursor: pointer;
}

.tab-links {
    display: flex;
    list-style: none;
    padding-top: 2%;
	width: 80%;
	text-align: center;
    gap: 0 !important;
    margin: 0 auto;
}
.tab-links p {
    font-size: 12px;
    font-weight: 400;
}
.tab-links .wp-block-column-modal {
	border-top: 1px solid #6A6666;
	border-bottom: 1px solid #6A6666;
	border-right: 1px solid #6A6666;
	cursor: pointer;
}

.tab-links .wp-block-column-modal:first-child {
    border-left: 1px solid #6A6666;
}

.tab-links div.active {
    background-color: rgba(255, 255, 255, 0.4);
    color: #333;
    font-weight: bold;
}

.tab-links > div:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Estilos para el contenido de las pestañas */
.tab-content {
    display: none;
    padding: 20px 0 20px 0;
	width: 80%;
	font-size: 20px;
    font-weight: 900;
	line-height: 1.3;
    margin: 0 auto;
}
.tab-content p {
    margin: 0;
    padding: 5px 0;
}
.tab-content.active {
    display: block;
}
.titulo-modal-v1 p {
	text-align: left;
	font-size: 19px;
	font-weight: bold;
}
.texto-modal-v1 p {
	text-align: left;
	font-size: 16px;
}

/* Estilos básicos del modal */
.my-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
	bottom: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
	font-family: 'interregular';
}
div.my-modal p {
    color: black;
}
.text-image-right-align {
    text-align: right;
}
.my-modal .my-modal-content {
    background-color: #AAC7A9;
    border: 1px solid #888;
	margin-top: 3%;
    left: 10%;
    width: 80%;
    max-width: 100%;
    max-height: 86vh; /* Limita la altura del modal al 80% de la altura de la ventana */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow-y: auto; /* Permite el desplazamiento vertical si el contenido es muy grande */
    padding: 20px; /* Añade padding para que el contenido no toque los bordes del modal */
    position: relative;
}
.my-modal-content-background {
    background-color: #EAE5B9;
}
.my-modal-content p {
    font-family: 'interregular' !important;
}
.tab-content-center {
    text-align: center;
}

.tab-content-only-image img {
	max-width: 50%;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
}

/* ESTILOS PARA MODAL 2 */
.my-modal-2 {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	font-family: Arial, sans-serif;
}
.my-modal-2 .my-modal-content {
	background-color: #EAE5B9;
	width: 70%;
	max-width: 100%;
	max-height: 86vh;
	margin: 50px auto;
	border-radius: 10px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: relative;
}
.my-modal-2 .tab-navigation {
	display: flex;
	justify-content: space-between;
	border: 1px solid #6A6666;
	margin-top: 2%;
	padding: 3px;
	width: 50%;
	margin: 2% auto 0 auto;
}
.my-modal-2 .tab-arrow {
	flex: 1;
	text-align: center;
	cursor: pointer;
	padding: 10px;
	font-size: 14px;
	border-radius: 5px;
}
.my-modal-2 .tab-arrow:hover {
	background-color: #ddd8a7;
}
.my-modal-2 .tab-arrow.disabled {
	color: #aaa;
	pointer-events: none;
}
.my-modal-2 .tab-content {
	padding: 10px;
	font-size: 14px;
	display: none;
	width: 80%;
	margin: 0 auto;
}
.my-modal-2 .tab-content.active {
	display: block;
}
.my-modal-2 .close-modal-2 {
	position: absolute;
	top: 10px;
	right: 20px;
	color: #aaa;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}
.titulo_tab {
	display: none;
}

/* Media queries para pantallas más pequeñas */
@media (max-width: 480px) {
    body {
        overflow: auto;
    }
    .my-modal {
        padding-top: 10%;
    }
	.my-modal-content {
		max-height: 68vh;
        top: 4%;
	}
	.tab-content p {
		font-size: 13px;
	}
    .close-modal {
        font-size: 18px;
        top: 2px;
        right: 8px;
    }
	.tab-links .wp-block-column-modal {
		border-left: 1px solid #6A6666;
	}
    .wp-block-group-modal .image-modal-text-70-67 img {
        max-width: 100%;
    }
    .wp-block-group-modal .image-modal-text img {
        max-width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body {
        overflow: auto;
    }
	.my-modal {
        max-width: none;
		padding-top: 10%;
    }
	.my-modal-content {
		max-height: 68vh;
        top: 4%;
	}
	.tab-content p {
		font-size: 13px;
	}
    .close-modal {
        font-size: 20px;
        top: 4px;
        right: 10px;
    }
	.tab-links .wp-block-column-modal {
		border-left: 1px solid #6A6666;
	}
    .wp-block-group-modal .image-modal-text-70-67 img {
        max-width: 100%;
    }
    .wp-block-group-modal .image-modal-text img {
        max-width: 100%;
    }
}

@media (min-width: 577px) and (max-width: 767px) {
    body {
        overflow: auto;
    }
	.my-modal {
        max-width: none;
        padding-top: 10%;
    }
	.my-modal-content {
		max-height: 75vh;
        top: 3%;
	}
	.tab-content p {
		font-size: 14px;
	}
    .close-modal {
        font-size: 20px;
        top: 4px;
        right: 10px;
    }
	.tab-links .wp-block-column-modal {
		border-left: 1px solid #6A6666;
	}
    .wp-block-group-modal .image-modal-text-70-67 img {
        max-width: 100%;
    }
    .wp-block-group-modal .image-modal-text img {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    body {
        overflow: auto;
    }
	.my-modal {
        padding-top: 10%;
    }
	.my-modal-content {
		max-height: 68vh;
        top: 4%;
	}
	.tab-content p {
		font-size: 13px;
	}
    .close-modal {
        font-size: 18px;
        top: 2px;
        right: 8px;
    }
	.tab-links .wp-block-column-modal {
		border-left: 1px solid #6A6666;
	}
    .wp-block-group-modal .image-modal-text-70-67 img {
        max-width: 100%;
    }
    .wp-block-group-modal .image-modal-text img {
        max-width: 100%;
    }
}

/* Estilo de la barra de desplazamiento */
::-webkit-scrollbar {
    width: 12px; /* Ancho de la barra */
}

/* Estilo del "track" de la barra de desplazamiento */
::-webkit-scrollbar-track {
    background: #eff1ef; /* Color de fondo */
}

/* Estilo del "thumb" de la barra de desplazamiento */
::-webkit-scrollbar-thumb {
    background-color: #aac7a9; /* Color de la barra */
    border-radius: 8px; /* Bordes redondeados */
    border: 2px solid #eff1ef; /* Bordes con color de fondo */
}

/* Hover effect */
::-webkit-scrollbar-thumb:hover {
    background: #9E9E9E; /* Color de la barra al pasar el mouse */
}