/* Home v2 — réplica PHP de la Home WPBakery. Scope: .edh-pg */

.home #header-space { display: none !important; }

.edh-pg {
	--c-text: #5c5c5f;
	--c-deep: #2e2e30;
	--c-btn: #47474a;
	--c-soft: #f9f9f9;
	--f-head: 'Raleway', sans-serif;
	--f-body: 'Overpass', sans-serif;
	--gutter: 70px;
	font-family: var(--f-body);
	font-size: 18px;
	line-height: 33px;
	color: var(--c-text);
	background: #fff;
	overflow-x: clip;
}
.edh-pg *, .edh-pg *::before, .edh-pg *::after { box-sizing: border-box; }
.edh-pg img { display: block; max-width: 100%; }
.edh-pg a { text-decoration: none; }
.edh-pg figure { margin: 0; }
.edh-pg button { font: inherit; cursor: pointer; }

.edh-wrap { max-width: 1425px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }

.edh-pg h2 {
	font-family: var(--f-head); font-size: 58px; line-height: 69.6px; font-weight: 400;
	color: var(--c-text); margin: 0 0 10px; letter-spacing: 0;
}
.edh-pg h3 {
	font-family: var(--f-head); font-size: 50px; line-height: 60px; font-weight: 600;
	color: var(--c-text); margin: 0 0 10px;
}
.edh-pg p { margin: 0; padding: 0 0 10px; }

.edh-ey {
	display: block; font-family: var(--f-body); font-size: 16px; line-height: 20px;
	font-weight: 400; color: var(--c-text); margin-bottom: 15px;
}

