/* Reservas Gotham · el formulario toma los colores del tema, no trae los suyos */

:root {
	--gr-fondo: #fff;
	--gr-texto: #111;
	--gr-acento: currentColor;
	--gr-acento-texto: #fff;
	--gr-radio: 3px;
}

.gr {
	--gr-linea: color-mix( in srgb, var(--gr-texto) 22%, transparent );
	--gr-tenue: color-mix( in srgb, var(--gr-texto) 8%, transparent );
	--gr-suave: color-mix( in srgb, var(--gr-texto) 55%, transparent );
	--gr-hover: color-mix( in srgb, var(--gr-acento) 18%, transparent );
	max-width: 62rem;
	container-type: inline-size;
	container-name: gr;
	color: inherit;
	/* Aire por debajo: si no, el botón queda pegado a lo que venga después. */
	padding-bottom: 2.5rem;
}

/* Algunos temas ponen letra capital al primer párrafo y se colaba una inicial
   gigante en las etiquetas del formulario. */
.gr p::first-letter, .gr div::first-letter, .gr label::first-letter {
	font-size: inherit; font-family: inherit; font-weight: inherit;
	line-height: inherit; color: inherit; float: none; margin: 0; padding: 0;
}

.gr-etiqueta {
	display: block;
	margin: 0 0 .45rem;
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gr-suave);
}

/* ── Pasos ───────────────────────────────────────────────────────────── */
.gr-paso { display: grid; grid-template-columns: 2rem minmax( 0, 1fr ); gap: .9rem; margin-bottom: 1.8rem; }
.gr-paso-num {
	width: 2rem; height: 2rem; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--gr-linea); font-size: .9rem; font-variant-numeric: tabular-nums;
	color: var(--gr-suave);
}
.gr-paso-cuerpo { min-width: 0; }
.gr-paso-tit { margin: .1rem 0 .8rem; font-size: 1.05rem; font-weight: 600; }
.gr-paso-tit--sub { margin-top: 1.4rem; }

/* Cuando el paso ya está resuelto, el número se enciende. */
.gr-paso.gr-hecho .gr-paso-num { background: var(--gr-acento); border-color: var(--gr-acento); color: var(--gr-acento-texto); }

/* El aviso de horas reserva su sitio: si no, al aparecer empujaba el formulario
   y el bloque de datos se montaba encima. */
.gr-aviso { min-height: 1.4rem; margin: 0 0 1rem; color: var(--gr-suave); font-size: .92rem; }

/* ── Resumen y envío ─────────────────────────────────────────────────── */
.gr-pie { border-top: 1px solid var(--gr-linea); padding-top: 1.2rem; margin-top: .4rem; }
.gr-resumen {
	display: flex; gap: .6rem 1.4rem; flex-wrap: wrap; align-items: center;
	margin-bottom: 1rem; padding: .8rem 1rem;
	background: var(--gr-tenue); border-radius: var(--gr-radio);
	border-left: 3px solid var(--gr-acento);
}
.gr-resumen span { display: flex; flex-direction: column; gap: .1rem; }
.gr-resumen i {
	font-style: normal; font-size: .68rem; letter-spacing: .14em;
	text-transform: uppercase; color: var(--gr-suave);
}
.gr-resumen b { font-weight: 600; font-size: 1rem; }

/* ── Calendario ──────────────────────────────────────────────────────── */
.gr-calendario {
	border: 1px solid var(--gr-linea);
	border-radius: var(--gr-radio);
	padding: .7rem .8rem 1rem;
	max-width: 22rem;
}
.gr-cal-cabecera { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.gr-cal-mes { font-weight: 600; text-transform: capitalize; }
.gr-cal-nav {
	appearance: none; border: 1px solid var(--gr-linea); background: transparent; color: inherit;
	border-radius: var(--gr-radio); width: 2rem; height: 2rem; font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.gr-cal-nav:hover { background: var(--gr-hover); border-color: var(--gr-acento); }
.gr-cal-rejilla { display: grid; grid-template-columns: repeat( 7, 1fr ); gap: 2px; text-align: center; }
.gr-cal-dia-nombre { font-size: .7rem; color: var(--gr-suave); padding: .3rem 0; }
.gr-cal-dia {
	appearance: none; border: 1px solid transparent; background: transparent; color: inherit;
	font: inherit; padding: .45rem 0; border-radius: var(--gr-radio); cursor: pointer;
}
.gr-cal-dia:hover:not([disabled]) { background: var(--gr-hover); }
.gr-cal-dia[disabled] { opacity: .3; cursor: default; }
.gr-cal-dia[aria-pressed="true"] { background: var(--gr-acento); color: var(--gr-acento-texto); }

/* ── Botones de hora y comensales ────────────────────────────────────── */
.gr-chips {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 4.2rem, 1fr ) );
	gap: .4rem;
	margin: 0;
	max-width: 34rem;
}
.gr-chip {
	appearance: none; cursor: pointer; font: inherit; font-size: .95rem;
	padding: .5rem .3rem; text-align: center; color: inherit;
	background: var(--gr-tenue); border: 1px solid var(--gr-linea);
	border-radius: var(--gr-radio); transition: background .18s, border-color .18s, color .18s;
}
.gr-chip:hover { background: var(--gr-hover); border-color: var(--gr-acento); }
.gr-chip[aria-pressed="true"] { background: var(--gr-acento); border-color: var(--gr-acento); color: var(--gr-acento-texto); }
.gr-chip--select { padding: .5rem .3rem; }

