/* ==========================================================================
   Fuelnox Distributors — estilos
   Reproduce el aspecto de fuelseteu.com. Los colores y las tipografías están
   en las variables de abajo: si algo no coincide con la web principal, se
   corrige aquí en un único sitio.
   ========================================================================== */

/* ---------- Fuentes (alojadas en el propio tema, sin Google Fonts) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); }

/* ---------- Variables de marca ---------- */
:root {
	--fnx-green: #0f4a32;          /* verde principal (header, hero) */
	--fnx-green-deep: #072b1f;     /* verde muy oscuro (bloque de contacto) */
	--fnx-green-deeper: #06251a;
	--fnx-mint: #34d3a6;           /* acento menta (botón, cursiva) */
	--fnx-cream: #f3efe7;          /* fondo claro */
	--fnx-ink: #10231b;            /* texto sobre fondo claro */
	--fnx-line: #e1e6e4;

	--fnx-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--fnx-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
	--fnx-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;

	--fnx-wrap: 1244px;
	--fnx-gutter: clamp(20px, 4vw, 48px);
	--fnx-radius: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body.fnxt {
	margin: 0;
	background: var(--fnx-cream);
	color: var(--fnx-ink);
	font-family: var(--fnx-font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.fnxt img, .fnxt svg { max-width: 100%; height: auto; }
/* Los reseteos van en :where() para que no pisen los estilos de cada bloque */
:where(.fnxt a) { color: inherit; }
:where(.fnxt ul) { list-style: none; margin: 0; padding: 0; }
:where(.fnxt h1, .fnxt h2, .fnxt h3, .fnxt p) { margin: 0; }
:where(.fnxt button) { font: inherit; color: inherit; cursor: pointer; }

.fnxt-wrap { width: 100%; max-width: calc(var(--fnx-wrap) + var(--fnx-gutter) * 2); margin-inline: auto; padding-inline: var(--fnx-gutter); }

.fnxt-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--fnx-green); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .15s; }
.fnxt-skip:focus { top: 12px; }

:where(.fnxt a, .fnxt button, .fnxt input, .fnxt select, .fnxt textarea):focus-visible {
	outline: 2px solid var(--fnx-mint);
	outline-offset: 3px;
}

/* ---------- Botones ---------- */
.fnxt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 44px; padding: 0 22px; border-radius: 999px;
	font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
	transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.fnxt-btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,.38); background: transparent; }
.fnxt-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.fnxt-btn--accent { min-height: 54px; padding: 0 28px; font-size: 16px; background: var(--fnx-mint); color: #06251a; border: 0; }
.fnxt-btn--accent:hover { filter: brightness(1.06); }
.fnxt-btn--accent i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #06251a; color: var(--fnx-mint); font-style: normal; font-size: 12px; line-height: 1; }

/* ==========================================================================
   Header
   ========================================================================== */
.fnxt-header { background: var(--fnx-green); color: #fff; position: relative; z-index: 50; }
.fnxt-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 73px; gap: 24px; }

.fnxt-logo { display: inline-flex; align-items: center; justify-self: start; }
.fnxt-logo img { display: block; height: 38px; width: auto; }

.fnxt-nav__list { display: flex; align-items: center; gap: 32px; }
.fnxt-nav a, .fnxt-dd__btn { color: #fff; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.fnxt-nav a:hover { text-decoration-thickness: 2px; }

.fnxt-header__right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }

/* Desplegables (Industries e idioma) */
.fnxt-dd { position: relative; }
.fnxt-dd__btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; }
.fnxt-dd__btn span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.fnxt-chev { transition: transform .18s; flex: none; }
.fnxt-dd__btn[aria-expanded="true"] .fnxt-chev { transform: rotate(180deg); }

