/*
 * EFLL Site Design - shared header + footer (Draft E look).
 * Every rule is anchored on #efll-sd-header / #efll-sd-footer so Astra, Elementor kit-931 and
 * plugin globals (a{color}, button{background:#ED7730;border-radius:30px}, ul{margin}) can't win.
 */

/* ---------- skip link (ours replaces Astra's while the design is on) ---------- */
body.efll-sd a.skip-link.screen-reader-text { display: none; }
a.sdh-skip {
	position: absolute; left: 12px; top: -200px; z-index: 1000001;
	background: #d4a72c; color: #08111d; padding: 12px 18px;
	font: 600 16px/1.2 'Barlow', Arial, sans-serif; text-decoration: none; border-radius: 2px;
}
a.sdh-skip:focus, a.sdh-skip:focus-visible { top: 12px; color: #08111d; outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- header: reset ---------- */
#efll-sd-header, #efll-sd-header *, #efll-sd-footer, #efll-sd-footer * { box-sizing: border-box; }
#efll-sd-header ul, #efll-sd-header li, #efll-sd-footer ul, #efll-sd-footer li {
	list-style: none; margin: 0; padding: 0; background: none; border: 0;
}
#efll-sd-header li::before, #efll-sd-header li::marker, #efll-sd-footer li::before, #efll-sd-footer li::marker { content: none; }
#efll-sd-header img, #efll-sd-footer img { max-width: none; box-shadow: none; border: 0; }
#efll-sd-header a, #efll-sd-footer a { text-decoration: none; box-shadow: none; transition: color .2s, background-color .2s; }
#efll-sd-header button {
	margin: 0; box-shadow: none; text-shadow: none; text-transform: none; letter-spacing: normal;
	line-height: 1; font-weight: inherit; min-height: 0; width: auto; height: auto;
}
#efll-sd-header :focus-visible, #efll-sd-footer :focus-visible { outline: 2px solid #e6c25a; outline-offset: 3px; }

/* ---------- header: frame ---------- */
#efll-sd-header {
	position: relative; z-index: 20; display: block; width: 100%; margin: 0; padding: 0;
	color: #fff; font-family: 'Barlow', 'Helvetica Neue', Arial, sans-serif; font-size: 17px; line-height: 1.65;
	background: transparent; border: 0;
}
#efll-sd-header.efll-sd-header--solid { background: #08111d; border-bottom: 1px solid rgba(212, 167, 44, .55); }
#efll-sd-header .sdh-inner {
	max-width: 1360px; margin: 0 auto; padding: 22px 28px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
}
#efll-sd-header.efll-sd-header--solid .sdh-inner { padding-top: 14px; padding-bottom: 14px; }

#efll-sd-header .sdh-brand { display: flex; align-items: center; gap: 16px; color: #fff; }
#efll-sd-header .sdh-logo { display: block; width: 54px; height: 54px; border-radius: 50%; }
#efll-sd-header .sdh-rule { display: block; width: 1px; height: 38px; background: rgba(255, 255, 255, .35); }
#efll-sd-header .sdh-wordmark {
	font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: 18px; letter-spacing: .2em; color: #fff; line-height: 1.3;
}
#efll-sd-header .sdh-brand:hover .sdh-wordmark { color: #e6c25a; }
#efll-sd-header .sdh-actions { display: flex; align-items: center; gap: 10px; }
#efll-sd-header .sdh-nav { position: relative; }

/* ---------- Spanish strip (Draft E .eh-lang) ---------- */
#efll-sd-header .sdh-lang {
	position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 39px; margin: 0;
	padding: 4px 56px; background: #0b1626; border-bottom: 1px solid rgba(212, 167, 44, .35);
}
#efll-sd-header .sdh-lang[hidden] { display: none; }
#efll-sd-header .sdh-lang-link {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 16px; min-width: 0; max-width: 100%;
	font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.6; color: #fff;
}
#efll-sd-header .sdh-lang-ask, #efll-sd-header .sdh-lang-sub { font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; }
#efll-sd-header .sdh-lang-ask { color: #b9c5d4; }
#efll-sd-header .sdh-lang-sub, #efll-sd-header .sdh-lang-arrow { color: #e6c25a; }
#efll-sd-header .sdh-lang-name {
	font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; font-weight: 500; font-variant-caps: small-caps; letter-spacing: 2.4px; color: #fff;
}
#efll-sd-header .sdh-lang-link:hover .sdh-lang-name, #efll-sd-header .sdh-lang-link:focus .sdh-lang-name { color: #e6c25a; }
#efll-sd-header .sdh-lang-close {
	position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 44px; height: 38px; padding: 0;
	background: none; border: 0; border-radius: 0; color: #9fb0c6; cursor: pointer;
	font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-weight: 500; line-height: 1;
}
#efll-sd-header .sdh-lang-close:hover, #efll-sd-header .sdh-lang-close:focus { color: #e6c25a; background: none; }
@media (max-width: 640px) {
	#efll-sd-header .sdh-lang { padding: 4px 48px 4px 16px; }
	#efll-sd-header .sdh-lang-link { gap: 0 10px; }
	#efll-sd-header .sdh-lang-ask, #efll-sd-header .sdh-lang-sub { letter-spacing: 1.6px; }
	#efll-sd-header .sdh-lang-name { font-size: 18px; letter-spacing: 1.6px; }
}

