/* Full-bleed layout and small-screen adaptation.
   Loaded after the page stylesheets. */

.row {
	width: 100%;
	max-width: none;
	margin-top: 0;
	margin-bottom: 0;
}

div.head {
	width: 100%;
	max-width: none;
	margin: 0;
	aspect-ratio: 1024 / 188;
	background-repeat: no-repeat;
	background-position: top center;
	background-size: 100% auto;
}

.contain-to-grid,
.contain-to-grid.sticky,
nav.top-bar,
div.top-bar-section {
	margin-top: 0;
	margin-bottom: 0;
	gap: 0;
}

.orbit-bullets-container {
	position: absolute;
	right: 8px;
	bottom: 22px;
	top: auto;
	width: auto;
	margin: 0;
}

.orbit-bullets {
	position: static;
	top: auto;
	float: none;
	margin: 0;
}

button.nav-toggle {
	display: none;
}

.orbit-container .orbit-slides-container img,
#featured img {
	width: 100%;
	height: auto;
	max-width: 100%;
}

div.listado .rowNews,
div.detalle .rowDetail {
	display: flex;
	width: 100%;
	align-items: stretch;
}

div.listado .colN2,
div.listado .widthFull,
div.detalle .colN1,
.detalle .colN1,
div.colN2_large {
	width: auto !important;
	max-width: 100%;
	flex: 1 1 auto;
	min-width: 0;
}

div.listado div.imgContainer,
div.listado div.imgContainer img,
div.detalle .text,
ul.gallery,
ul.gallery li,
ul.gallery img {
	max-width: 100%;
}

#map-canvas {
	width: 100%;
	max-width: 100%;
	height: min(590px, 70vh);
}

.reveal-modal,
dialog {
	width: min(960px, 94vw);
	max-width: 94vw;
	margin-left: 0 !important;
	left: 50% !important;
	transform: translateX(-50%);
}

body.contacto .rowCon {
	display: flex;
	width: 100%;
	align-items: flex-start;
	gap: 32px;
}

body.contacto div.col1 {
	width: min(440px, 100%);
	flex: 0 1 440px;
	max-width: 100%;
}

body.contacto div.col2 {
	width: auto;
	flex: 1 1 auto;
	min-width: 0;
	padding-left: 24px;
}

