/* ==========================================================================
   Shopimasters · ChatGPT Ads
   Sistema: secciones que alternan oscuro (#1A191B) y claro (#F3F3F3),
   Instrument Sans, un verde (#0EE182) solo para acción, plano y sin sombras.
   ========================================================================== */

@font-face {
	font-family: "Instrument Sans";
	src: url("../fonts/instrument-sans.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--green-500: #0ee182;
	--green-600: #02b26a;
	--black-900: #1a191b;
	--black-800: #25242a;
	--gray-050: #f3f3f3;
	--white: #ffffff;
	--glow: rgba(14, 225, 130, 0.2);
	--card-dark: rgba(126, 127, 135, 0.11);
	--input-border: rgba(255, 255, 255, 0.36);
	--placeholder: #9a9a9a;

	--font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--space-6: 6px;
	--space-12: 12px;
	--space-16: 16px;
	--space-20: 20px;
	--space-24: 24px;
	--space-30: 30px;
	--space-48: 48px;
	--space-64: 64px;
	--space-100: 100px;

	--radius-6: 6px;
	--radius-8: 8px;
	--radius-16: 16px;

	--container: 1200px;
	--container-narrow: 750px;
	--header-h: 80px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);

	--section-pad: var(--space-100);
	--gutter: 20px;

	color-scheme: dark;
}

/* Contexto de cada sección */
.smg-tone--dark {
	--surface: var(--black-900);
	--ink: var(--white);
	--ink-soft: rgba(255, 255, 255, 0.8);
	--card: var(--card-dark);
	--icon: var(--green-500);
	--line: rgba(255, 255, 255, 0.12);
	background: var(--surface);
	color: var(--ink);
}

.smg-tone--light {
	--surface: var(--gray-050);
	--ink: var(--black-900);
	--ink-soft: rgba(26, 25, 27, 0.78);
	--card: var(--white);
	--icon: var(--green-600);
	--line: rgba(26, 25, 27, 0.1);
	background: var(--surface);
	color: var(--ink);
	color-scheme: light;
}

/* Base ------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--black-900);
	color: var(--white);
	font-family: var(--font);
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text,
.smg-hp {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap;
}

.smg-skip {
	position: fixed; left: 16px; top: -60px; z-index: 100;
	background: var(--green-500); color: var(--black-900);
	padding: 10px 16px; border-radius: var(--radius-8); font-weight: 700; text-decoration: none;
	transition: top 0.2s;
}
.smg-skip:focus { top: 16px; }

/* Layout ----------------------------------------------------------------- */

.smg-container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.smg-narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.smg-section {
	position: relative;
	padding-block: var(--section-pad);
	overflow: hidden;
	isolation: isolate;
}
/* Dos secciones seguidas del mismo tono comparten el aire */
.smg-tone--dark + .smg-tone--dark,
.smg-tone--light + .smg-tone--light { padding-top: 0; }
.elementor-element:has(> .smg-tone--dark) + .elementor-element:has(> .smg-tone--dark) > .smg-section,
.elementor-element:has(> .smg-tone--light) + .elementor-element:has(> .smg-tone--light) > .smg-section,
.e-con:has(.smg-tone--dark) + .e-con:has(.smg-tone--dark) .smg-section,
.e-con:has(.smg-tone--light) + .e-con:has(.smg-tone--light) .smg-section { padding-top: 0; }

.smg-grid { display: grid; gap: var(--space-20); }
.smg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.smg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.smg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.smg-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--space-64);
	align-items: center;
}
.smg-split__copy { display: grid; gap: var(--space-24); align-content: start; min-width: 0; }

.smg-head { display: grid; gap: var(--space-16); margin-bottom: var(--space-48); max-width: 820px; }
.smg-head--center { margin-inline: auto; text-align: center; }
.smg-head--row { max-width: none; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: var(--space-48); }
.smg-head__text { color: var(--ink-soft); }
.smg-center { display: flex; justify-content: center; margin-top: var(--space-48); }
.smg-center-text { text-align: center; }
.smg-center-text .smg-prose { margin-top: var(--space-24); }

/* Tipografía ------------------------------------------------------------- */

.smg-h1 { font-size: clamp(34px, 1.6rem + 1.9vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.smg-h2 { font-size: clamp(30px, 1.6rem + 0.8vw, 36px); line-height: 1.167; font-weight: 600; }
.smg-h3 { font-size: clamp(20px, 1rem + 0.8vw, 27px); line-height: 1.12; font-weight: 600; }
.smg-h4 { font-size: 18px; line-height: 21px; font-weight: 500; }
.smg-lead { font-size: 18px; line-height: 28px; color: var(--ink-soft); max-width: 60ch; }
.smg-prose { display: grid; gap: var(--space-16); color: var(--ink-soft); max-width: 62ch; }
.smg-center-text .smg-prose, .smg-center-text .smg-lead { margin-inline: auto; }

.smg-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 14px; line-height: 21px; font-weight: 500;
	padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--card);
	width: max-content; max-width: 100%;
}
.smg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 0 var(--glow); animation: smg-pulse 2.4s infinite; }
@keyframes smg-pulse { 0% { box-shadow: 0 0 0 0 rgba(14, 225, 130, 0.5); } 70% { box-shadow: 0 0 0 10px rgba(14, 225, 130, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 225, 130, 0); } }

.smg-link { color: var(--green-500); text-decoration: none; font-size: 14px; line-height: 21px; }
.smg-tone--light .smg-link { color: var(--green-600); }
a.smg-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Botones ---------------------------------------------------------------- */

.smg-actions { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.smg-actions--center { justify-content: center; }

.smg-btn {
	--btn-bg: var(--green-500);
	--btn-ink: var(--black-900);
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 16px 24px;
	border: 0; border-radius: var(--radius-8);
	background: var(--btn-bg); color: var(--btn-ink);
	font-size: 18px; line-height: 21px; font-weight: 700;
	text-decoration: none; cursor: pointer;
	transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
	will-change: transform;
}
.smg-btn .smg-icon { width: 20px; height: 20px; transition: transform 0.3s var(--ease); }
.smg-btn:hover { --btn-bg: var(--white); }
.smg-btn:hover .smg-icon { transform: translateX(4px); }
.smg-btn:active { transform: scale(0.98); }
.smg-btn--ghost { --btn-bg: var(--card); --btn-ink: var(--ink); }
.smg-btn--ghost:hover { --btn-bg: var(--white); --btn-ink: var(--black-900); }
.smg-tone--light .smg-btn:hover { --btn-bg: var(--black-900); --btn-ink: var(--white); }
.smg-btn--sm { font-size: 14px; padding: 12px 18px; }
.smg-btn--block { width: 100%; }

/* Header ----------------------------------------------------------------- */

.smg-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	padding-top: env(safe-area-inset-top, 0px);
	transition: background-color 0.3s, backdrop-filter 0.3s;
}
.smg-header.is-scrolled,
.smg-header.is-open { background: rgba(26, 25, 27, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.smg-header__inner { height: var(--header-h); display: flex; align-items: center; gap: var(--space-24); }
.admin-bar .smg-header { top: 32px; }

.smg-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); flex: none; }
.smg-logo img { width: 181px; height: auto; }
.smg-logo__mark { width: 38px; height: 38px; color: #09dd8c; }
.smg-logo__mark .smg-icon { width: 100%; height: 100%; }
.smg-logo__text { display: grid; font-size: 21px; line-height: 1; font-weight: 700; letter-spacing: -0.01em; }
.smg-logo__text small { font-size: 11px; line-height: 1.4; font-weight: 500; letter-spacing: 0.04em; opacity: 0.85; }
.smg-logo--positivo { color: var(--black-900); }

.smg-nav { margin-left: auto; }
.smg-header__inner .smg-nav + .smg-header__cta { margin-left: 0; }
.smg-nav__list { display: flex; gap: var(--space-30); }
.smg-nav__list a { position: relative; text-decoration: none; font-size: 16px; line-height: 20px; padding-block: 8px; }
.smg-nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
	background: var(--green-500); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.smg-nav__list a:hover::after,
.smg-nav__list .current-menu-item a::after { transform: scaleX(1); }
.smg-nav__cta-mobile { display: none; }
.smg-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: var(--radius-8); background: var(--card-dark); color: var(--white); cursor: pointer; place-items: center; }
.smg-burger .smg-icon { width: 24px; height: 24px; }
.smg-burger__close { display: none; }
.is-open .smg-burger__open { display: none; }
.is-open .smg-burger__close { display: block; }

