/*
 * Portal de Turismo Municipal de Tuxpan
 * Módulo: Taxi Seguro
 * Shield: #ttts-portal
 *
 * Importante:
 * - Todos los selectores están encapsulados dentro de #ttts-portal.
 * - No modificar estilos globales del tema Progress.
 */

#ttts-portal {
	--ttts-wine: #7b1638;
	--ttts-wine-dark: #5c1029;
	--ttts-wine-deep: #4c0e25;
	--ttts-gold: #c8a45d;
	--ttts-gold-light: #e1c98d;
	--ttts-green: #329b4c;
	--ttts-text: #272727;
	--ttts-muted: #666;
	--ttts-surface: #ffffff;
	--ttts-background: #f6f6f6;
	--ttts-border: #dedede;
	--ttts-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
	--ttts-radius: 16px;

	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	background: var(--ttts-background);
	color: var(--ttts-text);
	font-family: inherit;
}

#ttts-portal *,
#ttts-portal *::before,
#ttts-portal *::after {
	box-sizing: border-box;
}

#ttts-portal .ttts-container {
	width: min(100% - 48px, 1380px);
	margin-inline: auto;
}

/* =========================================================
   HERO
   ========================================================= */

#ttts-portal .ttts-hero {
	position: relative;
	min-height: 300px;
	display: flex;
	align-items: center;
	background-color: #171717;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	isolation: isolate;
}

#ttts-portal .ttts-hero--fallback {
	background:
		linear-gradient(110deg, #090909 0%, #25151a 50%, #6c2c20 100%);
}

#ttts-portal .ttts-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(
			90deg,
			rgba(0, 0, 0, 0.78) 0%,
			rgba(0, 0, 0, 0.58) 42%,
			rgba(0, 0, 0, 0.12) 100%
		);
}

#ttts-portal .ttts-hero__content {
	padding-block: 30px 34px;
}

#ttts-portal .ttts-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 16px;
	line-height: 1.4;
}

#ttts-portal .ttts-breadcrumbs__link {
	color: #ffffff;
	font-weight: 600;
	text-decoration: none;
}

#ttts-portal .ttts-breadcrumbs__link:hover,
#ttts-portal .ttts-breadcrumbs__link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 4px;
}

#ttts-portal .ttts-breadcrumbs__separator {
	color: var(--ttts-gold-light);
	font-size: 23px;
	line-height: 1;
}

#ttts-portal .ttts-breadcrumbs__current {
	color: #ffffff;
	font-weight: 500;
}

#ttts-portal .ttts-hero__title {
	max-width: 820px;
	margin: 0;
	color: #ffffff;
	font-size: clamp(44px, 4.6vw, 68px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -1.5px;
	text-wrap: balance;
}

#ttts-portal .ttts-hero__accent {
	width: 72px;
	height: 3px;
	margin: 14px 0 12px;
	background: var(--ttts-gold);
}

#ttts-portal .ttts-hero__lead,
#ttts-portal .ttts-hero__description {
	max-width: 700px;
	margin: 0;
	color: #ffffff;
	font-size: 20px;
	line-height: 1.45;
}

#ttts-portal .ttts-hero__description {
	font-size: 18px;
}

/* =========================================================
   DIRECTORY HEADER
   ========================================================= */

#ttts-portal .ttts-directory {
	padding: 30px 0 42px;
	background: var(--ttts-background);
}

#ttts-portal .ttts-section-heading {
	display: grid;
	grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
	align-items: center;
	gap: 20px;
	max-width: 1050px;
	margin: 0 auto 28px;
}

#ttts-portal .ttts-section-heading__copy {
	text-align: center;
}

#ttts-portal .ttts-section-heading__copy h2 {
	margin: 0;
	color: var(--ttts-wine);
	font-size: clamp(28px, 2.6vw, 38px);
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: 0.2px;
}

#ttts-portal .ttts-section-heading__copy p {
	margin: 7px 0 0;
	color: #3f3f3f;
	font-size: 17px;
	line-height: 1.45;
}

#ttts-portal .ttts-section-heading__line {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--ttts-wine);
}

#ttts-portal .ttts-section-heading__line--left {
	justify-content: flex-end;
}

#ttts-portal .ttts-section-heading__line--right {
	justify-content: flex-start;
}

