/*
Theme Name: ACF
Theme URI: https://acf.net.co
Author: IAprosystems
Author URI: https://iaprosystems.com
Description: Tema personalizado para ACF (Planeación financiera).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
	--acf-navy: #182659;
	--acf-heading: #232f52;
	--acf-cyan: #38b8ff;
	--acf-gold: #ffc933;
	--acf-body: #2e3542;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	color: var(--acf-body);
	font-family: "Open Sans", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: "Roboto Slab", Georgia, serif;
	font-weight: 700;
	margin: 0 0 16px;
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.acf-header {
	background: var(--acf-navy);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 40px;
	position: relative;
	z-index: 50;
}
.acf-logo {
	color: #ffffff;
	font-family: "Roboto Slab", Georgia, serif;
	font-weight: 700;
	font-size: 24px;
	letter-spacing: 1px;
}
.acf-nav ul {
	list-style: none;
	display: flex;
	gap: 30px;
	margin: 0;
	padding: 0;
}
.acf-nav a {
	color: #ffffff;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .5px;
	text-transform: uppercase;
}
.acf-nav a:hover,
.acf-nav a.is-active {
	color: var(--acf-cyan);
}
.acf-menu-toggle {
	display: none;
	background: none;
	border: none;
	color: #ffffff;
	font-size: 24px;
	cursor: pointer;
}

@media (max-width: 860px) {
	.acf-nav { display: none; width: 100%; }
	.acf-nav.acf-nav-open { display: block; margin-top: 16px; }
	.acf-nav ul { flex-direction: column; gap: 14px; }
	.acf-header { flex-wrap: wrap; padding: 18px 24px; }
	.acf-menu-toggle { display: block; }
}

/* ---------- Hero (Inicio) ---------- */
.acf-hero {
	position: relative;
	min-height: 620px;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	padding: 60px 40px;
}
.acf-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(14, 22, 54, 0.45);
}
.acf-hero-inner {
	position: relative;
	max-width: 1140px;
	margin: 0 auto;
	text-align: center;
	width: 100%;
}
.acf-hero h1 {
	color: #ffffff;
	font-size: 56px;
	margin-bottom: 14px;
}
.acf-hero p {
	color: #ffffff;
	font-size: 22px;
	font-family: "Open Sans", Arial, sans-serif;
	font-weight: 400;
	margin-bottom: 30px;
}