/* ---------- desktop menu ---------- */
#efll-sd-header .sdh-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
#efll-sd-header .sdh-menu > li { position: relative; display: flex; align-items: center; }
#efll-sd-header .sdh-menu > li.sdh-close-li { display: none; }
#efll-sd-header .sdh-top,
#efll-sd-header .sdh-call > a {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; margin: 0;
	font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 600; font-size: 15px;
	letter-spacing: .11em; text-transform: uppercase; color: #fff; background: none; border: 0; border-radius: 0; cursor: pointer;
}
#efll-sd-header .sdh-top--text { cursor: default; }
#efll-sd-header a.sdh-top:hover, #efll-sd-header a.sdh-top:focus,
#efll-sd-header button.sdh-top:hover, #efll-sd-header button.sdh-top:focus,
#efll-sd-header .sdh-has:hover > .sdh-top, #efll-sd-header .sdh-has.sdh-open > .sdh-top,
#efll-sd-header .sdh-item.is-current > .sdh-top, #efll-sd-header .sdh-item.is-current-parent > .sdh-top { color: #e6c25a; background: none; }
#efll-sd-header .sdh-caret { font-size: 11px; opacity: .8; line-height: 1; transition: transform .2s; }
#efll-sd-header .sdh-toggle--caret {
	display: inline-flex; align-items: center; justify-content: center; min-width: 22px; min-height: 44px; margin: 0 0 0 2px; padding: 0 2px;
	background: none; border: 0; border-radius: 0; color: #fff; cursor: pointer; font-size: 15px;
}
#efll-sd-header .sdh-toggle--caret:hover, #efll-sd-header .sdh-toggle--caret:focus,
#efll-sd-header .sdh-has:hover > .sdh-toggle--caret, #efll-sd-header .sdh-has.sdh-open > .sdh-toggle--caret { color: #e6c25a; background: none; }
#efll-sd-header .sdh-has.sdh-open .sdh-caret { transform: rotate(180deg); }

#efll-sd-header .sdh-sub {
	position: absolute; top: 100%; left: -18px; min-width: 270px; width: max-content; max-width: min(340px, 90vw); margin: 0; padding: 10px 0;
	background: rgba(8, 17, 29, .97); border-top: 2px solid #d4a72c; box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 50;
}
#efll-sd-header .sdh-has:hover > .sdh-sub,
#efll-sd-header .sdh-has.sdh-open > .sdh-sub { opacity: 1; visibility: visible; transform: none; }
/* last two dropdowns open leftwards so they never run off the right edge */
#efll-sd-header .sdh-menu > li.sdh-has:nth-last-child(-n+3) > .sdh-sub { left: auto; right: -18px; }
#efll-sd-header .sdh-sub .sdh-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; background: none; }
#efll-sd-header .sdh-sub a, #efll-sd-header .sdh-sub-text {
	display: block; padding: 9px 20px; font-family: 'Barlow', 'Helvetica Neue', Arial, sans-serif; font-weight: 400; font-size: 15px; line-height: 1.4;
	color: #d9e0ea; letter-spacing: 0; text-transform: none; background: none;
	white-space: normal; overflow-wrap: break-word;
}
#efll-sd-header .sdh-sub a:hover, #efll-sd-header .sdh-sub a:focus { color: #e6c25a; background: rgba(212, 167, 44, .08); }
#efll-sd-header .sdh-sub .is-current > a { color: #e6c25a; }
#efll-sd-header .sdh-sub-item--all > a { color: #fff; font-weight: 500; }

#efll-sd-header .sdh-call > a { color: #08111d; background: #d4a72c; padding: 0 18px; border-radius: 2px; }
#efll-sd-header .sdh-call > a:hover, #efll-sd-header .sdh-call > a:focus { color: #08111d; background: #e6c25a; }