#ttts-portal .ttts-section-heading__line::before,
#ttts-portal .ttts-section-heading__line::after {
	content: "";
	display: block;
	width: 34px;
	height: 1px;
	background: var(--ttts-gold);
}

#ttts-portal .ttts-section-heading__line--left::before {
	order: 0;
}

#ttts-portal .ttts-section-heading__line--right::after {
	order: 3;
}

#ttts-portal .ttts-section-heading__dot {
	width: 5px;
	height: 5px;
	flex: 0 0 5px;
	border-radius: 50%;
	background: var(--ttts-gold);
}

#ttts-portal .ttts-section-heading__car {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--ttts-wine);
	box-shadow: 0 4px 12px rgba(123, 22, 56, 0.18);
	font-size: 22px;
	line-height: 1;
}

/* =========================================================
   TAXI CARDS
   ========================================================= */

#ttts-portal .ttts-directory__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 30px;
}

#ttts-portal .ttts-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(215px, 0.72fr);
	align-items: center;
	min-height: 122px;
	padding: 14px 24px;
	border: 1px solid #e4e4e4;
	border-radius: var(--ttts-radius);
	background: var(--ttts-surface);
	box-shadow: var(--ttts-shadow);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

#ttts-portal .ttts-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 9px 24px rgba(0, 0, 0, 0.11);
}

#ttts-portal .ttts-card__identity {
	display: grid;
	grid-template-columns: 126px minmax(1px, 1px) minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	min-width: 0;
}

#ttts-portal .ttts-card__logo {
	width: 112px;
	height: 112px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border: 1px solid #d9d9d9;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 2px 7px rgba(0, 0, 0, 0.09);
}

#ttts-portal .ttts-card__logo-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

#ttts-portal .ttts-card__logo-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, var(--ttts-wine), var(--ttts-wine-dark));
	color: #ffffff;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0.5px;
}

#ttts-portal .ttts-card__divider {
	width: 1px;
	height: 72px;
	background: #d9d9d9;
}

#ttts-portal .ttts-card__name {
	min-width: 0;
}

#ttts-portal .ttts-card__name h3 {
	margin: 0;
	color: var(--ttts-wine);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

#ttts-portal .ttts-card__name p {
	margin: 5px 0 0;
	color: #242424;
	font-size: 14px;
	line-height: 1.35;
}

#ttts-portal .ttts-card__contacts {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding-left: 20px;
	border-left: 1px solid #d9d9d9;
}

#ttts-portal .ttts-contact {
	display: grid;
	grid-template-columns: 27px minmax(0, 1fr);
	align-items: start;
	gap: 8px;
}

#ttts-portal .ttts-contact__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--ttts-wine);
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

#ttts-portal .ttts-contact--whatsapp .ttts-contact__icon {
	color: var(--ttts-green);
	font-size: 24px;
}

#ttts-portal .ttts-contact__links {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

#ttts-portal .ttts-contact__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

#ttts-portal .ttts-contact__link {
	display: inline-block;
	width: fit-content;
	color: #252525;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}

#ttts-portal .ttts-contact__link:hover,
#ttts-portal .ttts-contact__link:focus-visible {
	color: var(--ttts-wine);
	text-decoration: underline;
	text-underline-offset: 3px;
}

#ttts-portal .ttts-contact__link--whatsapp:hover,
#ttts-portal .ttts-contact__link--whatsapp:focus-visible {
	color: var(--ttts-green);
}

/* =========================================================
   TRUST BANNER
   ========================================================= */

#ttts-portal .ttts-trust-banner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 84px;
	margin-top: 22px;
	padding: 12px 30px;
	overflow: hidden;
	border-radius: 12px;
	background:
		linear-gradient(
			100deg,
			var(--ttts-wine-dark) 0%,
			var(--ttts-wine) 58%,
			#891a3f 100%
		);
	color: #ffffff;
}

#ttts-portal .ttts-trust-banner__icon {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	margin-right: 20px;
	border: 2px solid var(--ttts-gold-light);
	border-radius: 12px;
	font-size: 27px;
}

#ttts-portal .ttts-trust-banner__copy {
	position: relative;
	z-index: 2;
}