/* Glow ------------------------------------------------------------------- */

.smg-glow { position: absolute; z-index: -1; border-radius: 50%; background: var(--glow); filter: blur(100px); pointer-events: none; }
.smg-glow--hero { width: 760px; height: 760px; right: -220px; top: -160px; animation: smg-float 14s ease-in-out infinite alternate; }
.smg-glow--logos { width: 620px; height: 320px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
@keyframes smg-float { to { transform: translate(-120px, 80px) scale(1.1); } }

/* Hero ------------------------------------------------------------------- */

.smg-section--hero { padding-top: calc(var(--header-h) + 72px); }
.smg-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-64); align-items: center; }
.smg-hero__copy { display: grid; gap: var(--space-24); min-width: 0; }
.smg-hero--page { display: grid; grid-template-columns: 1fr; gap: var(--space-24); justify-items: center; }
.smg-section--contact-hero { padding-top: calc(var(--header-h) + 80px); }
.smg-page-hero { padding-top: calc(var(--header-h) + 64px); padding-bottom: var(--space-64); }

.smg-hero__stage { position: relative; display: grid; gap: var(--space-16); min-width: 0; }

.smg-chat { background: var(--card); border-radius: var(--radius-16); overflow: hidden; }
.smg-chat__bar { display: flex; align-items: center; gap: 6px; padding: 14px 18px; background: rgba(126, 127, 135, 0.09); font-size: 13px; }
.smg-chat__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.smg-chat__bar em { margin-left: 8px; font-style: normal; font-weight: 600; opacity: 0.8; }
.smg-chat__body { display: grid; gap: var(--space-16); padding: var(--space-24); min-height: 360px; align-content: start; }
.smg-chat__msg { font-size: 15px; line-height: 23px; }
.smg-chat__msg--user { justify-self: end; max-width: 86%; background: rgba(255, 255, 255, 0.08); padding: 12px 16px; border-radius: 18px 18px 4px 18px; }
.smg-chat__msg--bot { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--ink-soft); }
.smg-chat__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--white); color: var(--black-900); display: grid; place-items: center; }
.smg-chat__avatar .smg-icon { width: 18px; height: 18px; }

.smg-ad {
	position: relative; display: grid; gap: 12px; padding: 16px; margin-left: 42px;
	background: rgba(14, 225, 130, 0.08); border-radius: var(--radius-16);
	outline: 1px solid rgba(14, 225, 130, 0.35); outline-offset: -1px;
}
.smg-ad__label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; color: var(--green-500); }
.smg-ad__row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; }
.smg-ad__thumb { width: 52px; height: 52px; border-radius: 12px; background: var(--green-500); color: var(--black-900); display: grid; place-items: center; }
.smg-ad__thumb .smg-icon { width: 26px; height: 26px; }
.smg-ad__copy { display: grid; gap: 2px; min-width: 0; }
.smg-ad__copy strong { font-size: 16px; line-height: 21px; }
.smg-ad__copy span { font-size: 13px; line-height: 19px; color: var(--ink-soft); }
.smg-ad__cta { justify-self: start; background: var(--white); color: var(--black-900); font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: var(--radius-8); }

/* Pasos de la conversación (JS los muestra en orden) */
.smg-js [data-chat] [data-chat-step] { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.smg-js [data-chat] [data-chat-step].is-on { opacity: 1; transform: none; }
.smg-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.smg-typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; animation: smg-typing 1s infinite; }
.smg-typing i:nth-child(2) { animation-delay: 0.15s; }
.smg-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes smg-typing { 50% { opacity: 1; transform: translateY(-3px); } }

.smg-stats { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.smg-stat { display: grid; gap: 4px; background: var(--card); border-radius: var(--radius-16); padding: 16px; }
.smg-stat__label { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.smg-stat__value { font-size: 28px; line-height: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.smg-stats__note { grid-column: 1 / -1; font-size: 12px; line-height: 16px; opacity: 0.6; text-align: right; }

/* Cards ------------------------------------------------------------------ */

.smg-card {
	position: relative;
	background: var(--card);
	border-radius: var(--radius-16);
	padding: var(--space-30);
	min-width: 0;
}
.smg-card--pad { padding: var(--space-24); }

/* Foco de luz que sigue al cursor (solo con ratón) */
.smg-card[data-tilt]::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(14, 225, 130, 0.14), transparent 60%);
	opacity: 0; transition: opacity 0.3s;
}
.smg-card[data-tilt]:hover::before { opacity: 1; }

/* Problemas: igual que agenciaamazonads.es (sin card, número grande translúcido detrás del título) */
.smg-head--wide { max-width: none; }
.smg-problems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-48) var(--space-48); }
.smg-problem { position: relative; display: grid; gap: var(--space-20); align-content: start; }
.smg-problem__num {
	display: block; font-size: 120px; line-height: 0.82; font-weight: 700; letter-spacing: -0.03em;
	color: rgba(255, 255, 255, 0.14); margin-bottom: -46px; user-select: none;
	-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.smg-problem__title { position: relative; font-size: clamp(22px, 1rem + 1vw, 30px); line-height: 1.2; font-weight: 600; }
.smg-problem p { position: relative; font-size: 17px; line-height: 26px; }
.smg-glow--corner-a { width: 720px; height: 520px; left: -320px; bottom: -260px; background: rgba(14, 225, 130, 0.22); }
.smg-glow--corner-b { width: 720px; height: 620px; right: -280px; top: -200px; background: rgba(14, 225, 130, 0.24); }
.smg-problem p { color: var(--ink-soft); }
.smg-service p, .smg-audience p, .smg-benefit p, .smg-step p, .smg-city p, .smg-office p { color: var(--ink-soft); }

.smg-service { display: grid; gap: var(--space-16); align-content: start; transition: transform 0.5s var(--ease); transform-style: preserve-3d; }
.smg-service__icon { width: 56px; height: 56px; color: var(--icon); }
.smg-service__icon .smg-icon { width: 100%; height: 100%; stroke-width: 1.3; }

.smg-audience { display: grid; gap: var(--space-16); align-content: start; padding: var(--space-48); }
.smg-checks { display: grid; gap: 10px; margin-top: var(--space-6); }
.smg-checks li { display: flex; gap: 10px; align-items: flex-start; }
.smg-checks .smg-icon { width: 20px; height: 20px; color: var(--icon); flex: none; margin-top: 2px; }

.smg-benefits { gap: var(--space-48); }
.smg-benefit { display: grid; gap: var(--space-12); align-content: start; padding-top: var(--space-24); border-top: 2px solid var(--line); position: relative; }
.smg-benefit::after { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--icon); transition: width 1.2s var(--ease) 0.2s; }
.smg-benefit.is-in::after, .smg-nojs .smg-benefit::after { width: 64px; }
.smg-benefit__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--icon); color: var(--surface); display: grid; place-items: center; }
.smg-benefit__icon .smg-icon { width: 20px; height: 20px; stroke-width: 2.2; }

