/*
Theme Name: Enfoque Diferencial
Template: generatepress
Version: 1.0.0
*/

@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("assets/fonts/cormorant-garamond.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url("assets/fonts/jost.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--ed-ink: #24231f;
	--ed-grey: #6e6a62;
	--ed-line: #e5e0d8;
	--ed-cream: #f1ece5;
	--ed-bg: #faf8f5;
	--ed-olive: #5d5c4d;
	--ed-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--ed-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
	--ed-gutter: clamp(1.25rem, 4vw, 3rem);
	--ed-text: 34rem;
	--ed-wide: 1320px;
	--ed-gallery: 1440px;
	--ed-gap: clamp(6px, 0.7vw, 12px);
	--ed-row: 21rem;
	--ed-logo: clamp(230px, 27vw, 390px);
	--ed-head: calc(clamp(1.5rem, 3vw, 2.5rem) + var(--ed-logo) * 167 / 1315 + 0.5rem + 3.5rem);
	--ed-space: clamp(4rem, 9vw, 7.5rem);
}

body,
button,
input,
select,
textarea {
	font-family: var(--ed-sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.62;
	color: var(--ed-ink);
}

body {
	background-color: var(--ed-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
	font-family: var(--ed-serif);
	font-weight: 400;
	line-height: 1.12;
	color: var(--ed-ink);
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

a {
	color: var(--ed-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
	transition: color 0.25s ease;
}

a:hover {
	color: var(--ed-olive);
}

:focus-visible {
	outline: 1px solid var(--ed-ink);
	outline-offset: 4px;
}

::selection {
	background: var(--ed-cream);
	color: var(--ed-ink);
}

.ed-label {
	margin: 0 0 1rem;
	font-family: var(--ed-sans);
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ed-grey);
}

.ed-button,
.ed-button-block a.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 1rem 2.5rem;
	border: 1px solid var(--ed-ink);
	border-radius: 0;
	background: transparent;
	font-family: var(--ed-sans);
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ed-ink);
	transition: background-color 0.3s ease, color 0.3s ease;
}

.ed-button:hover,
.ed-button:focus-visible,
.ed-button-block a.wp-block-button__link:hover,
.ed-button-block a.wp-block-button__link:focus-visible {
	background: var(--ed-ink);
	color: var(--ed-bg);
}

.site-header,
.main-navigation,
.main-navigation ul ul {
	background-color: var(--ed-bg);
}

.site-header .inside-header {
	justify-content: center;
	padding: clamp(1.5rem, 3vw, 2.5rem) var(--ed-gutter) 0.5rem;
}

.site-logo {
	margin: 0;
	line-height: 0;
}

.site-logo a {
	display: block;
}

.wp-lightbox-container button.lightbox-trigger {
	width: 36px;
	height: 36px;
}

.site-header .header-image {
	width: var(--ed-logo);
	height: auto;
}

.main-navigation .inside-navigation {
	justify-content: center;
}

.main-navigation .main-nav ul li a {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
	font-family: var(--ed-sans);
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 3.5rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ed-ink);
}

.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a,
.main-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a {
	color: var(--ed-olive);
	background: transparent;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: var(--ed-ink);
	background: transparent;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.7em;
}

.main-navigation .main-nav ul ul {
	width: 270px;
	padding: 0.5rem 0;
	border: 1px solid var(--ed-line);
	box-shadow: 0 18px 40px -24px rgba(36, 35, 31, 0.25);
}

.main-navigation .main-nav ul ul li a {
	padding: 0.5rem 1.5rem;
	font-size: 0.72rem;
	line-height: 1.5;
	letter-spacing: 0.14em;
}

.main-navigation .main-nav ul li.menu-item-has-children .dropdown-menu-toggle {
	padding-left: 0;
	padding-right: 1rem;
}

.main-navigation .menu-toggle {
	font-family: var(--ed-sans);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ed-ink);
	background: transparent;
}

.full-width-content .site-content,
.full-width-content .inside-article {
	padding: 0;
}

.site-main {
	margin: 0;
}

.inside-article,
.site-main > article {
	background: transparent;
}

.entry-content:not(:first-child) {
	margin-top: 0;
}

