@font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/gotham/GothamMedium.eot');
    src: url('/assets/fonts/gotham/GothamMedium.eot?#iefix') format('embedded-opentype'),
        url('/assets/fonts/gotham/GothamMedium.woff2') format('woff2'),
        url('/assets/fonts/gotham/GothamMedium.woff') format('woff'),
        url('/assets/fonts/gotham/GothamMedium.ttf') format('truetype'),
        url('/assets/fonts/gotham/GothamMedium.svg#GothamMedium') format('svg');
    font-weight: 500;
    font-style: bold;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/gotham/GothamLight.eot');
    src: url('/assets/fonts/gotham/GothamLight.eot?#iefix') format('embedded-opentype'),
        url('/assets/fonts/gotham/GothamLight.woff2') format('woff2'),
        url('/assets/fonts/gotham/GothamLight.woff') format('woff'),
        url('/assets/fonts/gotham/GothamLight.ttf') format('truetype'),
        url('/assets/fonts/gotham/GothamLight.svg#GothamLight') format('svg');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}


* {
	max-width:100%;
}

body {
	margin:0;
	padding:40px;
	align-items: center;
	height: 100vh;
	font-family: Gotham;
	font-size:14px;
	overflow:hidden;
}

header {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
    min-height: var(--header-height-front);
	margin-bottom: 60px;
}

header.desktop {
	position:fixed;
	width:calc(100vw - 80px) !important;
}

header a {
	font-weight: 400;
	display: inline-block;
}

header a:hover {
	opacity: .7;
}

header nav a.current {
	border-bottom: 2px solid currentColor;
}

main {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

main.had-header {
    margin-top:calc( var(--header-height-front) + 4rem);
    height: calc(var(--main-height-front) - 4rem);
}

main.had-header:not(.footered) {
    height: calc(var(--main-height-front) - 4rem + var(--footer-height));
	padding-bottom:8rem;
}

div.wrapper {
	display:flex;
	justify-content:start;
	align-items:center;
	flex-direction:column;
	width:100%;
	z-index:2;
	max-width:1920px;
	background: #F3E3D4;
}

#main-image {
	max-width:100%;
	max-height:100%;
}

img {
	display: inline-block;
	max-height: 100%;
}

a {
	color:inherit;
	text-decoration:none;
	font-weight:bold;
}

.main-title {
	font-size: 36px;
}

#home {
	min-height: 500px;
	display: flex;
	justify-content: center;
	align-items: center;
}

#inscripciones {
	text-transform:uppercase;
	font-size:1.5em;
	font-weight: 300;
}

#inscripciones li {
	margin-bottom:10px;
}

#main-menu-desktop {
	width:100%;
}

#link-separator {
	background: rgb(120,120,120);
	height: 12px;
	width: 2px;
	display:inline-block;
	margin: 0 10px;
}

.bi {
    width: 1em;
    height: 1em;
    vertical-align: -.125em;
    fill: currentcolor;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 16px;
	width: 100%;
}

.gallery .item .image-container{
	overflow:hidden;
	border-radius: 8px;
}

.gallery .item img {
	width: 100%;
	display: block;
	transition: transform 0.3s ease; /* Suaviza el efecto */
}

.gallery img:hover {
	transform: scale(1.05); /* Aplica zoom al pasar el mouse */
}

footer {
    width: 100vw;  
	position: relative;
	text-align:center;
	background-color:#FFF;
    height: var(--footer-height);
}

footer .logos-container {
    width: 100vw;
    display: flex;
    justify-content: center;
	position:absolute;
	bottom:0;
}

footer .logos {
    display: flex;
    bottom: 10px;
    z-index: 2;  justify-content: space-evenly;
    max-width: 1920px;
	width:100%;
    flex-wrap: wrap;
    gap: 40px;  
	padding: 40px;
	margin-bottom:40px;
}

footer .logo {
	text-align:center;
}

footer .logo img {
    width: auto;
    height: 3vw;
	max-height: 70px;
    max-width: none;
    max-height: none;
}

.works-container .encabezado h1 {
	font-style: italic;
	font-weight: lighter;
	font-size: 1.5rem;
	text-transform: uppercase;
}

.works-container .encabezado h2 {
	font-weight: lighter;
	font-size: 1.2rem;
}

.works-container .description {
	font-size: 1rem;
	margin-top: 3rem;
	margin-bottom: 3rem;
	max-width: 600px;
	width: 60%;
	margin-left: 7%;
	color: black;
}

.children-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  justify-content: flex-start; /* Alinea a la izquierda */
}

.children-gallery .child-containder {
  flex: 0 0 calc((100% - 6%) / 4); /* 4 columnas - 3 gaps de 20px */
  max-width: 320px;
  box-sizing: border-box;
  border: 2px solid rgb(214, 214, 214);
  margin-bottom:2%;
}

.child-containder .inner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.children-gallery .child-containder .inner {
	display: block;
}

#bibliografia h1 {
	font-size: 1.5rem;
	font-style: italic;
}

#bibliografia h2 {
	font-size: 1.2rem;
	font-style: italic;
}


/* Móvil pequeño (hasta 480px) */
@media (max-width: 480px) {
	.desktop:not(.mobile), .laptop:not(.mobile), .tablet:not(.mobile) {
		display:none !important;
	}

	.children-gallery .child-containder {
		flex: 0 0 calc((100% - 6%) / 2); /* 4 columnas - 3 gaps de 20px */
	}
}

/* Móviles normales (481px a 767px) */
@media (min-width: 481px) and (max-width: 767px) {
	.desktop:not(.mobile), .laptop:not(.mobile), .tablet:not(.mobile) {
		display:none !important;
	}

	main.had-header {
		margin-top:0;
	}

  	.hv-link {
		width:auto;
		text-align: left;
		display:inline-block;
	}
		
	.pv-link {
		width:auto;
		text-align: right;
		display:inline-block;
	}

	.link-separator {
		height: 12px;
		margin: 0 10px;
	}

	header nav a {
		font-size: 25px;
	}

	.children-gallery .child-containder {
		flex: 0 0 calc((100% - 6%) / 3); /* 4 columnas - 3 gaps de 20px */
	}
}

/* Tablets (768px a 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
	.desktop:not(.tablet), .laptop:not(.tablet), .mobile:not(.tablet) {
		display:none !important;
	}

	.hv-link {
		width:65px;
		text-align: left;
		display:inline-block;
	}
		
	.pv-link {
		width:75px;
		text-align: right;
		display:inline-block;
	}

	.link-separator {
		height: 30px;
		margin:0;
	}

	.gallery {
        grid-template-columns: repeat(2, 1fr);
    }

	.children-gallery .child-containder {
		flex: 0 0 calc((100% - 6%) / 3); /* 4 columnas - 3 gaps de 20px */
	}
}

/* Laptops (1025px a 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
	.desktop:not(.laptop), .tablet:not(.laptop), .mobile:not(.laptop) {
		display:none !important;
	}

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

/* Escritorios grandes (1201px en adelante) */
@media (min-width: 1201px) {
	.laptop:not(.desktop), .tablet:not(.desktop), .mobile:not(.desktop) {
		display:none !important;
	}

	.gallery {
		grid-template-columns: repeat(4, 1fr);
	}

	.children-gallery .child-containder {
		flex: 0 0 calc((100% - 6%) / 5); /* 4 columnas - 3 gaps de 20px */
	}
}
