/*
 * Registro con el diseño nuevo (Figma 217:403).
 * Ancho de contenido = 1120px, el mismo del logo y el menu del header.
 */

.cgc-reg {
	--cgc-red: #f82c1f;
	--cgc-bg: #ececec;
	--cgc-ink: #000;
	--cgc-muted: #444;
	--cgc-line: #c9c9c9;
	--cgc-display: "Saira Extra Condensed", "Saira ExtraCondensed", Impact, sans-serif;
	--cgc-ui: "Bricolage Grotesque", system-ui, sans-serif;
	--cgc-text: "Anek Latin", system-ui, sans-serif;
	background: var(--cgc-bg);
	color: var(--cgc-ink);
	font-family: var(--cgc-text);
	padding: 200px 24px 80px; /* 120px del header que flota + 80px del diseño */
	box-sizing: border-box;
}

.cgc-reg *,
.cgc-reg *::before,
.cgc-reg *::after { box-sizing: border-box; }

.cgc-reg h1,
.cgc-reg p { margin: 0; padding: 0; }

.cgc-reg-in {
	max-width: 1120px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 560fr 592fr;
	gap: 48px;
	align-items: stretch; /* la foto mide lo mismo que el formulario */
}

/* Foto */
.cgc-reg-foto {
	min-height: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #1a1a1a;
}

.cgc-reg-foto__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Tarjeta */
.cgc-reg-card {
	background: #fff;
	border-radius: 12px;
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.cgc-reg-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--cgc-ui);
	font-weight: 800;
	font-size: 16px;
	line-height: 19px;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--cgc-red);
	white-space: nowrap;
}

.cgc-reg-eyebrow span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cgc-red);
	flex: 0 0 auto;
}

.cgc-reg .cgc-reg-title {
	font-family: var(--cgc-display);
	font-weight: 800;
	font-size: 72px;
	line-height: .9;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--cgc-ink);
	white-space: normal;
	overflow-wrap: anywhere;
}

.cgc-reg-title span { color: var(--cgc-red); display: block; }

.cgc-reg-lead {
	font-size: 17px;
	line-height: 1.3;
	color: var(--cgc-muted);
}

/* Formulario (sobre forms.css) */
.cgc-reg .cgc-form {
	max-width: none;
	font-family: var(--cgc-text);
}

.cgc-reg .cgc-form__alert { margin: 0 0 16px; border-radius: 8px; }

.cgc-reg .cgc-form__grid {
	grid-template-columns: 1fr 1fr;
	gap: 16px 12px;
}

.cgc-reg .cgc-field { gap: 6px; }
.cgc-reg .cgc-field--half { min-height: 80px; }

.cgc-reg .cgc-field__label {
	font-family: var(--cgc-text);
	font-weight: 600;
	font-size: 14px;
	line-height: 17px;
	letter-spacing: 0;
	text-transform: none;
	color: #1a1a1a;
}

.cgc-reg .cgc-field__req { display: none; }

.cgc-reg .cgc-field input[type=text],
.cgc-reg .cgc-field input[type=email],
.cgc-reg .cgc-field input[type=tel],
.cgc-reg .cgc-field select {
	height: 48px;
	min-height: 48px;
	padding: 0 14px;
	border: 1.5px solid var(--cgc-line);
	border-radius: 10px;
	background-color: #fff;
	font-family: var(--cgc-text);
	font-size: 16px;
	line-height: 1;
	color: #000;
}

.cgc-reg .cgc-field input::placeholder { color: #8a8a8a; }

.cgc-reg .cgc-field select {
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23000'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-size: 8px 5px;
	background-repeat: no-repeat;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cgc-reg .cgc-field select:invalid,
.cgc-reg .cgc-field select option[value=""] { color: #8a8a8a; }
.cgc-reg .cgc-field select option { color: #000; }

.cgc-reg .cgc-field input:focus,
.cgc-reg .cgc-field select:focus {
	border-color: #000;
	box-shadow: 0 0 0 3px rgba(193, 254, 1, .55);
}

.cgc-reg .cgc-field--checkbox { gap: 4px; }

.cgc-reg .cgc-field__check {
	gap: 10px;
	align-items: flex-start;
	font-size: 15px;
	line-height: 17px;
	color: var(--cgc-muted);
	min-height: 22px;
}

.cgc-reg .cgc-field__check span { padding-top: 2px; }

.cgc-reg .cgc-field__check input[type=checkbox] {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	margin: 0;
	flex: 0 0 22px;
	border: 1.5px solid var(--cgc-line);
	border-radius: 6px;
	background: #fff center / 14px 14px no-repeat;
	cursor: pointer;
}

.cgc-reg .cgc-field__check input[type=checkbox]:checked {
	border: 1px solid var(--cgc-red);
	background-color: var(--cgc-red);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 7.3 5.8 10 11 4' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cgc-reg .cgc-field__check input[type=checkbox]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(193, 254, 1, .55);
}

.cgc-reg .cgc-field--error .cgc-field__check input[type=checkbox] { border-color: var(--cgc-red); }

.cgc-reg .cgc-field__check a { color: inherit; text-decoration: underline; }

.cgc-reg .cgc-form__submit {
	margin-top: 16px;
	height: 56px;
	min-height: 56px;
	padding: 0 24px;
	border-radius: 99px;
	background: var(--cgc-red);
	font-family: var(--cgc-ui);
	font-weight: 800;
	font-size: 18px;
	color: #fff;
	white-space: nowrap;
}

/* Gracias */
.cgc-reg .cgc-form--done {
	padding: 24px;
	border-radius: 12px;
	background: #000;
	color: #fff;
}

/* Tableta */
@media (max-width: 1023px) {
	.cgc-reg { padding-top: 160px; }
	.cgc-reg-in { grid-template-columns: 1fr; gap: 24px; max-width: 640px; }
	.cgc-reg-foto { aspect-ratio: 16 / 9; }
}

/* Celular */
@media (max-width: 600px) {
	.cgc-reg { padding: 120px 16px 56px; }
	.cgc-reg-foto { aspect-ratio: 4 / 3; }
	.cgc-reg-card { padding: 24px 20px; }
	.cgc-reg .cgc-reg-title { font-size: clamp(40px, 13vw, 56px); }
	.cgc-reg-eyebrow { font-size: 14px; }
	.cgc-reg .cgc-form__grid { grid-template-columns: 1fr; }
	.cgc-reg .cgc-field--half { grid-column: 1 / -1; min-height: 0; }
}