:is(.entry-content, .ed-lock) > * {
	width: min(100% - 2 * var(--ed-gutter), var(--ed-text));
	margin-left: auto;
	margin-right: auto;
}

:is(.entry-content, .ed-lock) > .alignwide {
	width: min(100% - 2 * var(--ed-gutter), var(--ed-wide));
}

.site :is(.entry-content, .ed-lock) > .alignfull,
.site .entry-content > .ed-lock {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.entry-content > .ed-lock,
.entry-content > .ed-lock:last-child {
	margin-top: 0;
	margin-bottom: 0;
}

.entry-content > :last-child,
.ed-lock > :last-child {
	margin-bottom: var(--ed-space);
}

.entry-header {
	padding: clamp(3rem, 7vw, 6rem) var(--ed-gutter) clamp(2rem, 4.5vw, 4rem);
	text-align: center;
}

.entry-title {
	margin: 0;
	font-size: clamp(2.6rem, 1.7rem + 3.4vw, 4.6rem);
	font-weight: 300;
	line-height: 1.05;
}

.single-post :is(.entry-content, .ed-lock) > p:first-child {
	margin: -1.5rem auto clamp(2rem, 4vw, 3.5rem);
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-align: center;
	color: var(--ed-grey);
}

.entry-content h2 {
	margin: 0 0 1.25rem;
	font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.entry-content h3 {
	margin: 0 0 1rem;
	font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}

.entry-content p {
	margin-bottom: 1.4em;
}

.entry-content .wp-block-gallery.has-nested-images:not(.ed-slideshow) {
	width: min(100% - 2 * var(--ed-gutter), var(--ed-gallery));
	display: flex;
	flex-wrap: wrap;
	gap: var(--ed-gap);
	margin-bottom: var(--ed-space);
}

.entry-content .wp-block-gallery.has-nested-images:not(.ed-slideshow)::after {
	content: "";
	flex: 999999 1 0;
}

.entry-content .wp-block-gallery.has-nested-images:not(.ed-slideshow) figure.wp-block-image:not(#ed) {
	flex: var(--r, 1.5) 1 calc(var(--r, 1.5) * var(--ed-row));
	width: auto;
	margin: 0;
	aspect-ratio: var(--r, 1.5);
	overflow: hidden;
	background: var(--ed-cream);
}

.entry-content .wp-block-gallery.has-nested-images:not(.ed-slideshow) figure.wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry-content .wp-block-gallery.has-nested-images:not(.ed-slideshow) figure.wp-block-image figcaption {
	display: none;
}

.wp-lightbox-overlay .scrim {
	background-color: #151513 !important;
	opacity: 1 !important;
}

.wp-lightbox-overlay .close-button,
.wp-lightbox-overlay .wp-lightbox-navigation-button {
	fill: #f3efe9 !important;
}

.home .site-header .inside-header {
	padding-bottom: 0.5rem;
}

.ed-slideshow.wp-block-gallery {
	position: relative;
	display: block;
	height: calc(100svh - var(--ed-head));
	min-height: 440px;
	max-height: 1100px;
	margin: 0 0 0 0;
	overflow: hidden;
	background: var(--ed-ink);
}

.ed-slideshow.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ed) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	transition: opacity 1.8s ease;
}

.ed-slideshow.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ed):first-child,
.ed-slideshow.is-ready.wp-block-gallery.has-nested-images figure.wp-block-image.is-active:not(#ed) {
	opacity: 1;
}

.ed-slideshow.is-ready.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ed):not(.is-active) {
	opacity: 0;
}

.ed-slideshow.wp-block-gallery figure.wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ed-slideshow figcaption {
	display: none;
}

.ed-slideshow__toggle {
	position: absolute;
	right: var(--ed-gutter);
	bottom: 1.5rem;
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 50%;
	background: rgba(21, 21, 19, 0.2);
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.ed-slideshow__toggle:hover {
	background: rgba(21, 21, 19, 0.45);
}

.ed-slideshow__toggle:focus-visible {
	outline: 1px solid #fff;
	outline-offset: 3px;
}

.ed-slideshow__toggle::before,
.ed-slideshow__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 2px;
	height: 12px;
	margin-top: -6px;
	background: #fff;
}

.ed-slideshow__toggle::before {
	left: 18px;
}

