/* Lina Gomez – Funciones · componentes (v0.1.0) */

.lgf-solo-lectores {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.lgf-whatsapp {
	position: fixed;
	right: clamp(14px, 2vw, 28px);
	bottom: clamp(14px, 2vw, 28px);
	z-index: 90;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #ffffff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	transition: transform 0.15s ease;
}
.lgf-whatsapp svg { width: 30px; height: 30px; }
.lgf-whatsapp { transform: translateY(calc(-1 * var(--lgf-sube, 0px))); }
.lgf-whatsapp:hover { transform: translateY(calc(-1 * var(--lgf-sube, 0px))) scale(1.06); }
.lgf-whatsapp:focus-visible { outline: 3px solid #0b0b0c; outline-offset: 3px; }
/* Celular: botón algo más chico, apoyado en el borde con margen seguro, y oculto
   mientras se escribe en un campo (buscador, formulario) para no tapar controles. */
@media (max-width: 600px) {
	.lgf-whatsapp { width: 48px; height: 48px; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
	.lgf-whatsapp svg { width: 26px; height: 26px; }
}
.lgf-whatsapp { transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s; }
.lgf-whatsapp.lgf-whatsapp--oculto { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .lgf-whatsapp { transition: none; } }

/* ---------- Tarjeta del formulario ---------- */
.lgf-form-tarjeta {
	box-sizing: border-box;
	background: #ffffff;
	color: #0b0b0c;
	border-radius: 24px;
	padding: clamp(1.5rem, 2vw, 2rem);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.lgf-form-tarjeta__titulo {
	font-family: var(--wp--preset--font-family--bricolage, inherit);
	font-weight: 600;
	font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.6rem);
	line-height: 1.2;
	margin: 0 0 1.1rem;
}
.lgf-form { display: grid; gap: 0.8rem; margin: 0; }
.lgf-form p { margin: 0; }
.lgf-form__campo { display: grid; gap: 0.3rem; }
.lgf-form label { font-size: 0.875rem; font-weight: 500; }
.lgf-form__opcional { font-weight: 400; color: #5c5c63; }
.lgf-form input,
.lgf-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: #0b0b0c;
	background: #ffffff;
	border: 1px solid #c9ccd1;
	border-radius: 999px;
	padding: 0.6rem 1rem;
	min-height: 44px;
}
.lgf-form textarea { border-radius: 18px; min-height: 110px; resize: vertical; }
.lgf-form input:focus-visible,
.lgf-form textarea:focus-visible { outline: 2px solid #0b0b0c; outline-offset: 1px; border-color: #0b0b0c; }
.lgf-form__privacidad { font-size: 0.8rem; line-height: 1.45; color: #4a4a4f; }
.lgf-form__privacidad a { color: inherit; }
.lgf-form__boton {
	display: block;
	width: 100%;
	min-height: 46px;
	border: 0;
	border-radius: 999px;
	background: #0b0b0c;
	color: #ffffff;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-align: center;
	line-height: 46px;
	cursor: pointer;
}
.lgf-form__boton:hover { background: #2a2a2e; }
.lgf-form__boton:focus-visible { outline: 2px solid #0b0b0c; outline-offset: 3px; }
.lgf-form__estado { font-size: 0.875rem; color: #4a4a4f; }
.lgf-form__estado:empty { display: none; }
.lgf-form-aviso-admin {
	background: #fff4d6;
	border: 1px solid #e8c766;
	color: #3d3000;
	border-radius: 10px;
	font-size: 0.8rem;
	line-height: 1.4;
	padding: 0.55rem 0.75rem;
	margin: 0 0 1rem;
}
.lgf-form-aviso-admin--operativo { background: #e6f4ea; border-color: #8cc79c; color: #0f3d1d; }

/* Estados del envío (0.3.0): errores por campo, envío en curso y campo trampa. */
.lgf-form input[aria-invalid="true"],
.lgf-form textarea[aria-invalid="true"] { border-color: #b3261e; box-shadow: inset 0 0 0 1px #b3261e; }
.lgf-form__error { font-size: 0.8rem; line-height: 1.35; color: #b3261e; font-weight: 500; }
.lgf-form__estado--error { color: #b3261e; font-weight: 500; }
.lgf-form__boton:disabled { background: #4a4a4f; cursor: progress; }
.lgf-form__trampa {
	position: absolute !important;
	left: -10000px !important;
	width: 1px; height: 1px;
	overflow: hidden;
}
.lgf-form { position: relative; }

/* ---------- Datos de contacto y redes (footer) ---------- */
.lgf-datos-contacto__linea {
	margin: 0 0 0.75rem;
	font-size: clamp(1.05rem, 0.8rem + 0.6vw, 1.45rem);
	letter-spacing: 0.02em;
}
.lgf-redes {
	display: flex;
	gap: clamp(1.5rem, 2.6vw, 2.75rem);
	list-style: none;
	margin: 1.75rem 0 0;
	padding: 0;
}
.lgf-redes a { display: block; color: inherit; }
.lgf-redes svg { display: block; width: 44px; height: 44px; }
.lgf-copyright { margin: 0; }

/* ---------- Aviso de cookies (0.3.1) ---------- */
.lgf-consentimiento {
	position: fixed;
	left: clamp(12px, 2vw, 28px);
	bottom: clamp(12px, 2vw, 28px);
	z-index: 95;
	box-sizing: border-box;
	width: min(26rem, calc(100vw - 24px));
	background: #ffffff;
	color: #0b0b0c;
	border-radius: 18px;
	padding: 1.25rem 1.25rem 1.1rem;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
	font-size: 0.9rem;
	line-height: 1.45;
}
.lgf-consentimiento[hidden] { display: none; }
.lgf-consentimiento__titulo { font-family: var(--wp--preset--font-family--bricolage, inherit); font-weight: 600; font-size: 1.15rem; margin: 0 0 0.5rem; }
.lgf-consentimiento__texto, .lgf-consentimiento__enlaces { margin: 0 0 0.75rem; }
.lgf-consentimiento__enlaces { font-size: 0.8rem; color: #4a4a4f; }
.lgf-consentimiento__enlaces a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.lgf-consentimiento__botones { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.lgf-consentimiento__boton {
	min-height: 44px;
	border: 1.5px solid #0b0b0c;
	border-radius: 999px;
	background: #ffffff;
	color: #0b0b0c;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	cursor: pointer;
	padding: 0.4rem 0.6rem;
}
.lgf-consentimiento__boton:hover { background: #0b0b0c; color: #ffffff; }
.lgf-consentimiento__boton:focus-visible { outline: 2px solid #0b0b0c; outline-offset: 3px; }
.lgf-preferencias-cookies { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.lgf-preferencias-cookies:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.lgf-preferencias-cookies:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
@media (max-width: 560px) {
	.lgf-consentimiento { left: 12px; right: 12px; width: auto; bottom: max(12px, env(safe-area-inset-bottom)); }
}
