/* ==========================================================================
   Fun PROYECTOS — Main Styles
   ========================================================================== */

:root {
	--color-purple: #7b2d8e;
	--color-purple-dark: #5e2270;
	--color-green: #4caf50;
	--color-green-dark: #3d9140;
	--color-blue: #2563eb;
	--color-blue-dark: #1d4ed8;
	--color-text: #1a2b49;
	--color-text-muted: #4a5568;
	--color-border: #e2e8f0;
	--color-bg: #ffffff;
	--font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--container-width: 1140px;
	--header-height: 90px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-main);
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--color-blue);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--color-blue-dark);
}

.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 24px;
}

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

/* Top bar */
.top-bar {
	height: 6px;
	background: var(--color-purple);
}

/* Header */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-height);
	gap: 24px;
}

.site-branding {
	flex-shrink: 0;
}

.logo-link {
	display: inline-block;
}

.logo-img {
	height: 70px;
	width: auto;
}

/* Navigation */
.main-navigation {
	display: flex;
	align-items: center;
}

.nav-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nav-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 4px;
}

.nav-menu li {
	margin: 0;
}

.nav-menu a {
	display: block;
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--color-text);
	text-transform: uppercase;
	position: relative;
}

.nav-menu a::after {
	content: '';
	position: absolute;
	bottom: 4px;
	left: 14px;
	right: 14px;
	height: 3px;
	background: var(--color-blue);
	transform: scaleX(0);
	transition: transform 0.2s ease;
}

.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after,
.nav-menu .is-active > a::after,
.nav-menu a:hover::after {
	transform: scaleX(1);
}

.search-toggle {
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: var(--color-text);
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-toggle:hover {
	color: var(--color-blue);
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	flex-direction: column;
	gap: 5px;
}

.menu-toggle__bar {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-text);
	transition: transform 0.2s ease;
}

.search-panel {
	background: #f8fafc;
	border-bottom: 1px solid var(--color-border);
	padding: 16px 0;
}

.search-panel[hidden] {
	display: none;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-field {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	font-family: inherit;
	font-size: 15px;
}

.search-submit {
	padding: 10px 20px;
	background: var(--color-blue);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* Main content */
.site-main {
	min-height: 60vh;
}

.page-section {
	padding: 48px 0 72px;
}

.page-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
	margin: 0 0 24px;
}

.page-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	color: var(--color-text);
	margin: 0 0 40px;
	line-height: 1.2;
}

.section-heading {
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	font-weight: 700;
	color: var(--color-text);
	margin: 0 0 16px;
	line-height: 1.3;
}

.section-heading--spaced {
	margin-top: 36px;
}

/* Two columns layout */
.two-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.column-content p {
	color: var(--color-text-muted);
	margin: 0 0 16px;
}

.content-image {
	width: 100%;
	border-radius: 4px;
}

.content-image--square {
	aspect-ratio: 1;
	object-fit: cover;
}

/* Hero */
.hero-title {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 800;
	color: var(--color-text);
	margin: 0 0 24px;
	line-height: 1.25;
}

.hero-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 28px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary {
	background: var(--color-blue);
	color: #fff !important;
}

.btn-primary:hover {
	background: var(--color-blue-dark);
	color: #fff !important;
	transform: translateY(-1px);
}

.link-secondary {
	font-weight: 600;
	font-size: 15px;
}

/* Services list */
.services-list {
	margin: 0;
	padding-left: 20px;
	color: var(--color-text-muted);
}

.services-list > li {
	margin-bottom: 14px;
}

.services-list ul {
	margin-top: 8px;
	padding-left: 20px;
}

.services-list ul li {
	margin-bottom: 6px;
}

/* Contact */
.contact-columns {
	align-items: flex-start;
}

.contact-hero-image {
	margin-bottom: 24px;
}

.contact-info-box {
	border: 1px solid var(--color-border);
	border-radius: 4px;
	padding: 24px;
	background: #fff;
}

.contact-info-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 16px;
	color: var(--color-text);
}

.contact-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.contact-info-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
	color: var(--color-text-muted);
}

.contact-info-list a {
	color: var(--color-text);
	font-weight: 500;
}

.contact-icon {
	font-size: 1.1rem;
	line-height: 1.5;
}

/* Contact form */
.contact-form-wrapper {
	max-width: 520px;
}

.contact-form .form-group {
	margin-bottom: 18px;
}

.contact-form label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	color: var(--color-text);
}

.contact-form .required {
	color: #e53935;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	font-family: inherit;
	font-size: 15px;
	color: var(--color-text);
	background: #fff;
	transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--color-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.contact-form textarea {
	resize: vertical;
	min-height: 120px;
}

.contact-notice {
	padding: 14px 18px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
}

.contact-notice--success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.contact-notice--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Documents */
.documents-grid {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	padding: 40px 0;
}

.document-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 320px;
	color: var(--color-text);
	transition: transform 0.2s ease;
}

.document-card:hover {
	transform: translateY(-4px);
	color: var(--color-blue);
}

.document-icon {
	margin-bottom: 12px;
}

.document-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.4;
}

.documents-note {
	text-align: center;
	font-size: 13px;
	color: var(--color-text-muted);
	margin-top: 24px;
}

.documents-note code {
	background: #f1f5f9;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 12px;
}

/* Footer */
.site-footer {
	background: #f8fafc;
	border-top: 1px solid var(--color-border);
	padding: 24px 0;
	margin-top: auto;
}

.footer-copy {
	margin: 0;
	text-align: center;
	font-size: 14px;
	color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 900px) {
	.two-columns {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.two-columns--reverse-mobile .column-media {
		order: -1;
	}

	.menu-toggle {
		display: flex;
	}

	.nav-wrapper {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--color-border);
		flex-direction: column;
		padding: 16px 24px 24px;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	}

	.nav-wrapper.is-open {
		display: flex;
	}

	.main-navigation {
		position: relative;
	}

	.nav-menu {
		flex-direction: column;
		width: 100%;
		align-items: stretch;
	}

	.nav-menu a {
		padding: 12px 0;
	}

	.nav-menu a::after {
		left: 0;
		right: auto;
		width: 40px;
	}
}

@media (max-width: 480px) {
	.page-section {
		padding: 32px 0 48px;
	}

	.hero-actions {
		flex-direction: column;
		align-items: flex-start;
	}
}