.ed-slideshow__toggle::after {
	left: 23px;
}

.ed-slideshow__toggle.is-paused::before {
	left: 17px;
	width: 0;
	height: 0;
	margin-top: -6px;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent #fff;
	background: transparent;
}

.ed-slideshow__toggle.is-paused::after {
	display: none;
}

.ed-intro {
	padding: var(--ed-space) 0 0;
	text-align: center;
}

.ed-follow {
	margin: 0 0 var(--ed-space);
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-align: center;
	color: var(--ed-grey);
}

.ed-follow a {
	color: var(--ed-ink);
}

.entry-content .wp-block-quote.ed-quote {
	width: min(100% - 2 * var(--ed-gutter), 900px);
	margin: 0 auto var(--ed-space);
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font-style: normal;
}

.entry-content .wp-block-quote.ed-quote p {
	margin: 0 0 2rem;
	font-family: var(--ed-serif);
	font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.9rem);
	font-style: italic;
	font-weight: 300;
	line-height: 1.3;
	color: var(--ed-ink);
}

.entry-content .wp-block-quote.ed-quote cite {
	display: block;
	font-family: var(--ed-sans);
	font-size: 0.75rem;
	font-style: normal;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ed-grey);
}

.ed-section-head {
	margin-bottom: clamp(2rem, 4.5vw, 4rem);
	text-align: center;
}

.ed-section-head h2 {
	margin: 0;
}

:is(.entry-content, .ed-lock) > .ed-porfolio {
	width: min(100% - 2 * var(--ed-gutter), var(--ed-wide));
	scroll-margin-top: 2rem;
}

.ed-porfolio .wp-block-post-template {
	--ed-cols: 3;
	--ed-col-gap: clamp(1rem, 2.2vw, 2rem);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(2.5rem, 4vw, 4rem) var(--ed-col-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ed-porfolio .wp-block-post {
	flex: 0 0 calc((100% - (var(--ed-cols) - 1) * var(--ed-col-gap)) / var(--ed-cols));
	margin: 0;
}

.ed-porfolio .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
	background: var(--ed-cream);
}

.ed-porfolio .wp-block-post-featured-image img {
	width: 100%;
	transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.ed-porfolio .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.035);
}

.ed-porfolio .wp-block-post-title {
	margin: 1rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--ed-line);
	font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.7rem);
	text-align: center;
}

.ed-porfolio .wp-block-post-title a {
	text-decoration: none;
	color: var(--ed-ink);
}

.ed-porfolio .wp-block-post-title a:hover {
	color: var(--ed-olive);
}

.ed-cta {
	padding: var(--ed-space) var(--ed-gutter);
	background: var(--ed-cream);
	text-align: center;
}

.ed-cta__title {
	max-width: 22ch;
	margin: 0 auto 2.5rem;
	font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3rem);
	font-weight: 300;
}

.ed-bodas-nav {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	width: min(100% - 2 * var(--ed-gutter), var(--ed-gallery));
	margin: 0 auto var(--ed-space);
	padding-top: 1.5rem;
	border-top: 1px solid var(--ed-line);
}

.ed-bodas-nav a {
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

.ed-bodas-nav .ed-label {
	margin-bottom: 0.5rem;
}

.ed-bodas-nav__next {
	margin-left: auto;
	text-align: right;
}

.ed-bodas-nav__title {
	font-family: var(--ed-serif);
	font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
	line-height: 1.2;
}

:is(.entry-content, .ed-lock) > .ed-split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
	width: min(100% - 2 * var(--ed-gutter), 1180px);
}

.ed-split > .wp-block-column {
	margin: 0;
}

.ed-split .wp-block-image {
	position: sticky;
	top: 2rem;
	margin: 0;
}

.ed-split .wp-block-image img {
	width: 100%;
	height: auto;
}

.ed-lead {
	font-family: var(--ed-serif);
	font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
	line-height: 1.4;
}

:is(.entry-content, .ed-lock) > .ed-service {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	column-gap: clamp(2rem, 6vw, 6rem);
	width: min(100% - 2 * var(--ed-gutter), 1180px);
	margin-bottom: 0;
	padding: clamp(2.5rem, 5vw, 4.5rem) 0;
	border-top: 1px solid var(--ed-line);
}