.fnxt-dd__panel { display: none; position: absolute; top: calc(100% + 14px); z-index: 60; background: #fff; color: var(--fnx-ink); border-radius: 16px; box-shadow: 0 20px 50px rgba(6, 37, 26, .28); padding: 8px; }
.fnxt-dd.is-open > .fnxt-dd__panel { display: block; }

.fnxt-industries { left: 50%; transform: translateX(-50%); width: 340px; }
.fnxt-industries a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--fnx-ink); }
.fnxt-industries a:hover { background: var(--fnx-cream); }
.fnxt-industries strong { display: block; font-size: 15px; font-weight: 600; }
.fnxt-industries span { display: block; font-size: 13px; color: #5d6b64; margin-top: 2px; }

/* Selector de idioma */
.fnxt-lang__btn {
	gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px;
	border: 1px solid rgba(255,255,255,.28); text-decoration: none; font-weight: 600; font-size: 14px;
}
.fnxt-lang__btn span { text-decoration: none; }
.fnxt-flag { width: 20px; height: 20px; border-radius: 50%; display: block; flex: none; }
.fnxt-lang__panel { right: 0; min-width: 120px; }
.fnxt-lang__panel a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; color: var(--fnx-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.fnxt-lang__panel a:hover { background: var(--fnx-cream); }
.fnxt-lang__panel a[aria-current] { color: var(--fnx-green); }

.fnxt-header__cta { min-height: 38px; padding: 0 20px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

/* Lista de idiomas, botón de contacto del menú y hamburguesa: solo en móvil */
.fnxt-langlist, .fnxt-burger, .fnxt-nav__cta { display: none; }

@media (max-width: 960px) {
	.fnxt-header__bar { grid-template-columns: 1fr auto; }
	.fnxt-header__cta, .fnxt-lang { display: none; }
	.fnxt-burger {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 44px; height: 44px; padding: 0 11px; background: none; border: 1px solid rgba(255,255,255,.28); border-radius: 12px;
	}
	.fnxt-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
	.fnxt-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.fnxt-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.fnxt-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.fnxt-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--fnx-green); border-top: 1px solid rgba(255,255,255,.12);
		padding: 8px var(--fnx-gutter) 28px; box-shadow: 0 24px 40px rgba(6,37,26,.35);
	}
	.fnxt-nav.is-open { display: block; }
	.fnxt-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.fnxt-nav__list > li { border-bottom: 1px solid rgba(255,255,255,.1); }
	.fnxt-nav__list > li > a, .fnxt-dd--industries > .fnxt-dd__btn { display: flex; width: 100%; justify-content: space-between; padding: 16px 0; font-size: 17px; }
	.fnxt-dd__panel.fnxt-industries { position: static; transform: none; width: auto; box-shadow: none; background: rgba(255,255,255,.06); margin-bottom: 14px; }
	.fnxt-industries a { color: #fff; }
	.fnxt-industries a:hover { background: rgba(255,255,255,.08); }
	.fnxt-industries span { color: rgba(255,255,255,.68); }

	.fnxt-nav__list > li.fnxt-nav__cta { display: block; border-bottom: 0; padding-top: 20px; }
	.fnxt-nav__cta .fnxt-btn { width: 100%; text-decoration: none; min-height: 48px; font-size: 16px; }
	.fnxt-langlist { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; }
	.fnxt-langlist a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); text-decoration: none; font-weight: 600; font-size: 14px; }
	.fnxt-langlist a[aria-current] { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.fnxt-hero { background: var(--fnx-green); color: #fff; padding: clamp(48px, 7vw, 98px) 0 clamp(48px, 5vw, 70px); }
.fnxt-hero--plain { padding: 56px 0 48px; }

.fnxt-crumbs { display: flex; gap: 6px; font-size: 14px; color: rgba(255,255,255,.82); margin-bottom: clamp(28px, 4vw, 46px); }
.fnxt-crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.fnxt-eyebrow {
	display: flex; align-items: center; gap: 12px;
	font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78);
}
.fnxt-hero .fnxt-eyebrow::before { content: ""; width: 32px; height: 1px; background: rgba(255,255,255,.7); }
.fnxt-eyebrow--mint { color: var(--fnx-mint); font-weight: 700; }

.fnxt-h1 {
	margin-top: 26px; max-width: 11em;
	font-family: var(--fnx-font); font-weight: 500; font-size: clamp(2.3rem, 3.3vw, 3.15rem); line-height: 1.08; letter-spacing: -.02em;
}
.fnxt-h1 em { white-space: nowrap; font-family: var(--fnx-serif); font-style: italic; font-weight: 400; color: var(--fnx-mint); letter-spacing: -.005em; font-size: 1.07em; }

.fnxt-lede { margin-top: 28px; max-width: 31em; font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.6; color: rgba(255,255,255,.88); }

/* ==========================================================================
   Página de gracias
   ========================================================================== */
.fnxt-thanks { position: relative; overflow: hidden; background: var(--fnx-green); color: #fff; min-height: clamp(460px, 62vh, 640px); display: flex; align-items: center; padding: clamp(56px, 8vw, 110px) 0; }
.fnxt-thanks .fnxt-wrap { position: relative; z-index: 1; }
.fnxt-thanks__drop { position: absolute; right: max(4vw, calc(50% - 560px)); top: 50%; transform: translateY(-50%); width: clamp(120px, 15vw, 220px); height: auto; opacity: .1; pointer-events: none; }
.fnxt-h1--thanks { max-width: 12em; }
.fnxt-thanks .fnxt-lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.fnxt-thanks__actions { margin-top: 36px; }

/* ==========================================================================
   Zona del mapa (el plugin dibuja el contenido)
   ========================================================================== */
.fnxt-locator { padding: clamp(36px, 4vw, 72px) 0 clamp(36px, 4vw, 64px); }
.fnxt-notice { padding: 16px 20px; background: #fff; border-radius: 12px; }
.fnxt-prose { max-width: 760px; }
.fnxt-prose p { margin-bottom: 1em; }

/* ==========================================================================
   Bloque de contacto
   ========================================================================== */
.fnxt-cta-section { padding: 0 0 clamp(48px, 5vw, 72px); }
.fnxt-cta {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 5vw, 72px); align-items: start;
	padding: clamp(28px, 4.5vw, 64px);
	border-radius: 28px; color: #fff;
	background: linear-gradient(160deg, var(--fnx-green-deep) 0%, var(--fnx-green-deeper) 100%);
	scroll-margin-top: 24px;
}
.fnxt-h2 { margin-top: 18px; font-weight: 500; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; }
.fnxt-cta__lead { margin-top: 18px; max-width: 30em; color: rgba(255,255,255,.82); }
.fnxt-cta__more { margin-top: 28px; max-width: 34em; font-size: 15px; color: rgba(255,255,255,.72); }
.fnxt-cta__more a { color: var(--fnx-mint); font-weight: 600; }
.fnxt-cta__panel { background: #143229; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; padding: clamp(20px, 2.4vw, 32px); }
.fnxt-cta__fallback a { color: var(--fnx-mint); font-weight: 600; }

@media (max-width: 900px) {
	.fnxt-cta { grid-template-columns: 1fr; border-radius: 22px; }
}

/* ---- Formulario (lo genera el plugin: [fnx_distribuidores_form]) ---- */
.fnxd-form__title { font-size: 22px; font-weight: 600; margin-bottom: 18px; }
.fnxd-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fnxd-form__field { display: block; margin-bottom: 14px; }
.fnxd-form__field > span { display: block; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.8); margin-bottom: 6px; }
.fnxd-form input[type="text"], .fnxd-form input[type="email"], .fnxd-form input[type="tel"], .fnxd-form select, .fnxd-form textarea {
	width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; font-size: 15px; color: #fff;
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; transition: border-color .15s, background .15s;
}
.fnxd-form select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.fnxd-form select option { color: #10231b; }
.fnxd-form textarea { min-height: 96px; resize: vertical; }
.fnxd-form input:focus, .fnxd-form select:focus, .fnxd-form textarea:focus { outline: none; border-color: var(--fnx-mint); background: rgba(255,255,255,.1); }
.fnxd-form__note { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.62); margin: 4px 0 18px; }
.fnxd-form__submit {
	display: flex; align-items: center; gap: 12px; width: 100%; justify-content: flex-start;
	min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px;
	background: var(--fnx-mint); color: #06251a; font-weight: 600; font-size: 16px; transition: filter .15s, transform .15s;
}
.fnxd-form__submit:hover { filter: brightness(1.06); }
.fnxd-form__submit i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #06251a; color: var(--fnx-mint); font-style: normal; font-size: 12px; line-height: 1; }
.fnxd-form__alt { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.72); }
.fnxd-form__alt a { color: #fff; font-weight: 600; }
.fnxd-form__msg { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 15px; }
.fnxd-form__msg--ok { background: rgba(52, 211, 166, .15); border: 1px solid rgba(52, 211, 166, .5); }
.fnxd-form__msg--err { background: rgba(255, 120, 100, .14); border: 1px solid rgba(255, 140, 120, .5); }
@media (max-width: 520px) { .fnxd-form__row { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.fnxt-footer { color: #fff; padding: clamp(48px, 6vw, 80px) 0 28px; background: linear-gradient(135deg, #0d3b27 0%, #09301f 45%, #072619 100%); }
.fnxt-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.fnxt-footer__mail { font-size: 16px; margin-bottom: 28px; }
.fnxt-footer__mail a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.fnxt-footer__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fnx-mint); margin-bottom: 12px; }
.fnxt-footer__text { color: rgba(255,255,255,.78); margin-bottom: 22px; }
.fnxt-footer__list li { margin-bottom: 14px; }
.fnxt-footer__list a { text-decoration: none; color: rgba(255,255,255,.88); }
.fnxt-footer__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.fnxt-footer__col:nth-child(2) .fnxt-footer__eyebrow { margin-bottom: 22px; }
.fnxt-footer__col:nth-child(3) .fnxt-footer__eyebrow { margin-bottom: 22px; }
.fnxt-footer__company { font-size: 18px; font-weight: 500; color: #fff; margin-bottom: 18px !important; }

.fnxt-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 32px; }
.fnxt-footer__brand { font-family: var(--fnx-display); font-size: 28px; line-height: 1; letter-spacing: .01em; text-decoration: none; color: #fff; }
.fnxt-footer__legal { font-size: 13px; color: rgba(255,255,255,.78); max-width: 760px; }
.fnxt-footer__legal span { margin-right: 6px; }
.fnxt-footer__legal a { color: rgba(255,255,255,.78); text-decoration: underline; text-underline-offset: 3px; }
.fnxt-footer__legal a:hover { color: #fff; }

@media (max-width: 860px) {
	.fnxt-footer__grid { grid-template-columns: 1fr 1fr; }
	.fnxt-footer__col--lead { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.fnxt-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.fnxt-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
