/**
 * Alineación visual con el frontend Lovable (Tailwind / shadcn).
 * Carga después de style.css — mismos tokens HSL que index.css del proyecto React.
 */

/* Header: nav tracking-wide */
.acr-nav__link {
	letter-spacing: 0.025em;
}

.acr-brand {
	letter-spacing: 0.025em;
}

/* ── Contenedores por sección (max-w-* de Tailwind) ── */
/* Services / About usan el mismo ancho que --acr-container (max-w-6xl) */

.acr-pricing__container {
	max-width: 896px; /* max-w-4xl */
}

.acr-faq__container {
	max-width: 768px; /* max-w-3xl */
}

.acr-quote__content.acr-container {
	max-width: 768px;
}

.acr-contact__container {
	max-width: 1024px; /* max-w-5xl */
}

.acr-services-grid {
	max-width: 1024px; /* max-w-5xl */
}

/* ── Hero: igual que Lovable (section + container + grid) ── */
.acr-hero {
	position: relative;
	/* visible: la hoja Lucide (140px, rotate 160deg) queda fuera del rect si overflow:hidden */
	overflow: visible;
	background: linear-gradient(
		to bottom right,
		var(--acr-background) 0%,
		rgba(232, 232, 227, 0.3) 50%,
		var(--acr-background) 100%
	);
}

/* absolute bottom-8 left-8 opacity-[0.04] rotate-[160deg] — detrás del grid */
.acr-hero__leaf {
	position: absolute;
	z-index: 0;
	left: 2rem;
	bottom: 2rem;
	opacity: 0.04;
	transform: rotate(160deg);
	pointer-events: none;
}

/*
 * Inner: container mx-auto px-6 pt-28 pb-16 grid md:grid-cols-2 gap-8 lg:gap-14 items-center
 * Ancho: max-w-6xl (1152px) + padding horizontal px-6 (1.5rem), sin doble resta calc(100% - 48px).
 */
.acr-hero .acr-container.acr-hero__grid {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1152px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	padding: 7rem 1.5rem 4rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 32px;
}

@media (max-width: 767px) {
	.acr-hero .acr-container.acr-hero__grid {
		grid-template-columns: 1fr;
	}

	/* order-1 / order-2 en móvil: foto arriba */
	.acr-hero .acr-hero__media {
		order: 1;
	}

	.acr-hero .acr-hero__content {
		order: 2;
	}
}

/* md: texto izquierda, foto derecha (a partir de 768px) */
@media (min-width: 768px) {
	.acr-hero .acr-hero__content {
		order: 1;
	}

	.acr-hero .acr-hero__media {
		order: 2;
	}
}

@media (min-width: 1024px) {
	.acr-hero .acr-container.acr-hero__grid {
		gap: 56px;
	}
}

/* Hero título: text-4xl md:text-5xl lg:text-[3.5rem] */
.acr-hero__title {
	font-size: 2.25rem;
	font-weight: 600;
	line-height: 1.12;
}

@media (min-width: 768px) {
	.acr-hero__title {
		font-size: 3rem;
	}
}

@media (min-width: 1024px) {
	.acr-hero__title {
		font-size: 3.5rem;
	}
}

/*
 * Columna texto = div.space-y-6 (réplica exacta)
 * Tailwind space-y-6: 1.5rem entre hijos; mt-3 del botón queda anulado por el selector space-y (mayor especificidad).
 * Aquí: flex + gap 1.5rem únicamente, márgenes 0 en hijos para no sumar altura extra.
 */
.acr-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.acr-hero__content > * {
	margin: 0;
}

/* Subtítulo: text-sm tracking-[0.25em] uppercase text-primary font-semibold + line-height text-sm */
.acr-hero__subtitle {
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--acr-primary);
}

/* h1: font-semibold = 600 (ya en .acr-hero__title) */

/* Tagline: text-lg md:text-xl leading-relaxed max-w-lg — relaxed = 1.625 en ambos breakpoints */
.acr-hero__tagline {
	font-size: 1.125rem;
	line-height: 1.625;
	max-width: 32rem;
}

@media (min-width: 768px) {
	.acr-hero__tagline {
		font-size: 1.25rem;
		line-height: 1.625;
	}
}

/*
 * CTA hero = shadcn Button (default + size lg h-11) + Hero: rounded-full px-10 py-6 text-base tracking-wide shadow-md
 * Altura acorde a medición Lovable (~48px); h-11 token = 2.75rem (44px) — aquí 48px para coincidir con tu inspector.
 */