/* Gráfico ---------------------------------------------------------------- */

.smg-chart { margin: 0; display: grid; gap: var(--space-16); }
.smg-chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.smg-chart figcaption strong { font-size: 32px; line-height: 1; color: var(--icon); font-variant-numeric: tabular-nums; }
.smg-chart svg { width: 100%; height: auto; overflow: visible; }
.smg-chart__grid line { stroke: var(--line); stroke-width: 1; }
.smg-chart__area { fill: rgba(14, 225, 130, 0.14); }
.smg-chart__line { fill: none; stroke: var(--icon); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.smg-chart__dot { fill: var(--icon); }
.smg-chart text { fill: var(--ink-soft); font-size: 12px; font-family: var(--font); }
.smg-chart__note { font-size: 12px; opacity: 0.65; }
.smg-js .smg-chart:not(.is-in) .smg-chart__line { stroke-dashoffset: 1; }
.smg-js .smg-chart .smg-chart__line { transition: stroke-dashoffset 1.8s var(--ease) 0.2s; }
.smg-js .smg-chart:not(.is-in) .smg-chart__area,
.smg-js .smg-chart:not(.is-in) .smg-chart__dot { opacity: 0; }
.smg-chart__area, .smg-chart__dot { transition: opacity 0.8s ease 1.4s; }

/* Pestañas --------------------------------------------------------------- */

.smg-tabs { display: grid; gap: var(--space-20); }
.smg-tabs__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.smg-tabs__tab {
	position: relative; overflow: hidden;
	display: grid; gap: 4px; text-align: left;
	padding: 18px 20px; border: 0; border-radius: var(--radius-16);
	background: var(--card); color: var(--ink); cursor: pointer;
	font-size: 18px; line-height: 21px; font-weight: 500;
	transition: background-color 0.3s, color 0.3s;
}
.smg-tabs__tag { font-size: 13px; font-weight: 700; color: var(--icon); letter-spacing: 0.02em; }
.smg-tabs__tab[aria-selected="true"] { background: var(--black-900); color: var(--white); }
.smg-tabs__tab[aria-selected="true"] .smg-tabs__tag { color: var(--green-500); }
.smg-tabs__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--green-500); }
.smg-tabs__tab[aria-selected="true"] .smg-tabs__bar { animation: smg-bar var(--tab-time, 6s) linear forwards; }
.smg-tabs.is-paused .smg-tabs__bar { animation-play-state: paused; }
@keyframes smg-bar { to { width: 100%; } }
.smg-tabs__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-48); align-items: center; padding: var(--space-48); min-height: 240px; }
.smg-tabs__panel:not([hidden]) { animation: smg-in 0.6s var(--ease); }
.smg-tabs__panel > div { display: grid; gap: var(--space-12); }
.smg-tabs__panel p { color: var(--ink-soft); font-size: 18px; line-height: 28px; }
.smg-tabs__big { font-size: clamp(64px, 3rem + 5vw, 132px); line-height: 0.9; font-weight: 700; letter-spacing: -0.04em; color: var(--icon); }
@keyframes smg-in { from { opacity: 0; transform: translateY(10px); } }

/* Logos ------------------------------------------------------------------ */

.smg-section--logos .smg-head { margin-bottom: var(--space-30); }
.smg-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.smg-marquee__track { display: flex; width: max-content; animation: smg-marquee 36s linear infinite; }
.smg-marquee:hover .smg-marquee__track { animation-play-state: paused; }
.smg-marquee li { flex: none; display: grid; place-items: center; height: 80px; padding-inline: 48px; }
.smg-marquee span { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; opacity: 0.85; white-space: nowrap; }
.smg-marquee img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
@keyframes smg-marquee { to { transform: translateX(-50%); } }

/* Proceso ---------------------------------------------------------------- */

.smg-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-20); --p: 0; }
.smg-steps__rail { position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: var(--line); }
.smg-steps__rail i { position: absolute; inset: 0; background: var(--green-500); transform-origin: left; transform: scaleX(var(--p)); }
.smg-nojs .smg-steps__rail i { transform: none; }
.smg-step { position: relative; display: grid; gap: var(--space-12); align-content: start; }
.smg-step__num {
	width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
	background: var(--black-900); color: var(--white); font-size: 20px; font-weight: 700;
	outline: 2px solid var(--line); outline-offset: -2px; margin-bottom: var(--space-12);
	transition: background-color 0.4s, color 0.4s, outline-color 0.4s;
}
.smg-step.is-active .smg-step__num { background: var(--green-500); color: var(--black-900); outline-color: var(--green-500); }

/* Medición (esquema animado) --------------------------------------------- */

.smg-list { display: grid; gap: var(--space-24); }
.smg-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-16); }
.smg-list li > div { display: grid; gap: 6px; }
.smg-list p { color: var(--ink-soft); }
.smg-list__icon { width: 32px; height: 32px; border-radius: 50%; background: var(--card); color: var(--icon); display: grid; place-items: center; }
.smg-list__icon .smg-icon { width: 18px; height: 18px; stroke-width: 2.2; }

.smg-flow { display: grid; justify-items: center; gap: 0; padding: var(--space-48) var(--space-30); }
.smg-flow__node { display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-8); background: rgba(255, 255, 255, 0.06); font-weight: 600; font-size: 15px; }
.smg-flow__node .smg-icon { width: 22px; height: 22px; color: var(--green-500); }
.smg-flow__node--src { background: var(--green-500); color: var(--black-900); }
.smg-flow__node--src .smg-icon { color: var(--black-900); }
.smg-flow__node--out { background: var(--white); color: var(--black-900); }
.smg-flow__node--out .smg-icon { color: var(--green-600); }
.smg-flow__node--sm { font-size: 14px; padding: 12px 14px; }
.smg-flow__pipe { position: relative; width: 2px; height: 44px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.smg-flow__pipe i { position: absolute; left: -2px; width: 6px; height: 14px; border-radius: 3px; background: var(--green-500); animation: smg-drop 1.8s var(--ease) infinite; }
.smg-flow__fork, .smg-flow__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); justify-items: center; width: 100%; max-width: 380px; }
@keyframes smg-drop { from { top: -14px; } to { top: 44px; } }

