/* ==========================================================================
   TMC Futuro – estilos principales
   Las variables de color y logo se sobrescriben desde el personalizador.
   ========================================================================== */

/* ---------- Tipografías (autoalojadas, licencia SIL OFL) ---------- */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
	src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400;
	src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400;
	src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500;
	src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500;
	src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--tmc-bg: #070c14;
	--tmc-bg-rgb: 7, 12, 20;
	--tmc-fg: #ffffff;
	--tmc-surface: #0e1522;
	--tmc-surface-2: #172233;
	--tmc-border: #243146;
	--tmc-muted: #a9b4c4;
	--tmc-accent: #5ba4e6;
	--tmc-on-accent: #0a0a0a;
	--tmc-logo-bg: #000000;
	--tmc-logo-h: 48px;
	--tmc-logo-hm: 36px;
	--tmc-logo-w: 280px;
	--tmc-radius: 4px;
	--tmc-warm: #f2a93b;
	--tmc-font: "Inter Variable", "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--tmc-mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
	--tmc-header-h: 76px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--tmc-bg);
	color: var(--tmc-fg);
	font-family: var(--tmc-font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--tmc-accent); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.08; letter-spacing: -.025em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	top: 8px; left: 8px; z-index: 1000;
	background: var(--tmc-accent); color: var(--tmc-on-accent);
	padding: .6rem 1rem; border-radius: 8px;
}

:focus-visible { outline: 2px solid var(--tmc-accent); outline-offset: 3px; }

/* ---------- Layout ---------- */
.tmc-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tmc-container--narrow { max-width: 860px; }

.tmc-section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.tmc-section--alt { background: var(--tmc-surface); border-block: 1px solid var(--tmc-border); }

.tmc-section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.tmc-section__head p:last-child { color: var(--tmc-muted); font-size: 1.1rem; margin-bottom: 0; }

.tmc-eyebrow {
	font-family: var(--tmc-mono);
	font-size: .78rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tmc-accent);
	margin: 0 0 1rem;
}

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

/* ---------- Botones ---------- */
.tmc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	padding: .9rem 1.5rem;
	background: var(--tmc-accent); color: var(--tmc-on-accent);
	border: 1px solid var(--tmc-accent);
	border-radius: 3px;
	font: 600 .95rem/1 var(--tmc-font);
	letter-spacing: .01em;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.tmc-btn:hover { color: var(--tmc-on-accent); transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--tmc-accent); }
.tmc-btn--ghost { background: rgba(var(--tmc-bg-rgb), .35); color: var(--tmc-fg); border-color: var(--tmc-border); backdrop-filter: blur(6px); }
.tmc-btn--ghost:hover { color: var(--tmc-fg); border-color: var(--tmc-accent); box-shadow: none; }
.tmc-btn--sm { padding: .65rem 1.1rem; font-size: .85rem; }
.tmc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* ---------- Subheader superior (teléfono, correo, contacto…) ----------
   Menú deslizable a la izquierda + redes sociales fijas a la derecha. */
.tmc-topbar {
	background: var(--tmc-surface);
	border-bottom: 1px solid var(--tmc-border);
	font-size: .82rem;
}
.tmc-topbar__inner {
	display: flex; align-items: center; flex-wrap: nowrap; gap: 12px;
	min-height: 40px;
}
.tmc-topbar__nav {
	flex: 1 1 auto; min-width: 0;            /* solo esta zona se encoge y se desliza */
	overflow-x: auto; overflow-y: hidden;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
	cursor: grab;
}
.tmc-topbar__nav::-webkit-scrollbar { display: none; }
.tmc-topbar__nav.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.tmc-topbar__menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: nowrap; align-items: center; gap: 22px;
	width: max-content;                       /* el menú crece y el contenedor se desliza */
}
.tmc-topbar__menu li { flex: 0 0 auto; scroll-snap-align: start; }
.tmc-topbar__menu a {
	display: block; padding: .65rem 0; white-space: nowrap;
	color: var(--tmc-muted); font-weight: 500; letter-spacing: .01em;
}
.tmc-topbar__menu a:hover { color: var(--tmc-accent); }

/* Degradados que indican que hay más ítems para deslizar */
.tmc-topbar__nav.has-more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.tmc-topbar__nav.has-more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); }
.tmc-topbar__nav.has-more-left.has-more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }

/* Redes: estáticas, siempre visibles a la derecha */
.tmc-topbar .tmc-social {
	flex: 0 0 auto; margin-left: auto;
	padding-left: 12px; border-left: 1px solid var(--tmc-border);
}

/* ---------- Header principal ---------- */
.tmc-header {
	position: relative; z-index: 50;
	background: var(--tmc-bg);
	border-bottom: 1px solid var(--tmc-border);
}
.tmc-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: var(--tmc-header-h); gap: 24px;
}
.tmc-brand { display: flex; align-items: center; }

