/* OVERRIDE */
@font-face {
	font-family: "Gotham Book";
	src: url("../fonts/Gotham-Book.woff2") format("woff2"), url("../fonts/Gotham-Book.woff") format("woff"), url("../fonts/Gotham-Book.ttf") format("truetype"), url("../fonts/Gotham-Book.otf") format("opentype");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Gotham Bold";
	src: url("../fonts/Gotham-Bold.woff2") format("woff2"), url("../fonts/Gotham-Bold.woff") format("woff"), url("../fonts/Gotham-Bold.ttf") format("truetype"), url("../fonts/Gotham-Bold.otf") format("opentype");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Gotham Light";
	src: url("../fonts/Gotham-Light.woff2") format("woff2"), url("../fonts/Gotham-Light.woff") format("woff"), url("../fonts/Gotham-Light.ttf") format("truetype"), url("../fonts/Gotham-Light.otf") format("opentype");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

body {
	font-family: "Gotham Book", sans-serif;
	font-size: 16px;
}

header {
	height: 115px;
	box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
	z-index: 10;
	position: relative;
}

.navbar-toggler {
  border-color: #5d0e8b;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%235d0e8b' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

footer {
	font-size: 16px;
}

footer .bottom {
	background-color: #656670;
	font-size: 14px;
}

footer a,
footer a:link {
	color: white;
	text-decoration: none;
	margin-left: 0.5rem;
	margin-right: 0.5rem;
}

footer a:hover,
footer a:focus,
footer a:active,
footer a:visited {
	text-decoration: underline;
}

strong {
	font-family: "Gotham Bold", sans-serif;
}

.menu-link {
	color: #5d5d5d;
	text-decoration: none;
	font-family: "Gotham Light", sans-serif;
	text-align: center;
	font-size: 18px;
	line-height: 20px;
    padding: 0rem 0.75rem;
}

.menu-link strong {
	font-family: "Gotham Bold", sans-serif;
}

.menu-link:hover {
	color: #5c0f8b;
	transition: color 0.5s ease, transform 0.5s ease;
}

.menu-link.active {
	color: #5c0f8b;
}
.menu-link a {
    text-decoration: none;
    color: inherit;
}

.menu-footer {
	height: 10px;
	background-color: #8a49b2;
}

.w-45 {
    width: 45%;
}

/* NEWS */
.logo {
	max-height: 40px;
}

.title {
	position: relative;
	font-family: "Gotham Light", sans-serif;
	display: block;
}

.title.line-top::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 50px;
	height: 5px;
	background-color: #fff;
}

.title.line-bottom::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50px;
	height: 5px;
	background-color: #fff;
}

.subtitle {
	font-family: "Gotham Light", sans-serif;
	font-size: 23px;
	line-height: 30px;
}

.subtitle span.middle {
	font-size: 30px;
}

.subtitle span {
	font-size: 40px;
}

/* Typography */
.fs-biggest {
	font-size: 80px;
	line-height: 80px;
}
.fs-big {
	font-size: 60px;
	line-height: 60px;
}

.fs-medium {
	font-size: 30px;
}

.fs-normal {
	font-size: 22px;
}

.text-special {
	font-size: 42px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.letter-spacing-1 {
	letter-spacing: 0.2em;
}

.letter-spacing-2 {
	letter-spacing: 0.5em;
}

/* Home Carousel */
.hero-carousel {
	background-image: url("../images/carousel/bg-carousel1.jpg");
	background-size: cover;
	background-position: center;
	width: 100%;
	min-height: calc(100vh - 115px);
}

/* Lab Carousel */
#labCarousel .carousel-control-prev,
#labCarousel .carousel-control-next {
	width: auto;
	padding: 1rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
	width: 3rem;
	height: 3rem;
	transform: scale(1);
	transition: transform 0.4s ease;
}

.carousel-control-next,
.carousel-control-prev {
	opacity: 1;
}

.carousel-control-next-icon:focus,
.carousel-control-next-icon:hover,
.carousel-control-prev-icon:focus,
.carousel-control-prev-icon:hover {
	transform: scale(1.3);
}

#labCarousel .carousel-control-prev {
	left: -60px;
}

#labCarousel .carousel-control-next {
	right: -60px;
}

.carousel-indicators {
	bottom: -45px;
}

/* Botón */
.btn-blue {
	background-color: rgba(154, 88, 196, 0.5);
	border: 1px solid #9a58c4;
	color: #fff;
}

.btn-blue:hover,
.btn-blue:focus {
	background-color: rgba(154, 88, 196, 0.7);
	border-color: #9a58c4;
	color: #fff;
}

