/* ==========================================================================
   ParkSinta Bilingual Technical Glossary (Español ↔ English) Styles
   ========================================================================== */

.parksinta-glossary-app {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: #2c3e50;
	margin: 30px auto 50px;
	max-width: 1200px;
}

/* --- Buscador Flotante y Barra Meta --- */
.parksinta-glossary-search-wrap {
	margin-bottom: 24px;
	transition: all 0.3s ease;
}

.parksinta-glossary-search-wrap.is-sticky {
	position: sticky;
	top: 15px;
	z-index: 99;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 12px 16px;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	border: 1px solid #e2e8f0;
}

.parksinta-glossary-search-box {
	position: relative;
	display: flex;
	align-items: center;
	background: #ffffff;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	padding: 4px 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.parksinta-glossary-search-box:focus-within {
	border-color: #b08d57;
	box-shadow: 0 4px 16px rgba(176, 141, 87, 0.18);
}

.parksinta-glossary-search-icon {
	font-size: 1.25rem;
	margin-right: 12px;
	opacity: 0.7;
}

.parksinta-glossary-input {
	width: 100%;
	border: none;
	outline: none;
	font-size: 1.05rem;
	padding: 12px 0;
	background: transparent;
	color: #1e293b;
}

.parksinta-glossary-input::placeholder {
	color: #94a3b8;
}

.parksinta-glossary-clear {
	background: transparent;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	padding: 0 4px;
	transition: color 0.15s ease;
}

.parksinta-glossary-clear:hover {
	color: #b08d57;
}

.parksinta-glossary-meta-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	padding: 0 4px;
	flex-wrap: wrap;
	gap: 10px;
}

.parksinta-glossary-stats {
	font-size: 0.92rem;
	color: #64748b;
}

.parksinta-bilingual-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f1f5f9;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 0.82rem;
	font-weight: 700;
	color: #334155;
	border: 1px solid #e2e8f0;
}

.parksinta-bilingual-badge .badge-sep {
	color: #b08d57;
}

/* --- Filtro por Categorías Core --- */
.parksinta-glossary-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.parksinta-cat-btn {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 30px;
	padding: 8px 16px;
	font-size: 0.90rem;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.parksinta-cat-btn:hover {
	background: #f8fafc;
	border-color: #b08d57;
	color: #b08d57;
}

.parksinta-cat-btn.active {
	background: #b08d57;
	border-color: #b08d57;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(176, 141, 87, 0.3);
}

.parksinta-cat-btn.parksinta-cat-featured {
	background: #fffbeb;
	border-color: #fde68a;
	color: #b45309;
}

.parksinta-cat-btn.parksinta-cat-featured.active {
	background: #d97706;
	border-color: #d97706;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

/* --- Barra Alfabética A-Z --- */
.parksinta-glossary-alphabet {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	background: #f8fafc;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	margin-bottom: 30px;
}

.parksinta-letter-btn {
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: all 0.15s ease;
}

.parksinta-letter-btn:hover:not(:disabled) {
	background: #f1f5f9;
	border-color: #b08d57;
	color: #b08d57;
}

.parksinta-letter-btn.active {
	background: #1e293b;
	border-color: #1e293b;
	color: #ffffff;
}

.parksinta-letter-btn.disabled,
.parksinta-letter-btn:disabled {
	background: #f8fafc;
	border-color: #f1f5f9;
	color: #cbd5e1;
	cursor: not-allowed;
	opacity: 0.6;
}

/* --- Cuadrícula de Tarjetas (Grid Bilingüe) --- */
.parksinta-glossary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
	gap: 24px;
}

/* --- Tarjeta Individual --- */
.parksinta-glossary-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	position: relative;
}

.parksinta-glossary-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-color: #cbd5e1;
}

.parksinta-glossary-card.is-featured {
	border-left: 4px solid #b08d57;
	background: linear-gradient(to bottom, #ffffff 0%, #fffdfa 100%);
}

.parksinta-term-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
	gap: 8px;
	flex-wrap: wrap;
}