.tmc-logo {
	display: inline-flex; align-items: center; gap: .7rem;
	background: var(--tmc-logo-bg);
	color: #fff;
	padding: 6px 10px;
	border-radius: 4px;
	line-height: 1;
}
.tmc-logo:hover { color: #fff; }
.tmc-logo__img {
	height: var(--tmc-logo-h);
	width: auto;
	max-width: min(var(--tmc-logo-w), 70vw);
	object-fit: contain;
}
.tmc-logo--text { padding: 8px 14px; }
.tmc-logo__mark {
	font: 800 1.35rem/1 var(--tmc-font);
	letter-spacing: .04em;
	padding-right: .7rem;
	border-right: 1px solid rgba(255, 255, 255, .35);
}
.tmc-logo__name { font: 600 .78rem/1.2 var(--tmc-mono); letter-spacing: .14em; text-transform: uppercase; max-width: 9em; }

.tmc-nav { display: flex; align-items: center; gap: 16px; }
.tmc-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.tmc-menu a {
	display: block; padding: .6rem 1rem; border-radius: 3px;
	font-size: .95rem; font-weight: 500; color: var(--tmc-muted);
	transition: color .2s, background .2s;
}
.tmc-menu a:hover,
.tmc-menu .current-menu-item > a,
.tmc-menu .current_page_item > a { color: var(--tmc-fg); background: var(--tmc-surface-2); }
.tmc-menu li { position: relative; }
.tmc-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px; min-width: 220px;
	position: absolute; top: 100%; left: 0; z-index: 20;
	background: var(--tmc-surface); border: 1px solid var(--tmc-border); border-radius: 4px;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.tmc-menu li:hover > .sub-menu,
.tmc-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.tmc-nav-toggle {
	display: none; width: 46px; height: 46px; padding: 0;
	background: var(--tmc-surface-2); border: 1px solid var(--tmc-border); border-radius: 4px;
	cursor: pointer; position: relative;
}
.tmc-nav-toggle__bars,
.tmc-nav-toggle__bars::before,
.tmc-nav-toggle__bars::after {
	content: ""; position: absolute; left: 13px; right: 13px; height: 2px; background: var(--tmc-fg);
	border-radius: 2px; transition: transform .25s, opacity .2s, top .25s;
}
.tmc-nav-toggle__bars { top: 22px; }
.tmc-nav-toggle__bars::before { left: 0; right: 0; top: -7px; }
.tmc-nav-toggle__bars::after { left: 0; right: 0; top: 7px; }
.tmc-nav-toggle[aria-expanded="true"] .tmc-nav-toggle__bars { background: transparent; }
.tmc-nav-toggle[aria-expanded="true"] .tmc-nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.tmc-nav-toggle[aria-expanded="true"] .tmc-nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Segundo header (servicios) ---------- */
.tmc-subheader {
	position: sticky; top: 0; z-index: 40;
	background: rgba(var(--tmc-bg-rgb), .86);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--tmc-border);
}
.admin-bar .tmc-subheader { top: 32px; }
.tmc-subheader__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }

.tmc-service-logo { display: inline-flex; align-items: center; gap: .6rem; flex: 0 0 auto; margin-right: auto; }
.tmc-service-logo img { height: var(--tmc-slogo-h, 36px); width: var(--tmc-slogo-w, auto); max-width: min(var(--tmc-slogo-w, 220px), 70vw); object-fit: contain; object-position: left center; }
.tmc-service-logo__icon {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 4px;
	background: var(--tmc-accent); color: var(--tmc-on-accent);
}
.tmc-service-logo__text { font-weight: 700; letter-spacing: -.01em; }

.tmc-subnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tmc-subnav::-webkit-scrollbar { display: none; }
.tmc-subnav a {
	white-space: nowrap; padding: .5rem .9rem; border-radius: 3px;
	font-size: .9rem; color: var(--tmc-muted); transition: color .2s, background .2s;
}
.tmc-subnav a:hover,
.tmc-subnav a.is-active { color: var(--tmc-fg); background: var(--tmc-surface-2); }

/* ---------- Hero ---------- */
.tmc-hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center;
	min-height: min(88vh, 820px);
	padding: clamp(80px, 12vw, 140px) 0;
	background: var(--tmc-bg);
}
.tmc-hero--service { min-height: min(72vh, 640px); }

.tmc-hero__media { position: absolute; inset: 0; z-index: -2; }
.tmc-hero__img,
.tmc-hero__video { width: 100%; height: 100%; object-fit: cover; }
.tmc-hero__video { position: absolute; inset: 0; overflow: hidden; }
.tmc-hero__video iframe {
	position: absolute; top: 50%; left: 50%;
	width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
	transform: translate(-50%, -50%); border: 0; pointer-events: none;
}
.tmc-hero__overlay {
	position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(60% 60% at 15% 90%, rgba(var(--tmc-bg-rgb), .9), transparent 70%),
		linear-gradient(90deg, rgba(var(--tmc-bg-rgb), .78) 0%, rgba(var(--tmc-bg-rgb), .25) 55%, rgba(var(--tmc-bg-rgb), .1) 100%),
		linear-gradient(180deg, rgba(var(--tmc-bg-rgb), 0) 60%, rgba(var(--tmc-bg-rgb), .85) 100%);
}
.tmc-hero__content { position: relative; max-width: 1200px; }
.tmc-hero__title { max-width: 14ch; margin-bottom: .35em; }
.tmc-hero--service .tmc-hero__title { max-width: 18ch; font-size: clamp(2.2rem, 5vw, 4rem); }
.tmc-hero__lead { max-width: 56ch; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: color-mix(in srgb, var(--tmc-fg) 82%, transparent); }

