/* ============================================================
   Turismo · Estados — Widget Elementor
   Diseño consistente con program-carousel y demás widgets PMTV
   ============================================================ */

.te-widget {
	--te-aqua:        #00AAAA;
	--te-aqua-dark:   #008888;
	--te-dark:        #0F2D2D;
	--te-bg:          #EFEEE8;
	--te-text:        #0F2D2D;
	--te-muted:       rgba(15, 45, 45, 0.6);
	--te-radius:      20px;
	--te-radius-sm:   12px;
	--te-cols:        var(--te-cols-mobile, 2);
}

/* ── Grid de estados ──────────────────────────────────────── */

.te-grid {
	display: grid;
	grid-template-columns: repeat(var(--te-cols), 1fr);
	gap: 16px;
}

.te-state-wrap {
	display: flex;
	flex-direction: column;
}

.te-state-card {
	border-radius: var(--te-radius);
	overflow: hidden;
	cursor: pointer;
	position: relative;
	aspect-ratio: 3 / 2;
	background: rgba(15, 45, 45, 0.08);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
	will-change: transform;
}

.te-state-card:hover {
	transform: scale(1.04);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.te-state-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Modal overlay ────────────────────────────────────────── */

.te-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 5vh 16px;
}

.te-modal-overlay.te-active {
	display: flex;
}

.te-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	cursor: pointer;
	z-index: 1;
}

.te-modal {
	position: relative;
	z-index: 2;
	background: #0F2D2D;
	color: #ffffff;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	border-radius: 24px;
	overflow-y: auto;
	overflow-x: hidden;
	animation: teSlideUp .3s cubic-bezier(.22,.68,0,1.2);
	-webkit-overflow-scrolling: touch;
}

@keyframes teSlideUp {
	from { transform: translateY(80px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

.te-modal-header {
	background: var(--te-aqua);
	color: #ffffff;
	padding: 16px 20px;
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
	position: sticky;
	top: 0;
	z-index: 10;
}

.te-modal-back {
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
	padding: 0 2px;
	background: none;
	border: none;
	color: #ffffff;
	flex-shrink: 0;
	transition: opacity .15s;
}

.te-modal-back:hover { opacity: .8; }

.te-modal-body {
	padding: 20px 20px 48px;
}

/* ── Título de sección ─────────────────────────────────────── */

.te-section-title {
	font-size: clamp(18px, 3vw, 22px);
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 14px;
	line-height: 1.1;
}

/* ── Carrusel ─────────────────────────────────────────────── */

.te-carousel-wrap {
	position: relative;
}

.te-carousel {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 4px;
}

.te-carousel::-webkit-scrollbar { display: none; }

.te-carousel-item {
	flex: 0 0 calc(100% - 20px);
	scroll-snap-align: start;
	border-radius: var(--te-radius);
	overflow: hidden;
	background: rgba(15, 45, 45, 0.08);
	position: relative;
	aspect-ratio: 16 / 9;
}

.te-carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.te-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, transparent 55%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 14px;
	color: #ffffff;
}

/* Badge estilo pmtv-chip */
.te-badge {
	background: #ffffff;
	color: #000000;
	font-size: 11px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
	display: inline-block;
	align-self: flex-start;
	margin-bottom: auto;
}

.te-card-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.te-btn-action {
	background: rgba(0, 0, 0, .55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, .35);
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	padding: 7px 14px;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: background .15s;
}

.te-btn-action:hover { background: rgba(0, 0, 0, .75); }

.te-btn-play {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 1.5px solid rgba(255, 255, 255, .45);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 14px;
	cursor: pointer;
	flex-shrink: 0;
	transition: background .15s;
}

.te-btn-play:hover { background: rgba(255, 255, 255, .35); }

/* ── Dots ─────────────────────────────────────────────────── */

.te-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 12px;
}

.te-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .25);
	cursor: pointer;
	border: none;
	padding: 0;
	transition: background .2s, transform .2s;
}

.te-dot.te-dot-active {
	background: var(--te-aqua);
	transform: scale(1.3);
}

/* ── Divider ─────────────────────────────────────────────── */

.te-divider {
	height: 1px;
	background: rgba(255, 255, 255, .12);
	margin: 22px 0;
}

/* ── Sabores y Hospitalidad ──────────────────────────────── */

.te-sabores-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.te-sabores-card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--te-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.te-sabores-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

.te-sabores-thumb {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
	background: rgba(255, 255, 255, .05);
}

.te-sabores-thumb-placeholder {
	width: 100%;
	aspect-ratio: 3 / 2;
	background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 75%);
	background-size: 200% 100%;
	animation: teShimmer 1.4s ease-in-out infinite;
}

.te-sabores-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.te-sabores-name {
	font-size: 17px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.25;
}

.te-sabores-rating {
	display: flex;
	align-items: center;
	gap: 6px;
}

.te-stars {
	color: var(--te-aqua);
	font-size: 16px;
	letter-spacing: 1px;
	line-height: 1;
}

.te-rating-text {
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
}

.te-rating-count {
	font-size: 13px;
	color: rgba(255, 255, 255, .5);
}

.te-sabores-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* Chips estilo pmtv-chip */
.te-tag-chip {
	background: #ffffff;
	color: var(--te-dark);
	border: none;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 999px;
}

.te-sabores-address {
	font-size: 12px;
	color: rgba(255, 255, 255, .5);
	display: flex;
	align-items: flex-start;
	gap: 5px;
	line-height: 1.5;
}

.te-maps-link {
	color: rgba(255, 255, 255, .5);
	text-decoration: underline;
	text-decoration-color: transparent;
	transition: color .15s, text-decoration-color .15s;
}

.te-maps-link:hover {
	color: var(--te-aqua);
	text-decoration-color: var(--te-aqua);
}

.te-sabores-links {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.te-social-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.65);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 16px;
	flex-shrink: 0;
	transition: background .15s, transform .15s;
}

.te-social-icon:hover {
	background: rgba(0, 0, 0, 0.85);
	transform: translateY(-1px);
}

/* ── Estado vacío ─────────────────────────────────────────── */

.te-empty-msg {
	color: rgba(255, 255, 255, .45);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	padding: 20px 0;
}

/* ── Skeleton / shimmer ───────────────────────────────────── */

@keyframes teShimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.te-skeleton {
	background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.05) 75%);
	background-size: 200% 100%;
	animation: teShimmer 1.4s ease-in-out infinite;
	border-radius: var(--te-radius);
}

.te-skeleton-card {
	aspect-ratio: 3 / 2;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (min-width: 768px) {
	.te-widget { --te-cols: var(--te-cols-tablet, 3); }
}

@media (min-width: 1025px) {
	.te-widget { --te-cols: var(--te-cols-desktop, 4); }
}
