/* Preguntas frecuentes · Una Vida de Luz */

/* ---------- Disparador: tarjeta horizontal ---------- */
.uvdl-faq-card, .uvdl-faq-btn { --f-bg: #F7F1E7; --f-text: #3b2c20; --f-sub: #8a7358; --f-ic-bg: #fff; --f-ic: #a8864f; --f-border: rgba(201, 169, 110, .55); --f-go: #4a3728; --f-go-text: #F6EFE4; font-family: Quicksand, sans-serif; cursor: pointer; }
.uvdl-faq-card {
	display: flex; align-items: center; gap: 14px; width: 100%; max-width: 560px; margin: 0 auto; padding: 10px 10px 10px 10px; text-align: left;
	border: 1px solid var(--f-border); border-radius: 999px; background: var(--f-bg); color: var(--f-text);
	box-shadow: 0 14px 30px -22px rgba(74, 55, 40, .55); transition: transform .2s ease, box-shadow .2s ease;
	font-size: 16px; line-height: 1.2; letter-spacing: 0; text-transform: none; min-height: 0;
}
.uvdl-faq-card:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -22px rgba(74, 55, 40, .65); }
.uvdl-faq-card:focus-visible, .uvdl-faq-btn:focus-visible { outline: 2px solid #C9A96E; outline-offset: 3px; }
.uvdl-faq-card__ic { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--f-ic-bg); color: var(--f-ic); box-shadow: 0 0 0 2px rgba(201, 169, 110, .45) inset; }
.uvdl-faq-card__ic svg { width: 26px; height: 26px; }
.uvdl-faq-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.uvdl-faq-card__body b { font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: 1.18rem; color: var(--f-text); }
.uvdl-faq-card__body small { font-size: .84rem; font-weight: 500; color: var(--f-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uvdl-faq-card__count { flex: none; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; background: rgba(201, 169, 110, .22); color: var(--f-text); font-size: .78rem; font-weight: 700; }
.uvdl-faq-card__go { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--f-go); color: var(--f-go-text); transition: transform .2s ease; }
.uvdl-faq-card:hover .uvdl-faq-card__go { transform: translateX(3px); }
.uvdl-faq-card__go svg { width: 20px; height: 20px; }

/* ---------- Disparador: botón ---------- */
.uvdl-faq-btn {
	display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--f-border);
	background: var(--f-bg); color: var(--f-text); font-weight: 700; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
	box-shadow: 0 10px 22px -16px rgba(74, 55, 40, .55); transition: transform .2s ease, filter .2s ease;
}
.uvdl-faq-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.uvdl-faq-btn svg { width: 20px; height: 20px; color: var(--f-ic); }

