/* Colores de la marca (los mismos de la web) */
:root {
	--abismo: #071F2C;
	--petroleo: #134E65;
	--turquesa: #289DA6;
	--menta: #90CEC5;
	--bruma: #EEF6F3;
	--wa: #1FA855;
	--f-tit: "Montserrat", system-ui, sans-serif;
	--f-txt: "Nunito Sans", system-ui, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--abismo);
	font-family: var(--f-txt);
	font-size: 16px;
	line-height: 1.5;
	background: radial-gradient(ellipse 90% 55% at 50% 0%, #DFF0EC 0%, transparent 70%), linear-gradient(180deg, var(--bruma) 0%, #F7FBFA 60%, #fff 100%);
	padding: 40px max(16px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.lk {
	max-width: 460px;
	margin: 0 auto;
	display: grid;
	gap: 22px;
}

/* Fondo: la cinta de la marca (como en la web) arriba a la derecha y abajo a la izquierda, círculos y puntos */
body {
	position: relative;
	overflow-x: hidden;
}

.lk-fondo {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	background-image: radial-gradient(rgba(19, 78, 101, .12) 1.2px, transparent 1.4px);
	background-size: 22px 22px;
}

.lk-fondo svg {
	position: absolute;
	display: block;
	overflow: visible;
}

/* los círculos solo se cortan en el borde de la pantalla */
.lk-fondo .lk-cinta-a {
	top: -30px;
	right: -60px;
	width: 78%;
	max-width: 520px;
	height: 300px;
}

.lk-fondo .lk-cinta-b {
	bottom: -60px;
	left: -80px;
	width: 70%;
	max-width: 460px;
	height: 240px;
}

.lk-pie {
	padding-bottom: 130px;
}

.lk {
	position: relative;
	z-index: 1;
}

.lk-cab {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 10px;
}

.lk-logo {
	width: 150px;
	height: auto;
}

.lk-cab h1 {
	margin: 6px 0 0;
	font-family: var(--f-tit);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.2px;
	text-wrap: balance;
}

.lk-cab h1 em {
	font-style: italic;
	font-weight: 300;
	color: var(--petroleo);
}

.lk-cab p {
	margin: 0;
	color: #4A5B5F;
	font-size: 15px;
	max-width: 34ch;
}

.lk-lista {
	display: grid;
	gap: 12px;
}

.lk-btn {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 60px;
	padding: 12px 18px;
	border-radius: 18px;
	text-decoration: none;
	background: #fff;
	color: var(--abismo);
	border: 1.5px solid #D7E8E3;
	box-shadow: 0 10px 26px rgba(7, 31, 44, .06);
	font-family: var(--f-tit);
	font-weight: 700;
	font-size: 15.5px;
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.lk-btn:hover {
	transform: translateY(-2px);
	border-color: var(--turquesa);
	box-shadow: 0 14px 30px rgba(7, 31, 44, .1);
}

.lk-btn:focus-visible {
	outline: 3px solid var(--menta);
	outline-offset: 3px;
}

.lk-btn svg {
	flex: none;
	width: 24px;
	height: 24px;
	color: var(--petroleo);
}

.lk-btn span {
	flex: 1;
}

.lk-btn small {
	display: block;
	font-family: var(--f-txt);
	font-weight: 400;
	font-size: 13px;
	color: #6B7C80;
	margin-top: 1px;
}

.lk-btn .lk-flecha {
	width: 16px;
	height: 16px;
	color: #9AA8AB;
}

.lk-btn--wa {
	background: var(--wa);
	border-color: var(--wa);
	color: #fff;
	box-shadow: 0 12px 28px rgba(31, 168, 85, .28);
}

.lk-btn--wa svg,
.lk-btn--wa .lk-flecha,
.lk-btn--wa small {
	color: #fff;
}

.lk-btn--wa:hover {
	border-color: #188F48;
}

.lk-btn--prin {
	background: var(--petroleo);
	border-color: var(--petroleo);
	color: #fff;
}

.lk-btn--prin svg,
.lk-btn--prin .lk-flecha,
.lk-btn--prin small {
	color: #DDF0EC;
}

.lk-sep {
	margin: 6px 0 -2px;
	font-family: var(--f-tit);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #6B7C80;
	text-align: center;
}

.lk-idioma {
	justify-self: end;
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	background: #fff;
	border: 1.5px solid #D7E8E3;
	margin-bottom: -8px;
}

.lk-idioma a {
	min-width: 40px;
	padding: 6px 10px;
	border-radius: 999px;
	text-align: center;
	text-decoration: none;
	font-family: var(--f-tit);
	font-weight: 700;
	font-size: 13px;
	color: #4A5B5F;
}

.lk-idioma a[aria-current="page"] {
	background: var(--petroleo);
	color: #fff;
}

.lk-idioma a:focus-visible {
	outline: 3px solid var(--menta);
	outline-offset: 2px;
}

.lk-pie {
	text-align: center;
	font-size: 12px;
	line-height: 1.55;
	color: #6B7C80;
	display: grid;
	gap: 8px;
	max-width: 420px;
	margin: 0 auto;
}

.lk-pie p {
	margin: 0;
}

.lk-pie__marca {
	font-family: var(--f-tit);
	font-weight: 700;
	font-size: 12.5px;
	color: #4A5B5F;
}

.lk-pie a {
	color: var(--petroleo);
	font-weight: 600;
	text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
	.lk-btn {
		transition: none;
	}

	.lk-btn:hover {
		transform: none;
	}
}

/* ===== Agenda de citas (módulo) ===== */
.lk-btn--cita {
	background: #fff;
	border: 2px solid var(--turquesa);
}

.lk-btn--cita svg {
	color: var(--turquesa);
}

.lk[data-vista="agenda"]> :not(#agenda):not(.lk-idioma),
.lk[data-vista="admin"]> :not(#ag-admin):not(.lk-idioma) {
	display: none;
}

.ag {
	display: grid;
	gap: 16px;
}

.ag[hidden] {
	display: none;
}

.ag-volver {
	justify-self: start;
	border: 0;
	background: none;
	padding: 4px 0;
	color: var(--petroleo);
	font-family: var(--f-tit);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
}

.ag-tarjeta {
	background: #fff;
	border: 1.5px solid #D7E8E3;
	border-radius: 20px;
	padding: 18px;
	box-shadow: 0 10px 26px rgba(7, 31, 44, .06);
	display: grid;
	gap: 14px;
}

.ag h2 {
	margin: 0;
	font-family: var(--f-tit);
	font-size: 21px;
	font-weight: 700;
	text-wrap: balance;
}

.ag h2 em {
	font-style: italic;
	font-weight: 300;
	color: var(--petroleo);
}

.ag h3 {
	margin: 0;
	font-family: var(--f-tit);
	font-size: 15px;
	font-weight: 700;
	color: var(--petroleo);
}

.ag p {
	margin: 0;
}

.ag-sub {
	color: #4A5B5F;
	font-size: 14.5px;
}

.ag-gratis {
	justify-self: start;
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: #E3F4EA;
	color: #1F7A4D;
	font-family: var(--f-tit);
	font-weight: 800;
	font-size: 12px;
}

.ag-demo {
	padding: 10px 12px;
	border-radius: 12px;
	background: #FFF6E5;
	color: #7A4B00;
	font-size: 13px;
}

.ag-pasos {
	display: flex;
	gap: 6px;
}

.ag-pasos i {
	flex: 1;
	height: 5px;
	border-radius: 99px;
	background: #E3EEEB;
}

.ag-pasos i.is-on {
	background: var(--petroleo);
}

.ag-op {
	display: grid;
	gap: 8px;
}

.ag-opcion {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	text-align: left;
	border: 1.5px solid #D7E2E0;
	background: #fff;
	border-radius: 14px;
	padding: 13px 14px;
	cursor: pointer;
	font-family: var(--f-tit);
	font-weight: 700;
	font-size: 14.5px;
	color: var(--abismo);
}

.ag-opcion small {
	display: block;
	font-family: var(--f-txt);
	font-weight: 400;
	font-size: 13px;
	color: #6B7C80;
}

.ag-opcion[aria-pressed="true"] {
	border-color: var(--petroleo);
	box-shadow: 0 0 0 3px rgba(19, 78, 101, .14);
	background: #F6FBFA;
}

.ag-opcion:focus-visible,
.ag-dia:focus-visible,
.ag-hora:focus-visible,
.ag-btn:focus-visible {
	outline: 3px solid var(--menta);
	outline-offset: 2px;
}

.ag-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ag-chip {
	border: 1.5px solid #D7E2E0;
	background: #fff;
	border-radius: 999px;
	padding: 9px 14px;
	font-family: var(--f-tit);
	font-weight: 700;
	font-size: 13.5px;
	cursor: pointer;
	color: var(--abismo);
}

.ag-chip[aria-pressed="true"] {
	background: var(--petroleo);
	border-color: var(--petroleo);
	color: #fff;
}

.ag-mes {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ag-mes b {
	font-family: var(--f-tit);
	font-size: 15px;
}

.ag-mes button {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1.5px solid #D7E2E0;
	background: #fff;
	cursor: pointer;
	color: var(--petroleo);
	font-size: 16px;
}

.ag-mes button[disabled] {
	opacity: .35;
	cursor: default;
}

.ag-cal {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	text-align: center;
}

.ag-cal span {
	font-size: 11.5px;
	font-weight: 700;
	color: #6B7C80;
	padding: 4px 0;
	text-transform: uppercase;
}

.ag-dia {
	aspect-ratio: 1;
	border: 0;
	border-radius: 12px;
	background: #F1F7F6;
	font-family: var(--f-tit);
	font-weight: 700;
	font-size: 14px;
	color: var(--abismo);
	cursor: pointer;
}

.ag-dia[disabled] {
	background: none;
	color: #B9C6C8;
	cursor: default;
	font-weight: 500;
}

.ag-dia[aria-pressed="true"] {
	background: var(--petroleo);
	color: #fff;
}

.ag-dia.is-hoy:not([aria-pressed="true"]) {
	box-shadow: inset 0 0 0 1.5px var(--turquesa);
}

.ag-horas {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
	gap: 8px;
}

.ag-hora {
	border: 1.5px solid #D7E2E0;
	background: #fff;
	border-radius: 12px;
	padding: 10px 6px;
	cursor: pointer;
	font-family: var(--f-tit);
	font-weight: 700;
	font-size: 14px;
	color: var(--abismo);
}

.ag-hora small {
	display: block;
	font-family: var(--f-txt);
	font-weight: 400;
	font-size: 11px;
	color: #6B7C80;
}

.ag-hora[aria-pressed="true"] {
	background: var(--petroleo);
	border-color: var(--petroleo);
	color: #fff;
}

.ag-hora[aria-pressed="true"] small {
	color: #DDF0EC;
}

.ag-zona {
	font-size: 12.5px;
	color: #6B7C80;
}

.ag-vacio {
	color: #6B7C80;
	font-size: 14px;
	padding: 6px 0;
}

.ag-campos {
	display: grid;
	gap: 12px;
}

.ag-f {
	display: grid;
	gap: 5px;
}

.ag-f>span {
	font-family: var(--f-tit);
	font-size: 12.5px;
	font-weight: 700;
}

.ag-f>span i {
	font-style: normal;
	font-weight: 400;
	color: #6B7C80;
}

.ag-f input,
.ag-f select,
.ag-f textarea {
	width: 100%;
	font: inherit;
	font-family: var(--f-txt);
	font-size: 16px;
	color: var(--abismo);
	background: #fff;
	border: 1.5px solid #D7E2E0;
	border-radius: 12px;
	padding: 11px 12px;
}

.ag-f input:focus,
.ag-f select:focus,
.ag-f textarea:focus {
	outline: none;
	border-color: var(--petroleo);
	box-shadow: 0 0 0 3px rgba(19, 78, 101, .14);
}

.ag-f .is-mal {
	border-color: #C2410C;
}

.ag-f em {
	font-style: normal;
	font-size: 12.5px;
	color: #C2410C;
}

.ag-f em:empty {
	display: none;
}

.ag-dos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.ag-resumen {
	display: grid;
	gap: 6px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #F1F7F6;
	font-size: 14px;
}

.ag-resumen b {
	font-family: var(--f-tit);
}

.ag-acc {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ag-btn {
	flex: 1;
	min-height: 50px;
	border: 0;
	border-radius: 14px;
	padding: 12px 16px;
	background: var(--petroleo);
	color: #fff;
	font-family: var(--f-tit);
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.ag-btn[disabled] {
	opacity: .5;
	cursor: default;
}

.ag-btn--sec {
	background: #fff;
	color: var(--abismo);
	border: 1.5px solid #D7E2E0;
	flex: 0 0 auto;
}

.ag-btn--wa {
	background: var(--wa);
}

.ag-btn--peligro {
	background: #fff;
	color: #B3261E;
	border: 1.5px solid #F2C9C5;
}

.ag-error {
	color: #C2410C;
	font-size: 13.5px;
}

.ag-error:empty {
	display: none;
}

.ag-ok {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 10px;
}

.ag-ok__ico {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #E3F4EA;
	color: #1F7A4D;
	font-size: 26px;
	font-weight: 800;
}

/* Panel de administración */
.ag-admin details {
	background: #fff;
	border: 1.5px solid #D7E8E3;
	border-radius: 16px;
	overflow: hidden;
}

.ag-admin summary {
	cursor: pointer;
	padding: 14px 16px;
	font-family: var(--f-tit);
	font-weight: 700;
	font-size: 15px;
	list-style: none;
	display: flex;
	justify-content: space-between;
}

.ag-admin summary::after {
	content: "+";
	color: var(--petroleo);
}

.ag-admin details[open] summary::after {
	content: "–";
}

.ag-admin details>div {
	padding: 0 16px 16px;
	display: grid;
	gap: 12px;
}

.ag-lista {
	display: grid;
	gap: 8px;
}

.ag-cita {
	border: 1px solid #E3EEEB;
	border-radius: 12px;
	padding: 10px 12px;
	display: grid;
	gap: 6px;
	font-size: 13.5px;
}

.ag-cita b {
	font-family: var(--f-tit);
}

.ag-cita.is-cancelada {
	opacity: .55;
}

.ag-cita .ag-acc .ag-btn {
	min-height: 36px;
	font-size: 13px;
	padding: 6px 10px;
	flex: 0 0 auto;
}

.ag-mini {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
}

.ag-mini button {
	aspect-ratio: 1;
	border: 0;
	border-radius: 8px;
	background: #F1F7F6;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	position: relative;
	color: var(--abismo);
}

.ag-mini button[data-n]:not([data-n="0"])::after {
	content: attr(data-n);
	position: absolute;
	top: 2px;
	right: 3px;
	font-size: 9px;
	background: var(--turquesa);
	color: #fff;
	border-radius: 99px;
	padding: 0 4px;
}

.ag-mini button[aria-pressed="true"] {
	background: var(--petroleo);
	color: #fff;
}

.ag-mini button.is-vacio {
	visibility: hidden;
}

@media (max-width: 380px) {
	.ag-dos {
		grid-template-columns: 1fr;
	}
}