#ttts-portal .ttts-trust-banner__copy h2 {
	margin: 0;
	color: #ffffff;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.2;
}

#ttts-portal .ttts-trust-banner__copy p {
	margin: 3px 0 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 15px;
	line-height: 1.4;
}

#ttts-portal .ttts-trust-banner__decoration {
	position: absolute;
	right: -10px;
	bottom: -40px;
	width: 340px;
	height: 115px;
	opacity: 0.13;
	background:
		radial-gradient(circle at 35% 50%, #ffffff 0 2px, transparent 3px),
		radial-gradient(ellipse at 65% 70%, #ffffff 0 35px, transparent 36px);
}

/* =========================================================
   SOCIAL
   ========================================================= */

#ttts-portal .ttts-social {
	padding: 28px 0 4px;
	border-top: 1px solid #dedede;
	margin-top: 26px;
	text-align: center;
}

#ttts-portal .ttts-social h2 {
	margin: 0 0 12px;
	color: var(--ttts-wine);
	font-size: 17px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

#ttts-portal .ttts-social__links {
	display: flex;
	justify-content: center;
	gap: 12px;
}

#ttts-portal .ttts-social__link {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 7px;
	background: var(--ttts-wine);
	color: #ffffff;
	font-size: 23px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	transition: transform 160ms ease, background-color 160ms ease;
}

#ttts-portal .ttts-social__link:hover,
#ttts-portal .ttts-social__link:focus-visible {
	transform: translateY(-2px);
	background: var(--ttts-wine-dark);
}

/* =========================================================
   FOCUS / REDUCED MOTION
   ========================================================= */

#ttts-portal a:focus-visible {
	outline: 3px solid var(--ttts-gold);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	#ttts-portal .ttts-card,
	#ttts-portal .ttts-social__link {
		transition: none;
	}

	#ttts-portal .ttts-card:hover,
	#ttts-portal .ttts-social__link:hover {
		transform: none;
	}
}

/* =========================================================
   1400 PX
   ========================================================= */

@media (max-width: 1400px) {
	#ttts-portal .ttts-container {
		width: min(100% - 40px, 1240px);
	}

	#ttts-portal .ttts-card {
		grid-template-columns: minmax(0, 1fr) minmax(190px, 0.68fr);
		padding-inline: 18px;
	}

	#ttts-portal .ttts-card__identity {
		grid-template-columns: 116px minmax(1px, 1px) minmax(0, 1fr);
		gap: 12px;
	}

	#ttts-portal .ttts-card__logo {
		width: 104px;
		height: 104px;
	}
}

/* =========================================================
   1200 PX
   ========================================================= */

@media (max-width: 1200px) {
	#ttts-portal .ttts-hero {
		min-height: 280px;
	}

	#ttts-portal .ttts-card {
		grid-template-columns: minmax(0, 1fr) 180px;
	}

	#ttts-portal .ttts-card__identity {
		grid-template-columns: 96px minmax(1px, 1px) minmax(0, 1fr);
	}

	#ttts-portal .ttts-card__logo {
		width: 90px;
		height: 90px;
	}

	#ttts-portal .ttts-card__name h3 {
		font-size: 18px;
	}

	#ttts-portal .ttts-contact__link {
		font-size: 14px;
	}
}

/* =========================================================
   992 PX
   ========================================================= */

@media (max-width: 992px) {
	#ttts-portal .ttts-directory__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	#ttts-portal .ttts-card {
		grid-template-columns: minmax(0, 1fr) 230px;
	}

	#ttts-portal .ttts-card__identity {
		grid-template-columns: 112px minmax(1px, 1px) minmax(0, 1fr);
	}

	#ttts-portal .ttts-card__logo {
		width: 100px;
		height: 100px;
	}

	#ttts-portal .ttts-card__name h3 {
		font-size: 20px;
	}

	#ttts-portal .ttts-contact__link {
		font-size: 15px;
	}
}

/* =========================================================
   768 PX
   ========================================================= */

