/*
 * Categoría Nubank 2026.
 */

/* Tipografía propietaria de Nu, aislada para la categoría Nubank. */
@font-face {
	font-family: "NuSansText";
	src: url("../fonts/nubank/NuSansText-Regular.otf") format("opentype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "NuSansText";
	src: url("../fonts/nubank/NuSansText-Medium.otf") format("opentype");
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: "NuSansText";
	src: url("../fonts/nubank/NuSansText-Semibold.otf") format("opentype");
	font-style: normal;
	font-weight: 600;
	font-display: swap;
}

@font-face {
	font-family: "NuSansText";
	src: url("../fonts/nubank/NuSansText-Bold.otf") format("opentype");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: "NuSansText";
	src: url("../fonts/nubank/NuSansText-Italic.otf") format("opentype");
	font-style: italic;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "NuSansText";
	src: url("../fonts/nubank/NuSansText-BoldItalic.otf") format("opentype");
	font-style: italic;
	font-weight: 700;
	font-display: swap;
}

body.category-nubank {
	font-family: "NuSansText", Arial, sans-serif;
}

body.category-nubank button,
body.category-nubank input,
body.category-nubank select,
body.category-nubank textarea {
	font-family: inherit;
}

.nubank-category-page {
	--nubank-core-purple: #820ad1;
	--nubank-ultraviolet: #1f002f;
	--nubank-sand: #f4f1eb;
	--nubank-white: #ffffff;
	--nubank-black: #111111;
	--nubank-muted: #605b63;
	--nubank-border: rgba(31, 0, 47, 0.16);
	--nubank-focus: #6f00b5;
	--nubank-shell: 1200px;
	background: var(--nubank-white);
	color: var(--nubank-black);
	font-family: "NuSansText", Arial, sans-serif;
	overflow: clip;
}

.nubank-category-page *,
.nubank-category-page *::before,
.nubank-category-page *::after {
	box-sizing: border-box;
}

.nubank-category-page .nubank-shell {
	width: min(var(--nubank-shell), calc(100% - 80px));
	margin-inline: auto;
}

.nubank-category-page .nubank-editorial-section,
.nubank-category-page .nubank-video-section,
.nubank-category-page .nubank-category-faqs {
	padding-block: 76px;
}

.nubank-category-page .nubank-editorial-section--latest,
.nubank-category-page .nubank-editorial-section--transformation,
.nubank-category-page .nubank-category-faqs {
	background: var(--nubank-white);
}

.nubank-category-page .nubank-editorial-section--changes,
.nubank-category-page .nubank-video-section {
	background: var(--nubank-sand);
}

.nubank-category-page .nubank-section-heading {
	margin: 0 0 40px;
}

.nubank-category-page .nubank-section-heading h2 {
	max-width: 900px;
	margin: 0;
	color: var(--nubank-core-purple);
	font-size: clamp(2.25rem, 4vw, 3.5rem);
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1.02;
}

.nubank-category-page .nubank-section-heading p {
	max-width: 720px;
	margin: 18px 0 0;
	color: var(--nubank-muted);
	font-size: 1.125rem;
	line-height: 1.55;
}

.nubank-category-page .nubank-editorial-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px 28px;
}

.nubank-category-page .nubank-editorial-grid--latest {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.nubank-category-page .nubank-editorial-card {
	display: flex;
	min-height: 100%;
	min-width: 0;
	flex-direction: column;
	background: transparent;
}

.nubank-category-page .nubank-editorial-card--lead {
	grid-row: 1 / span 2;
}

.nubank-category-page .nubank-editorial-card__media-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.nubank-category-page .nubank-editorial-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #e8e2ea;
	border-radius: 16px;
	overflow: hidden;
}

.nubank-category-page .nubank-editorial-card__image,
.nubank-category-page .nubank-editorial-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.nubank-category-page .nubank-editorial-card__image {
	object-fit: cover;
	transition: transform 220ms ease;
}

.nubank-category-page .nubank-editorial-card__placeholder {
	background: var(--nubank-sand);
}

.nubank-category-page .nubank-editorial-card__media-link:hover .nubank-editorial-card__image {
	transform: scale(1.015);
}

.nubank-category-page .nubank-editorial-card__body {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	margin: -48px 24px 0;
	padding: 1.5rem 1rem;
	background: var(--nubank-white);
	border-radius: 16px;
}

.nubank-category-page .nubank-editorial-card__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	font-size: 0.875rem;
	line-height: 1.4;
}

.nubank-category-page .nubank-editorial-card__category {
	color: var(--nubank-core-purple);
	font-weight: 500;
	text-decoration: none;
}

.nubank-category-page .nubank-editorial-card__category:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nubank-category-page .nubank-editorial-card__meta time {
	color: var(--nubank-muted);
	white-space: nowrap;
}

.nubank-category-page .nubank-editorial-card__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 2.25rem;
}

.nubank-category-page .nubank-editorial-card__title a {
	color: var(--nubank-black);
	text-decoration: none;
}

