/* ==========================================================================
   Fixit Movil theme — base, header, footer, floating bar
   Brand variables (--fx-*) are printed by the Fixit Core plugin from Settings.
   ========================================================================== */

:root {
	--fx-red: #E4272D; --fx-red-dark: #C41E24; --fx-dark: #1A1B20; --fx-text: #1A1B20; --fx-muted: #4A4D55;
	--fx-bg: #F6F6F6; --fx-surface: #FFFFFF; --fx-border: #E6E6E8;
	--fx-font-head: "Manrope", system-ui, sans-serif; --fx-font-body: "DM Sans", system-ui, sans-serif;
	--fx-wrap: 1180px; --fx-gutter: 24px; --fx-header-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--fx-header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0; background: var(--fx-bg); color: var(--fx-text);
	font-family: var(--fx-font-body); font-size: 16px; line-height: 1.55;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--fx-red-dark); }
a:hover { color: var(--fx-text); }
h1, h2, h3, h4, h5, h6, .elementor-heading-title { font-family: var(--fx-font-head); color: var(--fx-text); letter-spacing: -0.02em; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--fx-red); outline-offset: 2px; }
.fx-site-main:focus { outline: none; }

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 12px; top: 12px; z-index: 100000; padding: 12px 18px; background: #fff; color: var(--fx-text); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2); font-weight: 700; }

.fx-wrap { max-width: var(--fx-wrap); margin: 0 auto; padding-left: var(--fx-gutter); padding-right: var(--fx-gutter); }
@media (max-width: 767px) { :root { --fx-gutter: 16px; } }

/* ---------- Top bar ---------- */
.fx-topbar { background: var(--fx-dark); color: #E9E9EC; font-size: 13px; line-height: 1.4; }
.fx-topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 9px; padding-bottom: 9px; }
.fx-topbar strong { color: #fff; }
.fx-topbar a { color: #fff; }
@media (max-width: 767px) { .fx-topbar__right { display: none; } .fx-topbar__inner { justify-content: center; text-align: center; } }

/* ---------- Header ---------- */
.fx-site-header { background: var(--fx-surface); border-bottom: 1px solid var(--fx-border); z-index: 50; }
.fx-site-header.is-sticky { position: sticky; top: 0; }
.admin-bar .fx-site-header.is-sticky { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .fx-site-header.is-sticky { top: 0; } }
.fx-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; position: relative; }
.fx-header__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fx-site-header .fx-menu { margin-left: auto; }
@media (min-width: 1025px) { .fx-site-header .fx-header .fx-menu { margin-left: 0; } }
@media (max-width: 767px) { .fx-hide-sm { display: none !important; } }
/* Elementor header template inside the sticky wrapper */
.fx-site-header > .elementor { width: 100%; }

/* ---------- Footer ---------- */
.fx-site-footer { background: var(--fx-surface); border-top: 1px solid var(--fx-border); }
.fx-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; padding-bottom: 28px; font-size: 13px; color: var(--fx-muted); }
.fx-footer p { margin: 0; }
.fx-footer__phone { font-weight: 700; color: var(--fx-text); text-decoration: none; }
.fx-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.fx-footer__menu a { color: var(--fx-muted); }
.has-fx-floating .fx-site-footer { padding-bottom: 84px; }

/* ---------- Floating action bar ---------- */
.fx-float { transition: transform .25s ease, opacity .25s ease; }
.fx-float-hidden .fx-float { transform: translateY(140%); opacity: 0; }
.fx-float-hidden .fx-float__inner { pointer-events: none; }
.fx-float .fx-float__inner { transition: inherit; }
.fx-float { position: fixed; left: 0; right: 0; bottom: 14px; z-index: 90; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.fx-float__inner { pointer-events: auto; display: flex; gap: 6px; padding: 6px; width: 100%; max-width: 460px; border-radius: 14px; background: var(--fx-surface); border: 1px solid var(--fx-border); box-shadow: 0 10px 30px -10px rgba(26,27,32,.4); }
.fx-float .fx-float__btn { flex: 1 1 0; min-height: 48px; padding: 0 10px; font-size: 15px; white-space: nowrap; }
.fx-float .fx-btn--plain { flex: 0 0 auto; background: transparent; color: var(--fx-text); font-weight: 600; padding: 0 14px; }
.fx-float .fx-btn--plain:hover { background: #F3F3F4; color: var(--fx-text); }
.fx-float .fx-btn--whatsapp { background: #128C4A; color: #fff; }
.fx-float .fx-btn--whatsapp:hover { background: #0E6E3A; color: #fff; }
@media (min-width: 1025px) { .fx-float--mobile { display: none; } .has-fx-floating.fx-floating-mobile .fx-site-footer { padding-bottom: 0; } }
@media (max-width: 1024px) { .fx-float--desktop { display: none; } .has-fx-floating.fx-floating-desktop .fx-site-footer { padding-bottom: 0; } }
@media (max-width: 380px) { .fx-float .fx-btn__label { font-size: 14px; } .fx-float .fx-svg { display: none; } }
@media print { .fx-float, .fx-topbar { display: none !important; } .fx-site-header.is-sticky { position: static; } }

/* ---------- Plain pages, posts, 404 ---------- */
.fx-content { max-width: 760px; margin: 0 auto; padding: 56px var(--fx-gutter) 72px; }
.fx-content--wide { max-width: var(--fx-wrap); }
.fx-page-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 24px; }
.fx-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fx-red); margin: 0 0 10px; }
.fx-entry { font-size: 17px; line-height: 1.7; }
.fx-entry__media img { border-radius: 16px; margin-bottom: 24px; }
.fx-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.fx-post-card { background: var(--fx-surface); border: 1px solid var(--fx-border); border-radius: 12px; padding: 20px; }
.fx-post-card__media img { border-radius: 8px; display: block; margin-bottom: 14px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.fx-post-card__title { font-size: 20px; margin: 0 0 6px; }
.fx-post-card__title a { color: var(--fx-text); text-decoration: none; }
.fx-post-card__meta { font-size: 13px; color: var(--fx-muted); margin: 0 0 8px; }
.fx-404 .fx-btns { margin-top: 24px; }
.fx-comments { padding-top: 0; }

/* Buttons used by the theme when the plugin CSS is not loaded */
:where(.fx-btn) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid transparent; }
:where(.fx-btn--primary) { background: var(--fx-red); color: #fff; }
:where(.fx-btn--outline) { background: var(--fx-surface); color: var(--fx-text); border-color: #D9D9DD; }
:where(.fx-btns) { display: flex; flex-wrap: wrap; gap: 10px; }

/* Elementor: let sections reach the screen edges inside the theme */
.elementor-page .fx-site-main { overflow-x: clip; }

/* Built-in header on small phones: keep logo, menu button and call button on one row */
@media (max-width: 767px) {
	.fx-header { flex-wrap: nowrap; gap: 10px; }
	.fx-header .fx-menu { margin-left: auto; }
}
@media (max-width: 480px) {
	.fx-header__actions .fx-btn { padding: 0 14px; }
	.fx-header__actions .fx-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
}
