/**
 * Lo que añade el tema a la web clonada: el WhatsApp por proyecto, el
 * lightbox de las galerías, las flechas y puntos de los carruseles, la
 * fachada de los videos de YouTube y los mensajes del formulario. El resto
 * del diseño es el de la web en vivo (assets/css/clon/).
 */
/* WhatsApp por proyecto: la píldora verde y el panel con una fila por proyecto,
   como el botón de la web en vivo. */
.jc-wa {
	position: fixed; right: 24px; bottom: 24px; z-index: 50;
	display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.jc-wa__btn {
	display: inline-flex; align-items: center; gap: 9px;
	background: #25D366; color: #fff; padding: 13px 20px; border-radius: 999px;
	text-decoration: none; font-size: 14.5px; font-weight: 600;
	box-shadow: 0 4px 15px rgba(0, 0, 0, .25); transition: transform .2s;
}
.jc-wa__btn:hover, .jc-wa__btn:focus-visible { transform: scale(1.05); color: #fff; }
.jc-wa__btn svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.jc-wa__panel {
	width: 320px; max-width: calc(100vw - 40px); background: #fff; border-radius: 16px;
	overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
}
.jc-wa__panel[hidden] { display: none; }
.jc-wa__cabecera { position: relative; background: #25D366; color: #fff; padding: 16px 40px 16px 18px; font-size: 13.5px; line-height: 1.45; }
.jc-wa__cabecera p { margin: 0; }
.jc-wa__cerrar { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; opacity: .85; }
.jc-wa__fila {
	display: flex; align-items: center; gap: 12px; padding: 12px 16px;
	text-decoration: none; color: #1a1a1a; border-bottom: 1px solid #f0f0f0;
}
.jc-wa__fila:hover, .jc-wa__fila:focus-visible { background: #f7f9f8; color: #1a1a1a; }
.jc-wa__fila::after { content: "\203A"; color: #bbb; font-size: 16px; }
.jc-wa__logo {
	width: 46px; height: 46px; border-radius: 10px; border: 1px solid #eee; background: #fff;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.jc-wa__logo img { max-width: 34px; max-height: 34px; object-fit: contain; }
.jc-wa__texto { flex: 1; min-width: 0; }
.jc-wa__texto strong { display: block; font-size: 14px; font-weight: 600; }
.jc-wa__estado { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #555; margin-top: 2px; }
.jc-wa__estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #25D366; }
@media (max-width: 480px) { .jc-wa { right: 16px; bottom: 16px; } }

.jc-wa { font-family: 'Rubik', system-ui, sans-serif; z-index: 9990; }

/* Carruseles */
.elementor-widget-image-carousel .swiper { position: relative; overflow: hidden; }
.elementor-widget-image-carousel .swiper-wrapper { display: flex; will-change: transform; }
.elementor-widget-image-carousel .swiper-slide { flex-shrink: 0; }
.jc-car__flecha {
	position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px;
	border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer;
}
.jc-car__flecha::before { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; }
.jc-car__flecha--prev { left: 12px; } .jc-car__flecha--prev::before { transform: rotate(135deg); left: 4px; }
.jc-car__flecha--next { right: 12px; } .jc-car__flecha--next::before { transform: rotate(-45deg); right: 4px; }
.jc-car__puntos { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.jc-car__punto { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; }
.jc-car__punto[aria-current="true"] { background: #fff; }

/* Lightbox */
.jc-lb { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .9); }
.jc-lb[hidden] { display: none; }
.jc-lb__img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.jc-lb__cerrar, .jc-lb__flecha { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 10px 16px; }
.jc-lb__cerrar { top: 10px; right: 14px; font-size: 38px; }
.jc-lb__flecha--prev { left: 6px; } .jc-lb__flecha--next { right: 6px; }

/* Videos de YouTube */
.jc-yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.jc-yt img { width: 100%; height: 100%; object-fit: cover; }
.jc-yt__play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 14px; background: #f00; }
.jc-yt__play::before { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; transform: translateX(2px); }
.jc-yt__frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* Formularios */
.jc-form__estado { margin: 10px 0 0; font-size: 14px; width: 100%; }
.jc-form__estado[data-estado="ok"] { color: #3c7a12; }
.jc-form__estado[data-estado="error"] { color: #b3261e; }
.jc-form__trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* El enlace «Ir al contenido»: oculto hasta que se navega con el teclado. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); word-wrap: normal !important; border: 0; }
.skip-link.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; margin: 0; padding: 12px 22px; top: 6px; left: 6px; z-index: 100000; background: #fff; color: #1a1a1a; font-size: 14px; }
.jc-form__estado:empty { display: none; }

/* El H1 que pone clonar-render.py en las páginas que no tenían uno (Proyectos):
   lo leen Google y los lectores de pantalla; el diseño no cambia. */
.seo-h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Portada en PC: mientras llega el video (≈20 MB) se veía un bloque blanco
   entre el menú y el texto. La misma foto del celular hace de fondo; el
   video la cubre en cuanto arranca. */
.section-hero {
	background-image: url(/wp-content/uploads/2022/05/jimenez-constructores-homepage-banner.jpg) !important;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
}
.section-hero .hvid { background: transparent; }