.nubank-category-page .nubank-editorial-card__title a:hover {
	color: var(--nubank-core-purple);
}

.nubank-category-page .nubank-editorial-card__excerpt {
	display: -webkit-box;
	margin: 12px 0 0;
	color: var(--nubank-muted);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) {
	display: grid;
	grid-template-columns: minmax(210px, 0.95fr) minmax(0, 1.25fr);
	gap: 0;
	align-items: stretch;
}

.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) .nubank-editorial-card__media,
.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) .nubank-editorial-card__media-link {
	height: 100%;
}

.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) .nubank-editorial-card__media {
	min-height: 235px;
	aspect-ratio: auto;
}

.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) .nubank-editorial-card__body {
	margin: 18px 0 18px -36px;
	padding: 1.5rem 1rem;
	border-radius: 16px;
}

.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) .nubank-editorial-card__title {
	font-size: 1.5rem;
}

.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) .nubank-editorial-card__excerpt {
	-webkit-line-clamp: 2;
}

.nubank-category-page .nubank-video-carousel__viewport {
	overflow: hidden;
}

.nubank-category-page .nubank-video-carousel__track {
	display: flex;
	gap: 28px;
	transition: transform 360ms ease;
	will-change: transform;
}

.nubank-category-page .nubank-video-carousel__item {
	flex: 0 0 calc((100% - 56px) / 3);
	min-width: 0;
}

.nubank-category-page .nubank-video-carousel__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--nubank-ultraviolet);
	border-radius: 16px;
	overflow: hidden;
}

.nubank-category-page .nubank-video-carousel__media iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.nubank-category-page .nubank-video-carousel__play {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.nubank-category-page .nubank-video-carousel__poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease, opacity 220ms ease;
}

.nubank-category-page .nubank-video-carousel__play:hover .nubank-video-carousel__poster {
	transform: scale(1.015);
	opacity: 0.88;
}

.nubank-category-page .nubank-video-carousel__play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	color: var(--nubank-white);
	background: var(--nubank-core-purple);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.nubank-category-page .nubank-video-carousel__play-icon svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.nubank-category-page .nubank-video-carousel__content {
	padding-top: 18px;
}

.nubank-category-page .nubank-video-carousel__content h3 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.nubank-category-page .nubank-video-carousel__content p {
	margin: 10px 0 0;
	color: var(--nubank-muted);
	line-height: 1.5;
}

.nubank-category-page .nubank-video-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 34px;
}

.nubank-category-page .nubank-video-carousel__arrow {
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	color: var(--nubank-core-purple);
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 50%;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.nubank-category-page .nubank-video-carousel__arrow:hover:not(:disabled) {
	color: var(--nubank-white);
	background: var(--nubank-core-purple);
}

.nubank-category-page .nubank-video-carousel__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.nubank-category-page .nubank-video-carousel__arrow svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
}

.nubank-category-page .nubank-video-carousel__dots {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nubank-category-page .nubank-video-carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	background: rgba(31, 0, 47, 0.28);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: width 160ms ease, background-color 160ms ease;
}

.nubank-category-page .nubank-video-carousel__dot.is-active {
	width: 24px;
	background: var(--nubank-core-purple);
	border-radius: 999px;
}

.nubank-category-page .nubank-faqs {
	border-top: 1px solid var(--nubank-border);
}

.nubank-category-page .nubank-faqs__item {
	border-bottom: 1px solid var(--nubank-border);
}

.nubank-category-page .nubank-faqs__question {
	display: flex;
	min-height: 82px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 0;
	color: var(--nubank-black);
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}

.nubank-category-page .nubank-faqs__question::-webkit-details-marker {
	display: none;
}

.nubank-category-page .nubank-faqs__question:hover {
	color: var(--nubank-core-purple);
}

.nubank-category-page .nubank-faqs__icon {
	display: grid;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	place-items: center;
	color: var(--nubank-core-purple);
	border: 1px solid currentColor;
	border-radius: 50%;
	transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nubank-category-page .nubank-faqs__icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.nubank-category-page .nubank-faqs__item[open] .nubank-faqs__icon {
	color: var(--nubank-white);
	background: var(--nubank-core-purple);
	transform: rotate(90deg);
}

.nubank-category-page .nubank-faqs__answer-inner {
	max-width: 880px;
	padding: 0 0 28px;
	color: var(--nubank-muted);
	font-size: 1.05rem;
	line-height: 1.65;
}

.nubank-category-page .nubank-faqs__answer-inner > :first-child {
	margin-top: 0;
}

.nubank-category-page .nubank-faqs__answer-inner > :last-child {
	margin-bottom: 0;
}

.nubank-category-page a:focus-visible,
.nubank-category-page button:focus-visible,
.nubank-category-page summary:focus-visible,
.nubank-category-page [tabindex]:focus-visible {
	outline: 3px solid var(--nubank-focus);
	outline-offset: 4px;
}

.nubank-category-page .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1100px) {
	.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) {
		grid-template-columns: minmax(170px, 0.85fr) minmax(0, 1.15fr);
	}

	.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) .nubank-editorial-card__body {
		margin: 14px 0 14px -28px;
		padding: 24px 22px 22px;
	}

	.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) .nubank-editorial-card__meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}
}