/* Botones (nectar-button jumbo) */
.edh-btn {
	display: inline-block; font-family: var(--f-body); font-size: 18px; line-height: 20px; font-weight: 400;
	padding: 17px 40px; border: 1px solid rgba(128,128,128,.28); border-radius: 0;
	transition: opacity .25s ease, background-color .25s ease, color .25s ease;
}
.edh-btn:hover { opacity: .85; }
.edh-btn-dark { background: var(--c-btn); color: #fff !important; }
.edh-btn-white { background: #fff; color: var(--c-btn) !important; }
.edh-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.68); }
.edh-btn-ghost:hover { background: #fff; color: var(--c-btn) !important; opacity: 1; }

/* Aparición al hacer scroll */
.edh-r { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.edh-r.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .edh-r { opacity: 1; transform: none; transition: none; } }

.edh-only-mob { display: none; }

/* ── Hero ── */
.edh-hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.edh-hero-bg, .edh-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.edh-hero-bg img { object-fit: cover; object-position: center bottom; max-width: none; }
.edh-hero-ov { position: absolute; inset: 0; background: var(--c-btn); opacity: .87; }
.edh-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; width: 100%; }
.edh-hero-text { position: relative; }
.edh-pg h1.edh-hero-h1 {
	font-family: var(--f-head) !important; font-size: 14px !important; line-height: 16.8px !important; font-weight: 500 !important;
	letter-spacing: 2px !important; text-transform: uppercase; color: #fff; opacity: .8; margin: 0 0 20px;
}
.edh-pg .edh-hero-h2 { color: #fff; margin: 0 0 20px; }
.edh-hero-p { font-size: 20px; line-height: 33px; font-weight: 300; color: #fff; }
.edh-hero-btns { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.edh-hero-media { position: relative; }

.edh-vbox { position: relative; display: block; border-radius: 15px; overflow: hidden; aspect-ratio: 16 / 9; cursor: pointer; }
.edh-vbox video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 15px; }
.edh-play {
	position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
	background: var(--c-btn); color: #fff; display: grid; place-items: center; pointer-events: none;
	transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.edh-play svg { width: 12px; height: 14px; margin-left: 3px; }
.edh-vbox:hover .edh-play { transform: translate(var(--mx, 0), var(--my, 0)) scale(1.15); }

/* ── Video mobile ── */
.edh-mvideo { padding: 100px 0 70px; }

/* ── Testimonios ── */
.edh-testi {
	padding: 100px 0 70px;
	background-image: url('/wp-content/uploads/2024/10/quote.png');
	background-position: 91% 15%; background-repeat: no-repeat;
}
.edh-testi-head { max-width: 70%; }
.edh-car { margin-top: 100px; position: relative; }
.edh-car-track {
	display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding: 0 calc(max(var(--gutter), (100vw - 1425px) / 2 + var(--gutter)) - 10px);
	scroll-padding-left: calc(max(var(--gutter), (100vw - 1425px) / 2 + var(--gutter)) - 10px);
	cursor: grab;
}
.edh-car-track::-webkit-scrollbar { display: none; }
.edh-car-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.edh-car-track.is-drag * { pointer-events: none; user-select: none; }
.edh-car-cell { flex: 0 0 410px; padding: 10px; scroll-snap-align: start; }
.edh-tcard { background: #fff; border: 1px solid rgba(0,0,0,.1); padding: 40px; }
.edh-tcard blockquote { margin: 0; padding: 0; border: 0; quotes: none; }
.edh-tcard blockquote::before, .edh-tcard blockquote::after { content: none; }
.edh-tcard blockquote p {
	font-family: var(--f-body); font-size: 17px; line-height: 28.9px; font-weight: 500; font-style: normal;
	color: var(--c-text); border-left: 3px solid var(--c-text); padding: 0 0 10px 20px; margin: 0 0 30px;
}
.edh-tcard figcaption { display: flex; align-items: center; }
.edh-tav { width: 52px; height: 52px; border-radius: 100px; background-size: cover; background-position: center; margin-right: 20px; flex: none; }
.edh-tname { display: flex; flex-direction: column; font-size: 18px; line-height: 37px; font-weight: 500; color: var(--c-text); }
.edh-tname small { font-size: 14px; line-height: 20px; opacity: .6; }
.edh-car-dots { display: flex; justify-content: center; gap: 12px; margin-top: 70px; }
.edh-car-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.25); transition: all .25s ease; }
.edh-car-dots button.is-active { width: 10px; height: 10px; background: transparent; box-shadow: inset 0 0 0 2px #000; }

/* ── Servicios ── */
.edh-svc { background: var(--c-soft); padding: 100px 0 75px; }
.edh-svc-head { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 60px; }
.edh-svc-head p { color: var(--c-deep); }
.edh-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.edh-svc-box {
	position: relative; display: flex; align-items: flex-end; height: 310px; padding: 45px; margin-bottom: 76px;
	overflow: hidden; color: #fff;
}
.edh-svc-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.edh-svc-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.25); transition: background .4s ease; }
.edh-svc-box:hover .edh-svc-bg { transform: scale(1.05); }
.edh-svc-box:hover .edh-svc-bg::after { background: rgba(0,0,0,.4); }
.edh-svc-t { position: relative; font-family: var(--f-body); font-size: 26px; line-height: 33px; font-weight: 400; color: #fff; }

/* ── CTA mármol ── */
.edh-cta {
	position: relative; text-align: center; padding: 140px 0 120px;
	background: url('/wp-content/uploads/2024/10/background-marbel.jpg') left top / cover no-repeat;
}
.edh-cta::before { content: ''; position: absolute; inset: 0; background: #fff; opacity: .5; }
.edh-cta .edh-wrap { position: relative; }
.edh-cta .edh-btn { margin-top: 25px; }

/* ── Proyectos ── */
.edh-proj { padding: 100px 0 40px; background: #fff; }
.edh-filters { margin: 50px 0 60px; }
.edh-filters-toggle { display: none; }
.edh-filters-list { display: flex; flex-wrap: wrap; }
.edh-filters-list button {
	background: none; border: 0; padding: 4px 0; margin: 0 40px 0 0; font-family: var(--f-body);
	font-size: 18px; line-height: 19.8px; color: var(--c-text); position: relative;
}
.edh-filters-list button::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--c-text);
	transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.edh-filters-list button.is-active::after, .edh-filters-list button:hover::after { transform: scaleX(1); }
.edh-pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 -10px; padding: 0 10px; }
.edh-pgrid[hidden] { display: none; }
.edh-pitem:nth-child(6n+1), .edh-pitem:nth-child(6n+6) { grid-column: span 2; }
.edh-pitem { display: block; color: var(--c-text); }
.edh-pimg { display: block; height: 50vh; overflow: hidden; }
.edh-pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.edh-pitem:hover .edh-pimg img { transform: scale(1.06); }
.edh-ptitle { display: block; font-family: var(--f-head); font-size: 20px; line-height: 26px; font-weight: 400; padding: 16px 0 10px; color: var(--c-text); }

/* ── CTA video ── */
.edh-cta2 { position: relative; text-align: center; padding: 200px 0; overflow: hidden; }
.edh-cta2-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edh-cta2-ov { position: absolute; inset: 0; background: #fff; opacity: .8; }
.edh-cta2 .edh-wrap { position: relative; }
.edh-cta2 .edh-btn { margin-top: 25px; }

/* ── Quiénes somos ── */
.edh-about { padding: 100px 0; margin-bottom: 35px; }
.edh-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.edh-pg .edh-about-text h3 { margin-bottom: 40px; }
.edh-about-text p { color: var(--c-deep); }
.edh-about-text .edh-btn { margin-top: 30px; }
.edh-about-img img { width: 100%; height: auto; aspect-ratio: 618 / 683; object-fit: cover; border-radius: 5px; }

/* ── Blog ── */
.edh-blog { background: var(--c-soft); padding: 100px 0 75px; }
.edh-blog-head { text-align: center; margin-bottom: 60px; }
.edh-bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.edh-bcard { background: #fff; }
.edh-bimg { display: block; height: 270px; overflow: hidden; }
.edh-bimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.edh-bcard:hover .edh-bimg img { transform: scale(1.08); }
.edh-bbody { padding: 30px; }
.edh-bcats { display: flex; flex-wrap: wrap; margin-bottom: 10px; }
.edh-bcats a {
	font-family: var(--f-body); font-size: 12px; line-height: 13.2px; font-weight: 500; text-transform: uppercase;
	color: var(--c-text); margin: 0 10px 0 0;
}
.edh-pg .edh-bcard h4 { font-family: var(--f-head); font-size: 18px; line-height: 21.6px; font-weight: 600; margin: 0; }
.edh-bcard h4 a { color: var(--c-text); }
.edh-bdate { display: block; font-size: 14.4px; line-height: 16px; margin-top: 10px; }

/* ── FAQ ── */
.edh-faq { padding: 100px 0 120px; }
.edh-pg .edh-faq h3 { margin-bottom: 32px; }
.edh-faq-list { margin-bottom: 50px; }
.edh-fitem { border-bottom: 1px solid rgba(0,0,0,.1); }
.edh-pg .edh-fq {
	display: block; width: 100%; text-align: left; background: none; border: 0; position: relative;
	padding: 30px 70px 30px 0; font-family: var(--f-head); font-size: 18px; line-height: 23.4px; font-weight: 400;
	color: rgba(0,0,0,.65);
}
.edh-ficon { position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; border: 2px solid var(--c-btn); border-radius: 50%; }
.edh-ficon::before, .edh-ficon::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--c-btn); transform: translate(-50%, -50%); }
.edh-ficon::before { width: 12px; height: 2px; }
.edh-ficon::after { width: 2px; height: 12px; transition: transform .25s ease; }
.edh-fitem.is-open .edh-ficon::after { transform: translate(-50%, -50%) scaleY(0); }
.edh-fa { padding: 0 0 20px; }

/* ── Instagram ── */
.edh-insta { padding: 100px 0 70px; }
.edh-insta-head { text-align: center; margin-bottom: 50px; }

/* ── Lightbox ── */
.edh-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; }
.edh-lb[hidden] { display: none; }
.edh-lb-inner { width: min(90vw, 160vh); }
.edh-lb-inner video { width: 100%; height: auto; max-height: 90vh; display: block; }
.edh-lb-close { position: absolute; top: 20px; right: 30px; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; }

/* ── Mobile / tablet (<1000px, igual que el breakpoint de Salient) ── */
@media (max-width: 999px) {
	.edh-pg { --gutter: 6%; }
	.edh-wrap { padding: 0 6%; }
	.edh-only-desk { display: none; }
	.edh-only-mob { display: block; }
	.edh-pg h2 { font-size: 34px; line-height: 44.2px; }

	.edh-hero-grid { grid-template-columns: 1fr; }
	.edh-pg h1.edh-hero-h1 { line-height: 18.2px !important; margin: 20px 0; }
	.edh-hero-p { font-size: 18px; }
	.edh-hero-btns { gap: 10px 3px; }
	.edh-hero-btns .edh-btn { padding: 17px 23px; }

	.edh-testi { padding: 60px 0; background-position: 85% 13%; }
	.edh-testi-head { max-width: none; }
	.edh-car { margin-top: 50px; }
	.edh-car-cell { flex-basis: calc(100vw - 12% + 20px); }
	.edh-car-track { padding: 0 calc(6% - 10px); scroll-padding-left: calc(6% - 10px); }
	.edh-car-dots { margin-top: 50px; }

	.edh-svc { padding: 50px 0 20px; }
	.edh-svc-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
	.edh-svc-grid { grid-template-columns: 1fr; gap: 0; }
	.edh-svc-box { height: 250px; padding: 37.7px; margin-bottom: 24px; }

	.edh-cta { padding: 60px 0; }

	.edh-proj { padding: 60px 0 20px; }
	.edh-filters { margin: 40px 0 50px; }
	.edh-filters-toggle {
		display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid rgba(0,0,0,.15);
		padding: 6px 25px; font-size: 14px; line-height: 24px; color: var(--c-text);
	}
	.edh-filters-toggle::before { content: '+'; font-size: 18px; transition: transform .25s ease; }
	.edh-filters.is-open .edh-filters-toggle::before { transform: rotate(45deg); }
	.edh-filters-list { display: none; flex-direction: column; margin-top: 15px; }
	.edh-filters.is-open .edh-filters-list { display: flex; }
	.edh-filters-list button { align-self: flex-start; margin: 0 0 14px; }
	.edh-pgrid { grid-template-columns: 1fr; }
	.edh-pitem:nth-child(6n+1), .edh-pitem:nth-child(6n+6) { grid-column: auto; }
	.edh-ptitle { font-size: 18px; line-height: 24px; }

	.edh-cta2 { padding: 80px 0; }

	.edh-about { padding: 60px 0 40px; }
	.edh-about-grid { grid-template-columns: 1fr; gap: 40px; }
	.edh-about-img { order: -1; }

	.edh-blog { padding: 40px 0 50px; }
	.edh-blog-head { text-align: left; margin-bottom: 40px; }
	.edh-bgrid { grid-template-columns: 1fr; gap: 40px; }
	.edh-pg .edh-bcard h4 { font-size: 17px; line-height: 20.4px; }

	.edh-faq { padding: 80px 0 60px; }
	.edh-pg .edh-fq { line-height: 24px; }
	.edh-faq .edh-btn { padding: 17px 25px; }

	.edh-insta { padding: 40px 0 40px; }
	.edh-insta-head { text-align: left; margin-bottom: 30px; }
}