/* Versiones */
.is-dark.uvdl-faq-card, .is-dark.uvdl-faq-btn { --f-bg: linear-gradient(120deg, #3a2b1f, #2a1f16); --f-text: #F6EFE4; --f-sub: #cdbb9f; --f-ic-bg: #2a1f16; --f-ic: #C9A96E; --f-border: rgba(201, 169, 110, .35); --f-go: #C9A96E; --f-go-text: #2f241b; }
.is-gold.uvdl-faq-card, .is-gold.uvdl-faq-btn { --f-bg: linear-gradient(120deg, #e3c995, #C9A96E 50%, #a8864f); --f-text: #2f241b; --f-sub: #4a3728; --f-ic-bg: #fff7e8; --f-ic: #8a6533; --f-border: transparent; --f-go: #2f241b; --f-go-text: #F6EFE4; }
.is-white.uvdl-faq-card, .is-white.uvdl-faq-btn { --f-bg: #fff; --f-border: #ece4d7; --f-ic-bg: #F7F1E7; --f-go: linear-gradient(135deg, #d8bd88, #b8945a); --f-go-text: #fff; }
.is-dark .uvdl-faq-card__count { background: rgba(201, 169, 110, .2); }
.is-gold .uvdl-faq-card__count { background: rgba(255, 255, 255, .35); }

/* ---------- Panel lateral (como el carrito) ---------- */
.uvdl-faq { position: fixed; inset: 0; z-index: 100000; font-family: Quicksand, sans-serif; }
.uvdl-faq[hidden] { display: none; }
.uvdl-faq__overlay { position: absolute; inset: 0; background: rgba(36, 26, 18, .45); backdrop-filter: blur(2px); opacity: 0; transition: opacity .3s ease; }
.uvdl-faq__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column;
	background: #FBF8F3; color: #3b2c20; box-shadow: -24px 0 50px -20px rgba(36, 26, 18, .45);
	transform: translateX(100%); transition: transform .38s cubic-bezier(.2, .8, .2, 1);
}
.uvdl-faq.is-open .uvdl-faq__overlay { opacity: 1; }
.uvdl-faq.is-open .uvdl-faq__panel { transform: none; }
.admin-bar .uvdl-faq__panel { top: 32px; }
@media (max-width: 782px) { .admin-bar .uvdl-faq__panel { top: 46px; } }

.uvdl-faq__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 16px; border-bottom: 1px solid #ece4d7; background: linear-gradient(135deg, #f5ecdf, #FBF8F3); }
.uvdl-faq__kicker { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a8864f; margin-bottom: 4px; }
.uvdl-faq .uvdl-faq__title { margin: 0; padding: 0; font: 400 1.6rem/1.2 "Playfair Display", Georgia, serif; color: #2f241b; }
.uvdl-faq__intro { margin-top: 8px; font-size: .9rem; line-height: 1.55; color: #6b5844; }
.uvdl-faq__intro p { margin: 0 0 .5em; }
.uvdl-faq__intro p:last-child { margin-bottom: 0; }
.uvdl-faq__intro a { color: #8a6533; text-decoration: underline; }
.uvdl-faq__close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e3d6c1; background: #fff; color: #4a3728; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.uvdl-faq__close:hover { background: #F0EAE0; transform: rotate(90deg); }
.uvdl-faq__close svg { width: 18px; height: 18px; }

.uvdl-faq__search { display: flex; align-items: center; gap: 8px; margin: 14px 22px 0; padding: 0 14px; border: 1px solid rgba(201, 169, 110, .5); border-radius: 99px; background: #fff; color: #a69580; }
.uvdl-faq__search svg { width: 17px; height: 17px; flex: none; }
.uvdl-faq .uvdl-faq__search input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; padding: 11px 0 !important; font: 500 .92rem Quicksand, sans-serif; color: #3b2c20; }

.uvdl-faq__tabs { display: flex; gap: 6px; padding: 14px 22px 2px; overflow-x: auto; scrollbar-width: none; }
.uvdl-faq__tabs::-webkit-scrollbar { display: none; }
.uvdl-faq__tabs button { flex: none; padding: 8px 15px; border-radius: 99px; border: 1px solid #e3d6c1; background: #fff; color: #6b5844; font: 600 .82rem Quicksand, sans-serif; cursor: pointer; line-height: 1.2; text-transform: none; letter-spacing: 0; transition: background .2s, color .2s; }
.uvdl-faq__tabs button.is-on { background: #4a3728; border-color: #4a3728; color: #F6EFE4; }

.uvdl-faq__list { flex: 1; overflow-y: auto; padding: 8px 22px 24px; overscroll-behavior: contain; }
.uvdl-faq .uvdl-faq__gtitle { margin: 18px 0 8px; padding: 0; font: 700 .72rem/1.2 Quicksand, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #a8864f; }
.uvdl-faq__group[hidden], .uvdl-faq__item[hidden] { display: none; }
.uvdl-faq__item { margin: 0 0 10px; border: 1px solid rgba(201, 169, 110, .32); border-radius: 16px; background: #fff; overflow: hidden; transition: box-shadow .2s; }
.uvdl-faq__item[open] { box-shadow: 0 12px 26px -20px rgba(74, 55, 40, .55); border-color: rgba(201, 169, 110, .6); }
.uvdl-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; cursor: pointer; list-style: none; font-weight: 600; font-size: .98rem; line-height: 1.4; color: #3b2c20; }
.uvdl-faq__item summary::-webkit-details-marker { display: none; }
.uvdl-faq__item summary i { flex: none; position: relative; width: 26px; height: 26px; border-radius: 50%; background: #F7F1E7; }
.uvdl-faq__item summary i::before, .uvdl-faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; margin: -1px 0 0 -5.5px; border-radius: 2px; background: #a8864f; transition: transform .25s ease; }
.uvdl-faq__item summary i::after { transform: rotate(90deg); }
.uvdl-faq__item[open] summary i { background: #4a3728; }
.uvdl-faq__item[open] summary i::before, .uvdl-faq__item[open] summary i::after { background: #F6EFE4; }
.uvdl-faq__item[open] summary i::after { transform: rotate(0); }
.uvdl-faq__a { padding: 0 16px 16px; font-size: .94rem; line-height: 1.65; color: #5c4a3a; }
.uvdl-faq__a p { margin: 0 0 .7em; }
.uvdl-faq__a p:last-child { margin-bottom: 0; }
.uvdl-faq__a a { color: #8a6533; text-decoration: underline; }
.uvdl-faq__a mark { background: #f3e2bd; color: inherit; padding: 0 2px; border-radius: 3px; }
.uvdl-faq__empty { margin: 30px 0; text-align: center; color: #8a7358; }

.uvdl-faq__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid #ece4d7; background: #F7F1E7; font-size: .9rem; font-weight: 600; color: #4a3728; }
.uvdl-faq__foot a { flex: none; padding: 11px 18px; border-radius: 99px; background: #4a3728; color: #F6EFE4 !important; text-decoration: none !important; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.uvdl-faq__foot a:hover { background: #3a2b1f; }

body.uvdl-faq-lock { overflow: hidden; }

/* Celular */
@media (max-width: 480px) {
	.uvdl-faq-card { gap: 10px; padding: 8px; }
	.uvdl-faq-card__ic { width: 44px; height: 44px; }
	.uvdl-faq-card__ic svg { width: 22px; height: 22px; }
	.uvdl-faq-card__body b { font-size: 1.04rem; }
	.uvdl-faq-card__body small { font-size: .78rem; }
	.uvdl-faq-card__count { display: none; }
	.uvdl-faq-card__go { width: 40px; height: 40px; }
	.uvdl-faq__panel { width: 100%; }
	.uvdl-faq__head { padding: 18px 16px 14px; }
	.uvdl-faq__search { margin: 12px 16px 0; }
	.uvdl-faq__tabs { padding: 12px 16px 2px; }
	.uvdl-faq__list { padding: 6px 16px 20px; }
	.uvdl-faq__foot { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.uvdl-faq__panel, .uvdl-faq__overlay { transition: none; }
}