@media only screen and (max-width: 980px) {
	button.nav-toggle {
		display: flex;
		align-items: center;
		gap: 8px;
		position: relative;
		top: 0;
		float: right;
		height: 32px;
		margin: 0 10px 0 0;
		padding: 0 8px;
		border: 0;
		background: transparent;
		color: #fff;
		font-size: 13px;
		line-height: 32px;
		cursor: pointer;
		z-index: 20;
	}

	button.nav-toggle span.nav-toggle-icon {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 4px;
		width: 18px;
		height: 14px;
	}

	button.nav-toggle span.nav-toggle-icon span {
		display: block;
		height: 2px;
		width: 18px;
		background: #fff;
	}

	.contain-to-grid,
	.contain-to-grid.sticky,
	.sticky {
		position: relative !important;
		width: 100%;
	}

	.contain-to-grid .top-bar,
	nav.top-bar {
		height: 44px !important;
		overflow: hidden;
		max-width: 100% !important;
	}

	nav.top-bar.is-open {
		height: auto !important;
		overflow: visible !important;
	}

	.top-bar-section ul.nav-bar {
		display: none;
		width: 100%;
		height: auto !important;
		float: none;
		margin: 0;
	}

	nav.top-bar.is-open .top-bar-section ul.nav-bar,
	nav.top-bar.is-open ul.nav-bar {
		display: block !important;
	}

	nav.top-bar ul.nav-bar > li,
	.top-bar-section ul.nav-bar > li {
		display: block;
		float: none;
		width: 100%;
		height: auto;
		text-align: left;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}

	nav.top-bar ul.nav-bar > li > a,
	.top-bar-section ul.nav-bar > li > a {
		display: block;
		height: auto !important;
		line-height: 44px !important;
		padding: 0 16px !important;
		text-align: left;
	}

	nav.top-bar.is-open li.has-dropdown > ul.dropdown,
	nav.top-bar.is-open ul.dropdown,
	nav.top-bar.is-open ul.flyout {
		display: block !important;
		position: static !important;
		visibility: visible !important;
		height: auto !important;
		width: 100% !important;
		left: auto !important;
		float: none !important;
		background: #520033;
		padding: 0 0 8px 0;
	}

	nav.top-bar.is-open ul.dropdown li,
	nav.top-bar.is-open ul.flyout li {
		display: block;
		float: none;
		width: 100%;
		height: auto;
	}

	nav.top-bar.is-open ul.dropdown li a,
	nav.top-bar.is-open ul.flyout li a {
		display: block;
		line-height: 36px !important;
		height: auto !important;
		padding: 0 16px 0 28px !important;
		font-size: 13px;
	}

	#navlist,
	#navlist.right {
		width: auto;
	}

	div.content {
		padding: 16px !important;
		padding-top: 12px !important;
	}

	div.type1 .rowCon,
	div.type2 .rowCon,
	div.type3 .rowCon,
	body.contacto .rowCon {
		display: flex;
		flex-direction: column;
		width: 100% !important;
		gap: 12px;
	}

	div.type1 .rowCon .col1,
	div.type2 .rowCon .col1,
	div.type1 .rowCon .col2,
	div.type2 .rowCon .col2,
	body.contacto div.col1,
	body.contacto div.col2,
	.small-6,
	.six,
	.small-4,
	.four,
	.small-3,
	.three {
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
		flex: none;
		float: none;
		height: auto;
	}

	div.type1 .content .menu,
	div.type2 .content .menu {
		position: static;
		width: 100%;
		max-width: none;
		border-right: none;
		border-bottom: 3px solid #64003f;
	}

	div.type1 .content .menu ul,
	div.type2 .content .menu ul {
		text-align: left;
		display: flex;
		flex-wrap: wrap;
		gap: 4px 14px;
		padding: 8px 0 12px;
	}

	div.type1 .rowCon .col1,
	div.type2 .rowCon .col1 {
		max-height: none;
		min-height: 0;
	}

	div.type2 .orbit-container,
	.orbit-container,
	div.boxProyectos .orbit-container {
		height: auto !important;
		width: 100% !important;
	}

	p,
	.textContent,
	.textContent ul {
		font-size: 15px;
		line-height: 1.55;
	}

	.titleContent {
		font-size: 22px;
	}

	div.footer,
	div.footer .backFooter {
		height: auto;
		min-height: 0;
	}

	.backFooter .rowFoo {
		width: 100%;
		margin: 12px 0 0;
	}

	.backFooter .columnFoo {
		flex: 1 1 46%;
		border-right: none;
		min-height: 0;
		padding-bottom: 12px;
	}

	.backFooter img.qr {
		position: static;
		display: block;
		margin: 12px auto 0;
	}

	div.footer .arrowFooter {
		background-position: 24px 0;
	}

	body.contacto div.content {
		padding: 20px 16px !important;
	}

	body.contacto div.col2 {
		padding-left: 0;
	}

	body.contacto div.twin {
		display: flex;
		flex-wrap: wrap;
		gap: 8px 16px;
	}

	body.contacto div.twin > div {
		flex: 1 1 140px;
		min-width: 0;
	}

	body.contacto div.twin div:last-child {
		padding-left: 0;
	}

	.detalle li,
	.detalle li:first-child,
	.detalle li .th,
	.detalle li:first-child .th {
		max-width: 100% !important;
		width: 100% !important;
		height: auto !important;
	}

	.detalle li img,
	.detalle li:first-child img,
	div.imgContainer img,
	ul.gallery img {
		min-width: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
		height: auto !important;
	}

	div.detalle .rowGal,
	div.detalle .rowDetail {
		display: block;
		padding-left: 0;
		width: 100%;
	}

	div.listado .rowNews {
		flex-direction: column;
	}

	div.listado div.imgContainer {
		width: 100%;
		max-height: none;
		margin-left: 0;
	}

	div.boxProyectos {
		height: auto;
		min-height: 0;
	}

	div.boxProyectos div.itemProyecto,
	div.boxProyectos div.bubble,
	div.boxProyectos div.boxContent div.photo {
		width: min(422px, 100%);
		max-width: 100%;
		height: auto;
		margin-left: auto;
		margin-right: auto;
	}

	div.boxProyectos div.L,
	div.boxProyectos div.R {
		margin: 16px auto 0;
	}

	div.boxEscuela {
		height: auto;
	}

	div.escImg,
	div#esc1,
	div#esc2 {
		float: none;
		margin: 12px auto;
	}

	div.boxConvenios {
		height: auto;
		padding-left: 8px;
		padding-right: 8px;
	}

	div.rowConvenios {
		margin-left: 0;
		margin-right: 0;
	}

	div.boxConvenios .columns {
		width: 50% !important;
	}
}
