/* Preguntas Frecuentes (/preguntas-frecuentes/)
   Hero, buscador, navegación por categorías y acordeones (details/summary con H3). */

/* Hero: fondo plano #0F2830, texto a la izquierda e imagen a la derecha */
.tc-pf-hero { background: #0F2830; }
.tc-pf-hero::before, .tc-pf-hero::after { display: none; }
:is(.entry-content, .is-root-container) .tc-pf-hero-sub { margin: 0 0 14px; font-family: 'Lexend', sans-serif; font-size: 22px; font-weight: 500; line-height: 1.35; color: #ffffff; }
:is(.entry-content, .is-root-container) .tc-pf-hero-img { margin: 0; }
.tc-pf-hero-img img { display: block; width: 100%; height: auto; border-radius: 20px; }

/* Buscador */
.tc-pf-buscador { max-width: 720px; margin: 8px auto 0; }
.tc-pf-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tc-pf-campo { position: relative; }
.tc-pf-campo::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 50%;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	background: var(--tc-c-texto);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tc-pf-input {
	width: 100%;
	box-sizing: border-box;
	padding: 17px 52px 17px 54px;
	background: #ffffff;
	border: 1.5px solid #C5CBD6;
	border-radius: 14px;
	font: inherit;
	font-size: 16px;
	color: var(--tc-c-navy);
	-webkit-appearance: none;
	appearance: none;
}
.tc-pf-input:focus { outline: none; border-color: var(--tc-acento); box-shadow: 0 0 0 4px var(--tc-acento-tinte); }
.tc-pf-input::-webkit-search-cancel-button { display: none; }
.tc-pf-limpiar { position: absolute; right: 12px; top: 50%; width: 32px; height: 32px; margin-top: -16px; padding: 0; border: 0; border-radius: 50%; background: #EEF1F5; color: var(--tc-c-navy); font-size: 20px; line-height: 1; cursor: pointer; }
.tc-pf-limpiar:hover, .tc-pf-limpiar:focus-visible { background: var(--tc-acento-tinte); color: var(--tc-acento); }
:is(.entry-content, .is-root-container) .tc-pf-estado { min-height: 22px; margin: 10px 0 0; font-size: 14px; text-align: center; color: var(--tc-c-texto); }

/* Navegación por categorías */
.tc-pf-nav { margin-top: 26px; }
.tc-pf-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tc-pf-nav li { margin: 0; }
:is(.entry-content, .is-root-container) .tc-pf-nav a {
	display: inline-block;
	padding: 10px 18px;
	background: #ffffff;
	border: 1.5px solid #C5CBD6;
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--tc-c-navy);
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease;
}
:is(.entry-content, .is-root-container) .tc-pf-nav a:hover,
:is(.entry-content, .is-root-container) .tc-pf-nav a:focus-visible { border-color: var(--tc-acento); color: var(--tc-acento); }

/* Secciones de categorías */
.tc-pf-cat { scroll-margin-top: 90px; }
.tc-pf-lista { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }

/* Acordeón */
.tc-pf-item { background: #ffffff; border: 1px solid #D5DCE5; border-radius: 14px; transition: border-color .2s ease; }
.tc-pf-item:hover { border-color: #B9C3CF; }
.tc-pf-item[open] { border-color: var(--tc-acento); }
.tc-pf-item > summary { position: relative; display: block; padding: 18px 60px 18px 22px; list-style: none; cursor: pointer; border-radius: 14px; }
.tc-pf-item > summary::-webkit-details-marker { display: none; }
.tc-pf-item > summary:focus-visible { outline: 3px solid var(--tc-acento-borde); outline-offset: 2px; }
.tc-pf-item > summary::before,
.tc-pf-item > summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--tc-acento); border-radius: 2px; transition: transform .2s ease; }
.tc-pf-item > summary::after { transform: rotate(90deg); }
.tc-pf-item[open] > summary::after { transform: rotate(0); }
:is(.entry-content, .is-root-container) .tc-pf-q { margin: 0; font-family: 'Lexend', sans-serif; font-size: 16.5px; font-weight: 600; line-height: 1.4; color: var(--tc-c-navy); }
.tc-pf-a { padding: 0 22px 20px; font-size: 15.5px; line-height: 1.7; color: var(--tc-c-texto); }
:is(.entry-content, .is-root-container) .tc-pf-a p { margin: 0 0 12px; }
:is(.entry-content, .is-root-container) .tc-pf-a :is(ul, ol) { margin: 0 0 12px; padding-left: 22px; }
:is(.entry-content, .is-root-container) .tc-pf-a li { margin: 0 0 6px; }
:is(.entry-content, .is-root-container) .tc-pf-a > :last-child { margin-bottom: 0; }
:is(.entry-content, .is-root-container) .tc-pf-a a { color: var(--tc-acento); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
:is(.entry-content, .is-root-container) .tc-pf-a a:hover { color: var(--tc-acento-hover); }
.tc-pf-a strong { color: var(--tc-c-navy); }

/* Tabla dentro de una respuesta */
.tc-pf-tabla { margin: 4px 0 14px; overflow: hidden; border: 1px solid #D5DCE5; border-radius: 12px; }
.tc-pf-tr { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .6fr) minmax(0, 1fr); }
.tc-pf-tr > span { padding: 10px 14px; font-size: 14.5px; }
.tc-pf-tr:nth-child(odd):not(.tc-pf-th) { background: #F6F8FA; }
.tc-pf-th { background: #0D2730; }
.tc-pf-th > span { font-weight: 600; color: #ffffff; }
.tc-pf-tr:not(.tc-pf-th) > span:last-child { font-weight: 600; color: var(--tc-c-navy); }

/* Sin resultados */
:is(.entry-content, .is-root-container) .tc-pf-vacio { max-width: 720px; margin: 0 auto; padding: 40px 24px; text-align: center; font-size: 16px; color: var(--tc-c-texto); }
.tc-pf-vacio a { color: var(--tc-acento); font-weight: 600; }

/* Cierre */
.tc-pf-cierre { text-align: center; }
:is(.entry-content, .is-root-container) .tc-pf-cierre .tc-kicker { justify-content: center; }

@media (max-width: 1024px) {
	.tc-pf-hero-img { max-width: 560px; }
}
@media (max-width: 767px) {
	:is(.entry-content, .is-root-container) .tc-pf-hero-sub { font-size: 19px; }
	.tc-pf-nav ul { justify-content: flex-start; }
	:is(.entry-content, .is-root-container) .tc-pf-nav a { padding: 8px 14px; font-size: 13.5px; }
	.tc-pf-item > summary { padding: 16px 52px 16px 18px; }
	.tc-pf-item > summary::before, .tc-pf-item > summary::after { right: 20px; }
	:is(.entry-content, .is-root-container) .tc-pf-q { font-size: 15.5px; }
	.tc-pf-a { padding: 0 18px 18px; font-size: 15px; }
	.tc-pf-tr { grid-template-columns: minmax(0, 1fr) auto; }
	.tc-pf-tr > span:nth-child(2) { display: none; }
	.tc-pf-tr > span { padding: 9px 12px; font-size: 13.5px; }
}
.tc-pf-hero .tc-dhero-inner::before { display: none; }
