@import url("fontawesome-all.min.css");
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,700,900");

/*
	Escape Velocity by HTML5 UP - Adaptado para C21
*/

html, body, div, span, applet, object,
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	line-height: 1;
	background-color: #faf9f6;
	overflow-x: hidden;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
	-webkit-text-size-adjust: none;
}

mark {
	background-color: transparent;
	color: inherit;
}

input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

input, select, textarea {
	-moz-appearance: none;
	-webkit-appearance: none;
	-ms-appearance: none;
	appearance: none;
}

/* Basic */

	@-ms-viewport {
		width: device-width;
	}

	html {
		box-sizing: border-box;
	}

	*, *:before, *:after {
		box-sizing: inherit;
	}

	body.is-preload *, body.is-preload *:before, body.is-preload *:after {
		animation: none !important;
		transition: none !important;
	}

	body, input, textarea, select {
		font-family: 'Source Sans Pro', sans-serif;
		font-weight: 400;
		color: #555960;
		font-size: 14pt;
		line-height: 1.75em;
		letter-spacing: 0.025em;
	}

	h1, h2, h3, h4, h5, h6 {
		font-weight: 700;
		color: #212529;
	}

		h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
			color: inherit;
			text-decoration: none;
		}

	a {
		transition: color .25s ease-in-out;
		text-decoration: underline;
		color: #a19276;
	}

		a:hover {
			text-decoration: none;
			color: #beaf87;
		}

	strong, b {
		font-weight: 700;
		color: #212529;
	}

	blockquote {
		border-left: solid 0.5em #beaf87;
		padding: 1em 0 1em 2em;
		font-style: italic;
		color: #6c757d;
	}

	em, i {
		font-style: italic;
	}

	hr {
		border: 0;
		border-top: solid 1px #e8decb;
		margin: 2em 0 2em 0;
	}

	sub {
		position: relative;
		top: 0.5em;
		font-size: 0.8em;
	}

	sup {
		position: relative;
		top: -0.5em;
		font-size: 0.8em;
	}

	.nobr {
		white-space: nowrap;
	}

	br.clear {
		clear: both;
	}

	p, ul, ol, dl, table, blockquote, form {
		margin-bottom: 2em;
	}

/* Container */

	.container {
		margin: 0 auto;
		max-width: 100%;
		width: 68em;
	}

		@media screen and (max-width: 1680px) {
			.container {
				width: 70em;
			}
		}

		@media screen and (max-width: 1280px) {
			.container {
				width: calc(100% - 100px);
			}
		}

		@media screen and (max-width: 980px) {
			.container {
				width: calc(100% - 60px);
			}
		}

		@media screen and (max-width: 736px) {
			.container {
				width: calc(100% - 30px);
			}
		}

/* Row & Grids */

	.row {
		display: flex;
		flex-wrap: wrap;
		box-sizing: border-box;
		align-items: stretch;
	}

		.row > * {
			box-sizing: border-box;
		}

		.row.gtr-uniform > * > :last-child {
			margin-bottom: 0;
		}

		.row.aln-left { justify-content: flex-start; }
		.row.aln-center { justify-content: center; }
		.row.aln-right { justify-content: flex-end; }
		.row.aln-top { align-items: flex-start; }
		.row.aln-middle { align-items: center; }
		.row.aln-bottom { align-items: flex-end; }

		.row > .imp { order: -1; }
		.row > .col-1 { width: 8.33333%; }
		.row > .col-2 { width: 16.66667%; }
		.row > .col-3 { width: 25%; }
		.row > .col-4 { width: 33.33333%; }
		.row > .col-5 { width: 41.66667%; }
		.row > .col-6 { width: 50%; }
		.row > .col-7 { width: 58.33333%; }
		.row > .col-8 { width: 66.66667%; }
		.row > .col-9 { width: 75%; }
		.row > .col-10 { width: 83.33333%; }
		.row > .col-11 { width: 91.66667%; }
		.row > .col-12 { width: 100%; }

		.row.gtr-0 { margin-top: 0px; margin-left: 0px; }
		.row.gtr-0 > * { padding: 0px; }

		.row.gtr-25 { margin-top: -12.5px; margin-left: -12.5px; }
		.row.gtr-25 > * { padding: 12.5px 0 0 12.5px; }

		.row.gtr-50 { margin-top: -25px; margin-left: -25px; }
		.row.gtr-50 > * { padding: 25px 0 0 25px; }

		.row { margin-top: -50px; margin-left: -50px; }
		.row > * { padding: 50px 0 0 50px; }

		@media screen and (max-width: 980px) {
			.row > .col-6-medium { width: 100%; }
			.row > .col-12-medium { width: 100%; }
		}

