/* Consultoría Express — landing para anuncios. Mismo sistema que la Home: Raleway/Overpass, radio 10px, botones de 3px. */
body.cx-page { --c-warm: #f2f2f3; background: #fff; color: var(--c-ink); }
.cx-wrap { background: #fff; color: var(--c-ink); }
.cx-wrap { padding-left: var(--gut); padding-right: var(--gut); }
.cx-pad { padding-top: clamp(80px, 9vw, 140px); padding-bottom: clamp(80px, 9vw, 140px); }
.cx-wrap.cx-warm { background: var(--c-warm); }
.cx-wrap.cx-dark { background: var(--c-ink); color: #fff; }

/* Botones */
.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid var(--c-ink); border-radius: 3px; background: var(--c-ink); color: #fff; font: 600 15px var(--f-body); white-space: nowrap; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.cx-btn:hover, .cx-btn:focus-visible { background: #47474a; border-color: #47474a; }
.cx-btn--light { background: #fff; border-color: #fff; color: var(--c-ink); }
.cx-btn--light:hover, .cx-btn--light:focus-visible { background: #e7e7e9; border-color: #e7e7e9; }
.cx-btn--line { background: transparent; color: var(--c-ink); }
.cx-btn--line:hover, .cx-btn--line:focus-visible { background: var(--c-ink); color: #fff; }
.cx-btn:focus-visible, .cx-car-btn:focus-visible, .cx-faq summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Títulos */
.cx-h2 { margin: 0; font-family: var(--f-head); font-weight: 400; font-size: clamp(28px, 2.6vw, 44px); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.cx-lead { margin: 16px 0 0; max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--c-mute); text-wrap: pretty; }
.cx-dark .cx-lead { color: rgba(255,255,255,.72); }
.cx-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(36px, 4vw, 60px); }

/* Menú claro: logo gris, links oscuros */
.cx-page .nv, .cx-page .nv.is-solid { background: rgba(255,255,255,.96); color: var(--c-ink); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding-block: 14px; }
.cx-page .nv-logo img, .cx-page .nv.is-solid .nv-logo img { width: 116px; }
.cx-page .nv-links a { color: var(--c-ink); }
.cx-page .nv-cta, .cx-page .nv-sheet .hr-btn--solid { background: var(--c-ink) !important; border-color: var(--c-ink) !important; color: #fff !important; }
.cx-page .nv-cta:hover, .cx-page .nv-sheet .hr-btn--solid:hover { background: #47474a !important; border-color: #47474a !important; }
.cx-page .nv-sheet { background: #fff; color: var(--c-ink); }
.cx-page .nv-sheet nav a { color: var(--c-ink); border-color: var(--c-line); }
.cx-page .nv-burger { border-color: var(--c-line); background: transparent; }
.cx-page .nv-burger span { background: var(--c-ink); }
.cx-page .au-img { background: #e4e4e6; }
.cx-page main { background: #fff; }

/* 1. Hero dividido: texto a la izquierda, video a la derecha */
.cx-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 80px); align-items: center; padding: 136px var(--gut) clamp(40px, 4vw, 64px); background: #fff; color: var(--c-ink); }
.cx-intro { margin: 22px 0 0; max-width: 44ch; font-size: 18px; line-height: 1.6; color: var(--c-mute); text-wrap: pretty; }
.cx-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cx-facts { display: flex; gap: 40px; margin: 32px 0 0; }
.cx-facts dt { font-size: 14px; color: var(--c-mute); }
.cx-facts dd { margin: 4px 0 0; font-family: var(--f-head); font-size: 19px; font-weight: 500; }
.cx-hv { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #1f1f21; }
.cx-hv video { position: absolute; top: 0; left: 0; width: 100%; height: 124%; object-fit: cover; object-position: 50% 0; }
.cx-hv.is-playing video { height: 100%; object-fit: contain; }
.cx-hv-play { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--c-ink); cursor: pointer; transition: transform .25s ease; }
.cx-hv-play svg { width: 18px; height: 20px; margin-left: 4px; }
.cx-hv:hover .cx-hv-play { transform: scale(1.06); }
.cx-hv-play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cx-hv.is-playing .cx-hv-play { opacity: 0; pointer-events: none; }

/* Qué es: texto a la izquierda, cuatro puntos con ícono a la derecha */
.cx-que { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.cx-que .cx-lead { max-width: 44ch; }
.cx-que-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 3vw, 48px) clamp(24px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.cx-que-list svg { width: 32px; height: 32px; fill: none; stroke: var(--c-ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cx-que-list h3 { margin: 16px 0 6px; font-family: var(--f-head); font-weight: 500; font-size: 20px; line-height: 1.25; }
.cx-que-list p { margin: 0; font-size: 16px; line-height: 1.6; color: #4a4a4e; }

/* Banda de CTA (como el cierre de la Home, más baja) */
.cx-page .cta.cx-band { min-height: 0; padding-top: clamp(96px, 10vw, 160px); padding-bottom: clamp(96px, 10vw, 160px); }
.cx-band .cta-media { object-fit: cover; }

/* 2. Temas: título, foto y pregunta */
.cx-temas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px clamp(16px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none; }
.cx-tema-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #e4e4e6; }
.cx-tema-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.22,1,.36,1); }
.cx-tema:hover .cx-tema-img img { transform: scale(1.03); }
.cx-tema h3 { margin: 0 0 14px; font-family: var(--f-head); font-weight: 500; font-size: clamp(19px, 1.4vw, 23px); line-height: 1.25; }
.cx-tema p { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: #4a4a4e; }

/* 3. Cómo funciona: fotos grandes con número */
.cx-pasos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none; }
.cx-paso-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: #e4e4e6; }
.cx-paso-img img { width: 100%; height: 100%; object-fit: cover; }
.cx-paso-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,22,.45), rgba(20,20,22,0) 40%); }
.cx-n { position: absolute; top: 14px; left: 18px; z-index: 1; font-family: var(--f-head); font-weight: 200; font-size: clamp(52px, 4.4vw, 72px); line-height: 1; letter-spacing: -.04em; color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.cx-paso h3 { margin: 20px 0 8px; font-family: var(--f-head); font-weight: 500; font-size: clamp(20px, 1.45vw, 24px); line-height: 1.25; }
.cx-paso p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--c-mute); }

/* 4. Testimonios: videos verticales + tarjeta de cita */
.cx-tes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 24px); }
.cx-tv { position: relative; aspect-ratio: 9 / 15; overflow: hidden; border-radius: 10px; background: #1f1f21; }
.cx-tv video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-tv-over { position: absolute; inset: 0 0 auto 0; margin: 0; padding: 20px 20px 70px; background: linear-gradient(180deg, rgba(20,20,22,.8), rgba(20,20,22,0)); color: #fff; pointer-events: none; transition: opacity .3s ease; }
.cx-tv-over strong { display: block; font-size: 14px; font-weight: 600; }
.cx-tv-over span { display: block; margin-top: 4px; font-family: var(--f-head); font-size: 18px; line-height: 1.3; }
.cx-tv-play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--c-ink); cursor: pointer; transition: transform .25s ease, opacity .25s ease; }
.cx-tv-play svg { width: 16px; height: 18px; margin-left: 3px; }
.cx-tv:hover .cx-tv-play { transform: scale(1.06); }
.cx-tv.is-playing .cx-tv-play, .cx-tv.is-playing .cx-tv-over { opacity: 0; pointer-events: none; }
.cx-quote { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(24px, 2vw, 32px); border-radius: 10px; background: var(--c-warm); }
.cx-quote blockquote { margin: 0; font-family: var(--f-head); font-size: clamp(19px, 1.45vw, 24px); line-height: 1.35; }
.cx-quote figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--c-mute); }
.cx-quote-foot { display: grid; gap: 14px; }
.cx-google { font-size: 14px; font-weight: 600; color: var(--c-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--c-line); }
.cx-google:hover { text-decoration-color: currentColor; }

/* 5. Quiénes somos: la misma sección de la Home */
.cx-au { padding-top: clamp(80px, 9vw, 140px); padding-bottom: clamp(80px, 9vw, 140px); background: var(--c-warm); color: var(--c-ink); }

/* 6. Proyectos: carrusel */
.cx-car-sec { padding-right: 0; }
.cx-car-sec .cx-head { padding-right: var(--gut); }
.cx-car-nav { display: flex; gap: 8px; }
.cx-car-btn { width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; background: none; color: #fff; font-size: 24px; cursor: pointer; transition: border-color .2s ease, opacity .2s ease; }
.cx-car-btn:hover { border-color: #fff; }
.cx-car-btn:disabled { opacity: .3; cursor: default; }
.cx-car { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--gut) - 2 * 24px) / 2.6); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: var(--gut); overscroll-behavior-x: contain; }
.cx-car::-webkit-scrollbar { display: none; }
.cx-car, .cx-pasos, .cx-tes { -webkit-user-drag: none; }
.is-dragable { cursor: grab; }
.is-drag { cursor: grabbing; scroll-snap-type: none !important; user-select: none; }
.is-drag a, .is-drag img { pointer-events: none; }
.cx-obra { display: block; scroll-snap-align: start; color: #fff; }
/* Tarjeta de obra (ref. Programa "Made with Programa"): nombre sobre la foto, tipología y enlace debajo */
.cx-obra-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #3a3a3d; }
.cx-obra-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.22,1,.36,1); }
.cx-obra-img::after { content: ""; position: absolute; inset: 0; background: rgba(20,20,22,.34); transition: background .4s ease; }
.cx-obra-name { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 24px; text-align: center; font-family: var(--f-head); font-weight: 300; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-wrap: balance; }
.cx-obra:hover .cx-obra-img img, .cx-obra:focus-visible .cx-obra-img img { transform: scale(1.03); }
.cx-obra:hover .cx-obra-img::after, .cx-obra:focus-visible .cx-obra-img::after { background: rgba(20,20,22,.12); }
.cx-obra-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; font-size: 15px; }
.cx-obra-meta > span:first-child { color: rgba(255,255,255,.65); }
.cx-obra-go { font-weight: 600; }
.cx-obra-go span { display: inline-block; transition: transform .3s ease; }
.cx-obra:hover .cx-obra-go span { transform: translateX(4px); }