/* ── Datos ───────────────────────────────────────────────────────────── */
.gr-datos { display: grid; gap: 0 1.6rem; }
.gr-campo { margin: 0 0 1.1rem; }
.gr-campo label { display: block; margin-bottom: .4rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gr-suave); }
.gr-opcional { text-transform: none; letter-spacing: normal; }
.gr input[type="text"], .gr input[type="email"], .gr input[type="tel"], .gr textarea, .gr select {
	width: 100%; max-width: 100%; padding: .75rem .9rem; color: inherit; font: inherit;
	background: var(--gr-tenue); border: 1px solid var(--gr-linea); border-radius: var(--gr-radio);
}
.gr input:focus, .gr textarea:focus, .gr select:focus { outline: 2px solid var(--gr-hover); outline-offset: 1px; }
.gr textarea { min-height: 6rem; resize: vertical; }

/* Chrome pinta de amarillo lo autocompletado y no hay forma de cambiar ese
   fondo: se tapa con una sombra interior del color bueno. */
.gr input:-webkit-autofill, .gr input:-webkit-autofill:hover, .gr input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--gr-texto);
	-webkit-box-shadow: 0 0 0 100px var(--gr-fondo) inset;
	box-shadow: 0 0 0 100px var(--gr-fondo) inset;
	caret-color: var(--gr-texto);
	transition: background-color 9999s;
}

.gr-boton {
	appearance: none; cursor: pointer; font: inherit;
	padding: .85rem 2rem; border: 1px solid var(--gr-acento);
	background: var(--gr-acento); color: var(--gr-acento-texto);
	border-radius: var(--gr-radio); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem;
}
.gr-boton:hover { filter: brightness( 1.08 ); }
.gr-enviar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .6rem 0 0; }
.gr-nota { color: var(--gr-suave); font-size: .9rem; margin: 0; }
/* Información de privacidad bajo el botón (1.2.0): discreta, pero legible. */
.gr-legal { color: var(--gr-suave); font-size: .78rem; line-height: 1.5; margin-top: .9rem; max-width: 46em; }
.gr-legal a { color: inherit; text-decoration: underline; }

.gr-error {
	margin: .4rem 0 0; padding: .55rem .8rem; font-size: .9rem;
	background: color-mix( in srgb, #e0574f 16%, var(--gr-fondo) );
	border: 1px solid color-mix( in srgb, #e0574f 55%, transparent );
	border-radius: var(--gr-radio);
}
.gr-error--general { margin: 0 0 1.2rem; }

.gr-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.gr-hecho {
	padding: 1.6rem 1.8rem;
	border: 1px solid var(--gr-linea);
	border-left: 3px solid var(--gr-acento);
	border-radius: var(--gr-radio);
	max-width: 40rem;
}
.gr-hecho h3 { margin: 0 0 .6rem; }
.gr-hecho p { margin: 0 0 .6rem; }
.gr-referencia { color: var(--gr-suave); }

/* ── Se adapta al hueco que le deja el tema, no a la ventana ─────────── */

/* Con sitio de sobra, los datos van a dos columnas. */
@container gr ( min-width: 34rem ) {
	.gr-datos { display: grid; grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); gap: 0 1.6rem; }
	.gr-campo--ancho { grid-column: 1 / -1; }
}

@container gr ( max-width: 26rem ) {
	.gr-paso { grid-template-columns: 1.6rem minmax( 0, 1fr ); gap: .6rem; }
	.gr-paso-num { width: 1.6rem; height: 1.6rem; font-size: .78rem; }
	.gr-chips { grid-template-columns: repeat( auto-fill, minmax( 3.6rem, 1fr ) ); gap: .35rem; }
	.gr-chip { font-size: .9rem; padding: .5rem .15rem; }
	.gr-calendario { max-width: 100%; padding: .6rem .5rem .8rem; }
}

/* ── Varias casas (17-sep-2026): tarjetas con nombre, dirección y teléfono ── */
.gr-casas { display: grid; grid-template-columns: repeat( auto-fit, minmax( 15rem, 1fr ) ); gap: .7rem; max-width: 34rem; }
.gr-casa {
	appearance: none; cursor: pointer; font: inherit; color: inherit; text-align: left;
	position: relative; display: flex; flex-direction: column; gap: .2rem;
	padding: 1rem 2.9rem 1rem 1.1rem; min-height: 5.6rem;
	background: var(--gr-tenue); border: 1.5px solid var(--gr-linea); border-radius: var(--gr-radio);
	transition: border-color .18s, background .18s, box-shadow .18s;
}
.gr-casa:hover { border-color: var(--gr-acento); background: var(--gr-hover); }
.gr-casa:focus-visible { outline: 2px solid var(--gr-acento); outline-offset: 2px; }
.gr-casa-nombre { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.gr-casa-dir { font-size: .86rem; opacity: .8; line-height: 1.35; }
.gr-casa-tel { font-size: .86rem; font-weight: 600; letter-spacing: .02em; margin-top: .15rem; }
.gr-casa-marca {
	position: absolute; right: .9rem; top: .95rem; width: 1.35rem; height: 1.35rem;
	border: 1.5px solid var(--gr-linea); border-radius: 50%; background: #fff;
	transition: border-color .18s, background .18s;
}
.gr-casa[aria-pressed="true"] { border-color: var(--gr-acento); background: #fff; box-shadow: 0 0 0 1px var(--gr-acento); }
.gr-casa[aria-pressed="true"] .gr-casa-marca { border-color: var(--gr-acento); background: var(--gr-acento); }
.gr-casa[aria-pressed="true"] .gr-casa-marca::after {
	content: ''; position: absolute; left: .42rem; top: .18rem; width: .3rem; height: .62rem;
	border: solid var(--gr-acento-texto); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.gr-casa[aria-pressed="true"] .gr-casa-nombre { color: var(--gr-acento); }
.gr-nota--casas a { font-weight: 600; text-decoration: underline; }