.tmc-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 3rem 0 0; padding: 0; }
.tmc-chips a {
	display: inline-block; padding: .5rem 1rem; border: 1px solid var(--tmc-border); border-radius: 3px;
	font: 500 .78rem/1 var(--tmc-mono); letter-spacing: .06em; text-transform: uppercase;
	background: rgba(var(--tmc-bg-rgb), .45); backdrop-filter: blur(6px);
}
.tmc-chips a:hover { border-color: var(--tmc-accent); }

/* ---------- Tarjetas ---------- */
.tmc-card {
	position: relative; display: block;
	padding: 28px;
	background: var(--tmc-surface);
	border: 1px solid var(--tmc-border);
	border-radius: var(--tmc-radius);
	transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.tmc-section--alt .tmc-card { background: var(--tmc-bg); }
.tmc-card:hover { transform: translateY(-4px); border-color: var(--tmc-accent); color: inherit; }
.tmc-card h3 { margin-bottom: .4em; }
.tmc-card p { color: var(--tmc-muted); margin-bottom: 0; font-size: .98rem; }

.tmc-card__icon {
	display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.3rem;
	border-radius: 4px; border: 1px solid var(--tmc-border);
	background: var(--tmc-surface-2); color: var(--tmc-accent);
}
.tmc-card__num { display: block; margin-bottom: 1.4rem; font: 500 .85rem/1 var(--tmc-mono); color: var(--tmc-accent); letter-spacing: .1em; }
.tmc-card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; font-size: .9rem; font-weight: 600; color: var(--tmc-accent); }
.tmc-card--post .tmc-card__thumb { display: block; margin: -28px -28px 20px; overflow: hidden; border-radius: 0; }
.tmc-card--post .tmc-card__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Filas de servicio (portada) ---------- */
.tmc-service-row {
	display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
	padding: clamp(28px, 4vw, 48px) 0;
	scroll-margin-top: 24px;
}
.tmc-service-row + .tmc-service-row { border-top: 1px solid var(--tmc-border); }
.tmc-service-row.is-reverse .tmc-service-row__media { order: 2; }

.tmc-service-row__media { position: relative; border-radius: 4px; overflow: hidden; border: 1px solid var(--tmc-border); background: var(--tmc-surface-2); }
.tmc-service-row__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform .6s ease; }
.tmc-service-row:hover .tmc-service-row__media img { transform: scale(1.04); }
.tmc-service-row__play { position: absolute; left: 16px; bottom: 16px; }
.tmc-service-row__desc { color: var(--tmc-muted); font-size: 1.08rem; }
.tmc-service-row h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.tmc-checklist { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .8rem; }
.tmc-checklist li { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; color: var(--tmc-muted); }
.tmc-checklist strong { color: var(--tmc-fg); font-weight: 600; }
.tmc-checklist .tmc-icon { flex: 0 0 auto; margin-top: .25rem; color: var(--tmc-accent); }

/* ---------- Video ---------- */
.tmc-video-frame {
	position: relative; aspect-ratio: 16 / 9; overflow: hidden;
	border-radius: 4px; border: 1px solid var(--tmc-border); background: #000;
}
.tmc-video-frame iframe, .tmc-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- CTA ---------- */
.tmc-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
	padding: clamp(32px, 5vw, 64px);
	border: 1px solid var(--tmc-border); border-radius: 6px;
	background:
		radial-gradient(70% 140% at 100% 0%, color-mix(in srgb, var(--tmc-accent) 22%, transparent), transparent 60%),
		var(--tmc-surface);
}
.tmc-cta h2 { max-width: 20ch; margin-bottom: .3em; }
.tmc-cta p { color: var(--tmc-muted); margin: 0; max-width: 50ch; }