/* Casos ------------------------------------------------------------------ */

.smg-case { display: grid; grid-template-columns: minmax(0, 389px) minmax(0, 1fr); gap: var(--space-48); align-items: center; }
.smg-case__media { aspect-ratio: 389 / 545; max-width: 100%; border-radius: var(--radius-16); overflow: hidden; background: radial-gradient(120% 80% at 80% 10%, rgba(14, 225, 130, 0.35), transparent 60%), linear-gradient(160deg, #25242a, #1a191b); position: relative; }
.smg-case__media img { width: 100%; height: 100%; object-fit: cover; }
.smg-case__placeholder { position: absolute; inset: auto 24px 24px; color: var(--white); font-size: 28px; line-height: 1.1; font-weight: 700; }
.smg-case__body { display: grid; gap: var(--space-12); }
.smg-case__service { color: var(--ink-soft); }
.smg-case__facts { display: grid; gap: var(--space-20); margin: var(--space-24) 0 0; }
.smg-case__facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-20); padding-top: var(--space-20); border-top: 1px solid var(--line); }
.smg-case__facts dt { font-weight: 700; }
.smg-case__facts dd { margin: 0; color: var(--ink-soft); }

.smg-cases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-20); margin-top: var(--space-64); align-items: end; }
.smg-mini { display: grid; gap: var(--space-6); }
.smg-mini__img { display: block; height: calc(var(--h, 160) * 1px); border-radius: var(--radius-16); overflow: hidden; margin-bottom: var(--space-12); background: linear-gradient(160deg, var(--white), #dfe6e2); transition: transform 0.5s var(--ease); }
.smg-mini:nth-child(2n) .smg-mini__img { background: linear-gradient(160deg, #1a191b, #3a3940); }
.smg-mini:hover .smg-mini__img { transform: translateY(-6px); }
.smg-mini__img img { width: 100%; height: 100%; object-fit: cover; }
.smg-mini__img { display: grid; place-items: center; font-size: 40px; font-weight: 700; color: var(--green-600); }
.smg-mini:nth-child(2n) .smg-mini__img { color: var(--green-500); }
.smg-mini strong { font-size: 18px; line-height: 24px; }
.smg-mini > span:last-child { color: var(--ink-soft); }

/* Cita ------------------------------------------------------------------- */

.smg-quote { text-align: center; display: grid; gap: var(--space-30); }
.smg-quote blockquote { margin: 0; display: grid; gap: var(--space-24); justify-items: center; }
.smg-quote blockquote p { font-size: clamp(20px, 1rem + 0.8vw, 27px); line-height: 1.35; font-weight: 500; }
.smg-quote footer { display: flex; gap: 14px; align-items: center; text-align: left; }
.smg-quote footer strong { display: block; font-size: 18px; line-height: 24px; }
.smg-quote footer em { font-style: normal; color: var(--ink-soft); }
.smg-avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--green-500); color: var(--black-900); font-weight: 700; font-size: 22px; }
.smg-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Acordeón --------------------------------------------------------------- */

.smg-accordion { display: grid; padding: var(--space-12) var(--space-24); }
.smg-acc + .smg-acc { border-top: 1px solid var(--line); }
.smg-acc summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 18px; line-height: 21px; font-weight: 500; }
.smg-acc summary::-webkit-details-marker { display: none; }
.smg-acc summary .smg-icon { width: 22px; height: 22px; flex: none; transition: transform 0.35s var(--ease); }
.smg-acc[open] summary { color: var(--green-500); }
.smg-tone--light .smg-acc[open] summary { color: var(--green-600); }
.smg-acc[open] summary .smg-icon { transform: rotate(180deg); }
.smg-acc__body { overflow: hidden; }
.smg-acc__body p { padding: 0 0 22px; color: var(--ink-soft); max-width: 62ch; }

/* Ciudades y oficinas ---------------------------------------------------- */

.smg-city { display: grid; gap: 10px; align-content: start; }
.smg-city__icon { width: 28px; height: 28px; color: var(--icon); }
.smg-office { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-20); align-items: start; }
.smg-office > div { display: grid; gap: 8px; }

.smg-placeholder { padding: var(--space-30); border-radius: var(--radius-16); background: var(--card); color: var(--ink-soft); }
.smg-reviews { margin-top: var(--space-30); }

/* Formulario ------------------------------------------------------------- */

.smg-formwrap { align-items: start; }
.smg-contact-list { display: grid; gap: 14px; margin-top: var(--space-12); }
.smg-contact-list li { display: flex; gap: 12px; align-items: center; }
.smg-contact-list .smg-icon { width: 22px; height: 22px; color: var(--icon); flex: none; }
.smg-contact-list a { text-decoration: none; }
.smg-contact-list a:hover { color: var(--icon); }

.smg-form { display: grid; gap: var(--space-20); }
.smg-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16) var(--space-20); }
.smg-field { display: grid; gap: 8px; min-width: 0; }
.smg-field--full { grid-column: 1 / -1; }
.smg-field label, .smg-check label { font-size: 16px; line-height: 16px; font-weight: 500; }
.smg-field abbr, .smg-check abbr { color: var(--green-500); text-decoration: none; }
.smg-field input, .smg-field select, .smg-field textarea,
.smg-wpforms input[type="text"], .smg-wpforms input[type="email"], .smg-wpforms input[type="tel"], .smg-wpforms select, .smg-wpforms textarea {
	width: 100%; padding: 16px; border-radius: var(--radius-8);
	background: var(--card-dark); border: 0.8px solid var(--input-border); color: var(--ink);
	font-size: 16px; line-height: 20px; transition: border-color 0.2s, background-color 0.2s;
}
.smg-tone--light .smg-field input, .smg-tone--light .smg-field select, .smg-tone--light .smg-field textarea { background: var(--gray-050); border-color: rgba(26, 25, 27, 0.25); }
.smg-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.smg-field option { color: var(--black-900); }
.smg-field textarea { resize: vertical; min-height: 120px; }
.smg-field input::placeholder, .smg-field textarea::placeholder { color: var(--placeholder); }
.smg-field input:focus, .smg-field select:focus, .smg-field textarea:focus { outline: none; border-color: var(--green-500); background-color: rgba(14, 225, 130, 0.06); }
.smg-field.is-invalid input, .smg-field.is-invalid select { border-color: #ff6b6b; }
.smg-check { display: flex; gap: 12px; align-items: flex-start; }
.smg-check input { width: 20px; height: 20px; accent-color: var(--green-500); margin: 0; flex: none; }
.smg-check label { line-height: 20px; font-weight: 400; font-size: 14px; }
.smg-check a { color: var(--green-500); }
.smg-form__msg { padding: 14px 16px; border-radius: var(--radius-8); font-weight: 500; }
.smg-form__msg--ok { background: rgba(14, 225, 130, 0.14); color: var(--ink); }
.smg-form__msg--error { background: rgba(255, 107, 107, 0.14); }
.smg-wpforms .wpforms-submit { background: var(--green-500) !important; color: var(--black-900) !important; border: 0 !important; border-radius: var(--radius-8) !important; padding: 16px 24px !important; font-weight: 700 !important; font-size: 18px !important; height: auto !important; }

/* Footer ----------------------------------------------------------------- */

.smg-footer { padding-top: var(--space-64); }
.smg-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-48); padding-bottom: var(--space-64); }
.smg-footer__brand { display: grid; gap: var(--space-20); align-content: start; }
.smg-footer__brand p { color: var(--ink-soft); max-width: 36ch; }
.smg-footer__brand .smg-logo__mark { width: 44px; height: 44px; }
.smg-footer__title { font-size: 18px; line-height: 24px; font-weight: 700; margin-bottom: var(--space-16); }
.smg-footer__list { display: grid; gap: 10px; }
.smg-footer__list a { font-size: 14px; line-height: 21px; text-decoration: none; color: var(--ink-soft); }
.smg-footer__list a:hover { color: var(--green-500); }
.smg-footer .smg-contact-list { margin-top: 0; font-size: 14px; }
.smg-social { display: flex; gap: 14px; }
.smg-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card-dark); color: var(--green-500); transition: background-color 0.3s, color 0.3s; }
.smg-social a:hover { background: var(--green-500); color: var(--black-900); }
.smg-social .smg-icon { width: 20px; height: 20px; }
.smg-footer__bar { background: transparent; padding-block: 24px 32px; font-size: 14px; text-align: center; }
.smg-footer__bar p { background: none; margin: 0; text-align: center; }

