/* gesto · formulario de cotización y aviso de cookies */

.gc-form {
	--gc-campo-bg: #f4efe4;
	--gc-campo-tx: #101311;
	--gc-acento: #fa782a;
	--gc-error: #ffb8a3;
	--gc-linea: color-mix(in srgb, currentColor 22%, transparent);
	display: grid;
	gap: 1.5rem;
	font-size: 1rem;
}

.gc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 1.25rem;
}
@media (max-width: 640px) {
	.gc-grid { grid-template-columns: 1fr; }
}

.gc-campo { display: grid; gap: 0.45rem; margin: 0; min-width: 0; }
.gc-campo > label,
.gc-plazo legend {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.3;
}
.gc-opcional { font-weight: 400; opacity: 0.68; }

.gc-form input[type="text"],
.gc-form input[type="email"],
.gc-form input[type="tel"],
.gc-form select,
.gc-form textarea {
	width: 100%;
	min-height: 3.1rem;
	padding: 0.8rem 0.95rem;
	border: 0;
	border-radius: 6px;
	background: var(--gc-campo-bg);
	color: var(--gc-campo-tx);
	font: inherit;
	line-height: 1.4;
	caret-color: var(--gc-acento);
	box-shadow: inset 0 0 0 1px rgba(16, 19, 17, 0.12);
	transition: box-shadow 0.2s;
	appearance: none;
	-webkit-appearance: none;
}
.gc-form select {
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23101311' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 16px;
	cursor: pointer;
}
.gc-form textarea { min-height: 8.5rem; resize: vertical; }
.gc-form ::placeholder { color: #6b756f; opacity: 1; }
.gc-form input:focus-visible,
.gc-form select:focus-visible,
.gc-form textarea:focus-visible {
	outline: 2px solid var(--gc-acento);
	outline-offset: 2px;
}
.gc-form [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #c2410c; }

.gc-ayuda { margin: 0; font-size: 0.8125rem; opacity: 0.72; }
.gc-error {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--gc-error);
}
.gc-error::before {
	content: "";
	display: inline-block;
	width: 0.5em;
	height: 0.5em;
	margin-right: 0.45em;
	border-radius: 50%;
	background: currentColor;
	vertical-align: 0.1em;
}

.gc-resumen {
	padding: 1rem 1.25rem;
	border-radius: 6px;
	background: rgba(255, 184, 163, 0.12);
	box-shadow: inset 0 0 0 1px rgba(255, 184, 163, 0.45);
}
.gc-resumen p { margin: 0 0 0.4rem; }
.gc-resumen ul { margin: 0; padding-left: 1.1rem; }
.gc-resumen a { color: inherit; }

.gc-plazo { border: 0; padding: 0; }
.gc-plazo legend { padding: 0; margin-bottom: 0.6rem; }
.gc-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gc-chip { position: relative; cursor: pointer; }
.gc-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gc-chip span {
	display: inline-flex;
	align-items: center;
	min-height: 2.6rem;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px var(--gc-linea);
	font-size: 0.9375rem;
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.gc-chip:hover span { box-shadow: inset 0 0 0 1px currentColor; }
.gc-chip input:checked + span { background: var(--gc-campo-bg); color: var(--gc-campo-tx); box-shadow: none; }
.gc-chip input:focus-visible + span { outline: 2px solid var(--gc-acento); outline-offset: 2px; }

.gc-consentimientos { display: grid; gap: 0.85rem; padding-top: 0.25rem; }
.gc-check {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.75rem;
	align-items: start;
	font-size: 0.9375rem;
	line-height: 1.45;
	cursor: pointer;
}
.gc-check input {
	width: 1.2rem;
	height: 1.2rem;
	margin: 0.12rem 0 0;
	accent-color: var(--gc-acento);
	cursor: pointer;
}
.gc-check a { color: inherit; text-underline-offset: 0.2em; }

.gc-trampa {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.gc-enviar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.gc-boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	padding: 0.9rem 1.9rem;
	border: 0;
	border-radius: 999px;
	background: var(--gc-acento);
	color: #0b231a;
	font: 600 1.0625rem/1.2 inherit;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.25s, transform 0.2s;
}
.gc-boton:hover { background: #f4efe4; }
.gc-boton:active { transform: scale(0.97); }
.gc-boton:focus-visible { outline: 2px solid #f4efe4; outline-offset: 3px; }
.gc-boton[disabled] { opacity: 0.7; cursor: progress; }
.gc-nota { margin: 0; font-size: 0.8125rem; opacity: 0.7; max-width: 34ch; }

.gc-exito { padding: 1.5rem 0 0.5rem; }
.gc-exito:focus { outline: none; }
.gc-exito__titulo {
	margin: 0 0 0.75rem;
	font-family: "Fraunces", Georgia, serif;
	font-weight: 700;
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
	line-height: 1.1;
}
.gc-exito a { color: inherit; }

/* ---------- Aviso de cookies ---------- */
.gc-consent {
	position: fixed;
	z-index: 80;
	left: clamp(0.75rem, 2vw, 1.5rem);
	bottom: clamp(0.75rem, 2vw, 1.5rem);
	width: min(26rem, calc(100% - 1.5rem));
	color: #101311;
}
.gc-consent[hidden] { display: none; }
.gc-consent__caja {
	padding: 1.25rem 1.35rem 1.35rem;
	border-radius: 10px;
	background: #f4efe4;
	box-shadow: 0 24px 48px -20px rgba(11, 35, 26, 0.55), 0 0 0 1px rgba(16, 19, 17, 0.08);
}
.gc-consent__titulo {
	margin: 0 0 0.4rem;
	font-family: "Fraunces", Georgia, serif;
	font-weight: 700;
	font-size: 1.1875rem;
	line-height: 1.2;
}
.gc-consent__texto { margin: 0 0 1rem; font-size: 0.875rem; line-height: 1.5; color: #2c3530; }
.gc-consent__texto a { color: #1c4634; font-weight: 500; }
.gc-consent__acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.gc-consent__boton {
	min-height: 2.75rem;
	padding: 0.6rem 1rem;
	border: 0;
	border-radius: 999px;
	background: #0b231a;
	color: #f4efe4;
	font: 500 0.9375rem/1.2 inherit;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.2s;
}
.gc-consent__boton:hover { background: #1c4634; }
.gc-consent__boton:focus-visible { outline: 2px solid #fa782a; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
	.gc-consent:not([hidden]) { animation: gc-aparecer 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@keyframes gc-aparecer {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}