/* ---------- Contenido del editor ---------- */
.entry-content { font-size: 1.06rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.8em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p, .entry-content li { color: color-mix(in srgb, var(--tmc-fg) 82%, transparent); }
.entry-content a { color: var(--tmc-accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content img { border-radius: var(--tmc-radius); }
.entry-content blockquote { margin: 1.6em 0; padding: .4em 1.4em; border-left: 3px solid var(--tmc-accent); color: var(--tmc-muted); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .7em 1em; border: 1px solid var(--tmc-border); }
.entry-content .wp-block-button__link { background: var(--tmc-accent); color: var(--tmc-on-accent); border-radius: 3px; text-decoration: none; }
.entry-content .alignwide { max-width: 1100px; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--tmc-muted); }
.tmc-featured { width: 100%; margin-bottom: 2rem; border-radius: var(--tmc-radius); }

/* ---------- Páginas genéricas ---------- */
.tmc-page-hero { padding: clamp(56px, 8vw, 100px) 0 0; }
.tmc-page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.tmc-404 { text-align: center; min-height: 60vh; display: grid; align-content: center; }
.tmc-404 .tmc-actions { justify-content: center; }
.tmc-notice { padding: 28px; border: 1px dashed var(--tmc-border); border-radius: var(--tmc-radius); color: var(--tmc-muted); text-align: center; }
.tmc-pagination { margin-top: 40px; text-align: center; }
.tmc-pagination .nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tmc-pagination a, .tmc-pagination span { padding: .5rem 1rem; border: 1px solid var(--tmc-border); border-radius: 3px; font-size: .9rem; }
.tmc-pagination .current { background: var(--tmc-accent); color: var(--tmc-on-accent); border-color: var(--tmc-accent); }

/* ---------- Footer ---------- */
.tmc-footer { background: var(--tmc-surface); border-top: 1px solid var(--tmc-border); margin-top: 0; scroll-margin-top: 24px; }
.tmc-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-top: 64px; padding-bottom: 56px; }
.tmc-footer .widget { margin-bottom: 1.5rem; }
.tmc-footer .widget-title { font: 600 .78rem/1 var(--tmc-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tmc-accent); margin-bottom: 1.2rem; }
.tmc-footer p, .tmc-footer li { color: var(--tmc-muted); font-size: .95rem; }
.tmc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.tmc-footer a { color: var(--tmc-muted); }
.tmc-footer a:hover { color: var(--tmc-accent); }
.tmc-footer .widget select, .tmc-footer .widget input[type="search"], .tmc-footer .widget input[type="text"], .tmc-footer .widget input[type="email"], .tmc-footer .widget textarea {
	width: 100%; padding: .7rem 1rem; background: var(--tmc-bg); color: var(--tmc-fg);
	border: 1px solid var(--tmc-border); border-radius: 4px;
}
.tmc-subfooter { border-top: 1px solid var(--tmc-border); background: var(--tmc-bg); }
.tmc-subfooter p { margin: 0; padding: 20px 0; text-align: center; font: 500 .85rem/1.4 var(--tmc-mono); letter-spacing: .08em; color: var(--tmc-muted); }

/* ---------- Modal de video ---------- */
.tmc-modal {
	position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px;
	background: rgba(0, 0, 0, .86); backdrop-filter: blur(6px);
	animation: tmc-fade .25s ease;
}
.tmc-modal__body { position: relative; width: min(1000px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; border: 1px solid var(--tmc-border); }
.tmc-modal__body iframe, .tmc-modal__body video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tmc-modal__close {
	position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
	background: var(--tmc-surface-2); color: var(--tmc-fg); border: 1px solid var(--tmc-border); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
body.tmc-modal-open { overflow: hidden; }
@keyframes tmc-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Animación de aparición ---------- */
.js .tmc-reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .tmc-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.tmc-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.tmc-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.tmc-header { position: sticky; top: 0; }
	.admin-bar .tmc-header { top: 32px; }
	.tmc-nav-toggle { display: inline-block; }
	.tmc-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--tmc-bg); border-bottom: 1px solid var(--tmc-border);
		padding: 12px 24px 24px; display: none;
	}
	.tmc-nav.is-open { display: block; }
	.tmc-tools { margin-top: 14px; }
	.tmc-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.tmc-menu a { padding: .9rem 1rem; border-radius: 4px; }
	.tmc-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; padding: 0 0 0 1rem; }

	.tmc-subheader { top: var(--tmc-header-h); }
	.admin-bar .tmc-subheader { top: calc(var(--tmc-header-h) + 32px); }
	.tmc-subheader__inner { flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
	.tmc-subnav { order: 3; width: 100%; }
	.tmc-subheader__cta { margin-left: auto; }

	.tmc-service-row, .tmc-service-row.is-reverse { grid-template-columns: 1fr; }
	.tmc-service-row.is-reverse .tmc-service-row__media { order: 0; }
	.tmc-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
	.admin-bar .tmc-header { top: 46px; }
	.admin-bar .tmc-subheader { top: calc(var(--tmc-header-h) + 46px); }
}

@media (max-width: 640px) {
	:root { --tmc-header-h: 64px; }
	body { font-size: 16px; }
	.tmc-container { padding: 0 18px; }
	.tmc-logo__img { height: var(--tmc-logo-hm); }
	.tmc-grid--3, .tmc-grid--4, .tmc-footer__grid { grid-template-columns: 1fr; }
	.tmc-hero { min-height: auto; }
	.tmc-hero__title { max-width: none; }
	.tmc-actions .tmc-btn { flex: 1 1 100%; }
	.tmc-cta { flex-direction: column; align-items: flex-start; }
	.tmc-footer__grid { gap: 8px; padding-top: 48px; }
	.tmc-service-logo img { height: var(--tmc-slogo-hm, 30px); max-width: min(var(--tmc-slogo-w, 160px), 60vw); }
	.tmc-subheader__cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .tmc-reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   Ampliaciones: herramientas del header, redes, formulario, planes, FAQ,
   galería, contadores, cookies, modo claro/oscuro
   ========================================================================== */

/* ---------- Herramientas (idioma + claro/oscuro) ---------- */
.tmc-tools { display: flex; align-items: center; gap: 10px; }
.tmc-lang ul { list-style: none; margin: 0; padding: 3px; display: inline-flex; gap: 2px; border: 1px solid var(--tmc-border); border-radius: 3px; background: var(--tmc-surface); }
.tmc-lang a { display: block; padding: .32rem .65rem; border-radius: 3px; font: 600 .72rem/1 var(--tmc-mono); letter-spacing: .08em; color: var(--tmc-muted); }
.tmc-lang a:hover { color: var(--tmc-fg); }
.tmc-lang a.is-current { background: var(--tmc-accent); color: var(--tmc-on-accent); }


/* ---------- Redes sociales ---------- */
.tmc-social { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.tmc-social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--tmc-muted); transition: color .2s, background .2s; }
.tmc-social a:hover { color: var(--tmc-accent); background: var(--tmc-surface-2); }
.tmc-social--center { justify-content: center; padding-bottom: 8px; }