/* Páginas legales -------------------------------------------------------- */

.smg-entry { display: grid; gap: 16px; }
.smg-entry h2 { font-size: 27px; line-height: 30px; margin-top: 16px; }
.smg-entry a { color: var(--green-600); }
.smg-post { display: grid; gap: 12px; }
.smg-post a { text-decoration: none; }

/* Elementor: el widget ocupa todo el ancho y no añade huecos */
.elementor-widget[class*="elementor-widget-smg-"] { width: 100%; margin-bottom: 0 !important; }
.elementor-widget[class*="elementor-widget-smg-"] > .elementor-widget-container { margin: 0; padding: 0; }
.smg-elementor .e-con:has(> .elementor-widget[class*="elementor-widget-smg-"]),
.smg-elementor .e-con:has(> .e-con-inner > .elementor-widget[class*="elementor-widget-smg-"]) { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 0px; --content-width: 100%; padding: 0; }

/* Entrada al hacer scroll ------------------------------------------------ */

.smg-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.smg-js [data-reveal].is-in { opacity: 1; transform: none; }
.smg-split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.smg-split-word > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.is-in .smg-split-word > span, .smg-split-word.is-in > span { transform: none; }
.smg-js [data-split][data-reveal] { opacity: 1; transform: none; }

/* Tablet ----------------------------------------------------------------- */

@media (max-width: 1100px) {
	.smg-grid--4, .smg-problems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.smg-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.smg-cases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
	.smg-nav__list { gap: var(--space-20); }
	.smg-hero { grid-template-columns: 1fr; gap: var(--space-48); }
	.smg-hero__stage { max-width: 620px; }
	.smg-split, .smg-head--row { grid-template-columns: 1fr; gap: var(--space-30); }
	.smg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.smg-steps { grid-template-columns: 1fr; gap: var(--space-30); padding-left: 0; }
	.smg-steps__rail { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
	.smg-steps__rail i { transform-origin: top; transform: scaleY(var(--p)); }
	.smg-step { grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--space-20); row-gap: 6px; }
	.smg-step__num { grid-row: span 2; margin-bottom: 0; }
	.smg-tabs__panel { grid-template-columns: 1fr; gap: var(--space-20); padding: var(--space-30); }
	.smg-case { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--space-30); }
}