/* Section/Article */

	section, article {
		margin: 0 0 4em 0;
	}

	section > :last-child,
	article > :last-child,
	section:last-child,
	article:last-child {
		margin-bottom: 0;
	}

/* Wrapper */

	.wrapper {
		position: relative;
		padding: 5em 0 7em 0;
	}

		.wrapper .title {
			position: absolute;
			top: -1.75em;
			left: 50%;
			transform: translateX(-50%);
			text-align: center;
			text-transform: uppercase;
			display: inline-block;
			font-weight: 700;
			letter-spacing: 0.2em;
			font-size: 0.85em;
			padding: 0.6em 2.5em;
			background: #beaf87;
			color: #ffffff;
			border-radius: 4px;
			box-shadow: 0 4px 14px rgba(161, 146, 118, 0.3);
		}

		.wrapper.style1 {
			background: #faf8f5;
			color: #4a4e57;
		}

			.wrapper.style1 .title {
				background: linear-gradient(135deg, #c5a059 0%, #a19276 100%);
				color: #fff;
			}

			.wrapper.style1 h1, .wrapper.style1 h2, .wrapper.style1 h3, .wrapper.style1 h4, .wrapper.style1 strong {
				color: #212529;
			}

/* Header Banner */

	#header {
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		min-height: 24em;
		background: #ffffff url("../../images/banner1.jpg") center center;
		background-size: cover;
		padding: 0;
	}

		#header:before {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background: radial-gradient(circle at center, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.96) 100%);
			z-index: 1;
		}

		.homepage #header {
			min-height: 30em;
		}

/* Logo */

	#logo {
		width: 100%;
		text-align: center;
		position: relative;
		z-index: 2;
	}

		#logo h1 {
			margin: 0;
			padding: 0;
			line-height: 1;
		}

		#logo p {
			color: #44474e;
			max-width: 600px;
			margin: 1.2em auto 0 auto;
			line-height: 1.6;
			font-size: 0.95em;
		}

/* Nav Desktop */

	#nav {
		position: absolute;
		display: block;
		top: 2em;
		left: 0;
		width: 100%;
		text-align: center;
		z-index: 10;
	}

		#nav > ul {
			display: inline-block;
			background: rgba(255, 255, 255, 0.94);
			border-radius: 30px;
			border: 1px solid #e8decb;
			box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
			padding: 0 1.5em;
		}

			#nav > ul > li {
				display: inline-block;
				text-align: center;
				padding: 0 1.2em;
			}

				#nav > ul > li > ul {
					display: none;
				}

				#nav > ul > li > a, #nav > ul > li > span {
					display: block;
					color: #4a4e57;
					text-transform: uppercase;
					text-decoration: none;
					font-size: 0.75em;
					font-weight: 700;
					letter-spacing: 0.15em;
					height: 4em;
					line-height: 4em;
					transition: color .25s ease-in-out;
					outline: 0;
				}

				#nav > ul > li:hover > a,
				#nav > ul > li.current > a {
					color: #beaf87;
				}

	.dropotron {
		background: #ffffff;
		padding: 1em;
		border-radius: 8px;
		border: 1px solid #e8decb;
		box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
		min-width: 13em;
		text-align: left;
		list-style: none;
		z-index: 1000;
	}

		.dropotron a {
			display: block;
			color: #555960;
			text-transform: uppercase;
			text-decoration: none;
			font-size: 0.75em;
			font-weight: 600;
			letter-spacing: 0.1em;
			line-height: 2.6em;
			padding: 0 0.5em;
			border-top: 1px solid #f2ede4;
			transition: all .2s ease;
		}

		.dropotron li:first-child a {
			border-top: 0;
		}

		.dropotron a:hover {
			color: #beaf87;
			background: #faf8f5;
			border-radius: 4px;
		}

