/* Webtips Propiedades — sitio comercial */

:root {
	--color-bg: #f8f7f4;
	--color-surface: #ffffff;
	--color-text: #1c2229;
	--color-muted: #5a6470;
	--color-border: #dde2e8;
	--color-accent: #1e3a5f;
	--color-accent-hover: #152a45;
	--color-accent-soft: #e8eef4;
	--font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Source Serif 4", "Georgia", "Times New Roman", serif;
	--max-width: 68rem;
	--header-height: 4.25rem;
	--space-section: clamp(3.5rem, 8vw, 6rem);
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--color-text);
	background: var(--color-bg);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--color-accent-hover);
}

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--color-accent);
	color: #fff;
	text-decoration: none;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(248, 247, 244, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 1.25rem;
	height: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-logo {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--color-text);
	text-decoration: none;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.site-logo span {
	display: block;
	font-family: var(--font-body);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-muted);
	margin-top: 0.15rem;
}

.site-nav-toggle {
	display: none;
}

.site-nav-toggle-label {
	display: none;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.5rem;
}

.site-nav a {
	color: var(--color-text);
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 450;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: var(--color-accent);
}

.site-nav .nav-cta a {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: var(--color-accent);
	color: #fff !important;
	border-radius: 2px;
	font-weight: 500;
}

.site-nav .nav-cta a:hover {
	background: var(--color-accent-hover);
}

@media (max-width: 52rem) {
	.site-nav-toggle-label {
		display: block;
		cursor: pointer;
		font-size: 0.875rem;
		font-weight: 500;
		padding: 0.5rem 0.75rem;
		border: 1px solid var(--color-border);
		background: var(--color-surface);
		border-radius: 2px;
	}

	.site-nav {
		position: absolute;
		top: var(--header-height);
		left: 0;
		right: 0;
		background: var(--color-surface);
		border-bottom: 1px solid var(--color-border);
		padding: 1rem 1.25rem 1.25rem;
		display: none;
	}

	.site-nav-toggle:checked ~ .site-nav {
		display: block;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.site-nav .nav-cta {
		margin-top: 0.5rem;
		width: 100%;
	}

	.site-nav .nav-cta a {
		display: block;
		text-align: center;
		width: 100%;
	}
}

/* Layout */

main {
	display: block;
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.section {
	padding: var(--space-section) 0;
}

.section--tight {
	padding: clamp(2rem, 5vw, 3rem) 0;
}

.section--surface {
	background: var(--color-surface);
	border-block: 1px solid var(--color-border);
}

.section-label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-muted);
	margin-bottom: 0.75rem;
}

/* Hero */

.hero {
	padding: clamp(3rem, 10vw, 5.5rem) 0 clamp(3rem, 8vw, 4.5rem);
	border-bottom: 1px solid var(--color-border);
}

.hero__grid {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 48rem) {
	.hero__grid {
		grid-template-columns: 1.15fr 0.85fr;
		align-items: end;
	}
}

.hero h1 {
	font-family: var(--font-display);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 1.25rem;
	max-width: 18ch;
}

.hero__lead {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--color-muted);
	margin: 0 0 2rem;
	max-width: 38rem;
}

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

.hero__aside {
	padding: 1.75rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
}

.hero__aside p {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	color: var(--color-muted);
}

.hero__aside p:last-child {
	margin-bottom: 0;
}

.hero__aside strong {
	color: var(--color-text);
	font-weight: 600;
}

/* Typography */

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

h2 {
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	margin: 0 0 1rem;
}

h3 {
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
}

.page-header {
	padding: clamp(2.5rem, 6vw, 3.5rem) 0;
	border-bottom: 1px solid var(--color-border);
	background: var(--color-surface);
}

.page-header h1 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin: 0 0 0.75rem;
	max-width: 22ch;
}

.page-header p {
	margin: 0;
	font-size: 1.125rem;
	color: var(--color-muted);
	max-width: 42rem;
}

.prose {
	max-width: 42rem;
}

.prose p {
	margin: 0 0 1.25rem;
}

.prose ul,
.prose ol {
	margin: 0 0 1.25rem;
	padding-left: 1.25rem;
}

.prose li + li {
	margin-top: 0.35rem;
}

/* Buttons */

.btn {
	display: inline-block;
	padding: 0.75rem 1.35rem;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 2px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
	background: var(--color-accent);
	color: #fff;
}

.btn--primary:hover {
	background: var(--color-accent-hover);
	color: #fff;
}

.btn--secondary {
	background: transparent;
	color: var(--color-accent);
	border-color: var(--color-border);
}

.btn--secondary:hover {
	border-color: var(--color-accent);
	background: var(--color-accent-soft);
}

.btn--ghost {
	background: transparent;
	color: var(--color-text);
	border-color: var(--color-border);
}

.btn--ghost:hover {
	border-color: var(--color-text);
}

/* Cards & grids */