@media (max-width: 991px) {
	.nubank-category-page .nubank-shell {
		width: min(var(--nubank-shell), calc(100% - 48px));
	}

	.nubank-category-page .nubank-editorial-section,
	.nubank-category-page .nubank-video-section,
	.nubank-category-page .nubank-category-faqs {
		padding-block: 64px;
	}

	.nubank-category-page .nubank-editorial-grid,
	.nubank-category-page .nubank-editorial-grid--latest {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto;
	}

	.nubank-category-page .nubank-editorial-card--lead {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) {
		display: flex;
		flex-direction: column;
	}

	.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) .nubank-editorial-card__media-link {
		height: auto;
	}

	.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) .nubank-editorial-card__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) .nubank-editorial-card__body {
		margin: -42px 20px 0;
		padding: 1.5rem 1rem;
		border-radius: 16px;
	}

	.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) .nubank-editorial-card__meta {
		align-items: baseline;
		flex-direction: row;
		gap: 12px;
	}

	.nubank-category-page .nubank-video-carousel__item {
		flex-basis: calc((100% - 28px) / 2);
	}
}

@media (max-width: 767px) {
	.nubank-category-page .nubank-shell {
		width: min(var(--nubank-shell), calc(100% - 40px));
	}

	.nubank-category-page .nubank-editorial-section,
	.nubank-category-page .nubank-video-section,
	.nubank-category-page .nubank-category-faqs {
		padding-block: 48px;
	}

	.nubank-category-page .nubank-section-heading {
		margin-bottom: 30px;
	}

	.nubank-category-page .nubank-section-heading h2 {
		font-size: clamp(2rem, 10vw, 2.65rem);
	}

	.nubank-category-page .nubank-section-heading p {
		margin-top: 14px;
		font-size: 1rem;
	}

	.nubank-category-page .nubank-editorial-grid,
	.nubank-category-page .nubank-editorial-grid--latest {
		grid-template-columns: 1fr;
		gap: 38px;
	}

	.nubank-category-page .nubank-editorial-card--lead {
		grid-column: auto;
	}

	.nubank-category-page .nubank-editorial-card__meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.nubank-category-page .nubank-editorial-card__body,
	.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) .nubank-editorial-card__body {
		margin: -36px 14px 0;
		padding: 1.5rem 1rem;
		border-radius: 16px;
	}

	.nubank-category-page .nubank-editorial-grid--latest .nubank-editorial-card:not(.nubank-editorial-card--lead) .nubank-editorial-card__meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.nubank-category-page .nubank-video-carousel__item {
		flex-basis: 100%;
	}

	.nubank-category-page .nubank-video-carousel__controls {
		margin-top: 28px;
	}

	.nubank-category-page .nubank-faqs__question {
		min-height: 72px;
		gap: 16px;
		font-size: 1.075rem;
	}

	.nubank-category-page .nubank-faqs__icon {
		width: 36px;
		height: 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nubank-category-page *,
	.nubank-category-page *::before,
	.nubank-category-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}


body.category-nubank .nubank-category-heading {
	padding-block: 24px 23px;
	margin-bottom: 30px;
}

body.category-nubank .nubank-category-heading__title {
	margin: 0;
	color: var(--nubank-core-purple, #820ad1);
	font-family: "NuSansText", Arial, sans-serif;
	font-size: clamp(2.5rem, 4.7vw, 4rem);
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.15;
  	text-align: center;
}

@media (max-width: 767px) {
	body.category-nubank .nubank-category-heading {
		padding-block: 18px;
		margin-bottom: 42px;
	}

	body.category-nubank .nubank-category-heading__title {
		font-size: clamp(2.25rem, 10vw, 3rem);
	}
}

/* Corrige el desbordamiento horizontal de “Sigue aprendiendo” */
body.category-nubank .category-hub-related-card {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

body.category-nubank .category-hub-related-card span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Encabezado del histórico de artículos */
body.category-nubank .nubank-history-heading {
    box-sizing: border-box;
    width: min(1200px, calc(100% - 80px));
    max-width: 1200px;
    margin-inline: auto;
    padding: 0;
}

body.category-nubank .nubank-history-heading__title {
    max-width: 900px;
    margin: 0px;
    color: var(--nubank-core-purple, #820ad1);
    font-family: NuSansText, Arial, sans-serif;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

@media (max-width: 991px) {
    body.category-nubank .nubank-history-heading {
        width: min(1200px, calc(100% - 48px));
    }
}

@media (max-width: 767px) {
    body.category-nubank .nubank-history-heading {
        width: min(1200px, calc(100% - 40px));
    }

    body.category-nubank .nubank-history-heading__title {
        margin-bottom: 30px;
        font-size: clamp(2rem, 10vw, 2.65rem);
    }
}