/* ag-reservas · diseño de la web nueva (boceto aprobado por Pedro el 21-oct-2026,
   docs/referencias/reservas-2026/). Usa las variables del tema (ag-public.css)
   con valores de reserva por si la página no las carga. */
.agres-pagina__main { padding-top: 44px; padding-bottom: 70px; }
.agres-cabecera, .agres, .agres-aviso {
	--agres-forest: var(--forest, #0d4438);
	--agres-forest-soft: var(--forest-soft, #1d6253);
	--agres-cream: var(--cream, #f5f1e7);
	--agres-paper: var(--paper, #fffdfa);
	--agres-mint: var(--mint, #dcebe4);
	--agres-gold: var(--gold, #c99135);
	--agres-ink: var(--ink, #102d27);
	--agres-muted: var(--muted, #687772);
	--agres-line: var(--line, #dce2dd);
	--agres-serif: var(--serif, 'Fraunces', Georgia, serif);
	--agres-sans: var(--sans, 'DM Sans', Arial, sans-serif);
	font-family: var(--agres-sans);
	color: var(--agres-ink);
}
.agres *, .agres-cabecera * { box-sizing: border-box; }
.agres [hidden] { display: none !important; }
/* Astra da a todos los botones 15px 40px de relleno, fondo y letra propios:
   en un botón de hora de 85 px empujaba el texto a la derecha (Pedro, 21-oct). */
.agres button { margin: 0; padding: 0; line-height: 1.2; letter-spacing: normal; text-transform: none; box-shadow: none; }
.agres .agres-boton { margin-top: 18px; padding: 13px 20px; }
.agres .agres-boton:not(.agres-boton--borde):not(:disabled) { box-shadow: 0 9px 22px rgba(13, 68, 56, .16); }
.agres .agres-boton--peque { margin: 0; padding: 10px 16px; }
.agres .agres-acciones .agres-boton { margin-top: 6px; }
.agres .agres-hora { padding: 0 6px; }
.agres .agres-cal__dia { padding: 4px 2px; }

/* Titular */
.agres-eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--agres-forest-soft); }
.agres-h1 { margin: 10px 0; font: 700 clamp(32px, 4.4vw, 48px)/1.08 var(--agres-serif); color: var(--agres-forest); }
.agres-h1 em { font-style: normal; color: var(--agres-gold); }
.agres-sub { margin: 0; max-width: 680px; font-size: 16px; line-height: 1.55; color: var(--agres-muted); }
.agres-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.agres-chips li { padding: 7px 13px; border: 1px solid var(--agres-line); border-radius: 30px; background: var(--agres-paper); font-size: 13px; font-weight: 600; color: #38554d; }

/* Avisos */
.agres-aviso { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; background: #fbf1dc; color: #6e5320; font-size: 14px; }
.agres-aviso--prueba { background: #fbe9e3; color: #8a3b24; font-weight: 600; text-align: center; }
.agres-aviso--incluida { background: var(--agres-mint); color: var(--agres-forest); font-weight: 600; }

/* Elegir producto: clase suelta o bono */
.agres-productos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 22px; }
.agres a:not(.agres-boton):not(.agres-wa) { color: var(--agres-forest); font-weight: 700; }
.agres .agres-producto { display: grid; gap: 4px; padding: 16px 18px; border: 1.5px solid var(--agres-line); border-radius: 16px; background: var(--agres-paper); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.agres .agres-producto:hover { border-color: var(--agres-forest-soft); }
.agres .agres-producto.is-elegido { border-color: var(--agres-forest); box-shadow: 0 0 0 3px rgba(13, 68, 56, .12); }
.agres-producto__titulo { font: 700 16px var(--agres-sans); color: var(--agres-forest); }
.agres-producto__precio { font: 700 26px var(--agres-serif); color: var(--agres-forest); }
.agres-producto__detalle { font-size: 13px; color: var(--agres-muted); }
.agres-producto__antes { margin-left: 8px; font: 500 15px var(--agres-sans); color: var(--agres-muted); }
.agres-aviso--oferta { background: #e3efe9; color: var(--agres-forest); font-weight: 600; }
.agres-como__titulo { margin: 0 0 14px; font: 700 22px var(--agres-serif); color: var(--agres-forest); }
.agres-como { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.agres-como li { display: flex; gap: 12px; align-items: flex-start; }
.agres-como li > b { flex: 0 0 28px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--agres-mint); color: var(--agres-forest); font-size: 13px; }
.agres-como strong { display: block; font-size: 15px; color: var(--agres-ink); }
.agres-como span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--agres-muted); }
.agres-card--como { align-self: stretch; }

/* Pasos */
.agres-pasos-caja { margin: 28px 0 22px; }
.agres-pasos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.agres-pasos li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #9aa6a1; }
.agres-pasos b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e5e9e5; color: #7f8c87; font-size: 12px; }
.agres-pasos li.is-activo { color: var(--agres-forest); }
.agres-pasos li.is-activo b { background: var(--agres-forest); color: #fff; }
.agres-pasos li.is-hecho b { background: var(--agres-mint); color: var(--agres-forest); }

/* Rejilla y tarjetas */
.agres-rejilla { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.agres-card { padding: 26px; border: 1px solid var(--agres-line); border-radius: 22px; background: var(--agres-paper); box-shadow: 0 24px 70px rgba(24, 53, 44, .12); }
.agres-vacio p { margin: 0 0 8px; font-size: 16px; }

/* Calendario */
.agres-cal__mes { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.agres-cal__titulo { margin: 0; font: 700 24px var(--agres-serif); color: var(--agres-forest); }
.agres-cal__nav { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--agres-line); border-radius: 10px; background: #fff; color: var(--agres-forest); font-size: 18px; cursor: pointer; }
.agres-cal__nav:disabled { color: #c4ccc8; cursor: default; }
.agres-cal__rejilla { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.agres-cal__dow { padding: 4px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-align: center; color: #8b9893; }
.agres-cal__dia { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; padding: 4px 2px; border: 0; border-radius: 12px; background: transparent; font: 600 16px var(--agres-sans); color: #b3bcb8; }
.agres-cal__dia.is-fuera { color: #d6dbd8; }
.agres-cal__dia.is-libre { background: var(--agres-mint); color: var(--agres-forest); font-weight: 700; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.agres-cal__dia.is-libre:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(13, 68, 56, .12); }
.agres-cal__dia.is-libre:focus-visible { outline: 3px solid var(--agres-gold); outline-offset: 2px; }
.agres-cal__dia.is-elegido { background: var(--agres-forest); color: #fff; }
.agres-cal__cuantas { margin-top: 2px; font-size: 10px; font-weight: 600; color: var(--agres-forest-soft); }
.agres-cal__dia.is-elegido .agres-cal__cuantas { color: #cfe3da; }
.agres-cal__dia.is-cerrado { background: repeating-linear-gradient(135deg, #f3f1ea 0 6px, #ece9e0 6px 12px); color: #c4cbc8; }
.agres-cal__leyenda { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 12px; color: var(--agres-muted); }
.agres-cal__leyenda span { display: flex; align-items: center; gap: 6px; }
.agres-cal__muestra { display: block; width: 14px; height: 14px; border-radius: 4px; }
.agres-cal__muestra--libre { background: var(--agres-mint); }
.agres-cal__muestra--elegido { background: var(--agres-forest); }
.agres-cal__muestra--cerrado { background: repeating-linear-gradient(135deg, #f3f1ea 0 3px, #e6e2d8 3px 6px); }
.agres-nota { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--agres-muted); }
.agres-nota b { color: var(--agres-ink); }

/* Panel: horas, resumen y datos */
.agres-dia { margin: 0; font: 700 22px var(--agres-serif); color: var(--agres-forest); }
.agres-dia small { display: block; margin-top: 4px; font: 500 13px var(--agres-sans); color: var(--agres-muted); }
.agres-horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin: 16px 0 22px; }
.agres-hora { min-height: 48px; padding: 0 6px; text-align: center; border: 1px solid var(--agres-line); border-radius: 12px; background: #fff; font: 700 16px var(--agres-sans); color: var(--agres-forest); cursor: pointer; }
.agres-hora:hover { border-color: var(--agres-forest); }
.agres-hora.is-elegida { border-color: var(--agres-forest); background: var(--agres-forest); color: #fff; }
.agres-resumen { margin-bottom: 16px; padding: 14px 18px; border-radius: 16px; background: var(--agres-cream); }
.agres-resumen__fila { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; color: #38554d; }
.agres-resumen__fila b { color: var(--agres-ink); white-space: nowrap; }
.agres-resumen__total { margin-top: 6px; padding-top: 10px; border-top: 1px solid #e3dfd3; font-size: 15px; }
.agres-resumen__total b { font: 700 22px var(--agres-serif); color: var(--agres-forest); }
.agres-form { display: grid; gap: 4px; }
.agres-form > label:not(.agres-check):not(.agres-trampa) { display: grid; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 700; color: #38554d; }
.agres-form input:not([type=checkbox]) { height: 46px; padding: 0 13px; border: 1px solid #cfd8d2; border-radius: 10px; background: #fbfaf6; font: 15px var(--agres-sans); color: var(--agres-ink); }
.agres-form input:not([type=checkbox]):focus { outline: 0; border-color: var(--agres-forest); box-shadow: 0 0 0 3px rgba(13, 68, 56, .12); }
.agres-form > label.agres-nota-campo { margin-top: 12px; }
.agres-nota-campo small { font-weight: 500; color: var(--agres-muted); }
.agres-form textarea { min-height: 84px; padding: 11px 13px; border: 1px solid #cfd8d2; border-radius: 10px; background: #fbfaf6; font: 15px/1.45 var(--agres-sans); color: var(--agres-ink); resize: vertical; }
.agres-form textarea:focus { outline: 0; border-color: var(--agres-forest); box-shadow: 0 0 0 3px rgba(13, 68, 56, .12); }
.agres-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 1.45; color: #38554d; }
.agres-check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--agres-forest); }
.agres-check a { color: var(--agres-forest); font-weight: 700; }
.agres-trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agres-seguro { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 10px 0 0; font-size: 12px; color: var(--agres-muted); }
.agres-error { min-height: 1em; margin: 8px 0 0; color: #b03a2e; font-size: 14px; }
.agres-legal { font-size: 11px; color: var(--agres-muted); }
.agres-ayuda { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--agres-muted); }
.agres-ayuda a { color: var(--agres-forest); font-weight: 700; }
.agres-cargando { color: var(--agres-muted); }

/* Botones */
.agres-boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin-top: 18px; padding: 13px 20px; border: 1px solid var(--agres-forest); border-radius: 11px; background: var(--agres-forest); box-shadow: 0 9px 22px rgba(13, 68, 56, .16); font: 700 15px var(--agres-sans); color: #fff !important; text-decoration: none !important; cursor: pointer; }
.agres-boton:hover { background: var(--agres-forest-soft); }
.agres-boton:disabled { border-color: #c9d3ce; background: #c9d3ce; box-shadow: none; cursor: default; }
.agres-boton--ancho { width: 100%; }
.agres-boton--peque { min-height: 42px; margin: 0; padding: 10px 16px; font-size: 14px; }
.agres-boton--borde { background: transparent; box-shadow: none; color: var(--agres-forest) !important; }
.agres-boton--borde:hover { background: var(--agres-mint); }

/* Etiquetas largas (ordenador) y cortas (móvil) */
.agres-corto { display: none; }

/* Barra fija del móvil */
.agres-barra { display: none; }

/* Mi reserva */
.agres--gestion { max-width: 760px; margin: 0 auto; }
.agres-mr.is-apagada .agres-hoja { opacity: .55; }
.agres-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 30px; background: var(--agres-mint); font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--agres-forest); }
.agres-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2f9b6f; }
.agres-chip--espera { background: #fbf1dc; color: #8a5a12; }
.agres-chip--espera::before { background: var(--agres-gold); }
.agres-chip--apagada { background: #eceeec; color: #6b7672; }
.agres-chip--apagada::before { background: #a7b0ac; }
.agres-fecha { display: flex; gap: 18px; align-items: center; margin: 22px 0; }
.agres-hoja { flex: 0 0 86px; overflow: hidden; border: 1px solid var(--agres-line); border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(13, 68, 56, .08); text-align: center; }
.agres-hoja b { display: block; padding: 5px 0; background: var(--agres-forest); font-size: 12px; letter-spacing: .14em; color: #fff; }
.agres-hoja strong { display: block; padding-top: 6px; font: 700 36px/1.1 var(--agres-serif); color: var(--agres-forest); }
.agres-hoja small { display: block; padding-bottom: 8px; font-size: 12px; color: var(--agres-muted); }
.agres-fecha__titulo { margin: 0; font: 700 28px/1.15 var(--agres-serif); color: var(--agres-forest); }
.agres-fecha__sub { margin: 4px 0 0; font-size: 15px; color: var(--agres-muted); }
.agres-espera { display: flex; gap: 14px; align-items: center; margin: 0 0 6px; padding: 16px; border: 1px solid #ecdcb4; border-radius: 16px; background: #fbf6ea; }
.agres-espera p { margin: 0; font-size: 14px; line-height: 1.45; color: #6e5320; }
.agres-espera--quieta { border-color: var(--agres-line); background: var(--agres-cream); }
.agres-espera--quieta p { color: #38554d; }
.agres-spin { flex: 0 0 26px; width: 26px; height: 26px; border: 3px solid #ecdcb4; border-top-color: var(--agres-gold); border-radius: 50%; animation: agres-giro 1s linear infinite; }
@keyframes agres-giro { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .agres-spin { animation: none; } }
.agres-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.agres-acciones .agres-boton { margin-top: 6px; }
.agres-cambio:empty { display: none; }
.agres-cambio { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--agres-line); }
.agres-cambio__titulo { margin: 0 0 14px; font: 700 20px var(--agres-serif); color: var(--agres-forest); }
.agres-rejilla--cambio { gap: 20px; }
.agres-bloques { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.agres-bloques:has(> :only-child) { grid-template-columns: 1fr; }
.agres-bloque { padding: 18px; border-radius: 16px; background: var(--agres-cream); }
.agres-bloque h3 { margin: 0 0 8px; font: 700 17px var(--agres-serif); color: var(--agres-forest); }
.agres-bloque p, .agres-bloque li { margin: 0; font-size: 14px; line-height: 1.5; color: #38554d; }
.agres-bloque ul { margin: 0; padding-left: 18px; }
.agres-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 700; color: #128c53 !important; }
.agres-wa::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #25d366; }

/* La insignia flotante de reCAPTCHA se oculta: Google lo permite si se muestra el aviso .agres-legal. */
.grecaptcha-badge { visibility: hidden; }

/* Móvil */
@media (max-width: 860px) {
	.agres-rejilla { grid-template-columns: 1fr; gap: 18px; }
	.agres-productos { grid-template-columns: 1fr; gap: 8px; }
	.agres .agres-producto { grid-template-columns: 1fr auto; align-items: center; padding: 12px 14px; }
	.agres-producto__precio { grid-row: span 2; font-size: 22px; }
}
@media (max-width: 760px) {
	.agres-pagina__main { padding-top: 24px; padding-bottom: 110px; }
	.agres-card { padding: 18px; border-radius: 18px; }
	.agres-cal__titulo { font-size: 20px; }
	.agres-cal__rejilla { gap: 4px; }
	.agres-cal__dia { min-height: 46px; border-radius: 10px; font-size: 14px; }
	.agres-largo { display: none; }
	.agres-corto { display: inline; }
	.agres-cal__cuantas { font-size: 9px; }
	.agres-horas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.agres-hora { font-size: 15px; }
	.agres-barra:not([hidden]) { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--agres-line); background: var(--agres-paper); box-shadow: 0 -10px 30px rgba(16, 45, 39, .1); }
	.agres-barra__texto { flex: 1; min-width: 0; font-size: 13px; color: var(--agres-muted); }
	.agres-barra__texto b { display: block; font-size: 15px; color: var(--agres-forest); }
	.agres-fecha { gap: 14px; }
	.agres-hoja { flex-basis: 74px; }
	.agres-hoja strong { font-size: 30px; }
	.agres-fecha__titulo { font-size: 22px; }
	.agres-acciones .agres-boton { width: 100%; }
	.agres-bloques { grid-template-columns: 1fr; }
	/* Menos texto en el móvil (Pedro, 22-oct): lo esencial y nada más. */
	.agres-sub, .agres-chips, .agres-cal__leyenda, .agres-card--cal .agres-nota, .agres-seguro, .agres-legal { display: none; }
	.agres-h1 { font-size: 30px; }
	.agres-pasos li:not(.is-activo) { font-size: 0; gap: 0; }
	.agres-pasos li:not(.is-activo) b { font-size: 12px; }
	.agres-pasos { gap: 8px; }
	.agres-producto__detalle { font-size: 12px; }
	.agres-como span { display: none; }
	.agres-como { gap: 10px; }
	.agres-como__titulo { font-size: 18px; }
	.agres-check { font-size: 12.5px; }
	.agres-ayuda { font-size: 12.5px; }
	.agres-aviso--prueba { font-size: 12px; padding: 8px 12px; }
}

/* Correo de la cuenta, fijo cuando el alumno ha iniciado sesión */
.agres-form input[readonly] { background: #f3f1ec; color: #555; }
.agres-cuenta-nota { display: block; margin-top: 4px; font-size: 0.85em; color: #666; }
