/* AZLOH CRM — Mi cuenta → Mis joyas. Mobile first; hereda la tipografía del tema. */

.azloh-account {
	--azloh-ink: #1d1d1f;
	--azloh-muted: #6f6c66;
	--azloh-line: #e7e3dc;
	--azloh-soft: #f8f6f2;
	--azloh-gold: #9a7b4f;
	--azloh-gold-soft: #f3ecdf;
	--azloh-green: #1f7a4d;
	--azloh-green-soft: #e4f3ea;
	--azloh-amber: #9a5b00;
	--azloh-amber-soft: #fff1dc;
	--azloh-red: #b42318;
	--azloh-radius: 14px;
	color: var(--azloh-ink);
}

.azloh-account *,
.azloh-account *::before,
.azloh-account *::after {
	box-sizing: border-box;
}

.azloh-muted { color: var(--azloh-muted); font-size: .88em; }
.azloh-back { margin: 0 0 12px; }
.azloh-back a { text-decoration: none; }

/* Estado */
.azloh-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: .82em;
	font-weight: 600;
	line-height: 1.5;
	background: var(--azloh-soft);
	color: var(--azloh-muted);
}
.azloh-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.azloh-pill--action { background: var(--azloh-amber-soft); color: var(--azloh-amber); }
.azloh-pill--progress { background: var(--azloh-gold-soft); color: var(--azloh-gold); }
.azloh-pill--done { background: var(--azloh-green-soft); color: var(--azloh-green); }
.azloh-pill--cancelled { background: #fdeceb; color: var(--azloh-red); }

/* Listado */
.azloh-jewels { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.azloh-jewel { margin: 0; }
.azloh-jewel__link {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--azloh-line);
	border-radius: var(--azloh-radius);
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: box-shadow .15s ease, transform .15s ease;
}
.azloh-jewel__link:hover, .azloh-jewel__link:focus-visible { box-shadow: 0 8px 24px rgba(0,0,0,.07); transform: translateY(-1px); }
.azloh-jewel__media { width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--azloh-soft); display: grid; place-items: center; }
.azloh-jewel__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.azloh-jewel__placeholder { font-weight: 700; letter-spacing: .08em; color: var(--azloh-gold); }
.azloh-jewel__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.azloh-jewel__number { font-size: .78em; letter-spacing: .06em; color: var(--azloh-gold); font-weight: 600; }
.azloh-jewel__title { font-weight: 600; font-size: 1.05em; line-height: 1.3; }
.azloh-jewel__body .azloh-pill { align-self: flex-start; }
.azloh-jewel__next { color: var(--azloh-muted); font-size: .92em; }
.azloh-jewel__cta { grid-column: 1 / -1; font-weight: 600; color: var(--azloh-gold); text-align: right; font-size: .92em; }

.azloh-dots { display: flex; gap: 5px; margin-top: 2px; }
.azloh-dots__dot { flex: 1; max-width: 42px; height: 5px; border-radius: 3px; background: var(--azloh-line); }
.azloh-dots__dot.is-done { background: var(--azloh-green); }
.azloh-dots__dot.is-current { background: var(--azloh-gold); }

.azloh-empty { text-align: center; padding: 32px 16px; border: 1px dashed var(--azloh-line); border-radius: var(--azloh-radius); }
.azloh-empty__title { font-weight: 600; font-size: 1.1em; }

/* Detalle */
.azloh-hero { display: grid; gap: 16px; margin-bottom: 20px; }
.azloh-hero__media { border-radius: var(--azloh-radius); overflow: hidden; background: var(--azloh-soft); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.azloh-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.azloh-hero__media .azloh-jewel__placeholder { font-size: 2.4em; }
.azloh-hero__eyebrow { margin: 0 0 4px; font-size: .82em; letter-spacing: .06em; color: var(--azloh-gold); font-weight: 600; text-transform: uppercase; }
.azloh-hero__title { margin: 0 0 10px; line-height: 1.2; }
.azloh-hero__meta { margin: 10px 0 0; color: var(--azloh-muted); }
.azloh-next { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--azloh-soft); display: flex; flex-direction: column; gap: 3px; }
.azloh-next__label { font-size: .75em; text-transform: uppercase; letter-spacing: .06em; color: var(--azloh-muted); font-weight: 600; }
.azloh-next__text { font-weight: 600; }