@media (max-width: 900px) {
	.smg-nav {
		position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto; z-index: 49;
		background: var(--black-900); padding: 12px max(20px, env(safe-area-inset-right, 0px)) 28px max(20px, env(safe-area-inset-left, 0px));
		display: grid; gap: 20px; margin: 0;
		transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
	}
	.is-open .smg-nav { transform: none; opacity: 1; visibility: visible; }
	.smg-nav__list { flex-direction: column; gap: 0; }
	.smg-nav__list a { display: block; padding: 16px 0; font-size: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
	.smg-nav__list a::after { display: none; }
	.smg-nav__cta-mobile { display: inline-flex; }
	.smg-header__cta { display: none; }
	.smg-burger { display: grid; }
}

/* Móvil ------------------------------------------------------------------ */

@media (max-width: 767px) {
	:root { --section-pad: var(--space-64); --gutter: 16px; --header-h: 68px; }
	body { font-size: 14px; line-height: 24px; }
	.smg-h1 { line-height: 37.4px; }
	.smg-h2 { line-height: 35px; }
	.smg-h3 { line-height: 30px; }
	.smg-lead { font-size: 16px; line-height: 26px; }
	.smg-head { margin-bottom: var(--space-30); }
	.smg-logo__text { font-size: 18px; }
	.smg-logo__mark { width: 32px; height: 32px; }
	.smg-section--hero { padding-top: calc(var(--header-h) + 40px); }
	.smg-actions .smg-btn { flex: 1 1 auto; }
	.smg-grid--2, .smg-grid--3, .smg-grid--4 { grid-template-columns: 1fr; }
	.smg-card { padding: 25px; }
	.smg-audience { padding: 25px; }
	.smg-chat__body { padding: 18px; min-height: 330px; }
	.smg-ad { margin-left: 0; }
	.smg-stat { padding: 12px; }
	.smg-stat__value { font-size: 22px; line-height: 26px; }
	.smg-stat__label { font-size: 12px; }
	.smg-tabs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.smg-tabs__tab { padding: 14px 16px; font-size: 16px; }
	.smg-problems { grid-template-columns: 1fr; gap: var(--space-30); }
	.smg-problem__num { font-size: 96px; margin-bottom: -38px; }
	.smg-problem p { font-size: 14px; line-height: 24px; }
	.smg-benefits { gap: var(--space-30); }
	.smg-case { grid-template-columns: 1fr; }
	.smg-case__media { aspect-ratio: 4 / 3; }
	.smg-case__facts div { grid-template-columns: 1fr; gap: 6px; }
	.smg-cases { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 8px; scrollbar-width: none; }
	.smg-cases::-webkit-scrollbar { display: none; }
	.smg-mini { flex: 0 0 72%; scroll-snap-align: start; }
	.smg-mini__img { height: 220px; }
	.smg-form__grid { grid-template-columns: 1fr; }
	.smg-field label { font-size: 14px; }
	.smg-flow { padding: var(--space-30) var(--space-16); }
	.smg-flow__node--sm { font-size: 13px; padding: 10px; gap: 6px; }
	.smg-flow__node--sm .smg-icon { width: 18px; height: 18px; }
	.smg-accordion { padding: 4px 18px; }
	.smg-acc summary { font-size: 16px; padding: 18px 0; }
	.smg-footer__grid { grid-template-columns: 1fr; gap: var(--space-30); }
	.smg-marquee li { padding-inline: 28px; height: 64px; }
	.smg-marquee span { font-size: 18px; }
	.smg-glow { filter: blur(50px); }
	.smg-glow--hero { width: 420px; height: 420px; right: -160px; top: -60px; }
	.admin-bar .smg-header { top: 46px; }
}

@media (max-width: 420px) {
	.smg-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.smg-stat__value { font-size: 19px; }
}

/* Movimiento reducido ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.smg-marquee__track { animation: none; }
	.smg-js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   v1.2: secciones traídas de la réplica de agenciaamazonads.es
   (logos en rejilla, equipo + por qué elegirnos, Calendly + formulario)
   ========================================================================== */

/* Logos: rejilla 4 x 3, igual que la referencia */
.smg-section--logos .smg-head { margin-bottom: var(--space-30); max-width: none; }
.smg-glow--corner-a { width: 720px; height: 520px; left: -320px; bottom: -260px; background: rgba(14, 225, 130, 0.22); animation: smg-drift 14s ease-in-out infinite alternate; }
.smg-glow--corner-b { width: 720px; height: 620px; right: -280px; top: -200px; background: rgba(14, 225, 130, 0.24); animation: smg-drift 16s ease-in-out infinite alternate-reverse; }
@keyframes smg-drift { to { transform: translate(60px, -40px) scale(1.08); } }
.smg-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.smg-logos li { display: grid; place-items: center; height: 168px; padding: 0 20px; }
.smg-logos img { max-height: 64px; width: auto; max-width: 180px; opacity: 0.92; transition: transform 0.4s var(--ease), opacity 0.4s; }
.smg-logos span { font-size: 26px; line-height: 1.1; font-weight: 700; text-align: center; letter-spacing: -0.01em; transition: transform 0.4s var(--ease); }
.smg-logos li:hover img, .smg-logos li:hover span { transform: scale(1.06); opacity: 1; }

/* Equipo + por qué elegirnos */
.smg-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-64); align-items: start; }
.smg-team { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.smg-team__item { grid-column: span 3; aspect-ratio: 1; border-radius: var(--radius-16); overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #3ee49a 0%, #0f9b5c 100%); color: rgba(26, 25, 27, 0.55); }
.smg-team__item--lg { grid-column: span 4; }
.smg-team__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.smg-team__item:hover img { transform: scale(1.05); }
.smg-team__item .smg-icon { width: 46%; height: 46%; stroke-width: 1.2; }
.smg-why__copy { display: grid; gap: var(--space-24); align-content: start; padding-top: 24px; }
.smg-why__copy .smg-h2 { max-width: none; }
.smg-why__text { color: var(--ink-soft); }
.smg-why .smg-accordion { padding: 0 0 0 16px; margin-top: var(--space-12); background: none; }
.smg-why .smg-acc + .smg-acc { border-top: 0; }
.smg-why .smg-acc summary { padding: 12px 0; }
.smg-why .smg-acc summary .smg-icon { width: 16px; height: 16px; stroke-width: 2.4; }
.smg-why .smg-acc__body { display: grid; gap: 14px; padding: 10px 0 22px; color: var(--ink-soft); }
.smg-why .smg-acc__body p { padding: 0; }

/* Calendly + formulario */
.smg-section--form .smg-head { margin-bottom: 96px; max-width: none; }
.smg-section--form .smg-head__text { max-width: 820px; }
.smg-booking { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-30); align-items: start; }
.smg-calendly { background: var(--white); color: var(--black-900); min-height: 860px; border-radius: 2px; overflow: hidden; }
.smg-calendly iframe { width: 100%; height: 860px; border: 0; display: block; }
.smg-calendly--empty { display: grid; align-content: start; justify-items: center; text-align: center; gap: 12px; padding: 48px 32px; border-top: 4px solid #006bff; }
.smg-calendly--empty strong { font-size: 22px; }
.smg-calendly--empty p { color: #4d5055; max-width: 34ch; }
.smg-booking__form .smg-form__grid { grid-template-columns: 1fr; gap: var(--space-20); }
.smg-field__label { font-size: 16px; line-height: 16px; font-weight: 500; }
.smg-field abbr { color: #ff4d4d; }
.smg-field > .smg-check { margin-top: 2px; }
.smg-check { align-items: center; gap: 10px; }
.smg-check input { width: 16px; height: 16px; }
.smg-check label { font-size: 15px; line-height: 20px; }
.smg-check a { text-decoration: none; }
.smg-check a:hover { text-decoration: underline; }
.smg-btn--submit { font-size: 16px; padding: 14px 24px; margin-top: var(--space-12); }
.smg-btn--submit .smg-icon { display: none; }
.smg-check.is-invalid input { outline: 1px solid #ff6b6b; }

@media (max-width: 1024px) {
	.smg-why { grid-template-columns: 1fr; gap: var(--space-48); }
	.smg-why__copy { order: 2; padding-top: 0; }
	.smg-booking { grid-template-columns: 1fr; }
	.smg-section--form .smg-head { margin-bottom: var(--space-48); }
	.smg-calendly, .smg-calendly iframe { min-height: 0; height: 720px; }
	.smg-calendly--empty { height: auto; }
}

@media (max-width: 767px) {
	.smg-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.smg-logos li { height: 100px; }
	.smg-logos span { font-size: 18px; }
	.smg-logos img { max-height: 44px; max-width: 120px; }
	.smg-team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.smg-team__item, .smg-team__item--lg { grid-column: span 1; }
	.smg-why .smg-accordion { padding-left: 8px; }
	.smg-calendly, .smg-calendly iframe { height: 640px; }
	.smg-calendly--empty { height: auto; min-height: 0; padding: 32px 24px; }
}

/* Editor de Elementor: todo visible siempre (sin esperar a las animaciones) */
.elementor-editor-active [data-reveal],
.elementor-editor-active [data-chat] [data-chat-step] { opacity: 1 !important; transform: none !important; }
.elementor-editor-active .smg-split-word > span { transform: none !important; }
.elementor-editor-active .smg-chart .smg-chart__line { stroke-dashoffset: 0 !important; }
.elementor-editor-active .smg-chart .smg-chart__area,
.elementor-editor-active .smg-chart .smg-chart__dot { opacity: 1 !important; }

/* ==========================================================================
   v1.3 · Maquetación nativa de Elementor
   Las secciones son contenedores normales de Elementor con la clase .smg-n.
   Estas reglas solo dan el acabado del sistema de diseño; todo lo que cambies
   en los controles de Elementor tiene prioridad.
   ========================================================================== */

.e-con.smg-n { position: relative; overflow: hidden; isolation: isolate; color: var(--ink); }
.smg-n .elementor-heading-title { color: inherit; text-wrap: balance; }
.smg-n .elementor-widget-text-editor { color: var(--ink-soft); }
.smg-n .elementor-widget-text-editor p { margin: 0 0 16px; }
.smg-n .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.smg-n a:not(.elementor-button) { color: var(--icon); }

/* Brillos verdes */
.smg-n-hero::before,
.smg-n-glow::before,
.smg-n-glow::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.smg-n-hero::before { width: 760px; height: 760px; right: -220px; top: -160px; background: rgba(14, 225, 130, 0.2); animation: smg-float 14s ease-in-out infinite alternate; }
.smg-n-glow::before { width: 720px; height: 520px; left: -320px; bottom: -260px; background: rgba(14, 225, 130, 0.22); animation: smg-drift 14s ease-in-out infinite alternate; }
.smg-n-glow::after { width: 720px; height: 620px; right: -280px; top: -200px; background: rgba(14, 225, 130, 0.24); animation: smg-drift 16s ease-in-out infinite alternate-reverse; }
.e-con.smg-n > .e-con-inner { position: relative; }

/* Hero */
.smg-n-eyebrow p { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; line-height: 21px; font-weight: 500; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--card); color: var(--ink); }
.smg-n-lead { font-size: 18px; line-height: 28px; }
.smg-n-narrow { max-width: 750px; margin-inline: auto; width: 100%; }
.smg-n .smg-stats { margin-top: 16px; }

/* Botones (los colores base vienen del Kit de Elementor) */
.smg-n-btn .elementor-button { transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease); }
.smg-n-btn .elementor-button:active { transform: scale(0.98); }
.smg-n .smg-n-btn--ghost .elementor-button { background-color: var(--card); color: var(--ink); }
.smg-n .smg-n-btn--ghost .elementor-button:hover { background-color: #fff; color: #1a191b; }
.smg-tone--light .smg-n-btn:not(.smg-n-btn--ghost) .elementor-button:hover { background-color: #1a191b; color: #fff; }

/* Problemas: número grande translúcido detrás del título */
.elementor-widget.smg-n-num { margin-bottom: -62px !important; pointer-events: none; }
.smg-n-num .elementor-heading-title { font-size: 120px; line-height: 0.82; font-weight: 700; letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.14); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.smg-n-problem-title { position: relative; }
.smg-n-problem-title .elementor-heading-title { font-size: clamp(22px, 1rem + 1vw, 30px); line-height: 1.2; }
.smg-n-problems .elementor-widget-text-editor { font-size: 17px; line-height: 26px; }

/* Cards (caja de icono de Elementor) */
.smg-n-card { position: relative; overflow: hidden; transition: transform 0.5s var(--ease); }
.smg-n-card .elementor-icon-box-title { color: inherit; margin-top: 0; }
.smg-n-card .elementor-icon-box-description { color: var(--ink-soft); font-size: 15px; line-height: 23px; margin: 0; }
.smg-n-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(14, 225, 130, 0.14), transparent 60%); opacity: 0; transition: opacity 0.3s; }
.smg-n-card:hover::before { opacity: 1; }
.smg-n-card .elementor-icon { transition: transform 0.4s var(--ease); }
.smg-n-card:hover .elementor-icon { transform: translateY(-3px); }

/* Pestañas (objetivos) */
.smg-n-tabs .e-n-tabs-heading { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px !important; justify-content: stretch !important; }
.smg-n-tabs .e-n-tab-title { justify-content: flex-start !important; text-align: left !important; padding: 18px 20px !important; border: 0 !important; border-radius: 16px !important; background-color: #fff !important; color: #1a191b !important; font-size: 18px !important; line-height: 21px !important; font-weight: 500 !important; width: 100%; }
.smg-n-tabs .e-n-tab-title * { color: inherit !important; }
.smg-n-tabs .e-n-tab-title:hover { background-color: #e7f8ef !important; }
.smg-n-tabs .e-n-tab-title[aria-selected="true"] { background-color: #1a191b !important; color: #fff !important; }
.smg-n-tabs .e-n-tabs-content > .e-con { background-color: #fff !important; border-radius: 16px !important; border: 0 !important; }
.smg-n-tabs .e-n-tabs { gap: 20px; }
.smg-n-tabs .e-n-tabs-heading { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.smg-n .smg-n-tabs .e-n-tab-title { justify-content: flex-start; text-align: left; padding: 18px 20px; border: 0; border-radius: 16px; background-color: #fff; color: #1a191b; font-size: 18px; line-height: 21px; font-weight: 500; transition: background-color 0.3s, color 0.3s; }
.smg-n .smg-n-tabs .e-n-tab-title:hover { background-color: #e7f8ef; }
.smg-n .smg-n-tabs .e-n-tab-title[aria-selected="true"] { background-color: #1a191b; color: #fff; }
.smg-n .smg-n-tabs .e-n-tabs-content > .e-con { background-color: #fff; border-radius: 16px; border: 0; }
.smg-n-bigtag .elementor-heading-title { font-size: clamp(64px, 3rem + 5vw, 132px); line-height: 0.9; font-weight: 700; letter-spacing: -0.04em; color: var(--icon); }
.smg-n-tabs .e-n-tabs-content > .e-con > .elementor-widget, .smg-n-tabs .e-n-tabs-content > .e-con > .e-con { flex: 1 1 0; }

/* Logos */
.elementor-widget.smg-n-logo { display: flex; align-items: center; justify-content: center; min-height: 168px; }
.smg-n-logo .elementor-heading-title { font-size: 26px; line-height: 1.1; font-weight: 700; transition: transform 0.4s var(--ease); }
.smg-n-logo:hover .elementor-heading-title { transform: scale(1.06); }

/* Ecommerce y B2B */
.smg-n-audience .smg-n-card { background: none !important; }
.smg-n-checks .elementor-icon-list-item { color: var(--ink); }
.smg-n-checks .elementor-icon-list-items { padding-inline: 30px; }

/* Beneficios */
.smg-n-benefit { border-top: 2px solid var(--line); }
.smg-n-benefit .elementor-icon-box-icon { margin-bottom: 12px !important; }

/* Proceso */
.smg-n-steps { position: relative; --p: 0; }
.smg-n-steps::before, .smg-n-steps::after { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: var(--line); }
.smg-n-steps::after { background: var(--green-500); transform-origin: left; transform: scaleX(var(--p)); }
.smg-n-steps > .e-con { position: relative; z-index: 1; }
/* Con JS la línea se mide: empieza en el centro del 1 y termina en el centro del último número. */
.smg-n-steps.smg-rail-js::before, .smg-n-steps.smg-rail-js::after { left: var(--rail-left) !important; top: var(--rail-top) !important; width: var(--rail-width) !important; height: var(--rail-height) !important; right: auto !important; bottom: auto !important; }
.smg-n-steps.smg-rail-js::after { transform-origin: left center; transform: scaleX(var(--p)); }
.smg-n-steps.smg-rail-js.is-vert::after { transform-origin: center top; transform: scaleY(var(--p)); }
.smg-steps.smg-rail-js .smg-steps__rail i { transform-origin: left center; transform: scaleX(var(--p)); }
.smg-steps.smg-rail-js.is-vert .smg-steps__rail i { transform-origin: center top; transform: scaleY(var(--p)); }
.smg-n-stepnum .elementor-heading-title { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1a191b; color: #fff; font-size: 20px; font-weight: 700; outline: 2px solid var(--line); outline-offset: -2px; transition: background-color 0.4s, color 0.4s, outline-color 0.4s; }
.smg-n-step.is-active .smg-n-stepnum .elementor-heading-title { background: var(--green-500); color: #1a191b; outline-color: var(--green-500); }

/* Medición */
.smg-n-point .elementor-icon-box-title { font-size: 18px; line-height: 21px; margin-bottom: 6px; }

/* Casos */
.smg-n .smg-n-case img { width: 100%; max-width: 389px; aspect-ratio: 389 / 545; object-fit: cover; border-radius: 16px; }
.smg-n .smg-n-mini img { width: 100%; height: 180px; object-fit: cover; border-radius: 16px; transition: transform 0.5s var(--ease); }
.smg-n-mini:hover img { transform: translateY(-6px); }
.smg-n-mini-title .elementor-heading-title { font-size: 18px; line-height: 24px; font-weight: 700; }
.smg-n-facts p { padding-top: 16px; border-top: 1px solid var(--line); }

/* Cita */
/* Cita: tamaño de texto de la web y todo centrado. Con :where() Elementor > Estilo siempre gana. */
.smg-n-quote .elementor-testimonial-wrapper .elementor-testimonial-content { font-size: 16px; line-height: 26px; font-weight: 400; color: var(--ink); max-width: 640px; margin-inline: auto; }
:where(.smg-n-quote) .elementor-testimonial-image img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
:where(.smg-n-quote) .elementor-testimonial-name { font-size: 16px; font-weight: 700; color: var(--ink); }
:where(.smg-n-quote) .elementor-testimonial-job { color: var(--ink-soft); font-size: 14px; }
.smg-n-quote .elementor-testimonial-wrapper { text-align: center; }
.smg-n-quote .elementor-testimonial-meta, .smg-n-quote .elementor-testimonial-meta-inner { justify-content: center; text-align: center; }
.smg-n-quote .elementor-testimonial-image { display: flex; justify-content: center; }

/* Equipo */
.smg-n .smg-n-team img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; transition: transform 0.6s var(--ease); }
.smg-n-team { overflow: hidden; border-radius: 16px; }
.smg-n-team:hover img { transform: scale(1.05); }

/* Acordeones (FAQ y por qué elegirnos) */
.smg-n-acc .e-n-accordion { --n-accordion-border-width: 0px; --n-accordion-title-font-size: 18px; --n-accordion-icon-size: 16px; --n-accordion-item-title-space-between: 0px; }
.smg-n .smg-n-acc .e-n-accordion-item-title { padding: 18px 0; border: 0; background: transparent; color: var(--ink); font-weight: 500; transition: color 0.3s; }
.smg-n .smg-n-acc .e-n-accordion-item-title:hover,
.smg-n .smg-n-acc .e-n-accordion-item[open] > .e-n-accordion-item-title { color: var(--icon); }
.smg-n .smg-n-acc .e-n-accordion-item-title-text { color: inherit; font-size: 18px; }
.smg-n .smg-n-acc .e-n-accordion-item-title-icon svg { fill: currentColor; }
.smg-n .smg-n-acc .e-n-accordion-item > .e-con { border: 0; background: transparent; padding: 0 0 20px; }
.smg-n .smg-n-acc:not(.smg-n-acc--plain) { background: var(--card); border-radius: 16px; padding: 6px 24px; }
.smg-n .smg-n-acc:not(.smg-n-acc--plain) .e-n-accordion-item + .e-n-accordion-item { border-top: 1px solid var(--line); }

/* Formulario dentro de Elementor */
.smg-n-form .smg-form__grid { grid-template-columns: 1fr; }
.smg-n .smg-calendly { width: 100%; }
.smg-n-contact .elementor-icon-list-text { color: var(--ink); }

@media (max-width: 1024px) {
	.smg-n-tabs .e-n-tabs-heading { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.smg-n-steps::before, .smg-n-steps::after { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
	.smg-n-steps::after { transform-origin: top; transform: scaleY(var(--p)); }
	.smg-n-tabs .e-n-tabs-heading { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.smg-n-hero::before, .smg-n-glow::before, .smg-n-glow::after { filter: blur(50px); }
	.elementor-widget.smg-n-num { margin-bottom: -52px !important; }
	.smg-n-num .elementor-heading-title { font-size: 96px; }
	.elementor-widget.smg-n-logo { min-height: 100px; }
	.smg-n-logo .elementor-heading-title { font-size: 18px; }
	.smg-n .smg-n-tabs .e-n-tab-title { padding: 14px 16px; font-size: 16px; }
	.smg-n .smg-n-case img { max-width: 100%; aspect-ratio: 4 / 3; }
}

/* El Kit de Elementor da estilo de botón a todos los <button>; el menú móvil no lo necesita */
.smg-header .smg-burger { background: var(--card-dark) !important; color: #fff !important; padding: 0 !important; border: 0 !important; border-radius: 8px !important; }
.smg-n .smg-n-acc .e-n-accordion-item-title-icon i, .smg-n .smg-n-acc .e-n-accordion-item-title-icon svg { color: currentColor; fill: currentColor; font-size: 14px; }
/* El Kit de Elementor fija tamaños de h2; el footer mantiene los suyos */
.smg-footer .smg-footer__title { font-size: 18px !important; line-height: 24px !important; font-weight: 700 !important; }

/* Imágenes subidas desde Elementor */
.smg-media { margin: 0; border-radius: var(--radius-16); overflow: hidden; }
.smg-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smg-service__img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-8); overflow: hidden; }
.smg-service__img img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ nativa: columna estrecha centrada y acordeón a todo el ancho */
.smg-n .e-con.smg-n-narrow { max-width: 750px; margin-inline: auto; align-self: center; width: 100%; }
.smg-n .smg-n-narrow > .elementor-widget, .smg-n .smg-n-narrow > .e-con-inner > .elementor-widget { width: 100%; }
.smg-n .smg-n-acc .e-n-accordion-item-title-icon { color: var(--ink); opacity: 0.8; }

/* Logos de clientes como imágenes (se cambian con un clic en Elementor) */
/* Tamaño por defecto (como la referencia). Con :where() no pesa nada: lo que pongas en
   Elementor > Estilo > Ancho / Ancho máximo / Altura siempre gana. */
:where(.smg-n-logo) img { width: min(230px, 100%); height: auto; transition: transform 0.4s var(--ease); }
:where(.smg-n-logo):hover img { transform: scale(1.05); }
@media (max-width: 767px) { :where(.smg-n-logo) img { width: min(150px, 100%); } }

/* Las imágenes de Elementor respetan la alineación del panel (Izquierda / Centro / Derecha) */
.elementor-widget-image img, .elementor-testimonial-image img, .elementor-image-box-img img { display: inline-block; }

/* Logo subido en Personalizar > Identidad del sitio */
.custom-logo-link { display: inline-flex; align-items: center; flex: none; }
.custom-logo-link img, img.custom-logo { height: 45px; width: auto; max-width: 220px; display: block; }
.smg-footer .custom-logo-link img { height: 48px; max-width: 270px; }
@media (max-width: 767px) {
	.custom-logo-link img, img.custom-logo { height: 36px; max-width: 170px; }
}
