/* Preguntas frecuentes — colores de la marca Traducasa */
.tfaq {
	--f-navy: #16213A;
	--f-terra: #B5471A;
	--f-terra-dark: #9E3D16;
	--f-ivory: #FAF8F4;
	--f-cream: #F6E9E1;
	--f-line: #E6E1D8;
	--f-text: #4A5468;
	--f-green: #1C7C4A;
	--f-sticky: 0px;
	max-width: 1180px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 32px 16px 56px;
	color: var(--f-navy);
	font-family: Figtree, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.55;
}
.tfaq *, .tfaq *::before, .tfaq *::after { box-sizing: border-box; }
.tfaq { container: tfaq / inline-size; width: 100%; }
.tradi-faq-page .wp-block-post-title, .tradi-faq-page .entry-title, .tradi-faq-page .page-title { display: none !important; }
.tfaq-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tfaq [hidden] { display: none !important; }

.tfaq-hero { text-align: center; max-width: 760px; margin: 0 auto 20px; }
.tfaq-title { margin: 0 0 8px; font: 600 clamp(28px, 5vw, 42px)/1.15 Fraunces, Georgia, serif; color: var(--f-navy); }
.tfaq-intro { margin: 0; color: var(--f-text); font-size: 18px; }

/* Buscador + índice */
.tfaq-bar { position: sticky; top: var(--f-sticky); z-index: 5; background: var(--f-ivory); padding: 10px 0 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-bottom: 1px solid var(--f-line); }
.admin-bar .tfaq-bar { top: calc(var(--f-sticky) + 46px); }
.tfaq-search { position: relative; }
.tfaq-search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--f-text); pointer-events: none; }
.tfaq-q {
	width: 100%; min-height: 52px; padding: 12px 48px 12px 44px;
	border: 1.5px solid var(--f-line); border-radius: 14px; background: #fff;
	font: 16px/1.3 Figtree, "Helvetica Neue", Arial, sans-serif; color: var(--f-navy);
	-webkit-appearance: none; appearance: none;
}
.tfaq .tfaq-search .tfaq-q { padding-left: 44px !important; padding-right: 48px !important; } /* el tema le quitaba el espacio a la lupa */
.tfaq-q:focus { outline: 3px solid rgba(181, 71, 26, .35); border-color: var(--f-terra); }
.tfaq-q::-webkit-search-cancel-button { display: none; }
.tfaq-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; font-size: 24px; line-height: 1; color: var(--f-text); cursor: pointer; }
.tfaq-clear:hover { background: var(--f-cream); }

.tfaq-cats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tfaq-cats::-webkit-scrollbar { display: none; }
.tfaq-cats a {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
	border: 1px solid var(--f-line); border-radius: 999px; background: #fff; color: var(--f-navy) !important;
	font-size: 14.5px; font-weight: 600; text-decoration: none !important; white-space: nowrap;
}
.tfaq-cats a:hover { border-color: var(--f-navy); }
.tfaq-cats a[aria-current="true"] { background: var(--f-navy); border-color: var(--f-navy); color: #fff !important; }
.tfaq-n { font-weight: 500; font-size: 12.5px; opacity: .7; }

.tfaq-main { min-width: 0; }
.tfaq-count { margin: 16px 0 4px; color: var(--f-text); font-weight: 600; }

/* Las más preguntadas */
.tfaq-top { margin: 24px 0 8px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--f-line); }
.tfaq-top h2 { margin: 0 0 10px; font: 600 22px/1.2 Fraunces, Georgia, serif; }
.tfaq-top ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.tfaq-top a { display: block; padding: 9px 10px; border-radius: 10px; color: var(--f-navy) !important; text-decoration: none !important; font-weight: 600; }
.tfaq-top a::before { content: "→"; color: var(--f-terra); margin-right: 8px; }
.tfaq-top a:hover { background: var(--f-cream); }

/* Categorías y grupos */
.tfaq-cat { padding-top: 28px; scroll-margin-top: 140px; }
.tfaq-cat__head h2 { margin: 0 0 6px; font: 600 clamp(24px, 3.4vw, 30px)/1.2 Fraunces, Georgia, serif; color: var(--f-navy); }
.tfaq-group { margin-top: 14px; }
.tfaq-group__title { margin: 16px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--f-terra-dark); }

/* Acordeones */
.tfaq-item { border: 1px solid var(--f-line); border-radius: 14px; background: #fff; margin-bottom: 8px; scroll-margin-top: 140px; transition: box-shadow .15s ease; }
.tfaq-item[open] { box-shadow: 0 6px 18px rgba(22, 33, 58, .08); border-color: #d9d2c5; }
.tfaq-item summary {
	list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 56px; padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 17px; color: var(--f-navy); border-radius: 14px;
}
.tfaq-item summary::-webkit-details-marker { display: none; }
.tfaq-item summary:hover { background: var(--f-ivory); }
.tfaq-item summary:focus-visible { outline: 3px solid var(--f-terra); outline-offset: 2px; }
.tfaq-item__icon { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--f-cream); position: relative; }
.tfaq-item__icon::before, .tfaq-item__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--f-terra); transform: translate(-50%, -50%); transition: transform .15s ease; }
.tfaq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.tfaq-item[open] .tfaq-item__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.tfaq-item__a { padding: 0 16px 16px; color: #1f2a40; }
.tfaq-item__a p { margin: 0 0 10px; }
.tfaq-item__a ul, .tfaq-item__a ol { margin: 0 0 10px; padding-left: 22px; }
.tfaq-item__a li { margin: 4px 0; }
.tfaq-item__a a { color: var(--f-terra-dark); }
.tfaq-item__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--f-line); }