.acr-hero__content > .acr-button.acr-button--primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	white-space: nowrap;
	box-sizing: border-box;
	width: auto;
	min-width: 0;
	height: 48px;
	min-height: 48px;
	padding: 0 2.5rem;
	margin-top: 0;
	border: 1px solid transparent;
	border-radius: 9999px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.025em;
	color: var(--acr-primary-foreground);
	background-color: var(--acr-primary);
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 4px 6px -1px rgba(29, 34, 40, 0.08), 0 2px 4px -2px rgba(29, 34, 40, 0.06);
	transition:
		color 0.15s ease,
		background-color 0.15s ease,
		box-shadow 0.15s ease;
	align-self: flex-start;
}

.acr-hero__content > .acr-button.acr-button--primary:hover {
	background-color: #708752; /* ~hover:bg-primary/90 sobre fondo claro */
	box-shadow: 0 10px 15px -3px rgba(29, 34, 40, 0.1), 0 4px 6px -4px rgba(29, 34, 40, 0.08);
}

@supports (background-color: color-mix(in srgb, red, blue)) {
	.acr-hero__content > .acr-button.acr-button--primary:hover {
		background-color: color-mix(in srgb, var(--acr-primary), black 10%);
	}
}

.acr-hero__content > .acr-button.acr-button--primary:focus {
	outline: none;
}

.acr-hero__content > .acr-button.acr-button--primary:focus-visible {
	outline: 2px solid transparent;
	box-shadow:
		0 0 0 2px var(--acr-background),
		0 0 0 4px var(--acr-ring),
		0 4px 6px -1px rgba(29, 34, 40, 0.08),
		0 2px 4px -2px rgba(29, 34, 40, 0.06);
}

/*
 * Imagen: w-72 (18rem) → md:w-80 (20rem) → lg:w-[24rem]; rounded-2xl (1rem); shadow-xl
 */
.acr-hero__image {
	position: relative;
	width: 100%;
	max-width: 18rem;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 1rem;
	box-shadow: 0 20px 25px -5px rgba(29, 34, 40, 0.1), 0 8px 10px -6px rgba(29, 34, 40, 0.1);
}

@media (min-width: 768px) {
	.acr-hero__image {
		max-width: 20rem;
	}
}

@media (min-width: 1024px) {
	.acr-hero__image {
		max-width: 24rem;
	}
}

.acr-hero__image-shadow {
	border-radius: 1rem;
}

/* Columna foto: justify-center md:justify-end */
.acr-hero__media {
	display: flex;
	justify-content: center;
}

@media (min-width: 768px) {
	.acr-hero__media {
		justify-content: flex-end;
	}
}

/* ── Títulos de sección h2: text-3xl md:text-4xl (2.25rem), no 2.5rem ── */
.acr-section-title {
	font-size: 1.875rem;
	font-weight: 600;
	margin-bottom: 16px;
}

@media (min-width: 768px) {
	.acr-section-title {
		font-size: 2.25rem;
	}
}

/* Pricing: título mb-3 + intro text-sm mb-14 */
.acr-pricing .acr-section-title--center {
	margin-bottom: 12px;
}

.acr-pricing__intro {
	font-size: 0.875rem;
	line-height: 1.5;
	text-align: center;
	max-width: 28rem;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 56px;
}

/* ── Áreas de enfoque: tracking-wide ── */
.acr-focus__title {
	letter-spacing: 0.025em;
	font-weight: 600;
}

/* ── Tarjetas servicio: 1 col → sm 2 → lg 3 ── */
.acr-service-card {
	width: 100%;
}

@media (min-width: 640px) {
	.acr-service-card {
		width: calc(50% - 10px);
	}
}

@media (min-width: 1024px) {
	.acr-service-card {
		width: calc(33.333% - 14px);
	}
}

/* ── Caja approach + practice: max-w-5xl, p-8 md:p-12, gap-10 md:gap-14 ── */
.acr-approach-box {
	max-width: 1024px;
	padding: 32px;
	margin-top: 80px;
}

@media (min-width: 768px) {
	.acr-approach-box {
		padding: 48px;
	}
}

.acr-approach-box__grid {
	gap: 40px;
}

@media (min-width: 768px) {
	.acr-approach-box__grid {
		gap: 56px;
	}
}

/* Practice: iconos w-9 h-9 rounded-lg (no círculo) */
.acr-practice-list__icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
}

/* ── About: grid gap-12 lg:gap-16 ── */
.acr-about__grid,
.acr-contact__grid {
	gap: 48px;
}

@media (min-width: 1024px) {
	.acr-about__grid,
	.acr-contact__grid {
		gap: 64px;
	}
}

/*
 * About foto: como Lovable — div.relative > absolute -inset-3 rounded-2xl bg-primary/10 rotate-2 + img rounded-2xl shadow-md
 * El marco debe ceñirse a la imagen (inline-block / fit-content), no al 100% de la columna.
 */