/* 7. Qué incluye */
.cx-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 24px); align-items: stretch; }
.cx-card.cx-card--no { background: var(--c-warm); color: var(--c-ink); }
.cx-card.cx-card--no .cx-card-name { border-color: var(--c-line); }
.cx-list.cx-list--no li { color: #4a4a4e; }
.cx-list.cx-list--no li::before { left: 0; top: 21px; width: 14px; height: 0; border-left: 0; border-bottom: 1.5px solid currentColor; transform: none; }
.cx-card .cx-card-foot { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: 15px; line-height: 1.6; color: var(--c-mute); }
.cx-card { padding: clamp(28px, 3vw, 48px); border-radius: 10px; background: var(--c-ink); color: #fff; }
.cx-card-name { display: block; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.18); font-family: var(--f-head); font-size: clamp(24px, 2vw, 30px); font-weight: 400; }
.cx-list { margin: 24px 0 0; padding: 0; list-style: none; }
.cx-list li { position: relative; padding: 10px 0 10px 30px; font-size: 16px; line-height: 1.5; }
.cx-list li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.cx-card .cx-btn { width: 100%; margin-top: 28px; }
.cx-card-note { margin: 14px 0 0; font-size: 13px; text-align: center; opacity: .6; }
.cx-no { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--c-line); font-size: 15px; line-height: 1.6; color: var(--c-mute); max-width: 44ch; }
.cx-no strong { display: block; margin-bottom: 6px; color: var(--c-ink); font-weight: 600; }

