/*
Theme Name: González & Armas Associates
Description: Tema a medida para González & Armas Associates: impuestos y contabilidad en Chula Vista, CA. Bilingüe (ES/EN), editable con Advanced Custom Fields.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: gonzalez-armas
*/

:root {
	--background: oklch(0.975 0.004 80);
	--foreground: oklch(0.27 0.04 245);
	--card: oklch(1 0 0);
	--primary: oklch(0.34 0.06 245);
	--secondary: oklch(0.93 0.008 70);
	--muted-foreground: oklch(0.5 0.02 60);
	--accent: oklch(0.52 0.1 240);
	--border: oklch(0.88 0.01 70);
	--input: oklch(0.86 0.01 70);
	--navy: oklch(0.33 0.06 245);
	--navy-foreground: oklch(0.93 0.006 70);
	--brand: oklch(0.52 0.1 240);
	--gold: oklch(0.8 0.15 75);
	--taupe: oklch(0.62 0.02 50);
	--destructive: oklch(0.577 0.245 27.325);
	--serif: "Libre Baskerville", Georgia, serif;
	--sans: "Source Sans 3", system-ui, sans-serif;
	--radius: 0.375rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--sans); line-height: 1.5; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--primary); }
p, ul { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.container { max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: 4rem; }
.section--tint { background: var(--secondary); }
.section--center { text-align: center; }
.section-title { font-size: 1.875rem; line-height: 1.25; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--taupe); }
.muted { color: var(--muted-foreground); }
.grid { display: grid; gap: 1.5rem; }

.btn { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 44px; padding: 0.75rem 1.5rem; border: 0; border-radius: 2px; font-weight: 600; cursor: pointer; transition: background-color .15s, filter .15s; }
.btn--primary { background: var(--primary); color: var(--background); }
.btn--primary:hover { background: var(--accent); }
.btn--gold { background: var(--gold); color: var(--navy); font-weight: 700; }
.btn--gold:hover { filter: brightness(1.05); }