/* ---------- burger / mobile-only controls (hidden on desktop) ---------- */
#efll-sd-header .sdh-burger, #efll-sd-header .sdh-close-li, #efll-sd-header .sdh-quickcall { display: none; }
#efll-sd-header .sdh-burger {
	align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; margin: 0;
	background: rgba(5, 11, 20, .55); border: 1px solid rgba(255, 255, 255, .45); border-radius: 2px; color: #fff;
	font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 600; font-size: 16px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
}
#efll-sd-header .sdh-burger:hover, #efll-sd-header .sdh-burger:focus { background: rgba(5, 11, 20, .8); color: #fff; border-color: #d4a72c; }
#efll-sd-header .sdh-burger-lines, #efll-sd-header .sdh-burger-lines::before, #efll-sd-header .sdh-burger-lines::after {
	display: block; width: 18px; height: 2px; background: #d4a72c; position: relative;
}
#efll-sd-header .sdh-burger-lines::before, #efll-sd-header .sdh-burger-lines::after { content: ""; position: absolute; left: 0; }
#efll-sd-header .sdh-burger-lines::before { top: -6px; }
#efll-sd-header .sdh-burger-lines::after { top: 6px; }
#efll-sd-header .sdh-quickcall {
	align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 2px;
	background: #d4a72c; color: #08111d;
}
#efll-sd-header .sdh-quickcall:hover, #efll-sd-header .sdh-quickcall:focus { background: #e6c25a; color: #08111d; }
#efll-sd-header .sdh-quickcall svg { display: block; }

@media (max-width: 1180px) {
	#efll-sd-header .sdh-burger { display: inline-flex; }
	#efll-sd-header.efll-sd-header--solid .sdh-quickcall { display: inline-flex; }
	#efll-sd-header .sdh-menu {
		display: none; position: fixed; inset: 0; z-index: 100000; margin: 0; background: #08111d; overflow-y: auto; overscroll-behavior: contain;
		flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 20px 28px 60px;
	}
	#efll-sd-header .sdh-menu.sdh-open { display: flex; }
	#efll-sd-header .sdh-close-li { display: flex; justify-content: flex-end; border: 0; }
	#efll-sd-header .sdh-close {
		display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
		background: none; border: 1px solid rgba(255, 255, 255, .3); border-radius: 2px; color: #fff;
		font-family: Arial, Helvetica, sans-serif; font-size: 26px; cursor: pointer;
	}
	#efll-sd-header .sdh-close:hover, #efll-sd-header .sdh-close:focus { border-color: #d4a72c; color: #e6c25a; background: none; }
	#efll-sd-header .sdh-menu > li { display: block; border-bottom: 1px solid #1c2b40; }
	#efll-sd-header .sdh-menu > li.sdh-close-li { display: flex; border-bottom: 0; }
	#efll-sd-header .sdh-top { font-size: 20px; padding: 10px 0; letter-spacing: .11em; }
	#efll-sd-header button.sdh-top { cursor: default; }
	#efll-sd-header .sdh-toggle--caret, #efll-sd-header .sdh-caret { display: none; }
	#efll-sd-header .sdh-sub {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
		background: none; padding: 0 0 10px 14px; min-width: 0; width: auto; max-width: none; transition: none;
	}
	#efll-sd-header .sdh-menu > li.sdh-has:nth-last-child(-n+3) > .sdh-sub { right: auto; }
	#efll-sd-header .sdh-sub a, #efll-sd-header .sdh-sub-text { padding: 7px 0; min-height: 44px; display: flex; align-items: center; }
	#efll-sd-header .sdh-sub a:hover, #efll-sd-header .sdh-sub a:focus { background: none; }
	#efll-sd-header .sdh-call { border: 0; margin-top: 20px; }
	#efll-sd-header .sdh-call > a { display: flex; justify-content: center; font-size: 20px; min-height: 52px; }
	html.sdh-menu-open #efll-sd-header { z-index: 100000; }
}
@media (max-width: 640px) {
	#efll-sd-header .sdh-inner { flex-wrap: nowrap; padding: 14px 16px; gap: 12px; }
	#efll-sd-header .sdh-brand { gap: 10px; min-width: 0; }
	#efll-sd-header .sdh-logo { width: 42px; height: 42px; }
	#efll-sd-header .sdh-rule { height: 30px; }
	#efll-sd-header .sdh-wordmark { font-size: 12px; letter-spacing: .12em; line-height: 1.3; }
	#efll-sd-header .sdh-actions { gap: 8px; flex-shrink: 0; }
	#efll-sd-header .sdh-burger { padding: 0 12px; font-size: 14px; }
	#efll-sd-header .sdh-menu { padding: 16px 16px 48px; }
}
@media (max-width: 380px) {
	#efll-sd-header .sdh-rule { display: none; }
	#efll-sd-header .sdh-wordmark { font-size: 11px; letter-spacing: .08em; }
	#efll-sd-header .sdh-burger { gap: 8px; padding: 0 10px; }
}