.grid-2 {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 40rem) {
	.grid-2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

.grid-3 {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 48rem) {
	.grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.card {
	padding: 1.75rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	height: 100%;
}

.card__num {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--color-accent);
	margin-bottom: 0.75rem;
}

.card p {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.9375rem;
}

.card h3 + p {
	margin-top: 0.5rem;
}

/* Pillars */

.pillar-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
	border: 1px solid var(--color-border);
	background: var(--color-surface);
}

@media (min-width: 48rem) {
	.pillar-list {
		grid-template-columns: repeat(3, 1fr);
	}
}

.pillar-list li {
	padding: 1.75rem;
	border-bottom: 1px solid var(--color-border);
}

@media (min-width: 48rem) {
	.pillar-list li {
		border-bottom: none;
		border-right: 1px solid var(--color-border);
	}

	.pillar-list li:last-child {
		border-right: none;
	}
}

.pillar-list li:last-child {
	border-bottom: none;
}

.pillar-list h3 {
	font-size: 1.125rem;
}

.pillar-list p {
	margin: 0.5rem 0 0;
	font-size: 0.9375rem;
	color: var(--color-muted);
}

/* Portals */

.portal-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.portal-list a {
	font-weight: 500;
	text-decoration: none;
}

.portal-list a:hover {
	text-decoration: underline;
}

/* Steps */

.steps {
	counter-reset: step;
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
}

.steps li {
	counter-increment: step;
	position: relative;
	padding: 0 0 2rem 3rem;
	border-left: 1px solid var(--color-border);
	margin-left: 0.75rem;
}

.steps li:last-child {
	padding-bottom: 0;
}

.steps li::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	left: -0.75rem;
	top: 0;
	width: 1.5rem;
	height: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.6875rem;
	font-weight: 600;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	color: var(--color-accent);
}

.steps h3 {
	font-size: 1.0625rem;
}

.steps p {
	margin: 0.35rem 0 0;
	font-size: 0.9375rem;
	color: var(--color-muted);
}

/* Feature table */

.feature-grid {
	display: grid;
	gap: 0;
	border: 1px solid var(--color-border);
	background: var(--color-surface);
}

@media (min-width: 48rem) {
	.feature-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.feature-grid dt {
	padding: 1.25rem 1.5rem 0.25rem;
	font-weight: 600;
	font-size: 1rem;
}

.feature-grid dd {
	margin: 0;
	padding: 0 1.5rem 1.25rem;
	font-size: 0.9375rem;
	color: var(--color-muted);
	border-bottom: 1px solid var(--color-border);
}

@media (min-width: 48rem) {
	.feature-grid dt:nth-last-child(-n+2),
	.feature-grid dd:nth-last-child(-n+2) {
		border-bottom: none;
	}
}

/* CTA band */

.cta-band {
	padding: clamp(2.5rem, 6vw, 3.5rem);
	background: var(--color-accent);
	color: #fff;
	text-align: center;
}

.cta-band h2 {
	color: #fff;
	margin-bottom: 0.75rem;
}

.cta-band p {
	margin: 0 auto 1.5rem;
	max-width: 36rem;
	opacity: 0.92;
}

.cta-band .btn--primary {
	background: #fff;
	color: var(--color-accent);
}

.cta-band .btn--primary:hover {
	background: var(--color-accent-soft);
}

.cta-band .btn--secondary {
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff;
}

.cta-band .btn--secondary:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
}

/* Contact form */

.form-grid {
	display: grid;
	gap: 1.25rem;
	max-width: 36rem;
}

.form-group label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	font: inherit;
	border: 1px solid var(--color-border);
	border-radius: 2px;
	background: var(--color-surface);
}

.form-group textarea {
	min-height: 8rem;
	resize: vertical;
}

.form-note {
	font-size: 0.875rem;
	color: var(--color-muted);
	margin-top: 1rem;
}

.contact-aside {
	padding: 1.75rem;
	background: var(--color-accent-soft);
	border: 1px solid var(--color-border);
}

.contact-aside h2 {
	font-size: 1.25rem;
}

.contact-aside p {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
}

.contact-aside a {
	font-weight: 500;
}

/* Footer */

.site-footer {
	background: var(--color-text);
	color: #c5cad0;
	padding: 3rem 0 0;
	font-size: 0.9375rem;
}

.site-footer a {
	color: #e8eaed;
}

.site-footer a:hover {
	color: #fff;
}

.site-footer__grid {
	display: grid;
	gap: 2rem;
	margin-bottom: 2.5rem;
}

@media (min-width: 48rem) {
	.site-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
}

.site-footer__brand {
	font-family: var(--font-display);
	font-size: 1.125rem;
	color: #fff;
	margin: 0 0 0.75rem;
}

.site-footer__tagline {
	margin: 0;
	line-height: 1.55;
	max-width: 22rem;
}

.site-footer h2 {
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8b939c;
	margin: 0 0 1rem;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer li + li {
	margin-top: 0.5rem;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 1.25rem 0 1.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
	font-size: 0.8125rem;
}

.eed-dev-credit {
	margin: 0;
}

.eed-dev-credit a + a {
	margin-left: 0.5rem;
}