/* ---------- Buttons ---------- */
.acf-btn {
	display: inline-block;
	background: var(--acf-cyan);
	color: #ffffff;
	font-weight: 700;
	padding: 16px 34px;
	border-radius: 2px;
	border: none;
	cursor: pointer;
	font-size: 15px;
}
.acf-btn:hover { background: #1fa3ec; color: #ffffff; }
.acf-btn-navy {
	display: inline-block;
	background: var(--acf-navy);
	color: #ffffff;
	font-weight: 700;
	padding: 16px 34px;
	border-radius: 2px;
	font-size: 15px;
}
.acf-btn-navy:hover { background: #0f1a40; color: #ffffff; }

/* ---------- Service cards ---------- */
.acf-cards {
	max-width: 1350px;
	margin: 0 auto;
	padding: 0 40px 10px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}
.acf-card {
	position: relative;
	min-height: 300px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
}
.acf-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(24, 38, 89, 0.45);
}
.acf-card span {
	position: relative;
	color: #ffffff;
	font-family: "Roboto Slab", Georgia, serif;
	font-weight: 700;
	font-size: 22px;
}
.acf-card.is-tinted::before { background: rgba(56, 184, 255, 0.55); }

@media (max-width: 860px) {
	.acf-cards { grid-template-columns: 1fr; }
}

/* ---------- Section title (page headers + section intros) ---------- */
.acf-section-title {
	max-width: 900px;
	margin: 70px auto 40px;
	padding: 0 24px;
	text-align: center;
}
.acf-section-title h1,
.acf-section-title h2 {
	color: var(--acf-heading);
	font-size: 44px;
	margin-bottom: 18px;
}
.acf-section-title p {
	color: #6b7280;
	font-size: 18px;
	line-height: 1.6;
}

/* ---------- Split (image + text) blocks ---------- */
.acf-split {
	max-width: 1140px;
	margin: 0 auto 70px;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}
.acf-split img { border-radius: 2px; }
.acf-split h2 {
	color: var(--acf-heading);
	font-size: 32px;
}
.acf-split p {
	color: #6b7280;
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 26px;
}
.acf-split.acf-split-rev .acf-split-media { order: 2; }
.acf-split.acf-split-rev .acf-split-text { order: 1; }

@media (max-width: 860px) {
	.acf-split { grid-template-columns: 1fr; gap: 30px; }
	.acf-split.acf-split-rev .acf-split-media,
	.acf-split.acf-split-rev .acf-split-text { order: initial; }
}

/* ---------- Dark text band ---------- */
.acf-band {
	background: var(--acf-navy);
	padding: 60px 40px;
	text-align: center;
}
.acf-band p {
	color: #ffffff;
	max-width: 900px;
	margin: 0 auto;
	font-size: 24px;
	line-height: 1.5;
}

/* ---------- Stats ---------- */
.acf-stats {
	max-width: 1140px;
	margin: 0 auto;
	padding: 60px 24px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	text-align: center;
}
.acf-stats svg { width: 48px; height: 48px; margin: 0 auto 14px; display: block; fill: var(--acf-gold); }
.acf-stats strong {
	display: block;
	color: var(--acf-heading);
	font-size: 17px;
	margin-bottom: 8px;
}
.acf-stats span {
	display: block;
	color: var(--acf-body);
	font-size: 22px;
}

@media (max-width: 860px) {
	.acf-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Full width CTA banner (with bg image) ---------- */
.acf-cta {
	position: relative;
	background-size: cover;
	background-position: center;
	padding: 90px 40px;
	text-align: left;
}
.acf-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(10, 16, 36, 0.55);
}
.acf-cta-inner {
	position: relative;
	max-width: 1140px;
	margin: 0 auto;
}
.acf-cta h2 {
	color: #ffffff;
	font-size: 38px;
	max-width: 760px;
}
.acf-cta.acf-cta-center { text-align: center; }
.acf-cta.acf-cta-center h2 { margin: 0 auto 30px; }

/* ---------- Contact page ---------- */
.acf-contact-wrap {
	max-width: 1140px;
	margin: 0 auto 80px;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 60px;
}
.acf-contact-wrap form label {
	display: block;
	font-weight: 600;
	color: var(--acf-heading);
	margin-bottom: 6px;
}
.acf-contact-wrap form .acf-field { margin-bottom: 20px; }
.acf-contact-wrap form input[type=text],
.acf-contact-wrap form input[type=email],
.acf-contact-wrap form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d7dbe3;
	border-radius: 2px;
	font-family: inherit;
	font-size: 15px;
}
.acf-contact-wrap form textarea { min-height: 120px; resize: vertical; }
.acf-contact-info p { margin: 0 0 6px; color: #6b7280; }
.acf-contact-info strong { display: block; color: var(--acf-heading); margin-top: 20px; }
.acf-form-message { padding: 14px 16px; margin-bottom: 20px; border-radius: 2px; font-weight: 600; }
.acf-form-message.success { background: #e3f7e9; color: #1a7a3c; }
.acf-form-message.error { background: #fde8e8; color: #b42318; }

@media (max-width: 860px) {
	.acf-contact-wrap { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.acf-footer-bar {
	background: var(--acf-navy);
	padding: 26px 40px;
	display: flex;
	justify-content: center;
	gap: 22px;
}
.acf-footer-bar a {
	color: #ffffff;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255,255,255,0.35);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.acf-footer-bar a:hover { background: var(--acf-cyan); border-color: var(--acf-cyan); }
.acf-footer-bar svg { width: 16px; height: 16px; fill: #ffffff; }

.acf-top-link {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--acf-cyan);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
	z-index: 100;
}