/*
Theme Name: Instituto Bicentenario
Theme URI: https://www.institutobicentenario.org/
Author: Cocoa Perú
Author URI: https://cocoa.pe/
Description: Plantilla desarrollada para uso de Instituto Bicentenario
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root{
	--font-family: "DM Sans", sans-serif;
	--font-headlines: "DM Sans", sans-serif;
	--link: inherit;
	--rojo: #FE0000;
	--black: #394551;
	--gris: #666666;
	--light: #39455108;
	--white: #ffffff;
	--border: #eaeaea;
	
	--facebook: #1877f2;
	--twitter: #1da1f2;
	--instagram: #e1306c;
	--youtube: #ff0000;
	--twitch: #9146ff;
	--discord: #7289da;
	--whatsapp: #25d366;
	--linkedin: #0077b5;
	
	--header-height: 120px;
	--col: 110px;
	--container: 1320px;
}
@media only screen and (max-width: 1399px){ :root{ --col: 95px; --container: 1140px; } }
@media only screen and (max-width: 1199px){ :root{ --col: 79.98px; --container: 960px; } }
@media only screen and (max-width: 991px){ :root{ --col: 60px; --container: 710px; --header-height: 100px; } }
@media only screen and (max-width: 767px){ :root{ --col: 45px; --container: 540px; } }
@media only screen and (max-width: 575px){ :root{ --col: calc(100vw/12); --container: 100vw; } }

html{
	font-size: 18px;
}

body, table, td{
	font-family: var(--font-family);
	line-height: 1.3;
	color: var(--black);
	font-weight: 400;
	font-size: 1rem;
	font-optical-sizing: auto;
	font-style: normal;
}
a{
	color: var(--link);
	text-decoration: underline;
}
a:hover{
	color: var(--link);
	text-decoration: underline;
}

small, .small{ font-size: 88.889%; }

b, strong{ font-weight: 700; }

.h0{ font-size: 5.2rem; }
h1, .h1{ font-size: 3.3333rem; }
h2, .h2{ font-size: 2.77778rem; }
h3, .h3{ font-size: 1.66667rem; }
h4, .h4{ font-size: 1.4444rem; }
h5, .h5{ font-size: 1.277778rem; }
h6, .h6{ font-size: 1.1111rem; }
.tiny{ font-size: .77778rem; }

.has-medium-font-size{ font-size: 1.277778rem !important; }
.has-small-font-size{ font-size: 0.88889rem !important; }

h1,h2,h3,h4,h5,h6{ font-family: var(--font-headlines); font-weight: 400; margin-bottom: 1rem; line-height: 1.1;}

ul,ol{
	margin-bottom: 1.5rem;
}

ol:last-child,
ul:last-child,
p:last-child,
h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child{
	margin-bottom: 0 !important;
}

p:first-child,
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child{
	margin-top: 0 !important;
}

p{
	margin-bottom: 1rem;
}

ul, ol{
	padding-left: 1.5em;
}

.overflow-hidden{
	overflow: hidden;
}

.wp-block-separator,
hr{
	border: 0 solid #eaeaea;
	border-top-width: 1px;
}

/*------------------------------ btn-trigger -------------------------*/

.btn-trigger{
	position: relative;
	display: block;
	min-width: 3rem;
	height: 3rem;
	border: 0 none;
	background-color: transparent;
	z-index: 100;
}

.btn-trigger span{
	display: block;
	position: absolute;
	width: 2.75rem;
	height: 4px;
	background-color: var(--white);
	left: calc(50% - 1.375rem);
	-webkit-transition: all 0.1s ease;
	-moz-transition: all 0.1s ease;
	-ms-transition: all 0.1s ease;
	-o-transition: all 0.1s ease;
	transition: all 0.1s ease;
	z-index: 9;
	border-radius: 50em;
}
.btn-trigger span:nth-child(1){
	top: calc(50% - .9rem);
}
.btn-trigger span:nth-child(2){
	bottom: calc(50% - .9rem);
}