/* ---------- Footer legal ---------- */
.tmc-legal { text-align: center; padding-bottom: 20px; }
.tmc-legal__menu { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.tmc-legal__menu a { font-size: .8rem; color: var(--tmc-muted); }
.tmc-subfooter p { padding-bottom: 10px; }

/* ---------- Secciones ---------- */
.tmc-section--tight { padding: clamp(36px, 5vw, 64px) 0; }

/* ---------- Contadores ---------- */
.tmc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.tmc-stat__num { margin: 0; font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.03em; color: var(--tmc-accent); line-height: 1; }
.tmc-stat__label { margin: .6rem 0 0; color: var(--tmc-muted); font-size: .95rem; }

/* ---------- Formulario ---------- */
.tmc-contact-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.tmc-contact-split__text { color: var(--tmc-muted); font-size: 1.1rem; }

.tmc-form p { margin: 0 0 16px; }
.tmc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.tmc-form label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 600; }
.tmc-form input[type="text"], .tmc-form input[type="email"], .tmc-form input[type="tel"], .tmc-form select, .tmc-form textarea {
	width: 100%; padding: .85rem 1rem;
	background: var(--tmc-surface); color: var(--tmc-fg);
	border: 1px solid var(--tmc-border); border-radius: 4px;
	font: inherit; font-size: .98rem;
	transition: border-color .2s, box-shadow .2s;
}
.tmc-section--alt .tmc-form input[type="text"], .tmc-section--alt .tmc-form input[type="email"], .tmc-section--alt .tmc-form input[type="tel"], .tmc-section--alt .tmc-form select, .tmc-section--alt .tmc-form textarea { background: var(--tmc-bg); }
.tmc-form input:focus, .tmc-form select:focus, .tmc-form textarea:focus { outline: none; border-color: var(--tmc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tmc-accent) 25%, transparent); }
.tmc-form__consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--tmc-muted); }
.tmc-form__consent input { margin-top: .3rem; accent-color: var(--tmc-accent); }
.tmc-form__consent a { color: var(--tmc-accent); text-decoration: underline; }
.tmc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tmc-form-msg { padding: 16px 20px; margin-bottom: 20px; border-radius: 4px; border: 1px solid var(--tmc-border); font-size: .98rem; }
.tmc-form-msg--ok { border-color: #22c55e; background: color-mix(in srgb, #22c55e 14%, transparent); }
.tmc-form-msg--error { border-color: #ef4444; background: color-mix(in srgb, #ef4444 14%, transparent); }

/* ---------- Planes ---------- */
.tmc-plan { display: flex; flex-direction: column; gap: 1rem; }
.tmc-plan:hover { transform: none; }
.tmc-plan.is-featured { border-color: var(--tmc-accent); box-shadow: 0 0 0 1px var(--tmc-accent), 0 24px 60px -30px var(--tmc-accent); }
.tmc-plan__badge { position: absolute; top: -12px; left: 24px; padding: .3rem .8rem; border-radius: 3px; background: var(--tmc-accent); color: var(--tmc-on-accent); font: 700 .7rem/1 var(--tmc-mono); letter-spacing: .1em; text-transform: uppercase; }
.tmc-plan h3 { margin: 0; }
.tmc-plan__price { margin: 0; color: var(--tmc-muted); }
.tmc-plan__price strong { font-size: 2.4rem; letter-spacing: -.03em; color: var(--tmc-fg); }
.tmc-plan .tmc-checklist { margin: 0 0 .6rem; flex: 1; }
.tmc-plan .tmc-btn { align-self: stretch; }

/* ---------- Galería ---------- */
.tmc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tmc-gallery__item { margin: 0; }
.tmc-gallery__item a { display: block; overflow: hidden; border-radius: var(--tmc-radius); border: 1px solid var(--tmc-border); cursor: zoom-in; }
.tmc-gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.tmc-gallery__item a:hover img { transform: scale(1.05); }
.tmc-gallery__item figcaption { margin-top: .6rem; }

/* ---------- FAQ ---------- */
.tmc-faq details { border: 1px solid var(--tmc-border); border-radius: 4px; background: var(--tmc-bg); margin-bottom: 12px; transition: border-color .2s; }
.tmc-faq details[open] { border-color: var(--tmc-accent); }
.tmc-faq summary { list-style: none; cursor: pointer; padding: 1.1rem 3.2rem 1.1rem 1.4rem; font-weight: 600; position: relative; }
.tmc-faq summary::-webkit-details-marker { display: none; }
.tmc-faq summary::after { content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--tmc-accent); transition: transform .2s; }
.tmc-faq details[open] summary::after { content: "–"; }
.tmc-faq details p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--tmc-muted); }

/* ---------- Video con carga diferida ---------- */
.tmc-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.tmc-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s; }
.tmc-facade:hover img { opacity: 1; }
.tmc-facade__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--tmc-accent); color: var(--tmc-on-accent); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }

/* ---------- Modal con imagen ---------- */
.tmc-modal__body--img { aspect-ratio: auto; background: transparent; border: 0; width: auto; max-width: min(1100px, 100%); max-height: 88vh; display: grid; place-items: center; }
.tmc-modal__body--img img { position: static; width: auto; height: auto; max-height: 88vh; border-radius: 4px; }