.parksinta-term-cat-badge {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.parksinta-term-header-right {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.parksinta-featured-star {
	font-size: 0.72rem;
	font-weight: 700;
	background: #fffbeb;
	color: #b45309;
	padding: 2px 7px;
	border-radius: 4px;
	border: 1px solid #fde68a;
}

.parksinta-term-standard-badge {
	font-size: 0.74rem;
	font-weight: 600;
	background: #f1f5f9;
	color: #0f766e;
	padding: 3px 8px;
	border-radius: 5px;
	border: 1px solid #ccfbf1;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	line-height: 1.3;
}

.parksinta-term-standard-badge .standard-label {
	font-weight: 800;
	color: #0d9488;
	text-transform: uppercase;
	font-size: 0.68rem;
	letter-spacing: 0.3px;
}

/* --- Título en Español y Sinónimos ES --- */
.parksinta-term-title {
	margin: 0 0 6px;
	font-size: 1.22rem;
	line-height: 1.35;
	font-weight: 700;
}

.parksinta-term-title a {
	color: #1e293b;
	text-decoration: none;
	transition: color 0.15s ease;
}

.parksinta-term-title a:hover {
	color: #b08d57;
}

.parksinta-term-synonyms-es {
	font-size: 0.82rem;
	color: #64748b;
	margin-bottom: 10px;
	line-height: 1.4;
}

.parksinta-term-synonyms-es .syn-label {
	font-weight: 700;
	color: #475569;
}

/* --- Definición en Español por Defecto --- */
.parksinta-term-def-es {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #334155;
	margin: 0 0 12px;
}

/* --- Desplegable Bilingüe en Inglés (Dropdown) --- */
.parksinta-term-en-dropdown {
	margin-top: 10px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
	overflow: hidden;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.parksinta-term-en-dropdown[open] {
	border-color: #cbd5e1;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.parksinta-en-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	cursor: pointer;
	user-select: none;
	font-size: 0.86rem;
	color: #334155;
	font-weight: 600;
	background: #f8fafc;
	transition: background-color 0.15s ease, color 0.15s ease;
	list-style: none;
}

.parksinta-en-summary::-webkit-details-marker {
	display: none;
}

.parksinta-en-summary:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.parksinta-term-en-dropdown[open] .parksinta-en-summary {
	background: #f1f5f9;
	border-bottom: 1px solid #e2e8f0;
}

.en-summary-left {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.en-flag-badge {
	font-size: 0.70rem;
	font-weight: 800;
	background: #2563eb;
	color: #ffffff;
	padding: 2px 6px;
	border-radius: 4px;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}

.en-summary-title {
	font-size: 0.88rem;
	font-weight: 600;
	color: #1e293b;
	font-style: italic;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.en-summary-toggle-text {
	font-size: 0.76rem;
	color: #64748b;
	margin-left: auto;
	margin-right: 6px;
	font-weight: 500;
}

.en-summary-arrow {
	font-size: 0.9rem;
	color: #64748b;
	transition: transform 0.2s ease;
	line-height: 1;
}

.parksinta-term-en-dropdown[open] .en-summary-arrow {
	transform: rotate(180deg);
}

.parksinta-en-dropdown-content {
	padding: 12px 14px;
	background: #ffffff;
}

.parksinta-term-synonyms-en {
	font-size: 0.80rem;
	color: #64748b;
	margin-bottom: 10px;
	line-height: 1.4;
}

.parksinta-term-synonyms-en .syn-label {
	font-weight: 700;
	color: #475569;
}

.parksinta-term-def-en {
	background: #f8fafc;
	border-left: 3px solid #93c5fd;
	padding: 10px 12px;
	border-radius: 0 6px 6px 0;
}

.parksinta-term-def-en .def-en-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #2563eb;
	display: block;
	margin-bottom: 4px;
}

.parksinta-term-def-en .def-en-text {
	font-size: 0.86rem;
	line-height: 1.5;
	color: #475569;
	font-style: italic;
	margin: 0;
}

/* --- Resaltado de Búsqueda --- */
mark.parksinta-highlight {
	background: #fef08a;
	color: #1e293b;
	padding: 0 3px;
	border-radius: 2px;
	font-weight: inherit;
}

/* --- Módulo CTA --- */
.parksinta-glossary-cta-box {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	border-radius: 16px;
	padding: 32px 36px;
	color: #ffffff;
	margin-top: 45px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
	flex-wrap: wrap;
}

.parksinta-glossary-cta-body {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 1;
	min-width: 300px;
}

.parksinta-glossary-cta-icon {
	font-size: 2.5rem;
}

.parksinta-glossary-cta-text h3 {
	color: #ffffff;
	margin: 0 0 8px;
	font-size: 1.35rem;
}

.parksinta-glossary-cta-text p {
	color: #cbd5e1;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
}

.parksinta-glossary-cta-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.parksinta-btn-cta-primary {
	background: #b08d57;
	color: #ffffff !important;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.15s ease;
	display: inline-block;
}

.parksinta-btn-cta-primary:hover {
	background: #937241;
	transform: translateY(-2px);
}

.parksinta-btn-cta-secondary {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff !important;
	padding: 12px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background 0.2s ease;
	border: 1px solid rgba(255, 255, 255, 0.2);
	display: inline-block;
}

.parksinta-btn-cta-secondary:hover {
	background: rgba(255, 255, 255, 0.22);
}

/* --- Estado sin resultados --- */
.parksinta-glossary-no-results {
	text-align: center;
	padding: 50px 20px;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px dashed #cbd5e1;
	margin-top: 30px;
}

.parksinta-glossary-no-results .no-results-icon {
	font-size: 3rem;
	margin-bottom: 12px;
}

.parksinta-glossary-no-results h3 {
	margin: 0 0 8px;
	font-size: 1.25rem;
	color: #1e293b;
}

.parksinta-glossary-no-results p {
	margin: 0 0 16px;
	color: #64748b;
}

.parksinta-btn-reset {
	background: #b08d57;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 8px 18px;
	font-weight: 600;
	font-size: 0.92rem;
	cursor: pointer;
	transition: background 0.15s ease;
}

.parksinta-btn-reset:hover {
	background: #937241;
}

/* --- Responsividad Móvil --- */
@media (max-width: 768px) {
	.parksinta-glossary-grid {
		grid-template-columns: 1fr;
	}

	.parksinta-glossary-meta-bar {
		flex-direction: column;
		align-items: flex-start;
	}

	.parksinta-glossary-cta-box {
		padding: 24px 20px;
		flex-direction: column;
		align-items: flex-start;
	}

	.parksinta-glossary-cta-actions {
		width: 100%;
		flex-direction: column;
	}

	.parksinta-btn-cta-primary,
	.parksinta-btn-cta-secondary {
		text-align: center;
		width: 100%;
	}
}