.acr-about__image-frame {
	position: relative;
	display: inline-block;
	width: fit-content;
	max-width: 100%;
	vertical-align: top;
}

.acr-about__image-shadow {
	position: absolute;
	z-index: 0;
	inset: -0.75rem;
	border-radius: 1rem;
	pointer-events: none;
	transform: rotate(2deg);
	background-color: rgba(124, 154, 91, 0.1);
}

@supports (background-color: color-mix(in srgb, red, blue)) {
	.acr-about__image-shadow {
		background-color: color-mix(in srgb, var(--acr-primary) 10%, transparent);
	}
}

.acr-about__image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	max-width: 18rem;
	height: auto;
	border-radius: 1rem;
	object-fit: cover;
	box-shadow: 0 4px 6px -1px rgba(29, 34, 40, 0.08), 0 2px 4px -2px rgba(29, 34, 40, 0.06);
}

@media (min-width: 768px) {
	.acr-about__image {
		max-width: 20rem;
	}
}

/* Credentials título mb-3 */
.acr-credentials-box__title {
	margin-bottom: 12px;
}

.acr-dot-list__item .acr-dot {
	margin-top: 6px;
}

/* Intro / nota about: 15px como Lovable */
.acr-about__intro,
.acr-about__note {
	font-size: 15px;
}

/* ── Precios: precio text-4xl ── */
.acr-plan-card__price-value {
	font-size: 2.25rem;
	font-weight: 700;
}

.acr-plan-card {
	box-shadow: 0 1px 2px 0 rgba(29, 34, 40, 0.05);
}

.acr-plan-card:hover {
	box-shadow: 0 4px 6px -1px rgba(29, 34, 40, 0.08), 0 2px 4px -2px rgba(29, 34, 40, 0.06);
}

.acr-plan-grid {
	gap: 24px;
	margin-bottom: 56px;
}

.acr-pricing__footer-cta p {
	font-size: 0.875rem;
	font-style: italic;
}

/*
 * CTA “Get in Touch” = Button outline + rounded-full px-8 py-5 … (Lovable Pricing)
 * Medida ref. ~42px alto; h-10 (2.5rem) + borde; texto text-sm; icono gap-2 (16px)
 */
.acr-pricing__footer-cta .acr-button--outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-sizing: border-box;
	height: 2.5rem;
	min-height: 2.5rem;
	padding: 0 2rem;
	margin: 0;
	border-radius: 9999px;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.025em;
	white-space: nowrap;
	color: var(--acr-primary);
	background-color: var(--acr-background);
	border: 1px solid rgba(124, 154, 91, 0.3);
	text-decoration: none;
	cursor: pointer;
	transition:
		color 0.15s ease,
		background-color 0.15s ease,
		border-color 0.15s ease;
}

.acr-pricing__footer-cta .acr-button--outline:hover {
	background-color: rgba(124, 154, 91, 0.05);
	color: var(--acr-primary);
}

.acr-pricing__footer-cta .acr-button--outline:focus {
	outline: none;
}

.acr-pricing__footer-cta .acr-button--outline:focus-visible {
	outline: 2px solid transparent;
	box-shadow:
		0 0 0 2px var(--acr-background),
		0 0 0 4px var(--acr-ring);
}

.acr-pricing__footer-cta .acr-button__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
}

.acr-pricing__footer-cta .acr-button--outline .acr-icon--message {
	width: 16px;
	height: 16px;
}

/* ── FAQ: rounded-lg (8px), espacio space-y-3 ── */
.acr-accordion {
	gap: 12px;
}

.acr-accordion__item {
	border-radius: 8px;
}

/* ── Quote: texto text-xl md:text-2xl ── */
.acr-quote__text {
	font-size: 1.25rem;
	margin-bottom: 40px;
}

@media (min-width: 768px) {
	.acr-quote__text {
		font-size: 1.5rem;
	}
}

/* Icono Quote: Lucide size={32} text-white/40 mx-auto mb-6 */
.acr-quote__icon .acr-icon--quote {
	display: block;
	width: 32px;
	height: 32px;
	margin: 0 auto 1.5rem;
	color: rgba(255, 255, 255, 0.4);
	flex-shrink: 0;
}

/* ── Contacto: iconos 20px sin círculo de fondo (Contact.tsx: Mail size={20} mt-0.5 shrink-0) ── */
.acr-contact-detail__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	min-width: 20px;
	border-radius: 0;
	background: none;
	padding: 0;
	margin-top: 0.125rem;
	flex-shrink: 0;
}

.acr-icon--detail {
	width: 20px;
	height: 20px;
}

.acr-contact-detail {
	gap: 1rem;
	align-items: flex-start;
}