/* ---------- Cookies ---------- */
.tmc-cookie {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900;
	max-width: 760px; margin: 0 auto; padding: 18px 20px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
	background: var(--tmc-surface-2); border: 1px solid var(--tmc-border); border-radius: 4px;
	box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
}
.tmc-cookie[hidden] { display: none; }
.tmc-cookie p { flex: 1 1 320px; margin: 0; font-size: .88rem; color: var(--tmc-muted); }
.tmc-cookie a { color: var(--tmc-accent); text-decoration: underline; }
.tmc-cookie__actions { display: flex; gap: 8px; }


/* ---------- Responsive de las ampliaciones ---------- */
@media (max-width: 900px) {
	.tmc-contact-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.tmc-form__row { grid-template-columns: 1fr; }
	.tmc-topbar .tmc-container { padding-left: 16px; padding-right: 10px; }
	.tmc-topbar__menu { gap: 20px; }
	.tmc-cookie__actions { width: 100%; }
	.tmc-cookie__actions .tmc-btn { flex: 1; }
}

/* ==========================================================================
   Página "Sobre nosotros"
   ========================================================================== */
.tmc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tmc-hero--about { min-height: min(60vh, 520px); }

.tmc-story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.tmc-story--single { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.tmc-story__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; border: 1px solid var(--tmc-border); }

.tmc-timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 1px solid var(--tmc-border); }
.tmc-timeline__item { position: relative; padding: 0 0 36px 28px; }
.tmc-timeline__item:last-child { padding-bottom: 0; }
.tmc-timeline__item::before { content: ""; position: absolute; left: -35px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--tmc-accent); box-shadow: 0 0 0 5px var(--tmc-bg); }
.tmc-timeline__year { display: inline-block; margin-bottom: .4rem; font: 600 .8rem/1 var(--tmc-mono); letter-spacing: .14em; color: var(--tmc-accent); }
.tmc-timeline__item h3 { margin-bottom: .3em; }
.tmc-timeline__item p { color: var(--tmc-muted); margin: 0; }

.tmc-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.tmc-member { text-align: center; }
.tmc-member__photo { width: 148px; height: 148px; margin: 0 auto 1.1rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--tmc-surface-2); border: 1px solid var(--tmc-border); font-size: 3rem; font-weight: 700; color: var(--tmc-accent); }
.tmc-member__photo img { width: 100%; height: 100%; object-fit: cover; }
.tmc-member h3 { margin-bottom: .15em; }
.tmc-member__role { margin: 0 0 .6rem; font: 500 .78rem/1.3 var(--tmc-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tmc-accent); }
.tmc-member__bio { margin: 0; color: var(--tmc-muted); font-size: .95rem; }

@media (max-width: 900px) {
	.tmc-story { grid-template-columns: 1fr; }
	.tmc-grid--2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Tienda virtual (dispositivos electrónicos)
   ========================================================================== */
.tmc-hero--store { min-height: min(72vh, 640px); }
.tmc-hero--store .tmc-hero__title { max-width: 16ch; }

/* Barra de confianza */
.tmc-trust { border-block: 1px solid var(--tmc-border); background: var(--tmc-surface); }
.tmc-trust__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.tmc-trust__list li { display: flex; align-items: center; gap: 14px; padding: 26px 20px; }
.tmc-trust__list li + li { border-left: 1px solid var(--tmc-border); }
.tmc-trust__icon { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 4px; background: color-mix(in srgb, var(--tmc-accent) 14%, transparent); color: var(--tmc-accent); }
.tmc-trust__list strong { display: block; font-size: .98rem; }
.tmc-trust__list small { display: block; color: var(--tmc-muted); font-size: .82rem; line-height: 1.4; margin-top: 2px; }

/* Categorías */
.tmc-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.tmc-cat {
	display: flex; flex-direction: column; gap: 6px; padding: 24px 22px;
	background: var(--tmc-surface); border: 1px solid var(--tmc-border); border-radius: var(--tmc-radius);
	transition: transform .25s, border-color .25s, background .25s;
}
.tmc-cat:hover { transform: translateY(-4px); border-color: var(--tmc-accent); color: inherit; }
.tmc-cat__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; border-radius: 4px; background: linear-gradient(135deg, color-mix(in srgb, var(--tmc-accent) 26%, transparent), transparent); border: 1px solid var(--tmc-border); color: var(--tmc-accent); }
.tmc-cat strong { font-size: 1.02rem; }
.tmc-cat small { color: var(--tmc-muted); font-size: .85rem; line-height: 1.45; }