/* Logo */
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo__icon { width: 2.75rem; height: 2.75rem; flex-shrink: 0; color: var(--brand); }
.logo__name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: var(--primary); }
.logo__amp { color: var(--brand); }
.logo__sub { display: block; margin-top: 0.125rem; font-size: 0.68rem; font-weight: 400; letter-spacing: 0.3em; color: var(--taupe); }
.logo--dark .logo__icon, .logo--dark .logo__name { color: var(--navy-foreground); }
.logo--dark .logo__amp { color: var(--gold); }
.logo--dark .logo__sub { color: color-mix(in oklab, var(--navy-foreground) 60%, transparent); }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--background) 95%, transparent); backdrop-filter: blur(8px); color: var(--primary); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 80rem; margin-inline: auto; padding: 0.75rem 1.5rem; }
.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.site-nav { display: none; }
.site-nav ul, .mobile-nav ul, .footer-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav ul { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a { display: block; padding: 0.5rem 0.625rem; font-size: 0.9375rem; font-weight: 600; color: color-mix(in oklab, var(--primary) 80%, transparent); transition: color .15s; }
.site-nav a:hover { color: var(--brand); }
.site-nav .current-menu-item > a { color: var(--primary); text-decoration: underline 2px var(--gold); text-underline-offset: 8px; }
.lang-toggle { display: flex; border: 1px solid var(--input); font-size: 0.75rem; font-weight: 700; }
.lang-toggle a { padding: 0.25rem 0.625rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary); }
.lang-toggle a:hover { background: var(--secondary); }
.lang-toggle a.is-active { background: var(--navy); color: var(--background); }
.header-cta { display: none; padding: 0.75rem 1.25rem; background: var(--navy); color: var(--background); font-size: 0.875rem; font-weight: 700; transition: background-color .15s; }
.header-cta:hover { background: var(--accent); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.menu-toggle .icon { width: 1.5rem; height: 1.5rem; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav { padding: 0.75rem 1.5rem; border-top: 1px solid var(--border); }
.mobile-nav a { display: block; padding: 0.5rem 0; font-weight: 600; color: color-mix(in oklab, var(--primary) 85%, transparent); }
.mobile-nav a:hover { color: var(--brand); }

/* Hero */
.hero { border-bottom: 1px solid var(--border); }
.hero__inner { display: grid; gap: 3rem; max-width: 80rem; margin-inline: auto; padding: 4rem 1.5rem; }
.hero__copy { display: flex; flex-direction: column; justify-content: center; }
.hero .eyebrow { color: var(--muted-foreground); }
.hero h1 { margin-top: 1.5rem; font-size: 2.25rem; line-height: 1.06; letter-spacing: -0.025em; }
.hero h1 em { color: var(--brand); }
.hero__rule { width: 5rem; height: 3px; margin-top: 2rem; background: var(--gold); }
.hero__text { max-width: 600px; margin-top: 1.75rem; font-size: 1.125rem; line-height: 1.625; color: color-mix(in oklab, var(--foreground) 80%, transparent); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.25rem; }
.hero__actions .btn { padding: 1rem 1.75rem; }
.hero__call { font-weight: 700; color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.hero__call:hover { color: var(--brand); }
.hero__media { display: flex; align-items: center; }
.hero__media img { width: 100%; border-radius: 0.5rem; }

/* Tarjetas */
.card { padding: 1.75rem; border-radius: var(--radius); background: var(--card); }
.card--line { border: 1px solid var(--border); transition: border-color .15s, box-shadow .15s; }
a.card--line:hover { border-color: var(--brand); box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1); }
.card--shadow { box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.card h3 { margin-top: 1rem; font-size: 1.25rem; }
.card__icon { width: 2rem; height: 2rem; color: var(--brand); }
.card__icon--small { width: 1.5rem; height: 1.5rem; color: var(--taupe); }
.card__more { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--brand); }
.card__more .icon { transition: transform .15s; }
a.card:hover .card__more .icon { transform: translateX(4px); }
.article h3 { margin-top: 0.75rem; font-size: 1.125rem; }
.article p { margin-top: 0.5rem; color: var(--muted-foreground); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-head .section-title { margin-top: 0.5rem; }
.link-all { font-weight: 600; color: var(--brand); }
.link-all:hover { text-decoration: underline; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.cta__text { max-width: 36rem; margin: 0.75rem auto 0; color: var(--muted-foreground); }
.cta .btn, .center-action .btn { margin-top: 1.5rem; }
.center-action { padding-bottom: 4rem; text-align: center; }

/* Páginas interiores */
.page-hero { padding-block: 4rem; border-bottom: 1px solid var(--border); background: var(--secondary); }
.page-hero h1 { max-width: 48rem; margin-top: 0.75rem; font-size: 2.25rem; line-height: 1.2; }
.page-hero__intro { max-width: 42rem; margin-top: 1.25rem; font-size: 1.125rem; color: var(--muted-foreground); }
.split { display: grid; gap: 2.5rem; }
.lead-text { font-size: 1.125rem; line-height: 1.625; color: var(--muted-foreground); }
.value { padding: 1.5rem; border-radius: var(--radius); background: var(--card); }
.value .icon { width: 1.75rem; height: 1.75rem; color: var(--brand); }
.value h3 { margin-top: 0.75rem; font-size: 1.125rem; }
.value p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.person { display: flex; gap: 1.25rem; }
.person__avatar { display: flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: var(--navy); color: var(--navy-foreground); font-family: var(--serif); font-size: 1.5rem; }
.person h3 { margin-top: 0; font-size: 1.25rem; }
.person__role { font-size: 0.875rem; font-weight: 600; color: var(--brand); }
.person__bio { margin-top: 0.75rem; font-size: 0.875rem; font-style: italic; color: var(--muted-foreground); }
.prose { max-width: 48rem; margin-top: 1.5rem; color: var(--muted-foreground); }
.prose > * + * { margin-top: 1rem; }
.prose ul { padding-left: 1.5rem; list-style: disc; }
.prose li + li { margin-top: 0.5rem; }
.prose strong { color: var(--primary); }
.prose a { color: var(--brand); text-decoration: underline; }
.service { padding: 2rem; border-top: 4px solid var(--brand); border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.service > .icon { width: 2.25rem; height: 2.25rem; color: var(--brand); }
.service h2 { margin-top: 1rem; font-size: 1.5rem; line-height: 1.3; }
.service ul { margin-top: 1.25rem; padding: 0; list-style: none; }
.service li { display: flex; gap: 0.5rem; color: var(--muted-foreground); }
.service li + li { margin-top: 0.75rem; }
.service li .icon { width: 1.25rem; height: 1.25rem; margin-top: 0.125rem; color: var(--gold); }
.topic { padding: 2rem; border-left: 4px solid var(--brand); border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.topic + .topic { margin-top: 1.5rem; }
.topic h2 { font-size: 1.5rem; line-height: 1.3; }
.topic p { margin-top: 0.75rem; line-height: 1.625; color: var(--muted-foreground); }

/* Promociones */
.promo { display: grid; align-items: center; gap: 3rem; }
.promo__flyer { width: 100%; max-width: 24rem; margin-inline: auto; border-radius: var(--radius); box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); }
.promo__box { padding: 2rem; border: 2px dashed var(--taupe); border-radius: var(--radius); }
.promo__box h2 { margin-top: 0.75rem; font-size: 2.25rem; line-height: 1.2; }
.promo__box h2 span { color: var(--brand); }
.promo__cond { margin-top: 0.75rem; font-weight: 600; color: var(--muted-foreground); }
.promo__note { margin-top: 1.5rem; color: var(--muted-foreground); }
.promo__box .btn { margin-top: 2rem; font-size: 1.125rem; }

/* Contacto */
.contact { display: grid; gap: 2.5rem; }
.contact__list > * + * { margin-top: 1.25rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 2px rgb(0 0 0 / .08); transition: box-shadow .15s; }
.contact-item:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1); }
.contact-item__icon { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: var(--gold); }
.contact-item__icon .icon { width: 1.25rem; height: 1.25rem; }
.contact-item .eyebrow { display: block; }
.contact-item__value { font-size: 1.125rem; color: var(--primary); overflow-wrap: anywhere; }
.contact__card { width: 100%; max-width: 28rem; border: 1px solid var(--border); border-radius: var(--radius); }
.contact__map { width: 100%; height: 450px; border: 1px solid var(--border); border-radius: var(--radius); }

/* Calculadora */
.lead-form { max-width: 36rem; margin-inline: auto; padding: 2rem; border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.lead-form label { display: block; }
.lead-form label + label { margin-top: 1rem; }
.lead-form label span { display: block; margin-bottom: 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.field { width: 100%; padding: 0.625rem 0.75rem; border: 1px solid var(--input); border-radius: 2px; background: var(--card); color: inherit; outline: 0; }
.field:focus { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 30%, transparent); }
.lead-form__error { margin-top: 1rem; font-size: 0.875rem; color: var(--destructive); }
.lead-form .btn { justify-content: center; width: 100%; margin-top: 1rem; }
.calc { display: grid; gap: 2rem; max-width: 56rem; margin-inline: auto; }
.calc__panel { padding: 2rem; border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.calc__tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.calc__tab { min-height: 44px; padding: 0.5rem 1rem; border: 0; border-radius: 2px; background: var(--secondary); color: var(--primary); font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.calc__tab[aria-selected="true"] { background: var(--navy); color: var(--navy-foreground); }
.calc__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; border-bottom: 1px solid var(--border); }
.calc__row .field { width: 6rem; text-align: right; }
.calc__result { height: fit-content; padding: 2rem; border-radius: var(--radius); background: var(--navy); color: var(--navy-foreground); }
.calc__total { margin-top: 0.75rem; font-family: var(--serif); font-size: 3rem; line-height: 1.1; color: var(--gold); }
.calc__unit { margin-top: 0.25rem; font-size: 0.875rem; }
.calc__note { margin-top: 1.5rem; font-size: 0.75rem; color: color-mix(in oklab, var(--navy-foreground) 70%, transparent); }
[hidden] { display: none !important; }

/* Pie */
.site-footer { background: var(--navy); color: var(--navy-foreground); }
.site-footer__grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; font-size: 0.875rem; }
.site-footer__open { margin-top: 1.5rem; font-size: 1.125rem; font-weight: 600; color: var(--gold); }
.site-footer__col > * + * { margin-top: 0.75rem; }
.site-footer__row { display: flex; gap: 0.5rem; }
.site-footer__row .icon { color: var(--gold); }
a.site-footer__row:hover, .footer-nav a:hover { color: var(--gold); }
.footer-nav { margin-top: 0.75rem; }
.footer-nav a { display: block; padding-block: 0.25rem; color: color-mix(in oklab, var(--navy-foreground) 80%, transparent); }
.site-footer__copy { padding-block: 1rem; border-top: 1px solid color-mix(in oklab, var(--navy-foreground) 10%, transparent); text-align: center; font-size: 0.75rem; color: color-mix(in oklab, var(--navy-foreground) 60%, transparent); }

/* Plantillas genéricas */
.entry + .entry { margin-top: 2.5rem; }
.entry h1, .entry h2 { font-size: 1.875rem; }
.entry__content { margin-top: 1rem; }
.entry__content > * + * { margin-top: 1rem; }

@media (min-width: 640px) {
	.grid--values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.grid--3, .grid--values-md { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero__inner { padding-block: 6rem; }
	.hero h1 { font-size: 3.75rem; }
	.hero__text { font-size: 1.25rem; }
	.page-hero h1 { font-size: 3rem; }
	.split { grid-template-columns: 1fr 2fr; }
	.promo, .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.calc { grid-template-columns: 1.5fr 1fr; }
	.site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.site-nav { display: block; }
	.menu-toggle, .mobile-nav { display: none !important; }
	.hero__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem; }
	.hero__copy { grid-column: span 7; padding-right: 1.5rem; }
	.hero__media { grid-column: span 5; }
	.grid--services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
	.grid--values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
	.header-cta { display: inline-flex; }
	.hero h1 { font-size: 4.5rem; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
