/* Odontoschool · cabecera y pie comunes */
.osh, .osf {
	--l-ink: #1d2b2b; --l-muted: #5d6e6c; --l-teal: #0f4c4c; --l-teal-2: #1a6563; --l-gold: #b8945a;
	--l-ivory: #faf7f0; --l-line: #e4dccb;
	--l-serif: "Fraunces", Georgia, serif; --l-sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-family: var(--l-sans); color: var(--l-ink); box-sizing: border-box;
}
.osh *, .osf * { box-sizing: border-box; }
.osh [hidden], .osf [hidden] { display: none !important; }

/* Cabecera */
.osh, .osf { --l-bg: #fbfaf3; --l-w: 1240px; --l-logo: 56px; }
/* Ancho completo aunque el widget esté dentro de un contenedor de Elementor */
.osh, .osf { width: 100vw !important; max-width: 100vw !important; position: relative; left: 50%; right: 50%; margin-left: -50vw !important; margin-right: -50vw !important; }
.osh { position: sticky; top: 0; left: auto; right: auto; margin-left: calc(50% - 50vw) !important; margin-right: 0 !important; z-index: 100; background: var(--l-bg); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.admin-bar .osh { top: 32px; }
@media (max-width: 782px) { .admin-bar .osh { top: 46px; } }
.osh.is-scrolled { border-bottom-color: var(--l-line); box-shadow: 0 8px 24px -18px rgba(0,0,0,.25); }
.osh-in { max-width: var(--l-w); margin: 0 auto; width: 100%; padding: 14px clamp(16px, 4vw, 32px); display: flex; align-items: center; gap: 28px; }
.osh-logo { display: flex; align-items: center; flex: none; text-decoration: none !important; color: var(--l-ink) !important; }
.osh .osh-logo img { height: var(--l-logo) !important; width: auto !important; max-width: none !important; max-height: none !important; display: block; object-fit: contain; }
.osh-logo span { font-family: var(--l-serif); font-size: 22px; letter-spacing: .04em; }
.osh-nav { flex: 1; display: flex; justify-content: center; }
.osh-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 2.6vw, 36px); }
.osh-menu li { margin: 0; }
.osh-menu a { position: relative; display: block; padding: 6px 0; font-size: 15px; font-weight: 500; color: var(--l-ink) !important; text-decoration: none !important; }
.osh-menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--l-gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.osh-menu a:hover::after, .osh-menu .current-menu-item a::after, .osh-menu .current_page_item a::after { transform: scaleX(1); }
.osh-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.osh-wa { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #1a8a47 !important; border: 1px solid var(--l-line); background: #fff; transition: background .15s; }
.osh-wa:hover { background: #effaf3; }
.osh-cta { display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 999px; background: var(--l-teal); color: #fff !important; font-weight: 600; font-size: 14.5px; text-decoration: none !important; transition: background .15s; white-space: nowrap; }
.osh-cta:hover { background: var(--l-teal-2); }
.osh-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--l-line); border-radius: 50%; background: #fff; cursor: pointer; padding: 0; position: relative; }
.osh-burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--l-ink); transition: transform .25s, top .25s; }
.osh-burger span:first-child { top: 17px; }
.osh-burger span:last-child { top: 25px; }
.osh.is-open .osh-burger span:first-child { top: 21px; transform: rotate(45deg); }
.osh.is-open .osh-burger span:last-child { top: 21px; transform: rotate(-45deg); }
.osh-panel { border-top: 1px solid var(--l-line); padding: 10px clamp(16px, 4vw, 32px) 22px; background: var(--l-bg); }
.osh-panel .osh-menu { flex-direction: column; gap: 0; }
.osh-panel .osh-menu a { padding: 14px 0; font-family: var(--l-serif); font-size: 22px; border-bottom: 1px solid var(--l-line); }
.osh-panel .osh-menu a::after { display: none; }
.osh-panel-actions { display: flex; gap: 10px; margin-top: 18px; }
.osh-panel-actions .osh-cta { flex: 1; justify-content: center; padding: 14px; }
.osh-panel-wa { display: inline-flex; align-items: center; gap: 8px; padding: 14px 18px; border-radius: 999px; background: #25d366; color: #fff !important; font-weight: 600; text-decoration: none !important; }
@media (max-width: 860px) {
	.osh-nav, .osh-actions .osh-cta, .osh-actions .osh-wa { display: none; }
	.osh-burger { display: block; }
	.osh-in { justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
	.osh .osh-logo img { height: calc(var(--l-logo) * .8) !important; }
}

/* Pie */
.osf { position: relative; left: auto; right: auto; margin-left: calc(50% - 50vw) !important; margin-right: 0 !important; background: var(--l-bg); border-top: 1px solid var(--l-line); margin-top: 0; }
.osf-in { max-width: var(--l-w); margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 32px) 32px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.osf-logo { display: inline-block; text-decoration: none !important; color: var(--l-ink) !important; }
.osf .osf-logo img { height: calc(var(--l-logo) * 1.4) !important; width: auto !important; max-width: none !important; display: block; object-fit: contain; }
.osf-logo span { font-family: var(--l-serif); font-size: 24px; }
.osf-lema { margin: 14px 0 18px; font-family: var(--l-serif); font-style: italic; font-size: 18px; color: var(--l-muted); }
.osf-social-row { max-width: var(--l-w); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px) 28px; }
.osf-social { display: flex; justify-content: center; gap: 16px; }
.osf-social a { width: 40px; height: 40px; border-radius: 4px; display: grid; place-items: center; color: #fff !important; text-decoration: none !important; transition: transform .15s, filter .15s; }
.osf-social a svg { width: 22px; height: 22px; }
.osf-social a:hover { transform: translateY(-2px); filter: brightness(1.06); }
.osf-social .osf-ig { background: #a8885a; }
.osf-social .osf-wa { background: #5bc96b; }
.osf-col h3 { margin: 6px 0 14px; font-family: var(--l-sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--l-gold); }
.osf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.osf-list li { margin: 0; font-size: 15px; }
.osf-list a, .osf-more { color: var(--l-ink) !important; text-decoration: none !important; }
.osf-list a:hover, .osf-more:hover { color: var(--l-teal) !important; text-decoration: underline !important; }
.osf-more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; }
.osf-muted { color: var(--l-muted); font-size: 14px; margin: 0; }
.osf-bottom { max-width: var(--l-w); margin: 0 auto; padding: 18px clamp(16px, 4vw, 32px) 26px; border-top: 1px solid var(--l-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; color: var(--l-muted); }
.osf-bottom p { margin: 0; }
.osf-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.osf-legal li { margin: 0; }
.osf-legal a { color: var(--l-muted) !important; text-decoration: none !important; }
.osf-legal a:hover { color: var(--l-ink) !important; text-decoration: underline !important; }
@media (max-width: 900px) { .osf-in { grid-template-columns: 1fr 1fr; } .osf-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .osf-in { grid-template-columns: 1fr; gap: 28px; } }

/* En temas de bloques, quita márgenes alrededor de la cabecera y el pie */
.wp-site-blocks > .osh, .wp-site-blocks > .osf { margin-block-start: 0 !important; }
.wp-site-blocks > .osf { margin-top: 0 !important; }

/* Evita scroll horizontal por el ancho completo */
html, body { overflow-x: clip; }
.osh-wa, .osh-burger { background: transparent; }