.btn-trigger span:nth-child(3){
	bottom: calc(50% - 2px);
}

.btn-trigger.show span:nth-child(1){
	-moz-transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
	top: calc(50% - 2px);
}
.btn-trigger.show span:nth-child(2){
	-moz-transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	transform: rotate(-45deg);
	bottom: calc(50% - 2px);
}
.btn-trigger.show span:nth-child(3){
	width: 0;
	opacity: 0;
}

/*------------------------------ Forms -----------------------------*/

.label,
label{
	font-size: 1rem;
	margin-bottom: .25rem;
	font-weight: 600;
}

.form-select,
.form-control{
	height: 3rem;
	display: block;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 100%;
	font-size: 1rem;
	color: var(--black);
	border-radius: .25rem;
	border: 1px solid var(--gris);
	padding: .25rem .75rem;
}

.form-select:hover,
.form-control:hover{
	border-color: var(--black);
}

textarea.form-control{
	height: auto;
	padding-top: .75rem;
}

input::-webkit-input-placeholder{color: var(--gris);}
input::-moz-placeholder{color: var(--gris);}
input:-ms-input-placeholder{color: var(--gris);}
input::-ms-input-placeholder{color: var(--gris);}
input::placeholder{color: var(--gris);}

.form-select{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23999999' viewBox='0 0 16 16'%3E%3Cpath d='M0,4.9l1.8-1.8,6.2,6.2,6.2-6.2,1.8,1.8-8,8L0,4.9Z'/%3E%3C/svg%3E");
	background-position: right 1rem center;
	background-repeat: no-repeat;
	background-size: .8889rem auto;
}

.form-select:focus,
.form-select:active{
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath d='M16,11.1l-1.8,1.8-6.2-6.2L1.8,12.9l-1.8-1.8L8,3.1l8,8Z'/%3E%3C/svg%3E");
}

.form-check{
	display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
}
.form-check-input{
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	margin-top: .175em;
	vertical-align: top;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: var(--white);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FFF' viewBox='0 0 16 16'%3E%3Cpath d='M1,8.604l1.75-1.75,3.097,3.097,7.403-7.403,1.75,1.75L5.847,13.451,1,8.604Z'/%3E%3C/svg%3E"); 
	background-repeat: no-repeat;
	background-position: center;
	background-size: .88889rem;
	border: 1px solid var(--gris);
	border-radius: 4px;
	-webkit-print-color-adjust: exact;
	color-adjust: exact;
	print-color-adjust: exact;
}
.form-check .form-check-input{
	float: left;
    margin-left: -1.5em;
}

.form-check-input:checked{
	background-color: var(--black);
	border-color: var(--black);
}
.form-check:hover .form-check-input{
	border-color: var(--black);
}

.form-check-input[type=radio]{
	border-radius: 50%;
	width: 1rem;
	height: 1rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FFF' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E"); 
	background-size: 60% auto;
}
.form-check-input[type=radio]:checked{
	background-color: var(--white);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E"); 
	border-color: var(--black);
}

/*------------------------------ VIDEO RESPONSIVE -----------------------------*/

.ratio {
	position: relative;
	width: 100%;
}
.ratio::before {
	display: block;
	padding-top: var(--bs-aspect-ratio);
	content: "";
}
.ratio > * {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.ratio-1x1{--bs-aspect-ratio: 100%;}
.ratio-4x3{--bs-aspect-ratio: 75%;}
.ratio-16x9{--bs-aspect-ratio: 56.25%;}
.ratio-21x9{--bs-aspect-ratio: 42.8571428571%;}

/*------------------------------ MODAL -----------------------------*/

.modal {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1055;
	display: none;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	outline: 0;
}

.modal-dialog {
	position: relative;
	width: auto;
	margin: .5rem;
	pointer-events: none;
}
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}
@media (prefers-reduced-motion: reduce) {
  .modal.fade .modal-dialog {
    transition: none;
  }
}
.modal.show .modal-dialog {
  transform: none;
}
.modal.modal-static .modal-dialog {
  transform: scale(1.02);
}