/* ---------- footer ---------- */
#efll-sd-footer {
	display: block; margin: 0; padding: 0; background: #03070d; color: #9fb0c6;
	font-family: 'Barlow', 'Helvetica Neue', Arial, sans-serif; font-size: 15px; line-height: 1.65;
	border-top: 1px solid rgba(212, 167, 44, .4);
}
#efll-sd-footer .sdf-grid {
	max-width: 1360px; margin: 0 auto; padding: 72px 28px 40px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px;
}
#efll-sd-footer .sdf-brandcol { display: flex; flex-direction: column; gap: 16px; }
#efll-sd-footer .sdf-brand { display: flex; align-items: center; gap: 14px; color: #fff; align-self: flex-start; }
#efll-sd-footer .sdf-logo { display: block; width: 56px; height: 56px; border-radius: 50%; }
#efll-sd-footer .sdf-wordmark { font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: 16px; letter-spacing: .14em; color: #fff; line-height: 1.3; }
#efll-sd-footer .sdf-social { display: flex; flex-wrap: wrap; gap: 10px 18px; font-weight: 600; }
#efll-sd-footer .sdf-social a { color: #d9e0ea; display: inline-block; padding: 2px 0; }
#efll-sd-footer .sdf-col { display: flex; flex-direction: column; gap: 8px; }
#efll-sd-footer .sdf-head {
	display: block; font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 600; font-size: 15px;
	letter-spacing: .24em; text-transform: uppercase; color: #e6c25a;
}
#efll-sd-footer .sdf-list { display: flex; flex-direction: column; gap: 8px; }
#efll-sd-footer .sdf-list a { color: #b9c5d4; display: inline-block; }
#efll-sd-footer .sdf-list a[aria-current="page"] { color: #fff; }
#efll-sd-footer a:hover, #efll-sd-footer a:focus { color: #e6c25a; }
#efll-sd-footer .sdf-phone { color: #fff; font-weight: 600; }
#efll-sd-footer .sdf-address { font-style: normal; color: #9fb0c6; margin: 0; padding: 0; }
#efll-sd-footer .sdf-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
#efll-sd-footer .sdf-lang-label { font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: #7f91a8; }
#efll-sd-footer .gtranslate_wrapper { color: #d9e0ea; }
#efll-sd-footer .gtranslate_wrapper a { color: #d9e0ea; margin-right: 10px; }
#efll-sd-footer .gtranslate_wrapper select {
	background: #0e1a2b; color: #d9e0ea; border: 1px solid #2a3c55; border-radius: 2px; min-height: 40px; padding: 6px 10px;
	font: 400 15px 'Barlow', Arial, sans-serif; max-width: 100%;
}
#efll-sd-footer .sdf-legal {
	max-width: 1360px; margin: 0 auto; padding: 24px 28px 36px; border-top: 1px solid #142236;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; font-size: 13px; color: #7f91a8;
}
#efll-sd-footer .sdf-disclaimer { max-width: 720px; }
@media (max-width: 640px) {
	#efll-sd-footer .sdf-grid { padding: 56px 16px 32px; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#efll-sd-footer .sdf-brandcol, #efll-sd-footer .sdf-contact { grid-column: 1 / -1; }
	#efll-sd-footer .sdf-list a, #efll-sd-footer .sdf-social a { padding: 6px 0; }
	#efll-sd-footer .sdf-list { gap: 2px; }
	#efll-sd-footer .sdf-legal { padding: 20px 16px 28px; }
	#efll-sd-footer .sdf-phone { padding: 6px 0; }
}
/* Homepage mobile call bar (Draft E .eh-callbar): keep the footer's last line clear of it, hide it under the open menu. */
@media (max-width: 760px) {
	body:has(.eh-callbar) #efll-sd-footer { padding-bottom: 54px; }
}
html.sdh-menu-open .eh-callbar { display: none !important; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
	#efll-sd-header *, #efll-sd-footer * { transition: none !important; animation: none !important; }
}

/* The older page-specific Spanish bar (#efll-es-wrap, injected site-wide) is replaced by the header strip;
   chrome.js copies its page-specific Empleados Primero link into the strip. */
body.efll-sd #efll-es-wrap { display: none !important; }
