/* ==========================================================================
   TUYINDUSTRIA Compresores - estilos principales
   ========================================================================== */

:root {
	--accent: #FFD100;
	--dark: #231F20;
	--ink: #161616;
	--muted: #5c5c5c;
	--line: #e4e4e0;
	--bg-alt: #f5f5f2;
	--white: #fff;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .08);
	--font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	overflow-x: clip;
}

img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; }
.mt { margin-top: 32px; }

.sr-only, .skip-link:not(:focus) {
	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 {
	position: fixed; top: 10px; left: 10px; z-index: 1000;
	background: var(--accent); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}

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

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 26px;
	border: 2px solid transparent; border-radius: 999px;
	font: 700 15px/1.2 var(--font);
	text-decoration: none; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.btn-accent { background: var(--accent); color: #111; }
.btn-accent:hover { background: #ffdd33; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: #111; }
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- Cabecera ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .97);
	backdrop-filter: saturate(1.4) blur(8px);
	box-shadow: 0 1px 0 var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 24px; font-weight: 800; letter-spacing: .02em; color: var(--dark); }
.brand-text small { font-size: 12px; font-weight: 600; letter-spacing: .32em; color: var(--muted); }
.custom-logo-link img { max-height: 56px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.site-nav > .menu { display: flex; align-items: center; gap: 4px; }
.menu a { text-decoration: none; }

.site-nav > .menu > li > a {
	display: block; padding: 28px 12px;
	font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.site-nav > .menu > li:hover > a,
.site-nav > .menu > li:focus-within > a,
.site-nav > .menu > .current-menu-item > a,
.site-nav > .menu > .current-menu-ancestor > a { color: #000; box-shadow: inset 0 -4px 0 var(--accent); }

.menu li { position: relative; }
.menu-item-has-children > a::after {
	content: ''; display: inline-block; margin-left: 8px; position: relative; top: -2px;
	padding: 2.5px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 270px;
	background: #fff; border-top: 3px solid var(--accent);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .16); border-radius: 0 0 12px 12px;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 20;
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu .sub-menu li a {
	display: flex; align-items: center; justify-content: space-between;
	padding: 11px 20px; font-size: 14px; font-weight: 500; color: var(--ink);
}
.menu .sub-menu li a:hover { background: #fffbe0; }
.menu .sub-menu .sub-menu { top: -3px; left: 100%; border-radius: 12px; }
/* Cuarto nivel: se abre hacia la izquierda para no salirse de la pantalla. */
.menu .sub-menu .sub-menu .sub-menu { left: auto; right: 100%; }
.menu .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); margin-left: 12px; top: 0; }

.sub-toggle { display: none; }

.nav-toggle {
	display: none; width: 46px; height: 46px; padding: 0;
	background: transparent; border: 2px solid var(--dark); border-radius: 10px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
	display: block; width: 20px; height: 2px; background: var(--dark); border-radius: 2px; position: relative; margin: 0 auto;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- Portada: slider ---------- */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.hero-slide {
	display: none; min-height: 540px; align-items: center; position: relative;
	background:
		radial-gradient(circle at 82% 28%, rgba(255, 209, 0, .22), transparent 52%),
		linear-gradient(135deg, #2f2a2b 0%, #141212 100%);
	background-size: cover; background-position: center;
}
.hero-slide.is-active { display: flex; animation: tuy-fade .7s ease; }
.hero-slide.has-image::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 70%, rgba(0, 0, 0, .1) 100%);
}
.hero-grid { position: relative; width: min(1200px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 70px 0 90px; }
.hero-slide.has-image .hero-grid { grid-template-columns: minmax(0, 720px); }
.hero-copy h1, .hero-copy h2 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; line-height: 1.1; margin-bottom: .5em; color: #fff; }
.hero-copy p { font-size: clamp(16px, 1.6vw, 20px); color: rgba(255, 255, 255, .86); max-width: 560px; margin-bottom: 1.6em; }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual::before {
	content: ''; position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 209, 0, .28), rgba(255, 209, 0, 0) 68%);
}
.hero-visual img { position: relative; width: 100%; max-width: 560px; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .5)); }

.tile-grid { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: min(100%, 460px); }
.tile-grid li {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
	aspect-ratio: 1 / .85; border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px;
	background: rgba(255, 255, 255, .06); font-weight: 600; font-size: 15px;
}
.tile-grid i { font-size: 40px; color: var(--accent); }

.hero-dots { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 12px; z-index: 3; }
.hero-dot { width: 13px; height: 13px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.hero-dot.is-active { background: #fff; }

@keyframes tuy-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Franja oscura ---------- */
.band { background: var(--dark); color: #fff; text-align: center; padding: 48px 0 54px; }
.band-title { font-size: clamp(15px, 1.9vw, 20px); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; max-width: 980px; margin: 0 auto 28px; }
.partners { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
.partners li { padding: 12px 24px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; font-weight: 800; letter-spacing: .14em; font-size: 15px; color: rgba(255, 255, 255, .9); }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 720px; margin: -6px auto 40px; }
.center.section-title { margin-bottom: 40px; }
.section-lead.center + .cards, .section-title.center + .cards { margin-top: 0; }
.h3 { font-size: 24px; }

/* ---------- Rueda de sectores ---------- */
.sectors { background: linear-gradient(180deg, #fff 0%, #f6f6f3 100%); }
.ring {
	--size: min(520px, 92vw);
	--item: calc(var(--size) * .125);
	--r: calc(var(--size) * .356);
	position: relative; width: var(--size); height: var(--size); margin: 0 auto 46px;
}
.ring::before {
	content: ''; position: absolute; inset: 5%; border-radius: 50%;
	background: repeating-conic-gradient(from -9deg, var(--accent) 0 18deg, transparent 18deg 20deg);
	-webkit-mask: radial-gradient(farthest-side, transparent 58%, #000 59%);
	mask: radial-gradient(farthest-side, transparent 58%, #000 59%);
	filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .16));
}
.ring-items { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.ring-items li {
	position: absolute; top: 50%; left: 50%; width: var(--item); height: var(--item);
	margin: calc(var(--item) / -2) 0 0 calc(var(--item) / -2);
	display: grid; place-items: center; border-radius: 50%;
	background: #fff; color: var(--dark); font-size: calc(var(--item) * .42);
	box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
	transform: rotate(calc(var(--i) * 20deg)) translateY(calc(var(--r) * -1)) rotate(calc(var(--i) * -20deg));
	transition: scale .2s ease, background .2s ease;
}
.ring-items li:hover { scale: 1.14; background: var(--dark); color: var(--accent); }
.ring-center {
	position: absolute; top: 50%; left: 50%; width: 42%; aspect-ratio: 1; transform: translate(-50%, -50%);
	border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	background: radial-gradient(circle at 30% 25%, #4a4445, var(--dark) 70%);
	border: 5px solid var(--accent); color: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.ring-center span { font-weight: 800; font-size: calc(var(--size) * .046); letter-spacing: .04em; color: var(--accent); }
.ring-center small { font-size: calc(var(--size) * .022); letter-spacing: .3em; font-weight: 600; }

.sectors-sub { text-align: center; text-transform: uppercase; font-weight: 700; font-size: clamp(15px, 1.8vw, 20px); max-width: 760px; margin: 0 auto 34px; }
.sector-list { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.sector-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 17px; }
.sector-list i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #111; font-size: 15px; }

/* ---------- Tarjetas ---------- */
.cards { display: grid; gap: 26px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.cat-card, .service-card {
	display: flex; flex-direction: column; gap: 6px; padding: 30px 28px; text-decoration: none;
	background: #fff; border: 1px solid var(--line); border-bottom: 4px solid var(--accent); border-radius: var(--radius);
	transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover, .service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat-card h3, .service-card h3 { font-size: 21px; margin: 6px 0 4px; }
.cat-card p, .service-card p { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.cat-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; background: var(--dark); color: var(--accent); font-size: 26px; }
.more { margin-top: auto; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.more i { transition: transform .2s ease; }
a:hover > .more i, .more:hover i { transform: translateX(4px); }

/* ---------- Datos ---------- */
.stats { background: var(--accent); color: #111; padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; line-height: 1.1; }
.stat span { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }

/* ---------- Noticias ---------- */
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-icon { display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%; background: linear-gradient(135deg, #fff2a3, var(--accent)); color: var(--dark); font-size: 64px; }
.news-body { padding: 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-body time { font-size: 13px; color: var(--muted); }
.news-body h3 { font-size: 20px; margin: 0; }
.news-body h3 a { text-decoration: none; }
.news-body h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.news-body p { color: var(--muted); font-size: 15px; margin: 4px 0 10px; }
.news-body .more { text-decoration: none; }

/* ---------- Llamado final ---------- */
.cta-band {
	background: linear-gradient(135deg, #2f2a2b, #141212); color: #fff; text-align: center; padding: 76px 0;
	background-image: radial-gradient(circle at 15% 20%, rgba(255, 209, 0, .18), transparent 40%), linear-gradient(135deg, #2f2a2b, #141212);
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .82); font-size: 18px; margin-bottom: 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Páginas interiores ---------- */
.page-hero {
	background: radial-gradient(circle at 85% 20%, rgba(255, 209, 0, .2), transparent 45%), linear-gradient(135deg, #2f2a2b, #141212);
	color: #fff; padding: 56px 0 60px; border-bottom: 5px solid var(--accent);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin: 8px 0 0; color: #fff; }
.page-hero p { color: rgba(255, 255, 255, .8); font-size: 18px; margin: 10px 0 0; max-width: 720px; }
.breadcrumb { font-size: 14px; color: rgba(255, 255, 255, .7); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.entry-content { font-size: 17px; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; }
.entry-content a { color: #7a5f00; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: 12px; }
.entry-image { margin-bottom: 28px; }
.entry-image img { width: 100%; border-radius: var(--radius); }

/* ---------- Catálogo ---------- */
.catalog { display: grid; grid-template-columns: 290px 1fr; gap: 36px; align-items: start; }
.catalog-side { position: sticky; top: 100px; background: var(--bg-alt); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.catalog-side h2 { font-size: 18px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.cat-tree, .cat-tree ul { list-style: none; margin: 0; padding: 0; }
.cat-tree ul.children { padding-left: 14px; border-left: 2px solid var(--accent); margin: 4px 0 8px 4px; }
.cat-tree li { margin: 0; }
.cat-tree a { display: block; padding: 6px 8px; text-decoration: none; font-size: 15px; border-radius: 8px; }
.cat-tree > li > a { font-weight: 700; }
.cat-tree a:hover, .cat-tree .current-cat > a { background: var(--accent); color: #111; }

.chips { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 500; }
.chips a:hover { background: var(--accent); border-color: var(--accent); }

.product-grid { gap: 24px; }
.catalog .cards-3 { grid-template-columns: repeat(3, 1fr); }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-thumb { display: block; aspect-ratio: 16 / 11; background: linear-gradient(135deg, #f4f4f0, #e6e6e0); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb img.thumb-placeholder { object-fit: contain; padding: 14px; }
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; align-items: flex-start; }
.product-body h3 { font-size: 18px; margin: 0; }
.product-body h3 a { text-decoration: none; }
.product-body p { color: var(--muted); font-size: 14.5px; margin: 0 0 8px; }
.product-body .btn { margin-top: auto; }

.product-single { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-media { border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #f4f4f0, #e6e6e0); border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-media img.thumb-placeholder { padding: 24px; }
.product-media .thumb-icon { font-size: 110px; }
.product-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.product-cats a { background: var(--dark); color: var(--accent); text-decoration: none; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.specs { width: 100%; border-collapse: collapse; margin-bottom: 8px; font-size: 16px; }
.specs th, .specs td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; background: var(--bg-alt); font-weight: 600; }

/* ---------- Paginación ---------- */
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.contact-list i { width: 20px; margin-top: 5px; color: var(--accent); flex: none; text-align: center; }
.contact-list.big { font-size: 18px; }
.contact-list.big i { color: var(--dark); background: var(--accent); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin-top: 0; font-size: 15px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-form-wrap { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; scroll-margin-top: 110px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field textarea, .search-field {
	width: 100%; padding: 13px 15px; font: inherit; color: inherit;
	background: #fff; border: 2px solid var(--line); border-radius: 10px;
}
.field input:focus, .field textarea:focus, .search-field:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 4px rgba(255, 209, 0, .5); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.notice-ok { background: #e7f7ea; border: 1px solid #9bd3a5; color: #14532d; }
.notice-error { background: #fdecec; border: 1px solid #f0a8a8; color: #7f1d1d; }

.search-form { display: flex; gap: 10px; max-width: 520px; margin: 20px auto; }
.search-form label { flex: 1; }
.search-submit { padding: 12px 22px; border: 0; border-radius: 10px; background: var(--dark); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .8); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 64px 0 44px; }
.site-footer h3 { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.site-footer h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: rgba(255, 255, 255, .6); }
.footer-brand { margin-bottom: 16px; }
.social { display: flex; gap: 10px; margin-top: 18px !important; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.social a:hover { background: var(--accent); color: #111; }
.site-footer .contact-list i { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; font-size: 14px; }
.footer-bottom p { margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 90;
	display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
	background: #25D366; color: #fff; font-size: 34px; text-decoration: none;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .3); animation: tuy-pulse 2.4s infinite;
}
.whatsapp-float:hover { background: #1ebe5a; }
@keyframes tuy-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55), 0 8px 22px rgba(0, 0, 0, .3); } 70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0), 0 8px 22px rgba(0, 0, 0, .3); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 22px rgba(0, 0, 0, .3); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.cards-4 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.catalog { grid-template-columns: 240px 1fr; gap: 24px; }
	.catalog .cards-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1140px) {
	.nav-toggle { display: inline-grid; place-items: center; }
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; padding: 8px 20px 24px; max-height: calc(100vh - 78px); overflow-y: auto;
		border-top: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0, 0, 0, .15);
	}
	.site-nav.is-open { display: flex; }
	.site-nav > .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav > .menu > li > a { padding: 15px 4px; box-shadow: none !important; border-bottom: 1px solid var(--line); }
	.menu-item-has-children > a::after { display: none; }
	.menu li { position: relative; }
	.menu .sub-menu {
		position: static; display: none; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-radius: 0; min-width: 0; padding-left: 14px; border-left: 3px solid var(--accent); margin: 4px 0 8px;
	}
	.menu li.is-open > .sub-menu { display: block; }
	.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { display: none; }
	.menu li.is-open:hover > .sub-menu, .menu li.is-open:focus-within > .sub-menu { display: block; }
	.menu .sub-menu .sub-menu { border-radius: 0; }
	.sub-toggle {
		display: grid; place-items: center; position: absolute; right: 0; top: 6px; width: 40px; height: 40px;
		background: var(--bg-alt); border: 0; border-radius: 10px; cursor: pointer;
	}
	.sub-toggle::before { content: ''; padding: 3px; border: solid var(--dark); border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -3px; transition: transform .2s ease; }
	li.is-open > .sub-toggle::before { transform: rotate(225deg); margin-top: 3px; }
	.menu .sub-menu li .sub-toggle { top: 2px; }
	.header-cta { margin-top: 18px; align-self: flex-start; }
}

@media (max-width: 860px) {
	.section { padding: 60px 0; }
	.hero-slide { min-height: 0; }
	.hero-grid { grid-template-columns: 1fr; padding: 50px 0 80px; gap: 30px; }
	.hero-visual { order: -1; max-width: 340px; margin: 0 auto; }
	.hero-visual img { max-width: 320px; }
	.tile-grid { gap: 10px; }
	.tile-grid li { font-size: 13px; }
	.tile-grid i { font-size: 28px; }
	.cards-3, .catalog .cards-3 { grid-template-columns: 1fr 1fr; }
	.stats-grid { grid-template-columns: 1fr 1fr; row-gap: 30px; }
	.sector-list { grid-template-columns: 1fr 1fr; }
	.contact-grid, .product-single { grid-template-columns: 1fr; gap: 30px; }
	.catalog { grid-template-columns: 1fr; }
	.catalog-side { position: static; }
}

@media (max-width: 560px) {
	.container { width: min(1200px, 100% - 32px); }
	.brand-text strong { font-size: 20px; }
	.cards-3, .cards-4, .catalog .cards-3 { grid-template-columns: 1fr; }
	.sector-list { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; padding: 48px 0 30px; gap: 32px; }
	.field-row { grid-template-columns: 1fr; }
	.contact-form-wrap { padding: 22px; }
	.whatsapp-float { width: 56px; height: 56px; font-size: 30px; right: 16px; bottom: 16px; }
}

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

/* ==========================================================================
   Estilos adicionales de la versión HTML estática
   ========================================================================== */

/* Enlace activo del menú */
.site-nav > .menu > li.current > a { color: #000; box-shadow: inset 0 -4px 0 var(--accent); }

.site-nav > .menu > li > a { white-space: nowrap; }
@media (max-width: 1260px) and (min-width: 1141px) {
	.site-nav { gap: 12px; }
	.site-nav > .menu > li > a { padding-inline: 8px; font-size: 12px; }
	.header-cta { padding-inline: 18px; }
}

/* Portada con fotos */
.hero-slide.has-image .hero-copy { max-width: 560px; }
.hero-slide.has-image .hero-copy h1,
.hero-slide.has-image .hero-copy h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
@media (min-width: 861px) {
	/* En el slide 3 el técnico queda a la derecha del título */
	.hero-slide.pos-3 { background-size: 120% auto; background-position: left 12%; }
}
@media (max-width: 860px) {
	.hero-slide.has-image { min-height: 460px; }
	.hero-slide.has-image .hero-grid { padding: 60px 0 90px; }
	.hero-slide.has-image::before { background: linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .78) 100%); }
	.hero-slide.pos-3 { background-position: 70% center; }
}

/* Marca (sin WordPress) */
.brand-wrap { display: flex; align-items: center; }

/* Catálogo: categorías laterales como enlaces filtrables */
.cat-filter, .cat-filter ul { list-style: none; margin: 0; padding: 0; }
.cat-filter ul { padding-left: 14px; border-left: 2px solid var(--accent); margin: 4px 0 8px 4px; }
.cat-filter a { display: block; padding: 6px 8px; text-decoration: none; font-size: 15px; border-radius: 8px; }
.cat-filter > li > a { font-weight: 700; }
.cat-filter a:hover, .cat-filter a.is-active { background: var(--accent); color: #111; }

.catalog-count { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.product-card[hidden] { display: none; }
.product-card .product-thumb { display: block; }
.product-card .tag { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.empty-note { padding: 30px; text-align: center; background: var(--bg-alt); border-radius: var(--radius); }

/* Consejos (tarjetas de texto) */
.tip-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tip-card .thumb-wrap { aspect-ratio: 16 / 7; overflow: hidden; }
.tip-card .thumb-icon { font-size: 54px; }
.tip-card .tip-body { padding: 24px; }
.tip-card h3 { font-size: 20px; margin: 0 0 8px; }
.tip-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* Formulario estático */
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-hint { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.contact-form .btn[hidden] { display: none; }

/* Página de servicios y textos */
.text-block h2 { font-size: 28px; margin-top: 1.6em; scroll-margin-top: 110px; }
.text-block h2:first-child { margin-top: 0; }
.text-block { font-size: 17px; }
.text-block ul { margin: 0 0 1.2em; }
.text-block li { margin-bottom: .4em; }
.service-block { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.service-block:last-of-type { border-bottom: 0; }
.service-block .cat-icon { width: 60px; height: 60px; }
.service-block h2 { font-size: 24px; margin: 0 0 6px; }
.service-block p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.value-card { padding: 26px; background: var(--bg-alt); border-radius: var(--radius); border-left: 5px solid var(--accent); }
.value-card h3 { font-size: 19px; margin-bottom: 6px; }
.value-card p { margin: 0; color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
	.split, .values { grid-template-columns: 1fr; }
	.service-block { grid-template-columns: 1fr; gap: 10px; }
}

/* ==========================================================================
   Banners
   ========================================================================== */

/* Barra superior */
.topbar { background: #111; color: rgba(255, 255, 255, .85); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar-msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: flex; align-items: center; gap: 20px; flex: none; }
.topbar a { text-decoration: none; font-weight: 600; color: var(--accent); }
.topbar a:hover { color: #fff; }
.topbar i { margin-right: 6px; }
@media (max-width: 860px) {
	.topbar-msg { display: none; }
	.topbar-inner { justify-content: center; }
	.topbar-links { gap: 16px; }
}
@media (max-width: 400px) {
	.topbar-links a:first-child { display: none; }
}

/* Banner ancho con foto */
.photo-banner {
	position: relative; color: #fff; padding: 84px 0;
	background-color: var(--dark); background-size: cover; background-position: center;
}
.photo-banner::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .6) 45%, rgba(0, 0, 0, .12) 100%);
}
.photo-banner .container { position: relative; }
.photo-banner-copy { max-width: 560px; }
.photo-banner h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.photo-banner p { font-size: 18px; color: rgba(255, 255, 255, .9); margin-bottom: 26px; }
@media (max-width: 860px) {
	.photo-banner { padding: 60px 0; }
	.photo-banner::before { background: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .82)); }
}

/* Encabezado de página con foto */
.page-hero.has-photo { position: relative; background-size: cover; background-position: center; }
.page-hero.has-photo::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .3) 100%);
}
.page-hero.has-photo .container { position: relative; }
.page-hero.has-photo { padding: 78px 0 82px; }

/* Franja final con foto */
.cta-band.has-photo { position: relative; background-size: cover; background-position: center; }
.cta-band.has-photo::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .68); }
.cta-band.has-photo .container { position: relative; }
