/* JLROCA Contacto: todo va dentro de .jlc para no tocar el resto de la web. Hereda la tipografía del tema. */
.jlc {
	--jlc-acento: #ff8c00;
	--jlc-texto-boton: #1a1a1a; /* el texto blanco no se lee sobre el naranja */
	font-family: inherit;
	color: inherit;
}
.jlc *, .jlc *::before, .jlc *::after { box-sizing: border-box; }
/* El ancho se limita en los hijos: los temas (Astra, Elementor…) fuerzan el ancho del contenedor de la página, pero no el de estos */
.jlc > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.jlc-titulo { margin-top: 0; margin-bottom: 1rem; }

.jlc-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .jlc-fila { grid-template-columns: 1fr; } }

.jlc-campo { margin: 0 0 1rem; }
.jlc-campo label { display: block; font-weight: 600; margin: 0 0 .35rem; }

.jlc input[type="text"],
.jlc input[type="tel"],
.jlc input[type="email"],
.jlc select,
.jlc textarea {
	width: 100%;
	height: auto; /* algunos temas fijan 40 px y cortan el texto del desplegable */
	min-height: 46px;
	font: inherit;
	font-size: 16px; /* evita el zoom automático en iPhone */
	line-height: 1.4;
	padding: .7rem .8rem;
	border: 1px solid rgba(0, 0, 0, .4);
	border-radius: 8px;
	background: #fff;
	color: #1a1a1a;
}
.jlc textarea { resize: vertical; min-height: 7rem; }
.jlc input:focus, .jlc select:focus, .jlc textarea:focus {
	outline: 3px solid var(--jlc-acento);
	outline-offset: 1px;
	border-color: #1a1a1a;
}
/* Campo con problema: rojo también cuando tiene el foco */
.jlc input[aria-invalid="true"], .jlc input[aria-invalid="true"]:focus,
.jlc select[aria-invalid="true"], .jlc select[aria-invalid="true"]:focus,
.jlc textarea[aria-invalid="true"], .jlc textarea[aria-invalid="true"]:focus { border-color: #b32d2e; background: #fff6f6; }
.jlc input[type="checkbox"][aria-invalid="true"] { outline: 2px solid #b32d2e; outline-offset: 2px; }

.jlc-nota { margin: -.4rem 0 1rem; font-size: .9rem; opacity: .8; }

/* Trampa antirrobots: fuera de pantalla, no con display:none (los robots lo detectan) */
.jlc-ohp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.jlc-check { margin: 0 0 .6rem; }
.jlc-check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; cursor: pointer; margin: 0; }
.jlc-check input { margin-top: .25rem; width: 1.15rem; height: 1.15rem; accent-color: var(--jlc-acento); flex: none; }

.jlc-legal { font-size: .78rem; line-height: 1.5; opacity: .75; margin: 1rem 0; }

.jlc-boton {
	display: inline-block;
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	min-height: 44px;
	padding: .8rem 1.7rem;
	border: 0;
	border-radius: 8px;
	background: var(--jlc-acento);
	color: var(--jlc-texto-boton);
	cursor: pointer;
}
/* El botón conserva su color en todos los estados: temas como Astra lo pintan de azul al tener el foco */
.jlc .jlc-boton, .jlc .jlc-boton:hover, .jlc .jlc-boton:focus, .jlc .jlc-boton:active {
	background: var(--jlc-acento);
	color: var(--jlc-texto-boton);
	border: 0;
	box-shadow: none;
}
.jlc .jlc-boton:hover, .jlc .jlc-boton:active { filter: brightness(.93); }
.jlc .jlc-boton:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }
.jlc-boton[disabled] { opacity: .6; cursor: wait; }

.jlc-estado { margin: 1rem 0 0; font-weight: 600; }
.jlc-estado:empty { display: none; }
.jlc-estado.jlc-ok, .jlc-estado.jlc-error { padding: .8rem 1rem; border-radius: 8px; border-left: 5px solid; }
.jlc-estado.jlc-ok { background: #e8f5e9; color: #14532d; border-color: #2e7d32; }
.jlc-estado.jlc-error { background: #fdecea; color: #7f1d1d; border-color: #c62828; }

.jlc-alt { margin-top: 1.5rem; font-size: .95rem; }
.jlc-wa { font-weight: 700; }

/* Después de enviar: invitación al chat con el asistente */
.jlc-siguiente {
	margin: 1rem 0 0; padding: 1.1rem 1.2rem; border-radius: 14px;
	background: #17150f; color: #fff; display: grid; gap: .85rem;
}
.jlc-siguiente p { margin: 0; font-size: .95rem; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.jlc .jlc-siguiente .jlc-boton-chat { justify-self: start; border-radius: 999px; padding: .85rem 1.5rem; }
.jlc .jlc-siguiente .jlc-boton-chat:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) { .jlc .jlc-siguiente .jlc-boton-chat { justify-self: stretch; } }
