/* ==========================================================================
   Quechua Logística — estilos principales
   Colores: blanco, rojo y gris oscuro (editables en el Personalizador)
   ========================================================================== */

:root {
	--ql-red: #C8102E;
	--ql-red-dark: color-mix(in srgb, var(--ql-red) 78%, #000);
	--ql-red-soft: color-mix(in srgb, var(--ql-red) 8%, #fff);
	--ql-dark: #23272B;
	--ql-dark-2: color-mix(in srgb, var(--ql-dark) 85%, #fff);
	--ql-gray: #5E656D;
	--ql-gray-2: #8A9097;
	--ql-line: #E4E6E9;
	--ql-bg: #F4F5F7;
	--ql-white: #fff;
	--ql-wa: #1FAF5A;
	--ql-radius: 10px;
	--ql-shadow: 0 10px 30px -12px rgba(20, 24, 28, .25);
	--ql-shadow-sm: 0 4px 14px -6px rgba(20, 24, 28, .18);
	--ql-font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ql-font-h: "Barlow Condensed", "Barlow", system-ui, sans-serif;
	--ql-header-h: 78px;
	--ql-grad-red: linear-gradient(135deg, var(--ql-red) 0%, var(--ql-red-dark) 100%);
	--ql-grad-dark: linear-gradient(135deg, var(--ql-dark) 0%, #3A4046 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--ql-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ql-dark);
	background: var(--ql-white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ql-red); text-decoration: none; }
a:hover { color: var(--ql-red-dark); }
h1, h2, h3, h4 { font-family: var(--ql-font-h); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--ql-red) 55%, #fff); outline-offset: 2px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; border-radius: 6px; }

.ql-wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.ql-narrow { max-width: 860px; }
.ql-center { text-align: center; }
.ql-mt { margin-top: 36px; }
.ql-muted { color: var(--ql-gray); }
.ql-small { font-size: .88rem; }
.ql-ico { flex: none; vertical-align: middle; }
.ql-show-sm { display: none !important; }

/* ---------- Botones ---------- */
.ql-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border-radius: 8px; border: 2px solid transparent;
	font-weight: 600; font-size: .98rem; line-height: 1.2; cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
	white-space: nowrap; text-decoration: none;
}
.ql-btn:hover { transform: translateY(-2px); }
.ql-btn--lg { padding: 14px 26px; font-size: 1.05rem; }
.ql-btn--red { background: var(--ql-grad-red); color: #fff; box-shadow: 0 8px 20px -10px var(--ql-red); }
.ql-btn--red:hover { color: #fff; box-shadow: 0 12px 26px -10px var(--ql-red); }
.ql-btn--dark { background: var(--ql-dark); color: #fff; }
.ql-btn--dark:hover { color: #fff; background: #000; }
.ql-btn--light { background: var(--ql-bg); color: var(--ql-dark); border-color: var(--ql-line); }
.ql-btn--light:hover { color: var(--ql-dark); background: #e9ebee; }
.ql-btn--white { background: #fff; color: var(--ql-red); }
.ql-btn--white:hover { color: var(--ql-red-dark); }
.ql-btn--ghost { background: transparent; color: var(--ql-dark); border-color: var(--ql-line); }
.ql-btn--ghost:hover { color: var(--ql-red); border-color: var(--ql-red); }
.ql-btn--outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.65); backdrop-filter: blur(3px); }
.ql-btn--outline-light:hover { color: var(--ql-dark); background: #fff; }
.ql-btn--wa { background: var(--ql-wa); color: #fff; }
.ql-btn--wa:hover { color: #fff; filter: brightness(1.05); }
.ql-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.ql-link-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* ---------- Barra superior ---------- */
.ql-topbar { background: var(--ql-dark); color: #C9CDD2; font-size: .86rem; }
.ql-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.ql-topbar a, .ql-topbar span { color: #E8EAEC; display: inline-flex; align-items: center; gap: 6px; }
.ql-topbar a:hover { color: #fff; }
.ql-topbar__contact { display: flex; gap: 22px; }
.ql-topbar__contact .ql-ico { color: var(--ql-red); filter: brightness(1.35); }
.ql-topbar__tag { opacity: .85; }

/* ---------- Cabecera ---------- */
.ql-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--ql-line); transition: box-shadow .2s; }
.ql-header.is-scrolled { box-shadow: var(--ql-shadow-sm); }
.admin-bar .ql-header { top: 32px; }
.ql-header__in { display: flex; align-items: center; gap: 24px; height: var(--ql-header-h); }
.ql-brand { flex: none; }
.ql-brand img, .ql-brand .custom-logo { max-height: 54px; width: auto; }
.ql-nav { flex: 1; display: flex; justify-content: center; }
.ql-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.ql-menu > li { position: relative; }
.ql-menu a { display: block; padding: 10px 14px; color: var(--ql-dark); font-weight: 600; font-size: .98rem; border-radius: 6px; position: relative; }
.ql-menu > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--ql-red); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.ql-menu > li > a:hover::after, .ql-menu > .current-menu-item > a::after { transform: scaleX(1); }
.ql-menu a:hover, .ql-menu .current-menu-item > a { color: var(--ql-red); }
.ql-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-radius: var(--ql-radius); box-shadow: var(--ql-shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.ql-menu li:hover > .sub-menu, .ql-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ql-nav__mobile-contact { display: none; }
.ql-header__cta { display: flex; align-items: center; gap: 10px; }
.ql-burger { display: none; background: none; border: 0; color: var(--ql-dark); cursor: pointer; padding: 6px; }
.ql-burger__close { display: none; }

/* ---------- Hero / portada ---------- */
.ql-hero { position: relative; min-height: clamp(520px, 78vh, 760px); background: var(--ql-dark); overflow: hidden; }
.ql-hero__slide {
	position: absolute; inset: 0; overflow: hidden;
	display: flex; align-items: center; opacity: 0; visibility: hidden;
	transition: opacity 1s ease, visibility 1s;
}
.ql-hero__slide.is-active { opacity: 1; visibility: visible; }
.ql-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); }
.ql-hero__slide.is-active .ql-hero__bg { animation: qlZoom 9s ease-out forwards; }
.ql-hero__slide::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, rgba(20,22,25,.92) 0%, rgba(20,22,25,.72) 42%, rgba(20,22,25,.15) 100%),
	            linear-gradient(0deg, rgba(20,22,25,.55) 0%, transparent 40%);
}
.ql-hero__slide::after { content: ""; z-index: 1; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--ql-grad-red); }
@keyframes qlZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.ql-hero__content { position: relative; z-index: 2; color: #fff; padding-top: 40px; padding-bottom: 110px; }
.ql-hero__content > * { max-width: 680px; }
.ql-hero__slide.is-active .ql-hero__content > * { animation: qlUp .8s both; }
.ql-hero__slide.is-active .ql-hero__content > *:nth-child(2) { animation-delay: .12s; }
.ql-hero__slide.is-active .ql-hero__content > *:nth-child(3) { animation-delay: .24s; }
.ql-hero__slide.is-active .ql-hero__content > *:nth-child(4) { animation-delay: .36s; }
@keyframes qlUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.ql-hero__title { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.4rem); text-transform: uppercase; }
.ql-hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #DDE0E3; max-width: 560px; }
.ql-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ql-hero__dots { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 96px; display: flex; gap: 10px; }
.ql-hero__dots button { width: 34px; height: 5px; border-radius: 4px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: .25s; }
.ql-hero__dots button.is-active { background: var(--ql-red); width: 54px; }

.ql-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ql-font-h); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: .92rem; color: var(--ql-red); margin-bottom: 14px; }
.ql-kicker::before { content: ""; width: 28px; height: 3px; background: var(--ql-red); border-radius: 2px; }
.ql-kicker--light { color: #fff; }

/* ---------- Cotizador rápido ---------- */
.ql-quick { position: relative; z-index: 5; margin-top: -64px; }
.ql-quick__card {
	display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr auto; gap: 16px; align-items: end;
	background: #fff; border-radius: 14px; padding: 22px 24px; box-shadow: var(--ql-shadow);
	border-top: 4px solid var(--ql-red);
}
.ql-quick__head { display: flex; gap: 12px; align-items: center; align-self: center; color: var(--ql-red); }
.ql-quick__head strong { display: block; color: var(--ql-dark); font-family: var(--ql-font-h); font-size: 1.35rem; line-height: 1.1; }
.ql-quick__head span { color: var(--ql-gray); font-size: .85rem; }
.ql-quick__f span { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--ql-gray); margin-bottom: 6px; }
.ql-quick__f select, .ql-quick__f input { width: 100%; }

/* ---------- Secciones ---------- */
.ql-section { padding: clamp(64px, 8vw, 104px) 0; }
.ql-section--tight { padding: 56px 0 80px; }
.ql-section--gray { background: var(--ql-bg); }
.ql-head { max-width: 720px; margin: 0 auto 46px; }
.ql-head--center { text-align: center; }
.ql-head--center .ql-kicker { justify-content: center; }
.ql-head p { color: var(--ql-gray); font-size: 1.08rem; }
.ql-head--light h2, .ql-head--light p { color: #fff; }

.ql-grid { display: grid; gap: 24px; }
.ql-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ql-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Cifras */
.ql-stats { padding: 64px 0 8px; }
.ql-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ql-stat { text-align: center; padding: 10px; border-right: 1px solid var(--ql-line); }
.ql-stat:last-child { border-right: 0; }
.ql-stat strong { display: block; font-family: var(--ql-font-h); font-size: clamp(2.4rem, 4vw, 3.3rem); font-weight: 800; line-height: 1; background: var(--ql-grad-red); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ql-stat span { color: var(--ql-gray); font-weight: 500; }

/* Servicios */
.ql-service { background: #fff; border: 1px solid var(--ql-line); border-radius: var(--ql-radius); padding: 30px 28px; transition: .25s; position: relative; overflow: hidden; }
.ql-service::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--ql-grad-red); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.ql-service:hover { box-shadow: var(--ql-shadow); transform: translateY(-4px); border-color: transparent; }
.ql-service:hover::after { transform: scaleX(1); }
.ql-service__icon { width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center; background: var(--ql-red-soft); color: var(--ql-red); margin-bottom: 18px; transition: .25s; }
.ql-service:hover .ql-service__icon { background: var(--ql-grad-red); color: #fff; }
.ql-service p { color: var(--ql-gray); margin: 0; }

/* Unidades mineras */
.ql-mine { background: #fff; border-radius: var(--ql-radius); overflow: hidden; box-shadow: var(--ql-shadow-sm); display: flex; flex-direction: column; transition: .25s; border-top: 3px solid var(--ql-dark); }
.ql-mine:hover { transform: translateY(-4px); box-shadow: var(--ql-shadow); border-top-color: var(--ql-red); }
.ql-mine__img { height: 150px; background-size: cover; background-position: center; }
.ql-mine__body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.ql-mine__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ql-mine__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--ql-dark); color: #fff; display: grid; place-items: center; }
.ql-mine__region { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--ql-red); background: var(--ql-red-soft); padding: 4px 10px; border-radius: 20px; }
.ql-mine h3 { margin-bottom: 2px; font-size: 1.5rem; }
.ql-mine__op { font-size: .86rem; color: var(--ql-gray-2); margin-bottom: 10px; }
.ql-mine p { color: var(--ql-gray); font-size: .95rem; flex: 1; }
.ql-mine__time { font-size: .86rem; color: var(--ql-dark-2); display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.ql-mine__link { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; color: var(--ql-red); }
.ql-mine__link .ql-ico { transition: transform .2s; }
.ql-mine__link:hover .ql-ico, .ql-contact-card:hover .ql-ico:last-child { transform: translateX(4px); }

/* Banners */
.ql-banner { position: relative; background-size: cover; background-position: center; background-attachment: fixed; padding: clamp(90px, 12vw, 150px) 0; }
.ql-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(23,26,29,.9) 0%, rgba(23,26,29,.55) 55%, rgba(200,16,46,.25) 100%); }
.ql-banner--2::before { background: linear-gradient(260deg, rgba(23,26,29,.9) 0%, rgba(23,26,29,.55) 55%, rgba(200,16,46,.25) 100%); }
.ql-banner__in { position: relative; display: flex; }
.ql-banner--2 .ql-banner__in { justify-content: flex-end; }
.ql-banner__box { max-width: 560px; color: #fff; padding-left: 22px; border-left: 4px solid var(--ql-red); }
.ql-banner__box h2 { color: #fff; }
.ql-banner__box p { color: #DADDE0; font-size: 1.12rem; margin-bottom: 26px; }

/* Sedes */
.ql-sede { background: #fff; border: 1px solid var(--ql-line); border-radius: var(--ql-radius); padding: 26px; display: flex; flex-direction: column; transition: .25s; }
.ql-sede:hover { box-shadow: var(--ql-shadow); border-color: transparent; }
.ql-sede__head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--ql-line); }
.ql-sede__head h3 { margin: 0; }
.ql-sede__head span { font-size: .88rem; color: var(--ql-gray); }
.ql-sede__pin { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ql-grad-red); color: #fff; flex: none; }
.ql-checks { list-style: none; margin: 0 0 14px; padding: 0; flex: 1; }
.ql-checks li { position: relative; padding-left: 26px; margin-bottom: 7px; color: var(--ql-dark-2); font-size: .97rem; }
.ql-checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--ql-red); border-bottom: 2.5px solid var(--ql-red); transform: rotate(-45deg); }
.ql-sede__meta { display: grid; gap: 6px; font-size: .9rem; color: var(--ql-gray); }
.ql-sede__meta a, .ql-sede__meta span { display: inline-flex; gap: 8px; align-items: center; color: var(--ql-gray); }
.ql-sede__meta a:hover { color: var(--ql-red); }

/* Mapa */
.ql-section--map { background: linear-gradient(180deg, #fff 0%, var(--ql-bg) 100%); }
.ql-map-wrap { border-radius: 14px; overflow: hidden; box-shadow: var(--ql-shadow); background: #fff; }
.ql-map { height: clamp(380px, 58vh, 560px); width: 100%; background: #e9ecef; }
.ql-map-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 14px 20px; font-size: .92rem; border-top: 1px solid var(--ql-line); }
.ql-map-legend span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ql-map-legend .ql-link-btn { color: var(--ql-gray); }
.ql-map-legend .ql-link-btn.is-active { color: var(--ql-red); font-weight: 700; }
.ql-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.ql-dot--sede { background: var(--ql-red); }
.ql-dot--mina { background: var(--ql-dark); }
.ql-marker { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.ql-marker span { transform: rotate(45deg); color: #fff; font-size: 12px; font-weight: 800; font-family: var(--ql-font-h); }
.ql-marker--sede { background: var(--ql-red); }
.ql-marker--mina { background: var(--ql-dark); }
.leaflet-popup-content { font-family: var(--ql-font); }
.leaflet-popup-content strong { font-family: var(--ql-font-h); font-size: 1.15rem; display: block; }
.leaflet-popup-content small { color: var(--ql-gray); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; font-size: .7rem; }

/* CTA final */
.ql-cta { background: var(--ql-grad-red); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.ql-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(255,255,255,.07); }
.ql-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; z-index: 1; }
.ql-cta h2 { color: #fff; margin-bottom: 8px; }
.ql-cta p { margin: 0; color: rgba(255,255,255,.88); font-size: 1.1rem; }
.ql-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Cabecera de página interna */
.ql-pagehero { position: relative; background-size: cover; background-position: center; padding: clamp(60px, 9vw, 110px) 0 clamp(50px, 7vw, 80px); color: #fff; }
.ql-pagehero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,26,29,.94) 0%, rgba(23,26,29,.7) 60%, rgba(200,16,46,.35) 100%); }
.ql-pagehero .ql-wrap { position: relative; }
.ql-pagehero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); text-transform: uppercase; margin-bottom: 10px; }
.ql-pagehero h1::after { content: ""; display: block; width: 64px; height: 4px; background: var(--ql-red); margin-top: 14px; border-radius: 2px; }
.ql-pagehero p { color: #D7DADE; max-width: 680px; font-size: 1.1rem; margin: 0; }

/* Layout con lateral */
.ql-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.ql-layout__side { display: grid; gap: 20px; position: sticky; top: calc(var(--ql-header-h) + 20px); }
.ql-card { background: #fff; border: 1px solid var(--ql-line); border-radius: var(--ql-radius); padding: 24px; }
.ql-card--dark { background: var(--ql-grad-dark); color: #fff; border: 0; }
.ql-card--dark h3 { color: #fff; }
.ql-card--red { background: var(--ql-grad-red); color: #fff; border: 0; }
.ql-card--red h3 { color: #fff; }
.ql-side-link { display: flex; align-items: center; gap: 10px; color: #E9EBED; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 500; }
.ql-side-link:last-child { border-bottom: 0; }
.ql-side-link:hover { color: #fff; }
.ql-side-link .ql-ico { color: var(--ql-red); filter: brightness(1.35); }
.ql-conditions summary { cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center; list-style: none; font-family: var(--ql-font-h); font-size: 1.2rem; }
.ql-conditions summary::-webkit-details-marker { display: none; }
.ql-conditions summary::after { content: "+"; margin-left: auto; color: var(--ql-red); font-size: 1.5rem; }
.ql-conditions[open] summary::after { content: "–"; }
.ql-conditions > div { margin-top: 12px; font-size: .9rem; color: var(--ql-gray); }
.ql-howto { margin: 0; padding-left: 0; list-style: none; counter-reset: s; }
.ql-howto li { counter-increment: s; position: relative; padding: 0 0 12px 40px; color: var(--ql-gray); }
.ql-howto li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--ql-red-soft); color: var(--ql-red); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }

/* ---------- Formularios ---------- */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=search], input:not([type]), select, textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--ql-line); border-radius: 8px; background: #fff; color: var(--ql-dark);
	transition: border-color .15s, box-shadow .15s; font-size: 16px;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235E656D' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--ql-red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ql-red) 14%, transparent); }
.ql-invalid { border-color: var(--ql-red) !important; background: var(--ql-red-soft) !important; }
.ql-hp { position: absolute; left: -9999px; }

.ql-quote { background: #fff; border-radius: 14px; box-shadow: var(--ql-shadow); overflow: hidden; border: 1px solid var(--ql-line); }
.ql-quote__tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--ql-bg); }
.ql-quote__tab { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 16px; font-weight: 700; cursor: pointer; color: var(--ql-gray); border-bottom: 3px solid transparent; font-family: var(--ql-font-h); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .5px; }
.ql-quote__tab input { position: absolute; opacity: 0; }
.ql-quote__tab:has(input:checked) { background: #fff; color: var(--ql-red); border-bottom-color: var(--ql-red); }
.ql-steps { list-style: none; display: flex; margin: 0; padding: 22px 28px 0; gap: 8px; }
.ql-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ql-gray-2); font-size: .92rem; position: relative; padding-bottom: 12px; border-bottom: 3px solid var(--ql-line); }
.ql-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ql-line); color: var(--ql-gray); font-size: .82rem; font-weight: 800; }
.ql-steps li.is-active, .ql-steps li.is-done { color: var(--ql-dark); border-bottom-color: var(--ql-red); }
.ql-steps li.is-active span, .ql-steps li.is-done span { background: var(--ql-red); color: #fff; }
.ql-form { padding: 24px 28px 28px; }
.ql-form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.ql-form legend { font-family: var(--ql-font-h); font-weight: 700; font-size: 1.4rem; margin-bottom: 16px; padding: 0; }
.ql-step { display: none; }
.ql-step.is-active { display: block; animation: qlUp .35s both; }
.ql-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.ql-field--full { grid-column: 1 / -1; }
.ql-field label, .ql-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ql-dark-2); }
.ql-field[hidden] { display: none; }
.ql-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; cursor: pointer; }
.ql-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ql-red); flex: none; }
.ql-radios { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ql-dims { display: flex; align-items: center; gap: 8px; }
.ql-dims span { color: var(--ql-gray-2); font-weight: 700; }
.ql-calc { display: block; margin-top: 8px; color: var(--ql-red); font-weight: 600; }
.ql-form__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--ql-line); }
.ql-form__msg:not(:empty) { margin: 6px 0 4px; padding: 12px 14px; border-radius: 8px; background: var(--ql-red-soft); color: var(--ql-red-dark); font-weight: 600; }
.ql-form__msg.is-ok { background: #E8F7EE; color: #17703B; }
.ql-quote__done { text-align: center; padding: 46px 28px; }
.ql-done__icon { width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--ql-red-soft); color: var(--ql-red); }
.ql-done__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* Libro de reclamaciones */
.ql-claims-head { display: flex; gap: 18px; align-items: center; background: var(--ql-grad-dark); color: #fff; border-radius: var(--ql-radius); padding: 22px 24px; margin-bottom: 26px; }
.ql-claims-head__icon { width: 70px; height: 70px; border-radius: 12px; background: var(--ql-red); display: grid; place-items: center; flex: none; }
.ql-claims-head strong { display: block; font-family: var(--ql-font-h); font-size: 1.4rem; }
.ql-claims-head span { display: block; color: #C9CDD2; font-size: .92rem; }
#ql-claim-form fieldset { border-bottom: 1px solid var(--ql-line); padding-bottom: 22px; }
#ql-claim-form legend { font-size: 1.2rem; color: var(--ql-red); }

/* Contacto */
.ql-contact-card { display: block; text-align: center; background: #fff; border: 1px solid var(--ql-line); border-radius: var(--ql-radius); padding: 36px 24px; color: var(--ql-dark); transition: .25s; }
.ql-contact-card:hover { color: var(--ql-dark); transform: translateY(-4px); box-shadow: var(--ql-shadow); }
.ql-contact-card__icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--ql-grad-red); color: #fff; }
.ql-contact-card__icon--wa { background: var(--ql-wa); }
.ql-contact-card__icon--dark { background: var(--ql-dark); }
.ql-contact-card p { color: var(--ql-gray); font-size: 1.1rem; }

/* Blog */
.ql-post { background: #fff; border-radius: var(--ql-radius); overflow: hidden; box-shadow: var(--ql-shadow-sm); display: flex; flex-direction: column; transition: .25s; }
.ql-post:hover { box-shadow: var(--ql-shadow); transform: translateY(-3px); }
.ql-post__img { display: block; height: 200px; background-size: cover; background-position: center; }
.ql-post__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.ql-post__body p { color: var(--ql-gray); flex: 1; }
.ql-post__date { font-size: .82rem; color: var(--ql-red); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.ql-post h2 { font-size: 1.45rem; margin: 6px 0 10px; }
.ql-post h2 a { color: var(--ql-dark); }
.ql-post h2 a:hover { color: var(--ql-red); }
.ql-pagination { margin-top: 40px; text-align: center; }
.ql-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; margin: 3px; border-radius: 8px; border: 1px solid var(--ql-line); color: var(--ql-dark); font-weight: 600; }
.ql-pagination .page-numbers.current, .ql-pagination .page-numbers:hover { background: var(--ql-red); color: #fff; border-color: var(--ql-red); }
.ql-postnav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ql-line); font-weight: 600; }
.ql-search { display: flex; gap: 8px; }

/* Contenido editable (editor de bloques) */
.ql-content { font-size: 1.05rem; }
.ql-content > * + * { margin-top: 1em; }
.ql-content h2 { margin-top: 1.5em; }
.ql-content img { border-radius: var(--ql-radius); }
.ql-content blockquote { margin: 1.5em 0; padding: 14px 22px; border-left: 4px solid var(--ql-red); background: var(--ql-bg); border-radius: 0 8px 8px 0; }
.ql-content table { width: 100%; border-collapse: collapse; }
.ql-content th, .ql-content td { border: 1px solid var(--ql-line); padding: 8px 12px; text-align: left; }
.ql-content .wp-block-button__link:not(.has-background) { background: var(--ql-grad-red); }
.ql-content .wp-block-button__link { border-radius: 8px; }
.alignwide { max-width: 1180px; }
.alignfull { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }

/* ---------- Pie de página ---------- */
.ql-footer { background: var(--ql-dark); color: #B9BEC4; font-size: .96rem; padding-top: 70px; }
.ql-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: 40px; padding-bottom: 50px; }
.ql-footer h3 { color: #fff; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.ql-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--ql-red); }
.ql-footer__logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; }
.ql-footer__logo img { max-height: 46px; width: auto; }
.ql-footer__menu, .ql-footer__contact { list-style: none; margin: 0; padding: 0; }
.ql-footer__menu li, .ql-footer__contact li { margin-bottom: 9px; display: flex; gap: 8px; align-items: center; }
.ql-footer a { color: #D5D8DC; }
.ql-footer a:hover { color: #fff; }
.ql-footer__contact a { display: inline-flex; gap: 8px; align-items: center; }
.ql-footer .ql-ico { color: var(--ql-red); filter: brightness(1.35); }
.ql-social { display: flex; gap: 14px; }
.ql-claims-badge { display: inline-flex !important; gap: 12px; align-items: center; margin-top: 14px; background: #fff; color: var(--ql-dark) !important; padding: 10px 16px; border-radius: 8px; border-left: 4px solid var(--ql-red); }
.ql-claims-badge .ql-ico { color: var(--ql-red) !important; filter: none !important; }
.ql-claims-badge strong { display: block; line-height: 1.1; }
.ql-claims-badge small { color: var(--ql-gray); }
.ql-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0 22px; font-size: .86rem; }
.ql-footer__bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.ql-credits-dev { display: block; opacity: .7; font-size: .8rem; }
.ql-legal-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Botones flotantes ---------- */
.ql-float { position: fixed; right: 18px; bottom: 22px; z-index: 95; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.ql-float__btn { display: flex; align-items: center; gap: 0; height: 54px; min-width: 54px; padding: 0 15px; border-radius: 30px; color: #fff; font-weight: 700; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); overflow: hidden; transition: gap .25s, padding .25s, transform .2s; }
.ql-float__btn span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s; }
.ql-float__btn:hover, .ql-float__btn:focus-visible { color: #fff; gap: 10px; padding: 0 20px; transform: translateX(-2px); }
.ql-float__btn:hover span, .ql-float__btn:focus-visible span { max-width: 180px; }
.ql-float__btn--wa { background: var(--ql-wa); }
.ql-float__btn--red { background: var(--ql-grad-red); }
.ql-float__btn--dark { background: var(--ql-dark); }
.ql-float__btn--call { background: var(--ql-dark-2); }
@keyframes qlPulse { 0% { box-shadow: 0 0 0 0 rgba(31,175,90,.5); } 70% { box-shadow: 0 0 0 14px rgba(31,175,90,0); } 100% { box-shadow: 0 0 0 0 rgba(31,175,90,0); } }
.ql-float__btn--wa { animation: qlPulse 2.4s infinite; }

/* ---------- Aviso de cookies ---------- */
.ql-cookie { position: fixed; left: 18px; bottom: 18px; z-index: 99; max-width: 440px; background: #fff; border-radius: 12px; box-shadow: 0 18px 48px -12px rgba(0,0,0,.35); padding: 20px 22px; border-top: 4px solid var(--ql-red); font-size: .92rem; animation: qlUp .4s both; }
.ql-cookie p { margin-bottom: 14px; color: var(--ql-dark-2); }
.ql-cookie__actions { display: flex; gap: 10px; justify-content: flex-end; }
.ql-cookie[hidden] { display: none; }

/* ---------- Animación al hacer scroll ---------- */
.ql-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.ql-reveal.is-in { opacity: 1; transform: none; }
.no-js .ql-reveal, .ql-reveal.no-anim { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.ql-reveal { opacity: 1; transform: none; }
	.ql-banner { background-attachment: scroll; }
}

/* ---------- Impresión de cotización ---------- */
@media print {
	body.ql-printing > *:not(#ql-print-host) { display: none !important; }
	body.ql-printing #ql-print-host { display: block !important; }
	@page { size: A4; margin: 14mm; }
}
#ql-print-host { display: none; }
.qp { font-family: var(--ql-font); color: #222; font-size: 11.5pt; }
.qp__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 4px solid var(--ql-red); padding-bottom: 10px; margin-bottom: 14px; }
.qp__head img { max-height: 54px; width: auto; }
.qp__num { text-align: right; }
.qp__num strong { display: block; font-family: var(--ql-font-h); font-size: 20pt; color: var(--ql-red); }
.qp h2 { font-size: 13pt; background: var(--ql-dark); color: #fff; padding: 5px 10px; margin: 14px 0 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qp table { width: 100%; border-collapse: collapse; }
.qp td { border: 1px solid #ddd; padding: 5px 8px; vertical-align: top; }
.qp td:first-child { width: 34%; background: #f4f5f7; font-weight: 600; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qp__cond { font-size: 9.5pt; border: 1px solid #ddd; padding: 8px 12px; }
.qp__cond p { margin: 0 0 4px; }
.qp__foot { margin-top: 18px; font-size: 9pt; color: #555; display: flex; justify-content: space-between; border-top: 1px solid #ddd; padding-top: 8px; }
.qp__sign { display: flex; gap: 40px; margin-top: 38px; }
.qp__sign div { flex: 1; border-top: 1px solid #333; text-align: center; padding-top: 4px; font-size: 9.5pt; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ql-hide-md { display: none !important; }
	.ql-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.ql-quick__card { grid-template-columns: 1fr 1fr 1fr; }
	.ql-quick__head { grid-column: 1 / -1; }
	.ql-quick__card .ql-btn { grid-column: 1 / -1; }
	.ql-footer__grid { grid-template-columns: 1fr 1fr; }
	.ql-layout { grid-template-columns: 1fr; }
	.ql-layout__side { position: static; }
}

@media (max-width: 900px) {
	:root { --ql-header-h: 66px; }
	.ql-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
	.ql-burger { display: block; }
	.ql-nav {
		position: fixed; inset: var(--ql-nav-top, calc(var(--ql-header-h) + 40px)) 0 0 0; background: #fff; z-index: 89;
		flex-direction: column; justify-content: flex-start; padding: 18px 20px 120px; overflow-y: auto;
		transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
	}
	body.ql-nav-open .ql-nav { transform: none; visibility: visible; }
	body.ql-nav-open { overflow: hidden; }
	body.ql-nav-open .ql-burger__open { display: none; }
	body.ql-nav-open .ql-burger__close { display: block; }
	.ql-menu { flex-direction: column; gap: 0; }
	.ql-menu a { padding: 14px 6px; font-size: 1.15rem; border-bottom: 1px solid var(--ql-line); border-radius: 0; }
	.ql-menu > li > a::after { display: none; }
	.ql-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; }
	.ql-nav__mobile-contact { display: grid; gap: 12px; margin-top: 24px; }
	.ql-nav__mobile-contact a { display: flex; gap: 10px; align-items: center; color: var(--ql-dark); font-weight: 600; }
	.ql-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.ql-stats__grid { grid-template-columns: repeat(2, 1fr); }
	.ql-stat:nth-child(2) { border-right: 0; }
	.ql-cta__in { flex-direction: column; text-align: center; }
	.ql-banner { background-attachment: scroll; }
	.admin-bar .ql-header { top: 46px; }
}

@media (max-width: 640px) {
	body { font-size: 16px; padding-bottom: 66px; }
	.ql-topbar__tag, .ql-hide-sm { display: none !important; }
	.ql-topbar__in { justify-content: center; }
	.ql-topbar__contact { gap: 16px; font-size: .8rem; }
	.ql-show-sm { display: flex !important; }
	.ql-header__cta .ql-btn { padding: 9px 14px; }
	.ql-brand img, .ql-brand .custom-logo { max-height: 42px; }
	.ql-hero { min-height: 600px; }
	.ql-hero__content { padding-bottom: 120px; }
	.ql-hero__slide::before { background: linear-gradient(0deg, rgba(20,22,25,.95) 10%, rgba(20,22,25,.55) 100%); }
	.ql-hero__actions .ql-btn { flex: 1 1 100%; }
	.ql-quick { margin-top: -80px; }
	.ql-quick__card { grid-template-columns: 1fr 1fr; padding: 18px; }
	.ql-quick__card .ql-quick__f:last-of-type { grid-column: 1 / -1; }
	.ql-grid--3, .ql-grid--4 { grid-template-columns: 1fr; }
	.ql-fgrid { grid-template-columns: 1fr; }
	.ql-form { padding: 18px; }
	.ql-steps { padding: 18px 18px 0; }
	.ql-steps li { font-size: .8rem; flex-direction: column; gap: 4px; text-align: center; }
	.ql-quote__tab { font-size: 1rem; padding: 14px 8px; }
	.ql-form__nav .ql-btn { flex: 1; }
	.ql-footer__grid { grid-template-columns: 1fr; gap: 30px; }
	.ql-footer__bottom-in { flex-direction: column; text-align: center; }
	.ql-banner__box { padding-left: 16px; }
	.ql-banner--2 .ql-banner__in { justify-content: flex-start; }
	.ql-banner--2::before { background: linear-gradient(100deg, rgba(23,26,29,.9) 0%, rgba(23,26,29,.6) 100%); }
	/* Barra fija inferior en celular */
	.ql-float { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; background: #fff; box-shadow: 0 -6px 18px -8px rgba(0,0,0,.25); padding: 6px; }
	.ql-float__btn { flex: 1; flex-direction: column; justify-content: center; height: 54px; gap: 2px !important; padding: 0 4px !important; border-radius: 8px; margin: 0 3px; box-shadow: none; font-size: .72rem; animation: none; transform: none !important; }
	.ql-float__btn span { max-width: none; }
	.ql-cookie { left: 10px; right: 10px; bottom: 76px; max-width: none; }
}

/* ==========================================================================
   Blog
   ========================================================================== */
.ql-pagehero--blog { padding-bottom: clamp(44px, 6vw, 70px); }
.ql-back { display: inline-block; color: #DADDE0; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.ql-back:hover { color: #fff; }

.ql-catbar { background: #fff; border-bottom: 1px solid var(--ql-line); position: sticky; top: var(--ql-header-h); z-index: 40; }
.admin-bar .ql-catbar { top: calc(var(--ql-header-h) + 32px); }
.ql-catbar__in { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.ql-catbar__in::-webkit-scrollbar { display: none; }
.ql-catbar__in > a { flex: none; padding: 7px 16px; border-radius: 30px; font-weight: 600; font-size: .92rem; color: var(--ql-dark-2); background: var(--ql-bg); border: 1px solid transparent; transition: .18s; }
.ql-catbar__in > a:hover { color: var(--ql-red); border-color: var(--ql-red); background: #fff; }
.ql-catbar__in > a.is-active { background: var(--ql-grad-red); color: #fff; }
.ql-catbar__search { margin-left: auto; flex: 0 0 240px; }
.ql-catbar__search input { padding: 8px 14px; border-radius: 30px; font-size: .92rem; }

.ql-chip { display: inline-block; font-style: normal; font-size: .74rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; background: var(--ql-red); color: #fff; padding: 5px 11px; border-radius: 20px; }
.ql-chip--static { margin-bottom: 14px; }
.ql-chip--static:hover { color: #fff; background: var(--ql-red-dark); }

.ql-posts--3 { grid-template-columns: repeat(3, 1fr); }
.ql-posts--2 { grid-template-columns: repeat(2, 1fr); }
.ql-posts--3.has-side { grid-template-columns: repeat(2, 1fr); }
.ql-posts--1 { grid-template-columns: 1fr; }
.ql-posts--1 .ql-post { flex-direction: row; }
.ql-posts--1 .ql-post__img { flex: 0 0 36%; height: auto; min-height: 200px; }

.ql-post { position: relative; }
.ql-post__img { position: relative; display: block; height: 210px; overflow: hidden; background: var(--ql-dark); }
.ql-post__img span { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s ease; }
.ql-post:hover .ql-post__img span { transform: scale(1.06); }
.ql-post__img .ql-chip { position: absolute; left: 14px; top: 14px; }
.ql-post__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--ql-gray-2); font-weight: 600; }
.ql-post__meta span { display: inline-flex; gap: 5px; align-items: center; }
.ql-post--featured { display: grid; grid-template-columns: 1.25fr 1fr; margin-bottom: 28px; }
.ql-post--featured .ql-post__img { height: auto; min-height: 340px; }
.ql-post--featured .ql-post__body { padding: 34px 34px; justify-content: center; }
.ql-post--featured h2 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
.ql-layout__main .ql-post--featured { grid-template-columns: 1fr 1fr; }
.ql-layout__main .ql-post--featured h2 { font-size: clamp(1.5rem, 1.9vw, 1.85rem); }

.ql-blog-side { display: grid; gap: 20px; }
.ql-widget { background: #fff; border: 1px solid var(--ql-line); border-radius: var(--ql-radius); padding: 22px; }
.ql-widget__title { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .8px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--ql-line); position: relative; }
.ql-widget__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--ql-red); }
.ql-widget ul { list-style: none; margin: 0; padding: 0; }
.ql-widget li { padding: 7px 0; border-bottom: 1px dashed var(--ql-line); color: var(--ql-gray); }
.ql-widget li:last-child { border-bottom: 0; }
.ql-widget li a { color: var(--ql-dark); font-weight: 500; }
.ql-widget li a:hover { color: var(--ql-red); }
.ql-mini-post { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--ql-dark); }
.ql-mini-post + .ql-mini-post { border-top: 1px dashed var(--ql-line); }
.ql-mini-post__img { flex: 0 0 64px; height: 54px; border-radius: 8px; background-size: cover; background-position: center; }
.ql-mini-post strong { display: block; font-size: .94rem; line-height: 1.3; }
.ql-mini-post small { color: var(--ql-gray-2); }
.ql-mini-post:hover strong { color: var(--ql-red); }
.ql-search input { border-radius: 8px; }

.ql-blog-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--ql-grad-red); color: #fff; border-radius: 12px; padding: 24px 26px; margin: 34px 0; }
.ql-blog-cta strong { font-family: var(--ql-font-h); font-size: 1.45rem; display: block; line-height: 1.15; margin-bottom: 4px; }
.ql-blog-cta p { margin: 0; color: rgba(255,255,255,.88); }
.ql-blog-cta--side { flex-direction: column; align-items: flex-start; margin: 0; }

/* Artículo */
.ql-progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 120; background: transparent; }
.ql-progress span { display: block; height: 100%; width: 0; background: var(--ql-grad-red); transition: width .1s linear; }
.ql-article-hero { position: relative; background-size: cover; background-position: center; color: #fff; padding: clamp(56px, 8vw, 100px) 0 clamp(44px, 6vw, 70px); }
.ql-article-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,22,25,.95) 0%, rgba(20,22,25,.72) 55%, rgba(20,22,25,.55) 100%); }
.ql-article-hero .ql-wrap { position: relative; }
.ql-article-hero .ql-back { display: block; width: max-content; }
.ql-article-hero h1 { max-width: 900px; }
.ql-article-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: 18px; }
.ql-article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; color: #D2D6DA; font-size: .95rem; }
.ql-article-meta span { display: inline-flex; gap: 8px; align-items: center; }
.ql-avatar img { border-radius: 50%; border: 2px solid rgba(255,255,255,.6); }

.ql-article { font-size: 1.1rem; line-height: 1.75; color: #2E3338; }
.ql-article > p:first-of-type { font-size: 1.22rem; color: var(--ql-dark); }
.ql-article h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); margin-top: 1.7em; padding-top: 4px; scroll-margin-top: calc(var(--ql-header-h) + 70px); }
.ql-article h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--ql-red); border-radius: 2px; margin-bottom: 14px; }
.ql-article h3 { margin-top: 1.4em; color: var(--ql-dark); }
.ql-article ul, .ql-article ol { padding-left: 1.3em; }
.ql-article li { margin-bottom: .45em; }
.ql-article li::marker { color: var(--ql-red); font-weight: 700; }
.ql-article a { text-decoration: underline; text-underline-offset: 3px; }
.ql-article blockquote p { margin: 0; font-size: 1.15rem; font-weight: 500; color: var(--ql-dark); }
.ql-article .ql-sources, .ql-article .ql-note { font-size: .92rem; color: var(--ql-gray); }
.ql-article strong { color: var(--ql-dark); }
.ql-article figure { margin: 1.6em 0; }
.ql-article figcaption { font-size: .88rem; color: var(--ql-gray); text-align: center; }

.ql-toc { background: var(--ql-bg); border-left: 4px solid var(--ql-red); border-radius: 0 10px 10px 0; padding: 16px 20px; margin-bottom: 30px; }
.ql-toc summary { font-family: var(--ql-font-h); font-weight: 700; font-size: 1.15rem; cursor: pointer; text-transform: uppercase; letter-spacing: .6px; }
.ql-toc ol { margin: 12px 0 0; padding-left: 1.2em; columns: 2; column-gap: 28px; }
.ql-toc li { margin-bottom: 6px; break-inside: avoid; }
.ql-toc a { color: var(--ql-dark-2); font-weight: 500; }
.ql-toc a:hover, .ql-toc a.is-current { color: var(--ql-red); }

.ql-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.ql-tags a { font-size: .85rem; padding: 5px 12px; border-radius: 20px; background: var(--ql-bg); color: var(--ql-dark-2); }
.ql-tags a::before { content: "#"; color: var(--ql-red); }
.ql-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 16px 0; border-top: 1px solid var(--ql-line); border-bottom: 1px solid var(--ql-line); }
.ql-share > span { font-weight: 700; margin-right: 6px; }
.ql-share a, .ql-share button { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; border: 0; cursor: pointer; transition: transform .18s; }
.ql-share a:hover, .ql-share button:hover { transform: translateY(-2px); color: #fff; }
.ql-share__wa { background: var(--ql-wa); }
.ql-share__in { background: #0A66C2; }
.ql-share__fb { background: #1877F2; }
.ql-share__copy { background: var(--ql-dark); position: relative; }
.ql-share__copy em { position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%); background: var(--ql-dark); font-style: normal; font-size: .75rem; padding: 3px 8px; border-radius: 4px; opacity: 0; pointer-events: none; transition: .2s; white-space: nowrap; }
.ql-share__copy.is-done em { opacity: 1; }
.ql-author-box { display: flex; gap: 18px; align-items: center; background: var(--ql-bg); border-radius: var(--ql-radius); padding: 20px; margin-top: 26px; }
.ql-author-box img { border-radius: 50%; }
.ql-author-box p { margin: 4px 0 0; color: var(--ql-gray); font-size: .95rem; }
.ql-comments { margin-top: 40px; }
.ql-comment-list { list-style: none; padding: 0; }
.ql-comment-list .comment-body { background: var(--ql-bg); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.ql-comment-list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-respond { margin-top: 26px; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.comment-form p { margin-bottom: 14px; }

/* Plantillas de página */
.ql-fullwidth > * { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.ql-fullwidth > .alignfull { max-width: none; padding-left: 0; padding-right: 0; width: 100%; left: auto; transform: none; }
.ql-fullwidth > :not(.alignfull):first-child { margin-top: 48px; }
.ql-fullwidth > :not(.alignfull):last-child { margin-bottom: 64px; }
.ql-fullwidth .wp-block-cover.alignfull .wp-block-cover__inner-container, .ql-fullwidth .wp-block-group.alignfull > * { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.ql-content--wide { max-width: 1180px; }
.ql-canvas { padding-bottom: 0 !important; }
.ql-canvas__main { min-height: 100vh; }
.ql-content .wp-block-button__link { border-radius: 8px; font-weight: 600; padding: 13px 24px; }
.ql-content .wp-block-details { border: 1px solid var(--ql-line); border-radius: 8px; padding: 14px 18px; }
.ql-content .wp-block-details summary { font-weight: 700; cursor: pointer; }
.ql-content .wp-block-cover h2 { color: #fff; }

@media (max-width: 1100px) {
	.ql-posts--3, .ql-posts--3.has-side { grid-template-columns: repeat(2, 1fr); }
	.ql-post--featured, .ql-layout__main .ql-post--featured { grid-template-columns: 1fr; }
	.ql-post--featured .ql-post__img { min-height: 260px; }
}
@media (max-width: 900px) {
	.ql-catbar__search { flex-basis: 180px; }
	.admin-bar .ql-catbar { top: calc(var(--ql-header-h) + 46px); }
}
@media (max-width: 640px) {
	.ql-posts--3, .ql-posts--3.has-side, .ql-posts--2 { grid-template-columns: 1fr; }
	.ql-posts--1 .ql-post { flex-direction: column; }
	.ql-posts--1 .ql-post__img { min-height: 190px; }
	.ql-post--featured .ql-post__body { padding: 22px; }
	.ql-catbar__search { display: none; }
	.ql-toc ol { columns: 1; }
	.ql-blog-cta { flex-direction: column; align-items: flex-start; }
	.ql-article { font-size: 1.04rem; }
}