@media (max-width: 768px) {
	#ttts-portal .ttts-container {
		width: min(100% - 30px, 680px);
	}

	#ttts-portal .ttts-hero {
		min-height: 290px;
		background-position: 58% center;
	}

	#ttts-portal .ttts-hero__content {
		padding-block: 26px 30px;
	}

	#ttts-portal .ttts-hero__title {
		font-size: clamp(40px, 8vw, 55px);
	}

	#ttts-portal .ttts-hero__lead {
		font-size: 18px;
	}

	#ttts-portal .ttts-hero__description {
		font-size: 16px;
	}

	#ttts-portal .ttts-section-heading {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-bottom: 24px;
	}

	#ttts-portal .ttts-section-heading__line {
		display: none;
	}

	#ttts-portal .ttts-card {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding: 14px 18px;
	}

	#ttts-portal .ttts-card__identity {
		grid-template-columns: 92px minmax(1px, 1px) minmax(0, 1fr);
	}

	#ttts-portal .ttts-card__logo {
		width: 84px;
		height: 84px;
	}

	#ttts-portal .ttts-card__divider {
		height: 60px;
	}

	#ttts-portal .ttts-card__contacts {
		padding: 12px 0 0 0;
		border-top: 1px solid #e1e1e1;
		border-left: 0;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 16px 28px;
	}

	#ttts-portal .ttts-trust-banner {
		padding: 14px 18px;
	}

	#ttts-portal .ttts-trust-banner__copy h2 {
		font-size: 21px;
	}
}

/* =========================================================
   576 PX
   ========================================================= */

@media (max-width: 576px) {
	#ttts-portal .ttts-container {
		width: min(100% - 24px, 540px);
	}

	#ttts-portal .ttts-hero {
		min-height: 315px;
		background-position: 62% center;
	}

	#ttts-portal .ttts-breadcrumbs {
		font-size: 14px;
	}

	#ttts-portal .ttts-hero__title {
		font-size: 39px;
		letter-spacing: -0.8px;
	}

	#ttts-portal .ttts-hero__lead {
		font-size: 17px;
	}

	#ttts-portal .ttts-hero__description {
		font-size: 15px;
	}

	#ttts-portal .ttts-directory {
		padding-top: 24px;
	}

	#ttts-portal .ttts-section-heading__copy h2 {
		font-size: 27px;
	}

	#ttts-portal .ttts-section-heading__copy p {
		font-size: 15px;
	}

	#ttts-portal .ttts-card {
		padding: 13px 14px;
		border-radius: 14px;
	}

	#ttts-portal .ttts-card__identity {
		grid-template-columns: 82px minmax(1px, 1px) minmax(0, 1fr);
		gap: 10px;
	}

	#ttts-portal .ttts-card__logo {
		width: 74px;
		height: 74px;
	}

	#ttts-portal .ttts-card__name h3 {
		font-size: 18px;
	}

	#ttts-portal .ttts-card__name p {
		font-size: 13px;
	}

	#ttts-portal .ttts-contact {
		grid-template-columns: 24px minmax(0, 1fr);
	}

	#ttts-portal .ttts-contact__link {
		font-size: 14px;
	}

	#ttts-portal .ttts-trust-banner {
		align-items: flex-start;
		min-height: 0;
	}

	#ttts-portal .ttts-trust-banner__icon {
		width: 48px;
		height: 48px;
		flex-basis: 48px;
		margin-right: 13px;
		font-size: 22px;
	}

	#ttts-portal .ttts-trust-banner__copy h2 {
		font-size: 18px;
	}

	#ttts-portal .ttts-trust-banner__copy p {
		font-size: 13px;
	}
}

/* =========================================================
   380 PX
   ========================================================= */

@media (max-width: 380px) {
	#ttts-portal .ttts-container {
		width: min(100% - 18px, 362px);
	}

	#ttts-portal .ttts-hero {
		min-height: 330px;
	}

	#ttts-portal .ttts-hero__title {
		font-size: 35px;
	}

	#ttts-portal .ttts-card__contacts {
		display: grid;
		grid-template-columns: 1fr;
		gap: 9px;
	}

	#ttts-portal .ttts-contact {
		width: 100%;
	}

	#ttts-portal .ttts-contact__link {
		white-space: normal;
	}
}


/* Estado temporal de interacción generado por taxi.js */
#ttts-portal .ttts-card[data-ttts-active="true"] {
	box-shadow: 0 0 0 2px rgba(200, 164, 93, 0.34), var(--ttts-shadow);
}
