/* ==========================================================================
   Colombia Forense — hoja de estilos del tema
   1. Base y accesibilidad
   2. Encabezado y navegacion
   3. Hero
   4. Cifras de trayectoria
   5. Tarjetas de servicio
   6. Jurisdicciones
   7. Metodologia
   8. Cita destacada
   9. Perito
   10. Contacto
   11. Pie de pagina
   12. WhatsApp flotante
   13. Responsive
   ========================================================================== */

/* 1. Base y accesibilidad
   -------------------------------------------------------------------------- */
body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(p, li) {
	text-wrap: pretty;
}

.skip-link:focus {
	outline: 3px solid var(--wp--preset--color--royal);
	outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--royal);
	outline-offset: 2px;
}

.wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cf-eyebrow {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.cf-lead {
	max-width: 46em;
	font-size: 1.125rem;
	line-height: 1.65;
}

/* 2. Encabezado y navegacion
   -------------------------------------------------------------------------- */
.cf-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.cf-header .wp-block-site-title a {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	letter-spacing: 0.5px;
}

.cf-header .wp-block-navigation {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9375rem;
	font-weight: 500;
}

.cf-header .wp-block-navigation a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.cf-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--royal);
}

/* 3. Hero
   -------------------------------------------------------------------------- */
.cf-hero {
	color: #ffffff;
}

.cf-hero h1 {
	letter-spacing: -0.5px;
}

.cf-hero .cf-hero-text p {
	max-width: 34em;
}

.cf-hero-media img {
	border-radius: 10px;
	object-fit: cover;
	width: 100%;
	min-height: 420px;
	filter: grayscale(0.35) contrast(1.05);
}

.cf-hero-note {
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted-dark);
}

/* 4. Cifras de trayectoria
   -------------------------------------------------------------------------- */
.cf-stats {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.cf-stat-number {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: clamp(2.25rem, 4vw, 2.875rem);
	line-height: 1;
	color: var(--wp--preset--color--royal);
	margin: 0;
}

.cf-stat-rule {
	width: 30px;
	height: 2px;
	background: var(--wp--preset--color--royal);
	border: 0;
	margin: 1.125rem 0;
}

.cf-stat-label {
	font-size: 1rem;
	font-weight: 500;
	color: var(--wp--preset--color--muted);
	margin: 0;
}

/* 5. Tarjetas de servicio
   -------------------------------------------------------------------------- */
.cf-card {
	background: #ffffff;
	border-left: 4px solid var(--wp--preset--color--royal);
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
	padding: 2rem;
	height: 100%;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cf-card:hover {
	box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
	transform: translateY(-3px);
}

.cf-card h3 {
	color: var(--wp--preset--color--navy);
}

/* 6. Jurisdicciones
   -------------------------------------------------------------------------- */
.cf-grid {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	overflow: hidden;
}

.cf-grid .cf-grid-item {
	background: #ffffff;
	padding: 1.75rem;
	box-shadow: 0 0 0 1px var(--wp--preset--color--border);
}

.cf-tag {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--wp--preset--color--royal);
	margin-bottom: 0.625rem;
}

/* 7. Metodologia
   -------------------------------------------------------------------------- */
.cf-phase {
	border-top: 2px solid var(--wp--preset--color--navy);
	padding-top: 1.375rem;
	height: 100%;
}

.cf-phase-number {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 2.375rem;
	line-height: 1;
	color: var(--wp--preset--color--blue-light);
	margin: 0 0 0.75rem;
}

.cf-callout {
	background: var(--wp--preset--color--surface);
	border-left: 4px solid var(--wp--preset--color--royal);
	border-radius: 8px;
	padding: 2rem;
}

/* 8. Cita destacada
   -------------------------------------------------------------------------- */
.cf-quote {
	text-align: center;
}

.cf-quote p {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-size: clamp(1.5rem, 3.4vw, 2.125rem);
	line-height: 1.45;
	color: #ffffff;
	margin: 0;
}

.cf-quote cite {
	display: block;
	margin-top: 1.625rem;
	font-family: var(--wp--preset--font-family--body);
	font-style: normal;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 1px;
	color: var(--wp--preset--color--sky-tint);
}

/* 9. Perito
   -------------------------------------------------------------------------- */
.cf-portrait img {
	border-radius: 10px;
	width: 100%;
	height: auto;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}

.cf-checklist {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cf-checklist li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.75rem;
	line-height: 1.55;
}

.cf-checklist li::before {
	content: "—";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--royal);
	font-weight: 700;
}

.cf-note {
	background: #ffffff;
	border-radius: 8px;
	padding: 1.625rem;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* 10. Contacto
   -------------------------------------------------------------------------- */
.cf-contact-panel {
	background: var(--wp--preset--color--navy);
	border-radius: 10px;
	overflow: hidden;
	color: #ffffff;
}

.cf-contact-panel a {
	color: #ffffff;
	text-decoration: none;
}

.cf-contact-panel a:hover {
	color: var(--wp--preset--color--sky-tint);
}

.cf-contact-panel .cf-tag {
	color: var(--wp--preset--color--sky-tint);
}

/* 11. Pie de pagina
   -------------------------------------------------------------------------- */
.cf-footer {
	background: var(--wp--preset--color--navy);
	color: #cbd5e1;
}

.cf-footer a {
	color: #cbd5e1;
	text-decoration: none;
}

.cf-footer a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.cf-footer .cf-tag {
	color: var(--wp--preset--color--sky-tint);
}

.cf-footer-legal {
	border-top: 1px solid #1e293b;
	padding-top: 1.5rem;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted-dark);
}

/* 12. WhatsApp flotante
   -------------------------------------------------------------------------- */
.cf-whatsapp-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 60;
}

.cf-whatsapp-float .wp-block-button__link {
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
	padding: 0.9375rem 1.375rem;
}

/* 13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 781px) {
	.cf-hero-media img {
		min-height: 260px;
	}

	.cf-card,
	.cf-callout,
	.cf-deontologia {
		padding: 1.5rem;
	}

	.cf-contact-panel .cf-contact-col {
		padding: 1.75rem;
	}

	.cf-logo .cf-logo-top,
	.cf-logo .cf-logo-bottom {
		font-size: 1.625rem;
	}

	.cf-whatsapp-float {
		right: 12px;
		bottom: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cf-card {
		transition: none;
	}
}