/* Productos */
.tmc-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tmc-product {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--tmc-bg); border: 1px solid var(--tmc-border); border-radius: var(--tmc-radius);
	transition: transform .25s, border-color .25s, box-shadow .25s;
}
.tmc-product:hover { transform: translateY(-5px); border-color: var(--tmc-accent); box-shadow: 0 24px 50px -28px var(--tmc-accent); }
.tmc-product__media { position: relative; display: block; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tmc-accent) 18%, var(--tmc-surface-2)), var(--tmc-surface-2)); overflow: hidden; }
.tmc-product__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 14px; transition: transform .5s ease; }
.tmc-product:hover .tmc-product__media img { transform: scale(1.06); }
.tmc-product__badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: .3rem .7rem; border-radius: 3px; background: var(--tmc-accent); color: var(--tmc-on-accent); font: 700 .68rem/1 var(--tmc-mono); letter-spacing: .1em; text-transform: uppercase; }
.tmc-product__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.tmc-product__body h3 { font-size: 1.05rem; margin-bottom: .35em; }
.tmc-product__body h3 a:hover { color: var(--tmc-accent); }
.tmc-product__body p { margin: 0 0 1rem; color: var(--tmc-muted); font-size: .88rem; line-height: 1.5; }
.tmc-product__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.tmc-product__price { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.tmc-product__price del { color: var(--tmc-muted); font-size: .85rem; font-weight: 400; margin-right: 4px; }
.tmc-product__price ins { text-decoration: none; }

/* Banner de oferta */
.tmc-promo {
	display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; overflow: hidden;
	border: 1px solid var(--tmc-border); border-radius: 6px;
	background: radial-gradient(80% 140% at 0% 0%, color-mix(in srgb, var(--tmc-accent) 24%, transparent), transparent 60%), var(--tmc-surface);
}
.tmc-promo__body { padding: clamp(28px, 5vw, 60px); }
.tmc-promo__body h2 { max-width: 18ch; }
.tmc-promo__body p { color: var(--tmc-muted); max-width: 46ch; }
.tmc-promo__media img { width: 100%; max-height: 380px; object-fit: contain; padding: 20px; }

/* Cómo comprar */
.tmc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; counter-reset: step; }
.tmc-step { position: relative; padding: 28px; border: 1px solid var(--tmc-border); border-radius: var(--tmc-radius); background: var(--tmc-surface); }
.tmc-step__num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.1rem; border-radius: 50%; background: var(--tmc-accent); color: var(--tmc-on-accent); font-weight: 800; }
.tmc-step h3 { margin-bottom: .3em; }
.tmc-step p { margin: 0; color: var(--tmc-muted); font-size: .95rem; }

/* Portada: bloque de tienda */
.tmc-store-teaser {
	display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; gap: 0; overflow: hidden;
	border: 1px solid var(--tmc-border); border-radius: 6px;
	background: radial-gradient(70% 120% at 100% 50%, color-mix(in srgb, var(--tmc-accent) 22%, transparent), transparent 65%), var(--tmc-surface);
}
.tmc-store-teaser__body { padding: clamp(28px, 5vw, 60px); }
.tmc-store-teaser__body p:not(.tmc-eyebrow) { color: var(--tmc-muted); max-width: 52ch; }
.tmc-store-teaser__media { min-height: 320px; position: relative; }
.tmc-store-teaser__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .tmc-store-teaser__media { min-height: 0; aspect-ratio: 16 / 10; } }
.tmc-chips--plain { margin-top: 1.4rem; }
.tmc-chips--plain a { background: var(--tmc-bg); }

@media (max-width: 1100px) {
	.tmc-products { grid-template-columns: repeat(3, 1fr); }
	.tmc-trust__list { grid-template-columns: repeat(2, 1fr); }
	.tmc-trust__list li:nth-child(3) { border-left: 0; }
	.tmc-trust__list li:nth-child(n+3) { border-top: 1px solid var(--tmc-border); }
}
@media (max-width: 900px) {
	.tmc-products { grid-template-columns: repeat(2, 1fr); }
	.tmc-promo, .tmc-store-teaser { grid-template-columns: 1fr; }
	.tmc-store-teaser__media { order: -1; }
	.tmc-store-teaser__media img { max-height: 240px; }
}
@media (max-width: 560px) {
	.tmc-products { gap: 12px; }
	.tmc-product__body { padding: 14px 14px 16px; }
	.tmc-product__foot .tmc-btn { width: 100%; }
	.tmc-trust__list { grid-template-columns: 1fr; }
	.tmc-trust__list li + li { border-left: 0; border-top: 1px solid var(--tmc-border); }
	.tmc-trust__list li:nth-child(n+3) { border-top: 1px solid var(--tmc-border); }
}


/* ==========================================================================
   v1.3 – Software global: secciones numeradas, entradas por público, imágenes
   ========================================================================== */
body { counter-reset: tmcsec; }
.tmc-eyebrow--num { counter-increment: tmcsec; }
.tmc-eyebrow--num::before { content: "0" counter(tmcsec) "  /  "; color: var(--tmc-muted); }
.tmc-eyebrow { font-weight: 500; letter-spacing: .14em; }
.tmc-btn { border-radius: 2px; }

