/* ==========================================================================
   SORIA CASAS BLOG — Archive Styles
   ========================================================================== */

/* ── Container ─────────────────────────────────────────────────────────── */
.scb-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Reveal animation ──────────────────────────────────────────────────── */
.scb-rv {
	opacity: 0;
	transform: translateY(35px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.scb-rv.vis {
	opacity: 1;
	transform: translateY(0);
}

/* ── Label ─────────────────────────────────────────────────────────────── */
.scb-label {
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--azul, #4a8fcc);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.scb-label::before {
	content: '';
	width: 28px;
	height: 2px;
	background: var(--azul, #4a8fcc);
	flex-shrink: 0;
}

/* ── Divider ───────────────────────────────────────────────────────────── */
.scb-divider {
	width: 60px;
	height: 3px;
	background: var(--azul, #4a8fcc);
	border-radius: 2px;
	margin-top: 20px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.scb-archive__hero {
	padding: 64px 0 32px;
	background: var(--blanco, #fff);
}

.scb-archive__hero h1 {
	font-family: 'Cormorant Garamond', serif;
	font-size: 46px;
	font-weight: 500;
	color: var(--negro, #333);
	line-height: 1.15;
	margin: 0;
}

.scb-archive__subtitle {
	font-family: 'DM Sans', sans-serif;
	font-size: 17px;
	color: var(--gris-texto, #54585e);
	line-height: 1.6;
	margin-top: 16px;
	max-width: 600px;
}

/* ==========================================================================
   CATEGORY FILTER
   ========================================================================== */
.scb-archive__filters {
	padding: 0 0 24px;
	background: var(--blanco, #fff);
}

.scb-archive__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.scb-archive__cat {
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: var(--gris-texto, #54585e);
	text-decoration: none;
	padding: 8px 18px;
	border-radius: 50px;
	border: 1px solid var(--borde, #e5e5e5);
	transition: all 0.25s ease;
	white-space: nowrap;
}

.scb-archive__cat:hover {
	color: var(--azul, #4a8fcc);
	border-color: var(--azul, #4a8fcc);
}

.scb-archive__cat.active {
	color: #fff;
	background: var(--azul, #4a8fcc);
	border-color: var(--azul, #4a8fcc);
}

/* ==========================================================================
   POST GRID
   ========================================================================== */
.scb-archive__grid-section {
	padding: 24px 0 64px;
	background: var(--blanco, #fff);
}

.scb-archive__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}

/* ── Card ──────────────────────────────────────────────────────────────── */
.scb-card {
	background: #fff;
	border-radius: var(--radio, 12px);
	overflow: hidden;
	border: 1px solid var(--borde, #e5e5e5);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scb-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.scb-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* Card image */
.scb-card__img {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.scb-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.scb-card:hover .scb-card__img img {
	transform: scale(1.04);
}

/* Date badge */
.scb-card__date {
	position: absolute;
	top: 0;
	left: 0;
	background: var(--azul, #4a8fcc);
	color: #fff;
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 0 0 8px 0;
	z-index: 1;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* Card body */
.scb-card__body {
	padding: 22px 24px 26px;
}

.scb-card__cats {
	font-family: 'DM Sans', sans-serif;
	font-size: 11px;
	font-weight: 600;
	color: var(--azul, #4a8fcc);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 8px;
}

.scb-card__cats a {
	color: inherit;
	text-decoration: none;
}
.scb-card__cats a:hover {
	text-decoration: underline;
}

.scb-card__title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 22px;
	font-weight: 500;
	color: var(--negro, #333);
	line-height: 1.3;
	margin: 0 0 10px;
}

.scb-card__excerpt {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	color: var(--gris-texto, #54585e);
	line-height: 1.7;
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.scb-card__more {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: var(--azul, #4a8fcc);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.scb-card__more svg {
	transition: transform 0.25s ease;
}

.scb-card:hover .scb-card__more svg {
	transform: translateX(4px);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.scb-archive__pagination {
	margin-top: 48px;
	text-align: center;
}

.scb-archive__pagination .page-numbers {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: var(--gris-texto, #54585e);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	text-decoration: none;
	transition: all 0.25s ease;
	margin: 0 2px;
}

.scb-archive__pagination .page-numbers:hover {
	color: var(--azul, #4a8fcc);
	background: rgba(74, 143, 204, 0.08);
}

.scb-archive__pagination .page-numbers.current {
	color: #fff;
	background: var(--azul, #4a8fcc);
}

.scb-archive__pagination .page-numbers.prev,
.scb-archive__pagination .page-numbers.next {
	width: auto;
	padding: 0 12px;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.scb-archive__empty {
	text-align: center;
	padding: 64px 0;
}

.scb-archive__empty p {
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	color: var(--gris-texto, #54585e);
}

/* ==========================================================================
   SEO SECTION
   ========================================================================== */
.scb-archive__seo {
	padding: 64px 0 80px;
	background: var(--beige, #fbf5e9);
}

.scb-archive__seo-inner {
	max-width: 700px;
}

.scb-archive__seo h2 {
	font-family: 'Cormorant Garamond', serif;
	font-size: 30px;
	font-weight: 500;
	color: var(--negro, #333);
	line-height: 1.2;
	margin: 0 0 4px;
}

.scb-archive__seo p {
	font-family: 'DM Sans', sans-serif;
	font-size: 15px;
	color: var(--gris-texto, #54585e);
	line-height: 1.8;
	margin-top: 20px;
}

.scb-archive__seo a {
	color: var(--azul, #4a8fcc);
	text-decoration: none;
	font-weight: 500;
}
.scb-archive__seo a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 900px) {
	.scb-archive__hero h1 {
		font-size: 36px;
	}

	.scb-archive__grid {
		gap: 24px;
	}

	.scb-card__title {
		font-size: 20px;
	}
}

/* Mobile */
@media (max-width: 600px) {
	.scb-archive__hero {
		padding: 48px 0 24px;
	}

	.scb-archive__hero h1 {
		font-size: 30px;
	}

	.scb-archive__subtitle {
		font-size: 15px;
	}

	.scb-archive__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.scb-archive__cats {
		gap: 6px;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 8px;
		-webkit-overflow-scrolling: touch;
	}

	.scb-card__body {
		padding: 16px 18px 20px;
	}

	.scb-card__title {
		font-size: 18px;
	}

	.scb-card__excerpt {
		font-size: 13px;
	}

	.scb-archive__seo {
		padding: 48px 0 56px;
	}

	.scb-archive__seo h2 {
		font-size: 24px;
	}
}
