/* =============================================
   PAGE: SERVICIOS EVOLUTIVOS SALESFORCE
   ============================================= */

/* ── Hero ─────────────────────────────────────── */
.sf-hero {
	background: linear-gradient(130deg, rgba(10,35,66,0.88) 0%, rgba(10,35,66,0.65) 55%, rgba(31,119,180,0.28) 100%), var(--sf-hero-bg, linear-gradient(130deg, #0A2342 0%, #1a4a7a 60%, #1F77B4 100%)) center / cover no-repeat;
	padding: 4.5rem 0;
	position: relative;
	overflow: hidden;
}

.sf-hero::before {
	content: '';
	position: absolute;
	width: 480px;
	height: 480px;
	border-radius: 50%;
	background: rgba(255, 191, 0, 0.05);
	top: -180px;
	right: -80px;
	pointer-events: none;
}

.sf-hero__inner { position: relative; }

.sf-hero__label {
	display: inline-block;
	padding: 0.375rem 1rem;
	background: rgba(255, 191, 0, 0.12);
	border: 1px solid rgba(255, 191, 0, 0.35);
	border-radius: 100px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #FFBF00;
	margin-bottom: 1.25rem;
}

.sf-hero__title {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.1;
	margin: 0 0 1.25rem;
	max-width: 680px;
}

.sf-hero__sub {
	font-size: 1.0625rem;
	color: rgba(255, 255, 255, 0.82);
	max-width: 580px;
	line-height: 1.75;
	margin: 0 0 2rem;
}

.sf-hero__actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.sf-hero__btn--primary {
	display: inline-block;
	padding: 0.9rem 2.25rem;
	background: #FFBF00;
	color: #0A2342;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 0.9375rem;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}
.sf-hero__btn--primary:hover {
	background: #e6ac00;
	transform: translateY(-2px);
}

.sf-hero__btn--ghost {
	display: inline-block;
	padding: 0.9rem 2.25rem;
	background: transparent;
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.9375rem;
	border-radius: 8px;
	border: 1.5px solid rgba(255, 255, 255, 0.45);
	text-decoration: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.sf-hero__btn--ghost:hover {
	border-color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.08);
}

/* ── Intro ────────────────────────────────────── */
.sf-intro {
	padding: 5rem 0 4rem;
	text-align: center;
}

.sf-intro__text {
	max-width: 740px;
	margin: 0 auto;
	font-size: 1.0625rem;
	color: #4B5563;
	line-height: 1.8;
}
.sf-intro__text + .sf-intro__text { margin-top: 1.25rem; }

/* ── Products Grid ────────────────────────────── */
.sf-products {
	background: #F4F6F9;
	padding: 4rem 0 5.5rem;
}

.sf-products__title {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: #0A2342;
	text-align: center;
	margin: 0 0 1rem;
}

.sf-products__intro {
	max-width: 680px;
	margin: 0 auto 3rem;
	text-align: center;
	font-size: 1rem;
	color: #4B5563;
	line-height: 1.75;
}

.sf-products__close {
	max-width: 680px;
	margin: 3rem auto 0;
	text-align: center;
	font-size: 1rem;
	color: #4B5563;
	line-height: 1.75;
}

.sf-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	align-items: stretch;
}

/* ── Service Card (homepage style) ───────────── */
.sf-svc-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	padding-top: 52px;
	height: 100%;
	cursor: pointer;
	background: none;
	border: none;
	text-align: left;
	transition: transform 0.25s ease;
}

.sf-svc-card:hover {
	transform: translateY(-6px);
}

.sf-svc-card:hover .sf-svc-card__box {
	box-shadow: 0 12px 36px rgba(10, 35, 66, 0.16);
}

/* Icon ring */
.sf-svc-card__icon-ring {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 96px;
	height: 96px;
	border-radius: 50%;
	border: 3.5px solid var(--sf-color, #1F77B4);
	background-color: #fff;
	box-shadow: 0 4px 16px rgba(10, 35, 66, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: box-shadow 0.2s ease;
}

.sf-svc-card:hover .sf-svc-card__icon-ring {
	box-shadow: 0 6px 20px rgba(10, 35, 66, 0.18);
}

.sf-svc-card__icon-ring svg {
	width: 40px;
	height: 40px;
	color: var(--sf-color, #1F77B4);
}

/* White card box */
.sf-svc-card__box {
	width: 100%;
	flex: 1;
	background-color: #fff;
	border-radius: 18px;
	box-shadow: 0 4px 20px rgba(10, 35, 66, 0.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.25s ease;
	border: 1px solid rgba(10, 35, 66, 0.06);
}

.sf-svc-card__cat {
	display: block;
	padding: 3.5rem 1.25rem 0;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--sf-color, #1F77B4);
}

.sf-svc-card__desc {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	color: #4B5563;
	line-height: 1.65;
	padding: 0.5rem 1.25rem 1.25rem;
	margin: 0;
	flex: 1;
}

/* Wave footer */
.sf-svc-card__wave {
	line-height: 0;
	margin-top: auto;
}

.sf-svc-card__wave svg {
	width: 100%;
	display: block;
	height: 90px;
}

/* Product name below card */
.sf-svc-card__name {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 1.0625rem;
	font-weight: 700;
	color: #0A2342;
	text-align: center;
	margin: 1rem 0 0;
	line-height: 1.3;
	padding: 0 0.5rem;
	flex-shrink: 0;
}

/* ── Credentials ──────────────────────────────── */
.sf-credentials {
	background: #fff;
	padding: 5rem 0;
}

.sf-credentials__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.sf-credentials__title {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: #0A2342;
	margin: 0 0 1.25rem;
}

.sf-credentials__text {
	font-size: 1rem;
	color: #4B5563;
	line-height: 1.8;
	margin: 0 0 0.875rem;
}

.sf-credentials__list {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.sf-credentials__list li {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-size: 0.9375rem;
	color: #4B5563;
}

.sf-credentials__list li::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #FFBF00;
	flex-shrink: 0;
}

.sf-credentials__img-wrap {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(10, 35, 66, 0.12);
}

.sf-credentials__img {
	width: 100%;
	height: auto;
	display: block;
}

/* ── Final CTA ────────────────────────────────── */
.sf-cta {
	background: #0A2342;
	padding: 5rem 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.sf-cta::before {
	content: '';
	position: absolute;
	width: 500px;
	height: 500px;
	border-radius: 50%;
	background: rgba(255, 191, 0, 0.05);
	top: -220px;
	right: -100px;
	pointer-events: none;
}

.sf-cta__title {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 700;
	color: #fff;
	margin: 0 0 1rem;
	position: relative;
}

.sf-cta__body {
	max-width: 540px;
	margin: 0 auto 2.5rem;
	color: rgba(203, 213, 225, 0.85);
	font-size: 1.0625rem;
	line-height: 1.75;
	position: relative;
}

.sf-cta__btn {
	display: inline-block;
	padding: 0.9rem 2.25rem;
	background: #FFBF00;
	color: #0A2342;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 0.9375rem;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
	position: relative;
}
.sf-cta__btn:hover {
	background: #e6ac00;
	transform: translateY(-2px);
}

/* ── Modal Overlay ────────────────────────────── */
.sf-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 35, 66, 0.72);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9000;
	padding: 1.5rem;
}

.sf-overlay[hidden] { display: none; }

body.sf-no-scroll { overflow: hidden; }

.sf-modal-wrap {
	position: relative;
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 620px;
	max-height: 88vh;
	overflow-y: auto;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.sf-modal-close {
	position: sticky;
	top: 0;
	float: right;
	margin: 1rem 1rem -2rem 0;
	z-index: 1;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: #F4F6F9;
	color: #4B5563;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	flex-shrink: 0;
}
.sf-modal-close:hover { background: #E5E7EB; color: #0A2342; }

.sf-modal-content { display: none; padding: 2rem 2rem 2.5rem; }
.sf-modal-content.is-active { display: block; }

.sf-modal__header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.5rem;
	padding-top: 0.5rem;
}

.sf-modal__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--sf-color, #1F77B4);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
}

.sf-modal__name {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: #0A2342;
	margin: 0 0 0.2rem;
}

.sf-modal__subtitle {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sf-color, #1F77B4);
	margin: 0;
}

.sf-modal__tagline {
	font-size: 0.9375rem;
	color: #4B5563;
	font-style: italic;
	margin: 0 0 1.75rem;
	padding-left: 0;
}

.sf-modal__divider {
	border: none;
	border-top: 1px solid #E5E7EB;
	margin: 0 0 1.5rem;
}

.sf-modal__section-title {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0A2342;
	margin: 0 0 0.625rem;
}

.sf-modal__what {
	font-size: 0.9375rem;
	color: #4B5563;
	line-height: 1.75;
	margin: 0 0 1.75rem;
}

.sf-modal__list {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.sf-modal__list li {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	font-size: 0.9375rem;
	color: #4B5563;
	line-height: 1.6;
}

.sf-modal__list--benefits li::before {
	content: '✓';
	color: var(--sf-color, #1F77B4);
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 1px;
}

.sf-modal__list--why li::before {
	content: '→';
	color: #9CA3AF;
	flex-shrink: 0;
	margin-top: 1px;
}

.sf-modal__cta {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #E5E7EB;
	text-align: center;
}

.sf-modal__cta-btn {
	display: inline-block;
	padding: 0.875rem 2rem;
	background: #FFBF00;
	color: #0A2342;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 0.9375rem;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}
.sf-modal__cta-btn:hover {
	background: #e6ac00;
	transform: translateY(-2px);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1200px) {
	.sf-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
	.sf-credentials__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.sf-credentials__img-wrap { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
	.sf-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
	.sf-hero__actions { flex-direction: column; align-items: flex-start; }
	.sf-modal-wrap { max-height: 92vh; }
	.sf-modal-content { padding: 1.5rem 1.5rem 2rem; }
}

@media (max-width: 480px) {
	.sf-grid { grid-template-columns: 1fr; }
	.sf-overlay { padding: 0.75rem; align-items: flex-end; }
	.sf-modal-wrap { border-radius: 16px 16px 0 0; max-height: 92vh; }
}