.btn-submit {
	border: 3px solid #ffffff; /* borde grueso blanco */
	background: linear-gradient(to bottom, #ffffff, #acacab);
	color: #500a7b;
}

.btn-submit:hover,
.btn-submit:focus {
	background: linear-gradient(to bottom, #f0f0f0, #9c9c9c);
	border-color: #ffffff;
	color: #500a7b;
}

.btn-rhombus {
	background-color: #6d2f9a;
	color: #fff;
	border: none;
	padding: 0.75rem 3rem;
	transform: skew(-20deg);
	font-family: "Gotham Bold", sans-serif;
	border-radius: 0px;
	border: 3px solid #ffff;
}

.btn-rhombus span {
	display: inline-block;
	transform: skew(20deg);
}

.btn-rhombus:hover {
	background-color: #5a2580;
	color: #fff;
	border: 3px solid #ffff;
}

/* Form */
form a,
form a:link {
	color: #ffffff;
	text-decoration: none;
}

form a:hover,
form a:focus,
form a:active,
form a:visited {
	color: #c2c2c2;
	text-decoration: underline;
}

label.error {
	font-size: 0.85rem;
	color: red;
	margin-top: 4px;
	display: block;
}

#formMessage {
	font-size: 0.95rem;
	transition: all 0.3s ease;
}

/* Sections */
.custom-section {
	position: relative;
	background-color: #2a2a2a;
	background-image: url("../images/home/bg1.png");
	background-repeat: no-repeat;
	background-position: 20% center;
	background-size: auto;
	color: white;
}

.section-color {
	position: relative;
	background-repeat: repeat;
	background-size: cover;
	background-position: top center;
	color: white;
	z-index: 0;
}

.section-color::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 150px;
	width: 100%;
	z-index: 1;
	pointer-events: none;
}

.section-color::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	height: 150px;
	width: 100%;
	z-index: 1;
	pointer-events: none;
}

.section-color .container,
.section-color .container-fluid {
	position: relative;
	z-index: 2;
}

/* Backgrounds */
.bg-blue-light {
	background-image: url("../images/bg-blue-light.jpg");
}

