/*
Theme Name: Intex de Fachadas
Theme URI: https://proyectosintex.es/
Author: Intex de Fachadas SL
Description: Tema a medida para Intex de Fachadas SL (rehabilitación de fachadas y reformas en Navarra).
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: intex
*/

/*
 * Paleta: el naranja de la marca sobre gris pizarra (el de los tejados de Pamplona)
 * y un gris piedra claro. Titulares en minúscula, con el peso justo.
 */
:root {
	--accent: #e2601e;
	--accent-dark: #bd4e13;
	--accent-soft: #fbe9df;
	--slate: #1f2a30;
	--slate-2: #2a3840;
	--ink: #1b2226;
	--muted: #59636a;
	--line: #dfe3e4;
	--soft: #f1f2f0;
	--white: #ffffff;
	--r-sm: 6px;
	--r-md: 12px;
	--wrap: 1240px;
	--font-head: "Archivo", "Arial Narrow", Arial, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--header-h: 84px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-dark); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.015em;
	margin: 0 0 .6em;
	color: var(--ink);
	text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.03; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3.1vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Etiqueta pequeña sobre un titular (solo en páginas interiores) */
.label { display: block; font-size: .95rem; font-weight: 600; color: var(--accent-dark); margin-bottom: 10px; }
.label--light { color: #f3a477; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 14px;
	padding: 6px 6px 6px 24px; border-radius: 999px;
	font-weight: 600; font-size: .97rem; line-height: 1;
	border: 1.5px solid transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease; cursor: pointer;
}
.btn .btn__ico {
	width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	transition: transform .25s var(--ease);
}
.btn:hover .btn__ico { transform: translateX(2px) rotate(45deg); }
.btn svg { width: 16px; height: 16px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent .btn__ico { background: rgba(0,0,0,.18); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn--ghost .btn__ico { background: #fff; color: var(--slate); }
.btn--ghost:hover { background: #fff; color: var(--slate); }
.btn--ghost:hover .btn__ico { transform: none; background: var(--accent); color: #fff; }
.btn--dark { border-color: var(--slate); color: var(--slate); }
.btn--dark .btn__ico { background: var(--slate); color: #fff; }
.btn--dark:hover { background: var(--slate); color: #fff; }
.btn--dark:hover .btn__ico { background: var(--accent); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--slate); color: #c9d0d3; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 40px; }
.topbar a:hover { color: #fff; }
.topbar__items { display: flex; gap: 28px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 14px; height: 14px; color: var(--accent); }

/* ---------- Cabecera ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line); transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(20,30,35,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 42px; height: 42px; flex: none; border-radius: 3px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; letter-spacing: .02em; }
.brand__sub { font-size: .66rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.main-nav ul { list-style: none; }
.main-nav > ul { display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
	display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
	font-weight: 500; font-size: .97rem; color: var(--ink);
}
.main-nav > ul > li.menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-3px); margin-left: 3px; opacity: .6;
}
.main-nav > ul > li > a:hover { background: var(--soft); color: var(--ink); }
.main-nav li.current-menu-item > a,
.main-nav li.current-menu-ancestor > a,
.main-nav li.current-menu-parent > a { color: var(--accent-dark); }
.main-nav .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; background: #fff;
	border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 18px 40px rgba(20,30,35,.12);
	padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.main-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { display: block; padding: 9px 14px; font-size: .94rem; color: var(--ink); border-radius: var(--r-sm); }
.main-nav .sub-menu a:hover { color: var(--accent-dark); background: var(--soft); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding-left: 20px; }
.header-cta .btn .btn__ico { width: 34px; height: 34px; }
.nav-toggle {
	display: none; width: 46px; height: 46px; border: 0; border-radius: 50%;
	background: var(--slate); color: #fff; cursor: pointer; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: all .25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
.submenu-toggle { display: none; }

/* ---------- Portada: pase de fotos ---------- */
.hero {
	position: relative; isolation: isolate;
	min-height: max(600px, min(calc(100svh - var(--header-h) - 40px), 860px));
	display: flex; flex-direction: column; justify-content: flex-end;
	color: #fff; overflow: hidden; background: var(--slate);
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	opacity: 0; transform: scale(1.02);
	transition: opacity 1.6s ease, transform 9s linear;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-zoom { transform: scale(1.09); }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(16,24,28,.84) 0%, rgba(16,24,28,.58) 42%, rgba(16,24,28,.12) 78%),
		linear-gradient(0deg, rgba(16,24,28,.75) 0%, rgba(16,24,28,0) 38%);
}
.hero__inner { padding-top: 110px; padding-bottom: 64px; }
.hero h1 { color: #fff; max-width: 13.5ch; margin-bottom: .4em; }
.hero__lead { max-width: 540px; font-size: 1.15rem; line-height: 1.6; color: #e6eaeb; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Entrada del titular: un único momento al cargar */
.hero h1, .hero__lead, .hero__actions { animation: rise .9s var(--ease) both; }
.hero__lead { animation-delay: .12s; }
.hero__actions { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero__bar { border-top: 1px solid rgba(255,255,255,.18); background: rgba(16,24,28,.35); backdrop-filter: blur(6px); }
.hero__bar-inner { display: flex; align-items: stretch; gap: 20px; }
.hero__tabs { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); flex: 1; }
.hero__tab {
	position: relative; width: 100%; height: 100%; text-align: left; cursor: pointer;
	background: none; border: 0; color: rgba(255,255,255,.62); font: inherit; font-size: .9rem; font-weight: 500;
	padding: 20px 18px 22px 0; transition: color .2s ease;
}
.hero__tab:hover, .hero__tab.is-active { color: #fff; }
.hero__tab i {
	position: absolute; left: 0; right: 18px; top: -1px; height: 2px;
	background: transparent linear-gradient(var(--accent), var(--accent)) no-repeat left center / 0% 100%;
}
.hero__tab.is-active i { background-color: rgba(255,255,255,.25); animation: progress 7s linear forwards; }
.hero.is-paused .hero__tab.is-active i { animation-play-state: paused; }
@keyframes progress { to { background-size: 100% 100%; } }
.hero__pause {
	flex: none; align-self: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
	border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; display: grid; place-items: center;
}
.hero__pause:hover { background: rgba(255,255,255,.12); }
.hero__pause-ico { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero.is-paused .hero__pause-ico { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

/* ---------- Secciones genéricas ---------- */
.section { padding: 104px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--slate); color: #c3cbcf; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 52px; }
.section__head h2 { margin: 0; }
.section__head p { color: var(--muted); max-width: 500px; margin: 0 0 0 auto; }
.section--dark .section__head p { color: #a8b2b7; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }

/* Presentación */
.intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.intro__media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--r-md); }
.intro__facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 34px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro__facts li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: .93rem; line-height: 1.45; color: var(--muted); }
.intro__facts svg { width: 22px; height: 22px; color: var(--accent); }
.intro__facts strong { display: block; color: var(--ink); font-weight: 600; }

/* Tarjetas de servicio */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
	background: #fff; display: flex; flex-direction: column; color: var(--ink);
	border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
	transition: border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover { color: var(--ink); border-color: #c9cfd1; box-shadow: 0 14px 34px rgba(20,30,35,.08); }
.service-card__img { overflow: hidden; aspect-ratio: 16/10; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .service-card__img img { transform: scale(1.04); }
.service-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card__body h3 { margin-bottom: .45em; }
.service-card__body p { color: var(--muted); font-size: .97rem; flex: 1; }
.service-card:hover h3 { color: var(--accent-dark); }
.more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.more svg { width: 15px; height: 15px; transition: transform .25s ease; color: var(--accent); }
.service-card:hover .more svg, .more:hover svg { transform: translateX(4px); }

/* Proceso (secuencia real: se numera) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 2px; background: var(--accent); }
.step__num { display: block; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: #f3a477; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.18rem; }
.step p { font-size: .96rem; color: #a8b2b7; margin: 0; }

/* Proyectos */
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.project-tile { position: relative; overflow: hidden; display: block; color: #fff; min-height: 320px; background: var(--slate); border-radius: var(--r-md); }
.project-tile:nth-child(1) { grid-column: span 7; min-height: 440px; }
.project-tile:nth-child(2) { grid-column: span 5; min-height: 440px; }
.project-tile:nth-child(3), .project-tile:nth-child(4), .project-tile:nth-child(5) { grid-column: span 4; }
.project-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,24,28,.8) 0%, rgba(16,24,28,0) 55%); }
.project-tile:hover img { transform: scale(1.04); }
.project-tile:hover { color: #fff; }
.project-tile__info { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 2; }
.project-tile__cat { font-size: .85rem; font-weight: 600; color: #f6b892; }
.project-tile__info h3 { color: #fff; margin: 4px 0 0; font-size: 1.35rem; }

/* Ventajas */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.features__media img { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; border-radius: var(--r-md); }
.feature-list { list-style: none; display: grid; gap: 26px; margin-top: 30px; }
.feature-list li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.feature-list .ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); }
.feature-list .ico svg { width: 22px; height: 22px; }
.feature-list h3, .feature-list h4 { margin: 2px 0 4px; font-size: 1.1rem; }
.feature-list p { margin: 0; color: var(--muted); font-size: .97rem; }
.section--dark .feature-list p { color: #a8b2b7; }

/* Llamada a la acción */
.cta { position: relative; background: var(--slate); color: #fff; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; }
.cta .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 92px; padding-bottom: 92px; }
.cta h2 { color: #fff; margin: 0; max-width: 18ch; }
.cta__phone { justify-self: end; display: flex; flex-direction: column; align-items: flex-start; }
.cta__phone small { display: block; font-size: .92rem; color: #c3cbcf; margin-bottom: 6px; }
.cta__tel { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; color: #fff; line-height: 1.1; margin-bottom: 22px; }
.cta__tel:hover { color: #f6b892; }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero { position: relative; background: var(--slate); color: #fff; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,24,28,.88), rgba(16,24,28,.35)); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 104px; padding-bottom: 80px; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.7rem); margin: 0; max-width: 20ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: .9rem; color: #c3cbcf; margin-bottom: 18px; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: rgba(255,255,255,.4); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Contenido de páginas ---------- */
.page-body { padding: 88px 0 100px; }
.page-layout { display: grid; grid-template-columns: 290px 1fr; gap: 64px; align-items: start; }
.page-layout--right { grid-template-columns: 1fr 340px; }
.entry > *:last-child { margin-bottom: 0; }
.entry h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.entry h3 { margin-top: 1.7em; font-size: 1.28rem; }
.entry .lead:first-child { font-size: 1.28rem; }
.entry a:not(.btn):not(.more) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry ul.check { list-style: none; display: grid; gap: 12px; margin: 0 0 1.4em; }
.entry ul.check li { position: relative; padding-left: 34px; }
.entry ul.check li::before {
	content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}
.entry ul.check.cols { grid-template-columns: 1fr 1fr; column-gap: 30px; }
.entry img.wide { width: 100%; aspect-ratio: 16/8; object-fit: cover; margin: 10px 0 34px; border-radius: var(--r-md); }
.entry .split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin: 0 0 70px; }
.entry .split img { width: 100%; aspect-ratio: 4/3.3; object-fit: cover; border-radius: var(--r-md); }
.entry .split--rev > :first-child { order: 2; }
.entry .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 10px 0 56px; }
.entry .cards--2 { grid-template-columns: repeat(2, 1fr); }
.entry .card { background: var(--soft); padding: 30px 28px; border-radius: var(--r-md); }
.entry .card h3 { margin-top: 0; font-size: 1.12rem; }
.entry .card p { color: var(--muted); font-size: .97rem; margin: 0; }
.entry .card .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--accent-dark); margin-bottom: 18px; }
.entry .card .ico svg { width: 22px; height: 22px; }
.entry .card .num { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--accent-dark); display: block; margin-bottom: 12px; }
.entry .note { background: var(--accent-soft); border-radius: var(--r-md); padding: 22px 26px; color: var(--ink); font-size: .97rem; }

/* Barra lateral */
.side-nav { background: var(--soft); padding: 24px 0; border-radius: var(--r-md); }
.side-nav h4 { padding: 0 26px; margin-bottom: 10px; font-size: .95rem; color: var(--muted); font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }
.side-nav ul { list-style: none; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 11px 26px; font-weight: 500; border-left: 3px solid transparent; }
.side-nav a::after { content: "→"; color: var(--accent); opacity: 0; transition: opacity .2s ease; }
.side-nav a:hover::after, .side-nav .is-current a::after { opacity: 1; }
.side-nav a:hover, .side-nav .is-current a { background: #fff; border-left-color: var(--accent); color: var(--ink); }
.side-box { background: var(--slate); color: #c3cbcf; padding: 30px 26px; margin-top: 20px; border-radius: var(--r-md); }
.side-box h4 { color: #fff; font-size: 1.15rem; }
.side-box a.tel { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.65rem; color: #fff; margin: 12px 0 6px; }
.side-box a.tel:hover { color: #f6b892; }
.side-box p:last-child { margin: 0; font-size: .92rem; }
.side-sticky { position: sticky; top: calc(var(--header-h) + 24px); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--soft); border-radius: var(--r-md); }
.faq summary {
	list-style: none; cursor: pointer; padding: 20px 64px 20px 24px; position: relative;
	font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
	width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--accent-dark);
	display: grid; place-items: center; font-size: 1.2rem; line-height: 1;
}
.faq details[open] summary::after { content: "−"; background: var(--accent); color: #fff; }
.faq details > div { padding: 0 24px 22px; color: var(--muted); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.contact-card { background: var(--soft); padding: 34px 30px; border-radius: var(--r-md); }
.contact-card .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 20px; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.1rem; margin-top: 0; margin-bottom: 8px; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card a.big { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.contact-card a.big:hover { color: var(--accent-dark); }

/* Formulario de presupuesto */
.contact-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; margin: 34px 0 70px; }
.contact-layout .contact-grid { grid-template-columns: 1fr; gap: 16px; margin: 0; }
.contact-layout .contact-card { padding: 26px 26px; }
.contact-layout .contact-card p + p { margin-top: 6px; font-size: .93rem; }
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 34px 34px 30px; scroll-margin-top: calc(var(--header-h) + 20px); box-shadow: 0 14px 40px rgba(20,30,35,.06); }
.entry .quote-form__title { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: .3em; }
.quote-form__intro { color: var(--muted); font-size: .97rem; margin-bottom: 22px; }
.quote-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.quote-form .field { margin: 0 0 18px; }
.quote-form .field--full { grid-column: 1 / -1; }
.quote-form label { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.quote-form input[type=text], .quote-form input[type=tel], .quote-form input[type=email], .quote-form select, .quote-form textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--soft);
	border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; transition: border-color .15s ease, background-color .15s ease;
}
.quote-form textarea { resize: vertical; min-height: 130px; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.quote-form ::placeholder { color: #8b959b; }
.quote-form .field--check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin-bottom: 24px; }
.quote-form .field--check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.quote-form .field--check label { font-weight: 400; font-size: .92rem; color: var(--muted); margin: 0; }
.quote-form button { border: 0; font-family: inherit; }
.quote-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 20px; font-size: .97rem; }
.form-msg--ok { background: #e6f4ea; color: #1d5b2c; }
.form-msg--error { background: #fdecea; color: #8a1f17; }

/* Proyectos página */
.project-cat { margin-bottom: 80px; scroll-margin-top: calc(var(--header-h) + 20px); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-md); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .7s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(16,24,28,.82); color: #fff; font-size: .84rem; padding: 6px 12px; border-radius: 999px; }

/* Noticias */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--soft); border-radius: var(--r-md); overflow: hidden; }
.post-card__body { padding: 24px 24px 28px; }
.post-card__date { font-size: .85rem; color: var(--accent-dark); }
.post-card h3 { margin: 8px 0 10px; }
.empty-state { text-align: center; max-width: 620px; margin: 0 auto; padding: 40px 0; }
.empty-state svg { width: 64px; height: 64px; color: var(--accent); margin: 0 auto 22px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--slate); color: #a8b2b7; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 50px; padding-top: 84px; padding-bottom: 64px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 20px; }
.site-footer .brand__sub { color: #8d989e; }
.footer-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--accent); margin-top: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 22px; padding-bottom: 22px; font-size: .86rem; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Franja de confianza bajo la portada */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 24px; padding-bottom: 24px; gap: 24px; }
.trust__list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .93rem; line-height: 1.45; color: var(--muted); }
.trust__list svg { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.trust__list strong { color: var(--ink); font-weight: 600; }

/* Zona de trabajo */
.area__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.area__list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 30px; border-top: 1px solid var(--line); }
.area__list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.area__list li:last-child { color: var(--accent-dark); }

/* Otros servicios (páginas de servicio) */
.related { background: var(--soft); padding: 64px 0; }
.related__title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 22px; }
.related__list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 1px solid var(--line); }
.related__list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.related__list a:hover { color: var(--accent-dark); }
.related__list svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Barra de llamada en móvil */
.callbar { display: none; }

/* Clases antiguas del contenido: sin animación por sección */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero h1, .hero__lead, .hero__actions { animation: none; }
	.hero__slide { transition: opacity .01s; transform: none !important; }
	.hero__tab.is-active i { animation: none; background-size: 100% 100%; }
	.hero__pause { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.main-nav > ul > li > a { padding: 10px 9px; font-size: .92rem; }
	.header-cta .btn { display: none; }
}
@media (max-width: 960px) {
	:root { --header-h: 70px; }
	.nav-toggle { display: grid; }
	.header-cta .btn { display: none; }
	.main-nav {
		position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff;
		overflow-y: auto; padding: 10px 24px 40px; transform: translateX(100%); transition: transform .3s ease;
		border-top: 1px solid var(--line);
	}
	.admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .main-nav { transform: none; }
	.nav-open { overflow: hidden; }
	.main-nav > ul { flex-direction: column; gap: 0; }
	.main-nav > ul > li { border-bottom: 1px solid var(--line); }
	.main-nav > ul > li > a { padding: 16px 0; font-size: 1.05rem; border-radius: 0; }
	.main-nav > ul > li > a:hover { background: none; }
	.main-nav > ul > li.menu-item-has-children > a::after { display: none; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 6px; display: none; min-width: 0; }
	.main-nav li.is-open > .sub-menu { display: block; }
	.submenu-toggle {
		display: grid; place-items: center; position: absolute; right: 0; top: 8px; width: 40px; height: 40px;
		background: var(--soft); border: 0; border-radius: 50%; cursor: pointer; color: var(--ink);
	}
	.submenu-toggle::before { content: "+"; font-size: 1.3rem; line-height: 1; }
	.main-nav li.is-open > .submenu-toggle::before { content: "−"; }
	.topbar__item--hide { display: none; }
	.section { padding: 76px 0; }
	.section__head, .intro, .features, .cta .wrap, .page-layout, .page-layout--right, .entry .split, .contact-layout { grid-template-columns: 1fr; }
	.section__head { gap: 16px; margin-bottom: 36px; }
	.section__head p { margin-left: 0; }
	.intro, .features { gap: 40px; }
	.entry .split--rev > :first-child { order: 0; }
	.services-grid, .entry .cards, .contact-grid, .gallery, .posts-grid { grid-template-columns: 1fr 1fr; }
	.steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
	.projects-grid { grid-template-columns: 1fr 1fr; }
	.project-tile:nth-child(n) { grid-column: span 1; min-height: 280px; }
	.project-tile:nth-child(1) { grid-column: span 2; }
	.cta__phone { justify-self: start; }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.side-sticky { position: static; }
	.page-layout > aside { order: 2; }
	.trust__list { grid-template-columns: 1fr 1fr; }
	.area__grid { grid-template-columns: 1fr; gap: 30px; }
	.related__list { grid-template-columns: 1fr 1fr; }
	.hero__tab { font-size: .82rem; padding-right: 12px; }
	.hero__tab i { right: 12px; }
	.callbar {
		display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		background: var(--slate); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
	}
	.callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-weight: 600; font-size: .98rem; }
	.callbar svg { width: 18px; height: 18px; }
	.callbar__tel { background: #fff; color: var(--ink); }
	.callbar__quote { background: var(--accent); color: #fff; }
	body { padding-bottom: 72px; }
	.nav-open .callbar { display: none; }
}
@media (max-width: 620px) {
	.wrap { padding: 0 18px; }
	body { font-size: 16px; }
	.topbar .wrap { justify-content: center; }
	.topbar__items { gap: 16px; justify-content: center; }
	.hero { min-height: 600px; }
	.hero::before { background: linear-gradient(0deg, rgba(16,24,28,.92) 0%, rgba(16,24,28,.62) 55%, rgba(16,24,28,.42) 100%); }
	.hero__inner { padding-top: 72px; padding-bottom: 40px; }
	.hero__lead { font-size: 1.05rem; }
	.hero__actions .btn { width: 100%; justify-content: space-between; }
	.hero__tab span { display: none; }
	.hero__tab { padding: 18px 6px 18px 0; }
	.hero__tab i { right: 6px; }
	.services-grid, .entry .cards, .entry .cards--2, .contact-grid, .gallery, .posts-grid, .steps, .projects-grid, .footer-top, .entry ul.check.cols, .intro__facts { grid-template-columns: 1fr; }
	.project-tile:nth-child(1) { grid-column: span 1; }
	.page-hero .wrap { padding-top: 72px; padding-bottom: 56px; }
	.page-body { padding: 60px 0 72px; }
	.brand__name { font-size: 1.4rem; }
	.brand__mark { width: 38px; height: 38px; }
	.trust__list { grid-template-columns: 1fr; gap: 14px; padding-top: 22px; padding-bottom: 22px; }
	.related__list { grid-template-columns: 1fr; }
	.quote-form { padding: 26px 20px 24px; }
	.quote-form__grid { grid-template-columns: 1fr; }
	.quote-form button { width: 100%; justify-content: space-between; }
}
