.products-page main.section {
	padding-top: 30px;
}

.products-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 220px;
	padding: 32px max(5%, calc((100% - 1240px) / 2));
	background: linear-gradient(100deg, rgba(7, 18, 27, 0.96) 0%, rgba(0, 69, 125, 0.8) 54%, rgba(0, 96, 157, 0.28) 100%);
	color: var(--color-white);
	box-shadow: 0 12px 32px rgba(0, 59, 115, 0.16);
}

.products-header-copy {
	display: flex;
	align-items: center;
	gap: clamp(20px, 3vw, 36px);
	max-width: 900px;
}

.catalog-header-logo {
	display: block;
	flex: 0 0 auto;
	width: clamp(145px, 17vw, 215px);
	max-height: 145px;
	padding-right: clamp(18px, 2.5vw, 30px);
	border-right: 1px solid rgba(126, 222, 255, 0.65);
	object-fit: contain;
	filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.3));
}

.catalog-header-text {
	min-width: 0;
}


.products-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding: 6px 14px;
	border: 1px solid rgba(89, 220, 255, 0.8);
	border-radius: 999px;
	background: rgba(0, 77, 143, 0.78);
	color: #c9f6ff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.products-header h1 {
	margin: 0 0 10px;
	font-size: clamp(2.1rem, 4vw, 3.25rem);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.035em;
}

.products-header h1 span {
	color: #45d8f2;
}

.products-header p {
	max-width: 560px;
	margin-top: 0;
	color: #e4f5ff;
	font-size: 1rem;
	line-height: 1.45;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #ffffff;
	background-color: rgba(0, 91, 160, 0.58);
	border: 1px solid #65dcff;
	padding: 11px 18px;  
	border-radius: 999px;
	text-decoration: none;
	font-weight: bold;
	font-size: 0.84rem;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}


.catalog-heading {
	display: grid;
	grid-template-columns: minmax(28px, 60px) auto minmax(28px, 60px);
	align-items: center;
	justify-content: center;
	column-gap: 16px;
	margin: 0 auto 22px;
	text-align: center;
}

.product-title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0;
	font-size: clamp(1.7rem, 3.2vw, 2.3rem);
	line-height: 1.15;
	color: #003b73;
	letter-spacing: -0.025em;
}

.product-title i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: linear-gradient(145deg, #168de1, #00539b);
	color: #ffffff;
	font-size: 0.95rem;
	box-shadow: 0 5px 12px rgba(0, 83, 145, 0.2);
}

.catalog-rule {
	height: 1px;
	background: linear-gradient(90deg, transparent, #55bff0);
}

.catalog-rule:last-of-type {
	background: linear-gradient(90deg, #55bff0, transparent);
}

.catalog-heading > p {
	grid-column: 1 / -1;
	margin-top: 5px;
	color: #496682;
	font-size: 0.95rem;
	line-height: 1.45;
}

.products-grid + .catalog-heading {
	margin-top: 48px;
}

.products-grid {
	display: grid;
	width: min(100%, 1120px);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 20px;
	margin: 0 auto;
	
}
/* estilos cajas de productos */
.product-card {
	position: relative;
	width: 100%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	background-color: var(--color-white);
	border: 1px solid #c3e7fa;
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(0, 83, 145, 0.12);
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
	transform: translateY(-5px);
	border-color: #8bcdf4;
	box-shadow: 0 16px 32px rgba(0, 83, 145, 0.17);
}

.product-card > img {
	display: block;
	width: 100%;
	height: 250px;
	object-position: center;
	background: #52768d;

}

.product-card-content {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 218px;
	padding: 16px 18px 18px;
}

.product-card-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 9px;
}

.product-icon {
	display: inline-flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(145deg, #168de1, #00539b);
	color: #ffffff;
	font-size: 1rem;
	box-shadow: 0 4px 10px rgba(0, 83, 145, 0.18);
}

.product-card h2 {
	color: var(--color-blue);
	font-size: 1.12rem;
	line-height: 1.2;
	margin: 0;
	font-weight: 750;
}

.product-card p {
	color: #48617b;
	font-size: 0.9rem;
	line-height: 1.55;
}

/* finaliza los estilos de las cajas de productos */


.product-actions {
	position: relative;
	display: block;
	flex: 1;
	min-height: 20px;
	padding-bottom: 38px;
	
}

.product-actions details {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0;
}

.product-card summary {
	order: 2;
	position: absolute;
	bottom: 0;
	left: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	color: #003B73;
	background-color: #ffffff;
	border: 1px solid #003B73;
	border-radius: 16px;
	cursor: pointer;
	font-size: 0.72rem;
	font-weight: 700;
	list-style: none;
	box-shadow: none;
	transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
	margin: 0;
}

.product-card summary::after {
	content: "\f061";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 0.65rem;
}

.product-card summary:hover {
	transform: translateY(-1px);
	background: #003b73;
	color: #ffffff;
	box-shadow: 0 4px 10px rgba(0, 59, 115, 0.18);
}

.product-card details[open] summary::after {
	content: "\f062";
}

.product-card summary::-webkit-details-marker {
	display: none;
}

.product-action-links {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}

.catalog-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid #003B73;
	border-radius: 999px;
	background: linear-gradient(110deg, #07549a, #003b73);
	color: #ffffff;
	font-size: 0.76rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 4px 10px rgba(0, 59, 115, 0.18);
	transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}


@media (max-width: 768px) {
	.products-header {
		flex-direction: column;
		align-items: flex-start;
		min-height: 250px;
		padding: 30px 7%;
		border-radius: 0 0 24px 24px;
	}

	.products-header::after {
		display: none;
	}

	.products-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.products-grid > .product-card:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		width: min(100%, 360px);
		justify-self: center;
	}

	.back-link {
		align-self: flex-start;
	}

	.products-grid + .catalog-heading {
		margin-top: 38px;
	}
}

@media (max-width: 520px) {
	.products-header {
		min-height: 0;
		gap: 18px;
		padding: 30px 6% 26px;
	}

	.products-header-copy {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
	}

	.catalog-header-logo {
		width: 135px;
		max-height: 90px;
		padding: 0 0 12px;
		border-right: 0;
		border-bottom: 1px solid rgba(126, 222, 255, 0.65);
	}

	.products-header h1 {
		font-size: clamp(2rem, 9vw, 2.6rem);
	}

	.products-header p {
		font-size: 0.94rem;
	}

	.products-grid {
		grid-template-columns: 1fr;
		width: min(100%, 380px);
		gap: 18px;
	}

	.products-page main.section {
		padding-right: 5%;
		padding-left: 5%;
	}

	.catalog-heading {
		column-gap: 9px;
		margin-bottom: 18px;
	}

	.product-title {
		gap: 8px;
		font-size: 1.65rem;
	}

	.product-title i {
		width: 34px;
		height: 34px;
		font-size: 0.85rem;
	}

	.catalog-heading > p {
		font-size: 0.86rem;
	}

	.product-card-content {
		min-height: 205px;
		padding: 15px 16px 17px;
	}

	.product-card > img {
		height: 100px;

	}
}

@media (prefers-reduced-motion: reduce) {
	.product-card,
	.back-link,
	.product-card summary,
	.catalog-button {
		transition: none;
	}

	.product-card:hover,
	.back-link:hover,
	.product-card summary:hover,
	.catalog-button:hover {
		transform: none;
	}
}