.tfaq-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px;
	border-radius: 12px; border: 0; cursor: pointer; font: 600 15px/1.25 Figtree, "Helvetica Neue", Arial, sans-serif;
	text-decoration: none !important; text-align: left; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
/* Efecto "presionado" (pedido de José): crece un poquito, baja la intensidad del color y se hunde hacia adentro. Sin brillos que pasan. */
.tfaq-btn:hover, .tfaq-btn:focus-visible { transform: scale(1.03); filter: brightness(.93); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .22); }
.tfaq-btn:active { transform: scale(1); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .3); }
.tfaq-btn--price { background: var(--f-terra); color: #fff !important; }
.tfaq-btn--wa { background: var(--f-green); color: #fff !important; }
.tfaq-btn--book, .tfaq-btn--account { background: #fff; color: var(--f-navy) !important; border: 1.5px solid var(--f-navy); }
.tfaq-btn--tradi { background: var(--f-navy); color: #fff !important; }
.tfaq-copy { min-height: 44px; padding: 8px 10px; border: 0; background: transparent; color: var(--f-text); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 10px; }
.tfaq-copy:hover { background: var(--f-ivory); }
.tfaq-copy.is-done { color: var(--f-green); text-decoration: none; }

.tfaq-empty { margin: 20px 0; padding: 18px 20px; border-radius: 14px; background: var(--f-cream); font-weight: 600; }
.tfaq-empty p { margin: 0; }

.tfaq-more { margin-top: 36px; padding: 24px; border-radius: 20px; background: var(--f-navy); color: #fff; }
.tfaq-more h2 { margin: 0 0 6px; font: 600 24px/1.2 Fraunces, Georgia, serif; color: #fff; }
.tfaq-more p { margin: 0 0 16px; color: #D7DBE4; }
.tfaq-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tfaq-more .tfaq-btn--book { background: transparent; color: #fff !important; border-color: #fff; }
.tfaq-more .tfaq-btn--tradi { background: #fff; color: var(--f-navy) !important; }

/* Aviso obligatorio del notary (Florida, 117.05) */
.tfaq-notary { margin-top: 20px; padding: 18px 20px; border-radius: 14px; border: 2px solid var(--f-navy); background: #fff; }
.tfaq-notary h2 { margin: 0 0 8px; font: 700 16px/1.3 Figtree, "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-weight: 700; color: var(--f-navy); }
.tfaq-notary p { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--f-navy); }

/* Computadora: índice fijo a la izquierda, contenido a la derecha */
@container tfaq (min-width: 900px) {
	.tfaq-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: 44px; padding-top: 16px; }
	.tfaq-hero { grid-column: 1 / -1; margin-bottom: 36px; }
	.tfaq-bar { grid-column: 1; align-self: start; top: calc(var(--f-sticky) + 24px); margin: 0; padding: 0; border: 0; background: transparent; }
	.admin-bar .tfaq-bar { top: calc(var(--f-sticky) + 56px); }
	.tfaq-cats { flex-direction: column; overflow: visible; gap: 4px; padding-top: 16px; }
	.tfaq-cats a { justify-content: space-between; border-radius: 12px; border-color: transparent; background: transparent; white-space: normal; }
	.tfaq-cats a:hover { background: #fff; border-color: var(--f-line); }
	/* La categoría activa conserva su fondo azul al pasar el mouse (antes quedaba blanco sobre blanco). */
	.tfaq-cats a[aria-current="true"], .tfaq-cats a[aria-current="true"]:hover { background: var(--f-navy); border-color: var(--f-navy); color: #fff !important; }
	.tfaq-main { grid-column: 2; max-width: 780px; }
	.tfaq-top { margin-top: 0; }
	.tfaq-top ul { grid-template-columns: 1fr 1fr; }
	.tfaq-cat, .tfaq-item { scroll-margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	.tfaq-btn, .tfaq-item, .tfaq-item__icon::before, .tfaq-item__icon::after { transition: none !important; }
}
@media print {
	.tfaq-bar, .tfaq-more, .tfaq-item__foot { display: none !important; }
	.tfaq-item { break-inside: avoid; }
}

/* Política de reembolsos */
.tfaq-policy { max-width: 760px; margin: 0 auto; padding: 8px 16px 48px; font-family: Figtree, "Helvetica Neue", Arial, sans-serif; font-size: 17px; line-height: 1.6; color: #1f2a40; }
.tfaq-policy h2 { margin: 28px 0 8px; font: 600 22px/1.25 Fraunces, Georgia, serif; color: #16213A; }
.tfaq-policy p { margin: 0 0 12px; }