.bg-blue-light::before {
	background: linear-gradient(to bottom, #470c6b, transparent);
}

.bg-blue-light::after {
	bottom: 0;
	background: linear-gradient(to top, #470c6b, transparent);
}

.bg-blue-dark {
	background-image: url("../images/bg-blue-dark.jpg");
}

.bg-blue-dark::before {
	background: linear-gradient(to bottom, #110120, transparent);
}

.bg-blue-dark::after {
	bottom: 0;
	background: linear-gradient(to top, #110120, transparent);
}

.bg-gray-dark {
	background-image: url("../images/bg-gray-dark.jpg");
}

.bg-gray-dark::before {
	background: linear-gradient(to bottom, #242424, transparent);
}

.bg-gray-dark::after {
	bottom: 0;
	background: linear-gradient(to top, #343434, transparent);
}

.border-top-blue-light {
	border-top: 10px solid #8a49b2;
}

.border-bottom-blue-light {
	border-bottom: 10px solid #8a49b2;
}

.border-top-gray-dark {
	border-top: 10px solid #343434;
}

.border-bottom-gray-dark {
	border-bottom: 10px solid #343434;
}

.bg-black-80 {
	background-color: rgba(0, 0, 0, 0.8);
}

.bg-blue-80 {
	background-color: rgba(16, 2, 25, 0.8);
}

/* Extras */
.custom-bullets {
	list-style: none;
	padding-left: 0;
	margin-bottom: 0;
}

.custom-bullets li {
}

.custom-bullets li::before {
}

.cards-selector {
	cursor: pointer;
	opacity: 0.6;
}
.cards-selector.active {
	opacity: 1;
}

.cards-selector .image {
	max-width: 80%;
}
.cards-selector .rectangle-wrapper {
	width: 45%;
}
.cards-selector .rectangle {
	/*width: 45%;*/
	background-color: #5c0f8b;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
	padding: 1.5rem;
}

.cards-selector .triangle {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 30px;
	height: 30px;
	clip-path: polygon(100% 0, 0 100%, 100% 100%);
    background-color: #5c0f8b;
	z-index: 1;
}


.cards-selector .line {
	width: 30px;
	height: 2px;
	background-color: white;
}
.cards-selector .text {
	font-size: 20px;
	line-height: 20px;
}
.cards-selector .text-big {
	font-size: 30px;
	line-height: 30px;
}
.cards-selector button {
	border: 1px solid #ffff !important;
	padding: 0.25rem;
}

.custom-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-auto-rows: 200px;
	gap: 15px;
}

.grid-item {
	position: relative;
	background-color: rgba(216, 175, 241, 0.8);
	color: #000;
	font-family: "Gotham Book", sans-serif;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	cursor: pointer;
}

.grid-item .text {
	z-index: 1;
	font-size: 1.3rem;
	line-height: 1.3;
	color: #ffffff;
}

.grid-item .overlay {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
	z-index: 2;
}

.grid-item:hover .overlay,
.grid-item:active .overlay {
	opacity: 1;
}

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

.pleca {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 10px 5px 10px 5px;
	color: white;
	font-weight: bold;
	font-family: "Gotham Bold", sans-serif;
	text-align: right;
}

.pleca::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: #8a49b2;
	mix-blend-mode: multiply;
	z-index: 1;
}

.pleca .text {
	position: relative;
	z-index: 2;
	color: #fff;
}

/* Grid sizing classes */
.w2 {
	grid-column: span 2;
}
.w2 .text {
	font-size: 2rem !important;
}

.h2v {
	grid-row: span 2;
}

.w2.h2v {
	grid-column: span 2;
	grid-row: span 2;
}

.bloque-titulo {
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}

@media (max-width: 1599.98px) {
    .cards-selector .rectangle-wrapper {
        width: 50%;
    }
    .cards-selector .text {
        font-size: 17px;
        line-height: 17px;
    }
    .cards-selector .text-big {
        font-size: 22px;
        line-height: 22px;
    }
}

@media (max-width: 1399.98px) {
    .menu-link {
        font-size: 16px;
        line-height: 20px;
        padding: 0rem 0.65rem;
    }
    #labCarousel .carousel-control-prev {
        left: -55px
    }
    #labCarousel .carousel-control-next {
        right: -40px;
    }
    .text-special {
        font-size: 34px;
    }
    .fs-big {
        font-size: 45px;
        line-height: 45px;
    }
    .cards-selector .rectangle {
        padding: 1rem;
    }
    .cards-selector .text {
        font-size: 14px;
        line-height: 14px;
    }
    .cards-selector .text-big {
        font-size: 18px;
        line-height: 18px;
    }
    .grid-item .text {
        font-size: 1.1rem;
        line-height: 1.1;
    }
}

@media (max-width: 1199.98px) {
    .logo {
        max-height: 30px;
    }
    .menu-link {
        font-size: 14px;
        line-height: 18px;
        padding: 0.5rem 0.5rem;
    }
    .fs-biggest {
        font-size: 60px;
        line-height: 60px;
    }
    .fs-big {
        font-size: 38px;
        line-height: 38px;
    }
    .fs-medium {
    	font-size: 26px;
    }
    .fs-normal {
        font-size: 20px;
    }
    .text-special {
        font-size: 30px;
    }
    .grid-item .text {
        font-size: 0.9rem;
    }
    .w2 .text {
        font-size: 1.5rem !important;
    }
    .subtitle {
        font-size: 20px;
        line-height: 26px;
    }
    .subtitle span {
        font-size: 34px;
    }
    
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #FFFFFF;
        padding: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 998;
    }
    .logo {
        max-height: 40px;
    }
    .menu-link {
        font-size: 18px;
        line-height: 20px;
    }
    .fs-biggest {
        font-size: 50px;
        line-height: 50px;
    }
    .fs-big {
        font-size: 30px;
        line-height: 30px;
    }
    .fs-medium {
    	font-size: 22px;
    }
    .fs-normal {
        font-size: 18px;
    }
    .text-special {
        font-size: 20px;
    }
    .letter-spacing-2 {
        letter-spacing: 0.3em;
    }
    .custom-section {
        background-position: -100% center;
    }
    .cards-selector .text {
        font-size: 18px;
        line-height: 18px;
    }
    .grid-item .text {
        font-size: 1.1rem;
    }
    .w2 .text {
        font-size: 1.4rem !important;
    }

    .subtitle {
        font-size: 18px;
        line-height: 22px;
    }
    .subtitle span {
        font-size: 28px;
    }
    .subtitle span.middle {
        font-size: 24px;
    }


    .custom-grid {
        grid-template-columns: repeat(3, 1fr);
	}
    
}

@media (max-width: 767.98px) {
    .fs-biggest {
        font-size: 45px;
        line-height: 45px;
    }
    .fs-big {
        font-size: 26px;
        line-height: 26px;
    }
    .fs-medium {
    	font-size: 20px;
    }
    .fs-normal {
        font-size: 16px;
    }
    .btn-rhombus {
        padding: 0.65rem 2rem;
    }
    .btn-lg {
        font-size: 1rem;
    }
    .custom-section {
        background-position: center center;
    }
    #labCarousel .carousel-control-prev {
        left: -30px;
    }

    #labCarousel .carousel-control-next {
        right: -30px;
    }
}

@media (max-width: 575.98px) {
    .fs-biggest {
        font-size: 40px;
        line-height: 40px;
    }
    .fs-big {
        font-size: 18px;
        line-height: 18px;
    }
    .fs-medium {
    	font-size: 16px;
    }
    .fs-normal {
        font-size: 14px;
    }
    .grid-item .text {
        font-size: 0.75rem;
    }
    .w2 .text {
        font-size: 1.1rem !important;
    }
    .letter-spacing-2 {
        letter-spacing: 0.1em;
    }
    #labCarouselWrapper {
        display: block !important
    }
    #labCarousel .carousel-control-prev {
        left: -20px;
    }
    #labCarousel .carousel-control-next {
        right: -20px;
    }
    #personas-row {
        display: none;
    }
    #labCarousel .carousel-control-prev, #labCarousel .carousel-control-next {
        width: auto;
        padding: 1rem;
        top: 400px;
        transform: translateY(-50%);
        z-index: 5;
    }
}