.modal-dialog-scrollable {
  height: calc(100% - .5rem * 2);
}
.modal-dialog-scrollable .modal-content {
  max-height: 100%;
  overflow: hidden;
}
.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

.modal-dialog-centered {
	display: flex;
	align-items: center;
	min-height: calc(100% - .5rem * 2);
}

.modal-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	pointer-events: auto;
	background-color: transparent;
	background-clip: padding-box;
	outline: 0;
}

.modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1050;
	width: 100vw;
	height: 100vh;
	background-color: #000;
}
.modal-backdrop.fade {
  opacity: 0;
}
.modal-backdrop.show {
  opacity: .9;
}

@media (min-width: 576px) {
	.modal {
		--bs-modal-margin: 1.75rem;
		--bs-modal-box-shadow: var(--bs-box-shadow);
	}
	.modal-dialog {
		max-width: var(--bs-modal-width);
		margin-right: auto;
		margin-left: auto;
	}
	.modal-sm {
		--bs-modal-width: 300px;
	}
}
@media (min-width: 992px) {
  .modal-lg,
  .modal-xl {
    --bs-modal-width: 920px;
  }
}
@media (min-width: 1200px) {
  .modal-xl {
    --bs-modal-width: 1140px;
  }
}

.fade {
  transition: opacity 0.15s linear;
}
@media (prefers-reduced-motion: reduce) {
  .fade {
    transition: none;
  }
}
.fade:not(.show) {
  opacity: 0;
}

.collapse:not(.show) {
  display: none;
}

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .collapsing {
    transition: none;
  }
}
.collapsing.collapse-horizontal {
  width: 0;
  height: auto;
  transition: width 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .collapsing.collapse-horizontal {
    transition: none;
  }
}

button.close{
	background-color: transparent;
	border: 0 none;
	position: absolute;
	top: 1rem;
	right: 1rem;
	padding: 0;
	opacity: .5;
}
button.close svg{
	width: 2rem;
	height: auto;
}
button.close:hover{
	opacity: 1;
}

.img-fluid{
	max-width: 100%;
	height: auto;	
}