/* Entradas por público (hero) */
.tmc-audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 5vw, 56px); max-width: 860px; }
.tmc-aud { display: flex; align-items: center; gap: 16px; padding: 10px 18px 10px 10px; background: rgba(var(--tmc-bg-rgb), .72); border: 1px solid var(--tmc-border); border-left: 3px solid var(--tmc-accent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s, transform .2s; }
.tmc-aud--warm { border-left-color: var(--tmc-warm); }
.tmc-aud:hover { transform: translateY(-3px); border-color: var(--tmc-accent); color: inherit; }
.tmc-aud--warm:hover { border-color: var(--tmc-warm); }
.tmc-aud__img { flex: 0 0 96px; width: 96px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tmc-surface-2); }
.tmc-aud__img img { width: 100%; height: 100%; object-fit: cover; }
.tmc-aud__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tmc-aud__body small { font: 500 .68rem/1 var(--tmc-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tmc-muted); }
.tmc-aud__body strong { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
.tmc-aud__body em { font-style: normal; font-size: .82rem; color: var(--tmc-muted); line-height: 1.35; }
.tmc-aud > svg { color: var(--tmc-accent); flex: 0 0 auto; }
.tmc-aud--warm > svg { color: var(--tmc-warm); }

/* Imagen + texto */
.tmc-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.tmc-split--media-first .tmc-split__media { order: -1; }
.tmc-split__media { margin: 0; border: 1px solid var(--tmc-border); background: var(--tmc-surface-2); overflow: hidden; }
.tmc-split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tmc-head-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(28px, 4vw, 48px); }
.tmc-head-split .tmc-section__head { margin-bottom: 0; }
.tmc-head-split .tmc-split__media img { aspect-ratio: 16 / 9; }
.tmc-band-media { margin: 0 0 clamp(24px, 4vw, 40px); border: 1px solid var(--tmc-border); overflow: hidden; background: var(--tmc-surface-2); }
.tmc-band-media img { width: 100%; max-height: 360px; aspect-ratio: 21 / 8; object-fit: cover; }
.tmc-grid--1 { grid-template-columns: 1fr; }
.tmc-grid--2.tmc-pillars { gap: 14px; }
.tmc-pillars .tmc-card { padding: 20px; }

/* Sectores */
.tmc-sector { background: var(--tmc-surface); border: 1px solid var(--tmc-border); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.tmc-sector:hover { border-color: var(--tmc-accent); transform: translateY(-3px); }
.tmc-sector__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--tmc-border); }
.tmc-sector__img img { width: 100%; height: 100%; object-fit: cover; }
.tmc-sector__body { padding: 20px; }
.tmc-sector__body h3 { font-size: 1.08rem; }
.tmc-sector__body p { color: var(--tmc-muted); font-size: .94rem; margin: 0; }

/* Miniaturas en tarjetas */
.tmc-card__thumb { display: block; margin: -28px -28px 20px; overflow: hidden; border-bottom: 1px solid var(--tmc-border); }
.tmc-card--link .tmc-card__thumb img, .tmc-card--post .tmc-card__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tmc-cat__img { display: block; margin: -4px -4px 10px; overflow: hidden; border: 1px solid var(--tmc-border); }
.tmc-cat__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tmc-cat__icon { display: none; }

/* Pasos en columna, CTA con imagen, noticias vacías */
.tmc-steps--stack { grid-template-columns: 1fr; }
.tmc-cta--media { display: grid; grid-template-columns: minmax(200px, 340px) 1fr auto; gap: 28px; align-items: center; }
.tmc-cta__media { margin: 0; overflow: hidden; border: 1px solid var(--tmc-border); }
.tmc-cta__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tmc-news-empty { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.tmc-contact-split .tmc-split__media { margin-top: 1.6rem; }
.tmc-store-teaser.is-reverse .tmc-store-teaser__media { order: -1; }

/* Capa de superficies más técnica */
.tmc-card, .tmc-product, .tmc-step, .tmc-plan { border-radius: 2px; }
.tmc-section--alt { background: linear-gradient(180deg, var(--tmc-surface), var(--tmc-bg)); }

@media (max-width: 900px) {
	.tmc-split, .tmc-head-split, .tmc-news-empty { grid-template-columns: 1fr; }
	.tmc-split--media-first .tmc-split__media { order: 0; }
	.tmc-audiences { grid-template-columns: 1fr; }
	.tmc-cta--media { grid-template-columns: 1fr; }
	.tmc-store-teaser.is-reverse .tmc-store-teaser__media { order: 0; }
}
@media (max-width: 520px) {
	.tmc-aud__img { flex-basis: 72px; width: 72px; }
}
@media (max-width: 900px) {
	.tmc-hero__overlay { background: linear-gradient(180deg, rgba(var(--tmc-bg-rgb), .72) 0%, rgba(var(--tmc-bg-rgb), .55) 60%, rgba(var(--tmc-bg-rgb), .85) 100%); }
}

/* ---------- Refinamientos del modo oscuro (v1.3.1) ---------- */
.tmc-header { border-bottom-color: var(--tmc-border); box-shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 12px 32px -24px rgba(0, 0, 0, .8); }
.tmc-header, .tmc-subheader { color: var(--tmc-fg); }
.tmc-menu a:hover, .tmc-menu .current-menu-item > a, .tmc-menu .current_page_item > a { box-shadow: inset 0 -2px 0 var(--tmc-accent); }
.tmc-card, .tmc-sector, .tmc-aud, .tmc-product, .tmc-step, .tmc-plan { transition: border-color .2s, transform .2s, box-shadow .2s; }
.tmc-card:hover, .tmc-sector:hover, .tmc-product:hover { box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--tmc-accent) 55%, transparent); }
.tmc-section--alt { background: linear-gradient(180deg, color-mix(in srgb, var(--tmc-surface) 70%, var(--tmc-bg)), var(--tmc-bg)); }
.tmc-hero .tmc-eyebrow { color: color-mix(in srgb, var(--tmc-accent) 70%, #fff); }