/* Footer */

	#footer {
		background: #f7f5f1;
		color: #6c757d;
		border-top: 1px solid #e8decb;
		padding: 4em 0 3em 0;
	}

        /* ==========================================================================
           ESTILOS PARA EL VIDEO DEL LOGO (Fondo Blanco Transparente)
           ========================================================================== */
        .video-container {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            margin-bottom: 1.5em;
            background: transparent;
        }

        .video-logo {
            width: 100%;
            max-width: 450px; /* Ajusta este tamaño según necesites */
            height: auto;
            object-fit: contain;
            /* ESTA ES LA MAGIA: Elimina el fondo blanco */
            mix-blend-mode: multiply; 
            /* Bordes limpios */
            outline: none;
            border: none;
        }

/* ==========================================================================
   CORRECCIÓN RESPONSIVA MÓVIL (OFF-CANVAS FLOTANTE SIN EMPUJAR EL CONTENIDO)
   ========================================================================== */
#navPanel, #titleBar {
	display: none;
}

@media screen and (max-width: 980px) {
	#nav { 
		display: none; 
	}

	/* Evitamos que el wrapper se desplace lateralmente */
	#page-wrapper {
		transform: none !important;
		padding-top: 55px; /* Espacio para que la barra fija no tape nada */
	}

	body.navPanel-visible #page-wrapper {
		transform: none !important;
	}

	/* Barra superior fija con botón de menú */
	#titleBar {
		display: block;
		height: 50px;
		left: 0;
		position: fixed;
		top: 0;
		width: 100%;
		z-index: 10001;
		background: rgba(255, 255, 255, 0.98);
		backdrop-filter: blur(8px);
		border-bottom: 1px solid #e8decb;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	}

	/* 🔴 SOLUCIÓN CLAVE: Oculta el video duplicado que main.js clona en titleBar */
	#titleBar .title,
	#titleBar video,
	#titleBar .video-container {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
	}

	#titleBar .toggle {
		text-decoration: none;
		position: absolute;
		top: 6px;
		left: 10px;
		width: 42px;
		height: 38px;
		line-height: 38px;
		text-align: center;
		color: #212529;
		background: #f4efe6;
		border-radius: 4px;
		border: 1px solid #e2dac9;
		z-index: 10003;
	}

	#titleBar .toggle:before {
		content: '\f0c9';
		font-family: 'Font Awesome 5 Free';
		font-weight: 900;
	}

	/* Panel lateral desplegable en su propia capa */
	#navPanel {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 275px;
		height: 100%;
		background: #ffffff;
		border-right: 1px solid #e8decb;
		box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
		transform: translateX(-100%);
		transition: transform 0.32s ease-in-out;
		z-index: 10002;
		overflow-y: auto;
	}

	body.navPanel-visible #navPanel {
		transform: translateX(0);
	}

	#navPanel .link {
		display: block;
		color: #3b3f46;
		padding: 13px 20px;
		text-decoration: none;
		font-size: 0.88em;
		font-weight: 600;
		border-bottom: 1px solid #f3ede2;
	}

	#navPanel .link:hover {
		color: #beaf87;
		background: #faf8f5;
	}

	/* Ajuste de cabecera y único video visible */
	#header {
		padding: 2.5em 1.2em 1.5em 1.2em !important;
		min-height: auto !important;
		height: auto !important;
	}

	#logo {
		top: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		position: relative !important;
	}

	.video-container {
		width: 100% !important;
		max-width: 100% !important;
		margin-bottom: 1em !important;
	}

	.video-container video.video-logo {
		max-width: 82% !important;
		display: block !important;
	}

	#logo p {
		font-size: 0.9em !important;
		line-height: 1.55 !important;
		margin-top: 0.8em !important;
		padding: 0 10px !important;
		color: #44474e !important;
	}
}

@media screen and (max-width: 736px) {
	.wrapper {
		padding: 3.5em 0 5em 0;
	}

	.c21-main-card {
		padding: 1.5em 1.2em;
	}

	.c21-grid-departments {
		grid-template-columns: 1fr;
	}
}