.img-fit{
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.text-uppercase{text-transform: uppercase !important;}
.text-underline{ text-decoration: underline !important; }
.w-100{width: 100%;}
.h-100{height: 100%;}
.position-relative{	position: relative;}

.text-justify{ text-align: justify !important; }
.text-start {text-align: left !important;}
.text-end {text-align: right !important;}
.text-center { text-align: center !important;}

@media (min-width: 576px) {
	.text-sm-start {text-align: left !important;}
	.text-sm-end {text-align: right !important; }
	.text-sm-center {text-align: center !important;}
}
@media (min-width: 768px) {
	.text-md-start {text-align: left !important;}
	.text-md-end {text-align: right !important;}
	.text-md-center {text-align: center !important;}
}
@media (min-width: 992px) {
	.text-lg-start {text-align: left !important;}
	.text-lg-end {text-align: right !important;}
	.text-lg-center {text-align: center !important;}
}
@media (min-width: 1200px) {
	.text-xl-start {text-align: left !important;}
	.text-xl-end {text-align: right !important;}
	.text-xl-center {text-align: center !important;}
}
@media (min-width: 1400px) {
	.text-xxl-start {text-align: left !important;}
	.text-xxl-end {text-align: right !important;}
	.text-xxl-center {text-align: center !important;}
}

.py,.pt{ padding-top: 5rem; }
.py,.pb{ padding-bottom: 5rem; }
.my,.mt{ margin-top: 5rem; }
.my,.mb{ margin-bottom: 5rem; }

.text-rojo{color: var(--rojo) !important;}
.text-black{color: var(--black) !important;}
.text-gris{color: var(--gris) !important;}
.text-light{color: var(--light) !important;}
.text-white{color: var(--white) !important;}
.text-border{color: var(--border) !important;}

.bg-rojo{background-color: var(--rojo) !important;}
.bg-black{background-color: var(--black) !important;}
.bg-gris{background-color: var(--gris) !important;}
.bg-light{background-color: var(--light) !important;}
.bg-white{background-color: var(--white) !important;}
.bg-border{background-color: var(--border) !important;}

.text-truncate{overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.stretched-link::after{ position: absolute;top: 0;right: 0;bottom: 0;left: 0;z-index: 1;content: "";}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl{
	padding-right: 15px;
    padding-left: 15px;
}
.row:not([class*=gx]){
	--bs-gutter-x: 30px;
}

.cta a,
.wp-block-button__link,
.btn{
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;
	line-height: 1.2;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	border: 1px solid transparent;
	background-color: transparent;
	padding: 5px 25px;
	font-size: 1rem;
	font-weight: normal;
	z-index: 1;
	gap: 0 0.35em;
	border-radius: 5px;
	color: inherit;
	-webkit-transition: all 0.25s ease;
	-moz-transition: all 0.25s ease;
	-ms-transition: all 0.25s ease;
	-o-transition: all 0.25s ease;
	transition: all 0.25s ease;
}

.wp-block-button__link:hover,
.btn:hover{
	text-decoration: none;
	color: inherit;
}

@media (prefers-reduced-motion: reduce) {
	.btn {
		transition: none;
	}
}

.is-style-btn-lg .wp-block-button__link,
.btn-lg{
	min-height: 60px;
	max-width: 430px;
	padding: 12px 15px;
	font-weight: 700;
	border-radius: 10px;
	font-size: 1.277778rem;
}

.wp-block-button__link:hover,
.btn-rojo:hover,
.wp-block-button__link,
.btn-rojo{
	color: var(--white);
	border-color: var(--rojo);
	background-color: var(--rojo);
}

/*------------------------------ Responsive -----------------------------*/

@media only screen and (max-width: 1539px){
	
}
@media only screen and (max-width: 1399px){
	html{
		font-size: 16px;
	}
}
@media only screen and (max-width: 1199px){
	html{
		font-size: 18px;
	}
}
@media only screen and (max-width: 991px){
	html{
		font-size: 16px;
	}
	small, .small{
		font-size: 100%;
	}
	.has-small-font-size{
		font-size: 1rem !important;
	}
}
@media only screen and (max-width: 767px){
	
	.py,.pt{ padding-top: 4rem; }
	.py,.pb{ padding-bottom: 4rem; }
	.my,.mt{ margin-top: 4rem; }
	.my,.mb{ margin-bottom: 4rem; }
	
	h1, .h1{ font-size: 2.5rem; }
	h2, .h2{ font-size: 2rem; }
	h3, .h3{ font-size: 1.75rem; }
	h4, .h4{ font-size: 1.5rem; }
	h5, .h5{ font-size: 1.125rem; }
	h6, .h6{ font-size: 1rem; }
	.tiny{ font-size: .77778rem; }
	
	.btn-lg{
		font-size: 1.1111rem;
	}
	
	
}
@media only screen and (max-width: 575px){
	
	.py,.pt{ padding-top: 3.42rem; }
	.py,.pb{ padding-bottom: 3.42rem; }
	.my,.mt{ margin-top: 3.42rem; }
	.my,.mb{ margin-bottom: 3.42rem; }
	
	.h0{
		 font-size: 3.2rem;
	}
	h1, .h1{ font-size: 2rem; }
	h2, .h2{ font-size: 1.75rem; }
	h3, .h3{ font-size: 1.5rem; }
	h4, .h4{ font-size: 1.25rem; }
	h5, .h5{ font-size: 1.1111rem; }
	h6, .h6{ font-size: 1rem; }
	.tiny{ font-size: .77778rem; }
	
}