/* 8. Preguntas: título a la izquierda, acordeón a la derecha */
.cx-faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.cx-faq { border-top: 1px solid var(--c-line); }
.cx-faq details { border-bottom: 1px solid var(--c-line); }
.cx-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--f-head); font-size: clamp(18px, 1.35vw, 21px); font-weight: 500; line-height: 1.3; cursor: pointer; list-style: none; }
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--c-line); border-radius: 3px; font-family: var(--f-body); font-size: 20px; font-weight: 300; transition: transform .25s ease; }
.cx-faq details[open] summary::after { content: "–"; }
.cx-faq details p { margin: -6px 0 24px; max-width: 60ch; font-size: 16px; line-height: 1.65; color: var(--c-mute); }

/* 9. Cierre con video (como la Home) */
.cx-page .cta { min-height: 64vh; }
.cx-page .cta .h2 { font-size: clamp(34px, 3.8vw, 58px); }

/* Barra fija en celular */
.cx-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--c-line); color: var(--c-ink); transform: translateY(100%); transition: transform .35s cubic-bezier(.22,1,.36,1); }
.cx-bar.is-on { transform: none; }
.cx-bar-t { font-size: 14px; line-height: 1.3; }
.cx-bar-t strong { display: block; font-family: var(--f-head); font-size: 17px; font-weight: 500; }
.cx-bar .cx-btn { min-height: 46px; padding: 0 20px; }

