/*!
 * Los Cuadros de Leti — estilos locales
 * Derivado de Start Bootstrap - Resume v5.0.2 (MIT), reescrito en CSS puro,
 * sin depender de Bootstrap ni de la plantilla remota de packglobal.
 */

:root {
	--accent: #2eb8b8;
	--accent-hover: #824027;
	--heading-color: #343a40;
	--body-color: #868e96;
	--nav-width: 17rem;
	--nav-height: 54px;
	--font-heading: 'Saira Extra Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--font-body: 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-tap-highlight-color: transparent;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--body-color);
	padding-top: var(--nav-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	text-transform: uppercase;
	color: var(--heading-color);
	margin: 0 0 0.5rem;
}

h1 {
	font-size: 6rem;
	line-height: 5.5rem;
}

h2 {
	font-size: 3.5rem;
}

h3 {
	font-size: 2rem;
}

h4 {
	font-size: 1.5rem;
}

p {
	margin: 0 0 1rem;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover,
a:focus,
a:active {
	color: var(--accent-hover);
}

img {
	vertical-align: middle;
	border-style: none;
}

/* ========================================================================== */
/* Navegación: barra superior en móvil, barra lateral fija en escritorio      */
/* ========================================================================== */

.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--nav-height);
	padding: 0.5rem 1rem;
	background-color: var(--accent);
}

.brand {
	display: flex;
	align-items: center;
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
}

.brand:hover,
.brand:focus {
	color: #fff;
	text-decoration: none;
}

.brand-photo {
	display: none;
}

.avatar {
	display: block;
	max-width: 10rem;
	max-height: 10rem;
	border-radius: 50%;
	border: 0.5rem solid rgba(255, 255, 255, 0.2);
}

.nav-toggle {
	padding: 0.5rem 0.75rem;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 0.25rem;
	cursor: pointer;
}

.nav-toggle-icon {
	position: relative;
	display: block;
	width: 1.5rem;
	height: 2px;
	background-color: rgba(255, 255, 255, 0.5);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: rgba(255, 255, 255, 0.5);
}

.nav-toggle-icon::before {
	top: -6px;
}

.nav-toggle-icon::after {
	top: 6px;
}

.nav-menu {
	display: none;
}

.nav-menu.open {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: var(--accent);
}

.nav-menu ul {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
}

.nav-menu a {
	display: block;
	padding: 0.5rem 1rem;
	color: rgba(255, 255, 255, 0.5);
	font-weight: 800;
	letter-spacing: 0.05rem;
	text-transform: uppercase;
}

.nav-menu a:hover,
.nav-menu a:focus {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
}

.nav-menu a.active {
	color: #fff;
}

@media (min-width: 992px) {
	body {
		padding-top: 0;
		padding-left: var(--nav-width);
	}

	.site-nav {
		right: auto;
		flex-direction: column;
		justify-content: flex-start;
		width: var(--nav-width);
		height: 100vh;
		padding: 0.5rem;
		text-align: center;
	}

	.brand {
		margin: auto auto 0;
		padding: 0.5rem;
	}

	.brand-text {
		display: none;
	}

	.brand-photo {
		display: block;
	}

	.nav-toggle {
		display: none;
	}

	.nav-menu {
		display: block;
		width: 100%;
		margin-bottom: auto;
	}

	.nav-menu ul {
		padding: 0;
	}

	.nav-menu a {
		padding: 0.5rem 0;
	}
}

/* ========================================================================== */
/* Secciones                                                                  */
/* ========================================================================== */

.section {
	display: flex;
	flex-direction: column;
	padding: 5rem 1rem;
	max-width: 75rem;
	scroll-margin-top: var(--nav-height);
}

.section-body {
	margin: auto 0;
}

.divider {
	margin: 0;
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cover h1 {
	margin-bottom: 0;
}

.accent {
	color: var(--accent);
}

.subheading {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 500;
	text-transform: uppercase;
	margin-bottom: 3rem;
}

.lead {
	font-size: 1.15rem;
	font-weight: 400;
	margin-bottom: 3rem;
}

.section h2 {
	margin-bottom: 3rem;
}

@media (min-width: 768px) {
	.section {
		min-height: 100vh;
	}
}

@media (min-width: 992px) {
	.section {
		padding: 3rem;
		scroll-margin-top: 0;
	}
}

/* ========================================================================== */
/* Galería de Cuadros: filas justificadas según la proporción de cada imagen  */
/* ========================================================================== */

.gallery {
	display: flex;
	flex-wrap: wrap;
	margin: -0.5rem;
}

.gallery-item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 20rem;
	flex-grow: 1;
	flex-basis: 20rem;
	margin: 0.5rem;
	overflow: hidden;
	background-color: #fff;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
	padding: 2rem;
}

.gallery-image {
	display: block;
	height: 100%;
	width: auto;
	cursor: pointer;
	transition: transform 400ms ease-out;
}

.gallery-image:hover {
	transform: scale(1.15);
}

@media (max-width: 576px) {
	.gallery-item {
		height: 180px;
	}
}

/* ========================================================================== */
/* Modal de imagen                                                            */
/* ========================================================================== */

.modal {
	display: none;
	position: fixed;
	z-index: 1050;
	padding-top: 100px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(255, 255, 255);
	background-color: rgba(255, 255, 255, 0.95);
}

.modal-content {
	margin: auto;
	display: block;
	width: 80%;
	max-width: 700px;
}

#modal-caption {
	margin: auto;
	display: block;
	width: 80%;
	max-width: 700px;
	text-align: center;
	color: #555;
	padding: 10px 0;
	height: 150px;
}

.modal-content,
#modal-caption {
	animation-name: zoom;
	animation-duration: 0.6s;
}

@keyframes zoom {
	from {
		transform: scale(0)
	}

	to {
		transform: scale(1)
	}
}

.close {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #444;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
}

.close:hover,
.close:focus {
	color: #999;
	text-decoration: none;
	cursor: pointer;
}

@media only screen and (max-width: 700px) {
	.modal-content {
		width: 100%;
	}
}