.ed-service > * {
	grid-column: 2;
}

.ed-service > h2 {
	grid-column: 1;
	grid-row: 1 / span 30;
	align-self: start;
	font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem);
}

.ed-service > p,
.ed-split p {
	max-width: var(--ed-text);
}

.ed-service > .wp-block-image {
	margin: 0.5rem 0 1.5rem;
}

.ed-service > :last-child {
	margin-bottom: 0;
}

.entry-content .ed-note {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding-top: 2rem;
	border-top: 1px solid var(--ed-line);
	font-family: var(--ed-serif);
	font-size: 1.35rem;
	font-style: italic;
	text-align: center;
	color: var(--ed-grey);
}

:is(.entry-content, .ed-lock) > .ed-contact {
	text-align: center;
}

.ed-contact .ed-contact__lines {
	margin: 2.5rem 0;
	font-family: var(--ed-serif);
	font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
	line-height: 1.35;
}

.ed-contact .ed-contact__lines a {
	text-decoration: none;
	overflow-wrap: anywhere;
}

.ed-contact .wp-block-buttons {
	justify-content: center;
}

.ed-footer {
	padding: clamp(3.5rem, 6vw, 5rem) var(--ed-gutter) 2.5rem;
	background: var(--ed-bg);
	border-top: 1px solid var(--ed-line);
	text-align: center;
}

.ed-footer__logo {
	display: inline-block;
	line-height: 0;
}

.ed-footer__logo img {
	width: 230px;
	height: auto;
}

.ed-footer__contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 2rem;
	margin: 2rem 0 2.5rem;
	font-size: 1rem;
}

.ed-footer__contact a,
.ed-footer__legal a {
	text-decoration: none;
}

.ed-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	margin: 0;
	font-size: 0.78rem;
	color: var(--ed-grey);
}

.ed-footer__legal a {
	color: var(--ed-grey);
	text-decoration: underline;
}

.site-footer,
.site-info {
	background: var(--ed-bg);
}

@media (max-width: 1024px) {
	:root {
		--ed-row: 15rem;
	}

	.ed-porfolio .wp-block-post-template {
		--ed-cols: 2;
	}
}

@media (max-width: 768px) {
	:root {
		--ed-row: 8.5rem;
	}

	body {
		font-size: 16px;
	}

	.site-header .inside-header {
		padding-top: 1.5rem;
	}

	.main-navigation .main-nav ul li a {
		line-height: 3rem;
		text-align: center;
	}

	.main-navigation .main-nav ul ul {
		width: 100%;
		border: 0;
		box-shadow: none;
	}

	.ed-slideshow.wp-block-gallery {
		height: auto;
		min-height: 0;
		max-height: none;
		aspect-ratio: 3 / 2;
		background: var(--ed-bg);
	}

	.entry-content .ed-slideshow.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ed) img {
		object-fit: contain;
	}

	.ed-porfolio .wp-block-post-template {
		--ed-cols: 1;
	}

	:is(.entry-content, .ed-lock) > .ed-split,
	:is(.entry-content, .ed-lock) > .ed-service {
		grid-template-columns: minmax(0, 1fr);
	}

	.ed-service > *,
	.ed-service > h2 {
		grid-column: 1;
		grid-row: auto;
	}

	.ed-split .wp-block-image {
		position: static;
	}

	.ed-bodas-nav {
		flex-direction: column;
	}

	.ed-bodas-nav__next {
		margin-left: 0;
		text-align: left;
	}
}

@media (max-width: 600px) {
	.entry-content .wp-block-gallery.has-nested-images:not(.ed-slideshow) figure.wp-block-image:not(#ed) {
		flex: 0 0 100%;
		aspect-ratio: auto;
	}

	.entry-content .wp-block-gallery.has-nested-images:not(.ed-slideshow) figure.wp-block-image img {
		height: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ed-slideshow.wp-block-gallery.has-nested-images figure.wp-block-image:not(#ed),
	.ed-porfolio .wp-block-post-featured-image img {
		transition: none;
	}

	.ed-porfolio .wp-block-post:hover .wp-block-post-featured-image img {
		transform: none;
	}
}