/* Encabezado text-sm font-medium; misma caja tipográfica que Lovable para alinear con el icono */
.acr-contact-detail > div > p:first-child {
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
}

.acr-contact__details {
	gap: 32px;
}

/* FAQ / Contact: h2 mb-14 */
.acr-faq .acr-section-title--center,
.acr-contact .acr-section-title--center {
	margin-bottom: 56px;
}

/* Inputs al estilo shadcn rounded-md (~6px con --acr-radius 8px) */
.acr-form-field input,
.acr-form-field textarea {
	border-radius: 6px;
}

/*
 * Contacto — enviar: mismo patrón que shadcn Button default
 * (inline-flex h-10 rounded-full px-8 text-sm font-medium, hover:bg-primary/90, focus ring).
 * justify-self: start evita que el grid estire el botón a todo el ancho.
 */
.acr-contact-form > .acr-button.acr-button--primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	white-space: nowrap;
	box-sizing: border-box;
	width: auto;
	max-width: max-content;
	justify-self: start;
	min-width: 0;
	height: 2.5rem;
	min-height: 2.5rem;
	padding: 0.5rem 2rem;
	margin: 0;
	border: 1px solid transparent;
	border-radius: 9999px;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25;
	color: var(--acr-primary-foreground);
	background-color: var(--acr-primary);
	box-shadow: none;
	cursor: pointer;
	transition:
		color 0.15s ease,
		background-color 0.15s ease;
}

.acr-contact-form > .acr-button.acr-button--primary:hover {
	box-shadow: none;
	background-color: #708752;
}

@supports (background-color: color-mix(in srgb, red, blue)) {
	.acr-contact-form > .acr-button.acr-button--primary:hover {
		background-color: color-mix(in srgb, var(--acr-primary), black 10%);
	}
}

.acr-contact-form > .acr-button.acr-button--primary:focus {
	outline: none;
}

.acr-contact-form > .acr-button.acr-button--primary:focus-visible {
	outline: 2px solid transparent;
	box-shadow:
		0 0 0 2px var(--acr-contact-bg, var(--acr-background)),
		0 0 0 4px var(--acr-ring);
}

.acr-contact-form > .acr-button.acr-button--primary:disabled,
.acr-contact-form > .acr-button.acr-button--primary[disabled] {
	pointer-events: none;
	opacity: 0.5;
	cursor: not-allowed;
}

/*
 * Footer: top = container mx-auto px-6 py-16.
 * Barra inferior = Footer.tsx: outer border-t py-6; inner solo px-6 + flex (sin py en el inner).
 */
.acr-footer .acr-container.acr-footer__top,
.acr-footer .acr-container.acr-footer__bottom-inner {
	width: 100%;
	max-width: var(--acr-container);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.acr-footer .acr-container.acr-footer__top {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

/* Outer: div.border-t.border-border.py-6 */
.acr-footer__bottom {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	border-top: 1px solid var(--acr-border);
}

/* Inner: container px-6 flex flex-col sm:flex-row items-center justify-between gap-2 text-xs */
.acr-footer .acr-container.acr-footer__bottom-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding-top: 0;
	padding-bottom: 0;
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--acr-muted-foreground);
	text-align: center;
}

.acr-footer .acr-container.acr-footer__bottom-inner p {
	margin: 0;
}

@media (min-width: 640px) {
	.acr-footer .acr-container.acr-footer__bottom-inner {
		flex-direction: row;
		text-align: left;
	}
}

/* Columnas footer: space-y-2 (col 1) / space-y-3 (cols 2–3) + grid gap-12 como Footer.tsx */
.acr-footer__grid {
	gap: 3rem;
}

.acr-footer__column:nth-child(1) {
	gap: 0.5rem;
}

.acr-footer__column:nth-child(2),
.acr-footer__column:nth-child(3) {
	gap: 0.75rem;
}

.acr-footer__column h4 {
	margin: 0;
}

.acr-footer__column:nth-child(2) .acr-footer__link {
	display: block;
	width: 100%;
	text-align: left;
}

.acr-footer__column:nth-child(3) > .acr-footer__link:not(.acr-footer__link--inline) {
	display: block;
	width: 100%;
	text-align: left;
}

/* sm (640px): pricing 2 col, footer 3 col, barra inferior en fila — como Tailwind */
@media (min-width: 640px) and (max-width: 1024px) {
	.acr-plan-grid,
	.acr-info-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.acr-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* md–lg: about, contact, approach en 2 columnas (hero ya definido arriba) */
@media (min-width: 768px) and (max-width: 1024px) {
	.acr-about__grid,
	.acr-contact__grid,
	.acr-approach-box__grid {
		grid-template-columns: 1fr 1fr;
	}
}