@media (max-width: 1150px) {
	.cx-temas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cx-pasos, .cx-tes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cx-car { grid-auto-columns: calc((100% - var(--gut) - 24px) / 1.7); }
}
@media (max-width: 999px) {
	.cx-price, .cx-faq-grid, .cx-que { grid-template-columns: 1fr; }
	.cx-hero { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 690px) {
	.cx-bar { display: flex; }
	.cx-page .ft { padding-bottom: 110px; }
	.cx-page .chaty-widget { bottom: 96px !important; transition: bottom .35s cubic-bezier(.22,1,.36,1); }
	.cx-hero { padding-top: 112px; }
	.cx-que-list { grid-template-columns: 1fr; gap: 28px; }
	.cx-que-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 16px; }
	.cx-que-list svg { grid-row: span 2; }
	.cx-que-list h3 { margin-top: 2px; }
	.cx-intro { font-size: 17px; }
	.cx-hero-btns .cx-btn { width: 100%; }
	/* Temas: lista compacta con miniatura */
	.cx-temas { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--c-line); }
	.cx-tema { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
	.cx-tema-img { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: 1; border-radius: 8px; }
	.cx-tema h3 { grid-column: 2; grid-row: 1; margin: 0 0 4px; font-size: 18px; }
	.cx-tema p { grid-column: 2; margin: 0; font-size: 15px; line-height: 1.5; }
	.cx-head { flex-direction: column; align-items: start; }
	/* Pasos, testimonios y proyectos: carrusel horizontal */
	.cx-pasos, .cx-tes { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); }
	.cx-pasos > *, .cx-tes > * { scroll-snap-align: start; }
	.cx-pasos, .cx-tes, .cx-car { scrollbar-width: thin; scrollbar-color: var(--c-ink) var(--c-line); padding-bottom: 18px; }
	.cx-car { scrollbar-color: #fff rgba(255,255,255,.2); grid-auto-columns: 78%; gap: 14px; }
	.cx-car-nav { display: none; }
}

/* Animación de entrada (ref. YLLW): textos suben apenas, fotos y videos entran con un zoom leve. Un solo estilo para toda la página. */
@media (prefers-reduced-motion: no-preference) {
	.js-rv :is(.cx-hero-txt > *, .cx-hv, .cx-head, .cx-que > div:first-child, .cx-que-list li, .cx-tema, .cx-paso, .cx-tv, .cx-quote, .au-h, .au-img, .au-txt, .cx-obra, .cx-card, .cx-faq-side, .cx-faq details, .cta-in) { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0ms); }
	.js-rv :is(.cx-hv, .au-img, .cx-tema-img, .cx-paso-img, .cx-obra-img, .cx-tv) :is(img, video) { scale: 1.06; transition: scale 1.6s cubic-bezier(.22,1,.36,1), transform 1s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0ms); }
	.js-rv .is-in { opacity: 1 !important; transform: none !important; }
	.js-rv .is-in :is(img, video), .js-rv .is-in:is(img, video) { scale: 1; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 690px) {
	.js-rv :is(.cx-hero-txt > *, .cx-hv, .cx-head, .cx-que > div:first-child, .cx-que-list li, .cx-tema, .cx-paso, .cx-tv, .cx-quote, .au-h, .au-img, .au-txt, .cx-obra, .cx-card, .cx-faq-side, .cx-faq details, .cta-in) { transform: translateY(16px); transition-duration: .7s; }
}

@media (prefers-reduced-motion: reduce) {
	.cx-hv video:not([controls]) { visibility: hidden; }
	.cx-hv { background: #1f1f21 url('https://endetalleinteriores.com/wp-content/uploads/2026/11/srv-consultoria.webp') center 30% / cover; }
}