.azloh-block { border: 1px solid var(--azloh-line); border-radius: var(--azloh-radius); padding: 16px; margin: 0 0 16px; background: #fff; }
.azloh-block--highlight { border-color: var(--azloh-gold); box-shadow: 0 0 0 3px var(--azloh-gold-soft); }
.azloh-block__title { margin: 0 0 12px; font-size: 1.05em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Línea temporal */
.azloh-timeline { list-style: none; margin: 0; padding: 0; }
.azloh-timeline__step { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 12px; margin: 0; padding-bottom: 18px; }
.azloh-timeline__step:last-child { padding-bottom: 0; }
.azloh-timeline__step::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--azloh-line); }
.azloh-timeline__step:last-child::before { display: none; }
.azloh-timeline__step.is-done::before { background: var(--azloh-green); }
.azloh-timeline__marker { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--azloh-line); background: #fff; font-weight: 700; font-size: .9em; }
.is-done > .azloh-timeline__marker { background: var(--azloh-green); border-color: var(--azloh-green); color: #fff; }
.is-current > .azloh-timeline__marker { border-color: var(--azloh-gold); color: var(--azloh-gold); box-shadow: 0 0 0 4px var(--azloh-gold-soft); }
.is-cancelled > .azloh-timeline__marker { border-color: #eccac7; color: var(--azloh-red); }
.azloh-timeline__content { display: flex; flex-direction: column; gap: 2px; padding-top: 5px; }
.azloh-timeline__label { font-weight: 600; }
.is-todo .azloh-timeline__label, .is-cancelled .azloh-timeline__label { color: var(--azloh-muted); font-weight: 500; }
.azloh-timeline__detail { color: var(--azloh-muted); font-size: .9em; }
.azloh-timeline__children { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: .92em; }
.azloh-timeline__children li { margin: 0; color: var(--azloh-muted); }
.azloh-timeline__children li.is-done { color: var(--azloh-green); }
.azloh-timeline__children li.is-current { color: var(--azloh-gold); font-weight: 600; }

/* Presupuesto y pago */
.azloh-quote__facts { margin: 0 0 12px; display: grid; gap: 8px; }
.azloh-quote__facts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--azloh-line); padding-bottom: 6px; }
.azloh-quote__facts dt { color: var(--azloh-muted); }
.azloh-quote__facts dd { margin: 0; font-weight: 600; text-align: right; }
.azloh-quote__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 8px 0; }
.azloh-quote__total strong { font-size: 1.6em; }
.azloh-quote__total small { color: var(--azloh-muted); }

.azloh-decision { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.azloh-plans { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.azloh-plans legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.azloh-plan { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--azloh-line); border-radius: 10px; cursor: pointer; }
.azloh-plan:has(input:checked) { border-color: var(--azloh-gold); background: var(--azloh-gold-soft); }
.azloh-plan input { margin-top: 4px; }
.azloh-plan__text { display: flex; flex-direction: column; gap: 2px; }
.azloh-plan__detail { color: var(--azloh-muted); }
.azloh-account .woocommerce-Price-amount { white-space: nowrap; }
.azloh-terms { display: flex; gap: 10px; align-items: flex-start; }
.azloh-terms input { margin-top: 4px; }
.azloh-account .azloh-button { background: var(--azloh-ink); color: #fff; border-color: var(--azloh-ink); padding: .8em 1.6em; font-weight: 600; border-radius: 999px; width: 100%; text-align: center; }
.azloh-account .azloh-button:hover { background: #000; color: #fff; }
.azloh-reject { margin-top: 12px; }
.azloh-reject summary { cursor: pointer; color: var(--azloh-muted); }
.azloh-reject form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.azloh-reject textarea { width: 100%; }
.azloh-alert { background: var(--azloh-amber-soft); color: var(--azloh-amber); padding: 10px 12px; border-radius: 10px; }
.azloh-pay-rest { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--azloh-line); }

.azloh-payments-list, .azloh-history, .azloh-notes, .azloh-docs { list-style: none; margin: 0; padding: 0; }
.azloh-payments-list li, .azloh-history li, .azloh-notes li, .azloh-docs li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--azloh-line); display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; align-items: center; }
.azloh-payments-list li:last-child, .azloh-history li:last-child, .azloh-notes li:last-child, .azloh-docs li:last-child { border-bottom: 0; }
.azloh-appointment { font-size: 1.05em; }

.azloh-gallery { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.azloh-gallery li { margin: 0; }
.azloh-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }

@media (min-width: 600px) {
	.azloh-jewel__link { grid-template-columns: 110px 1fr auto; align-items: center; }
	.azloh-jewel__media { width: 110px; height: 110px; }
	.azloh-jewel__cta { grid-column: auto; }
	.azloh-hero { grid-template-columns: minmax(180px, 280px) 1fr; align-items: start; }
	.azloh-account .azloh-button { width: auto; }
	.azloh-plans { grid-template-columns: 1fr 1fr; }
}

/* Mensajes */
.azloh-thread { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.azloh-thread__message { margin: 0; display: flex; flex-direction: column; max-width: 85%; }
.azloh-thread__message.is-azloh { align-self: flex-start; }
.azloh-thread__message.is-mine { align-self: flex-end; align-items: flex-end; }
.azloh-thread__bubble { padding: 10px 14px; border-radius: 16px; background: var(--azloh-soft); border: 1px solid var(--azloh-line); }
.is-mine .azloh-thread__bubble { background: var(--azloh-ink); color: #fff; border-color: var(--azloh-ink); }
.is-mine .azloh-thread__bubble a { color: #fff; }
.azloh-thread__bubble p { margin: 0; }
.azloh-thread__file { display: inline-block; margin-top: 6px; }
.azloh-thread__file img { max-width: 200px; max-height: 180px; border-radius: 10px; display: block; }
.azloh-thread__meta { color: var(--azloh-muted); font-size: .78em; margin-top: 3px; }
.azloh-thread__form { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--azloh-line); padding-top: 12px; }
.azloh-thread__form textarea { width: 100%; }
.azloh-thread__attach { display: flex; flex-direction: column; gap: 4px; font-size: .9em; color: var(--azloh-muted); }
