/*
 * Ecoagrado — capa de acabado visual compartida
 * Se carga al final para unificar páginas públicas, catálogo, blog y administración.
 */

:root {
  --pro-green: #0b4935;
  --pro-green-deep: #052e22;
  --pro-lime: #9cdb16;
  --pro-lime-soft: #ecf8d3;
  --pro-coral: #d8663e;
  --pro-ink: #14231b;
  --pro-muted: #627168;
  --pro-surface: #ffffff;
  --pro-canvas: #f5f6f1;
  --pro-line: rgba(11, 73, 53, .13);
  --pro-shadow-sm: 0 8px 24px rgba(8, 46, 34, .08);
  --pro-shadow-md: 0 18px 50px rgba(8, 46, 34, .12);
  --pro-shadow-lg: 0 28px 80px rgba(5, 38, 27, .18);
  --pro-radius-sm: 10px;
  --pro-radius: 18px;
  --pro-radius-lg: 28px;
  --pro-ease: cubic-bezier(.2, .8, .2, 1);
}

html {
  color-scheme: light;
  scroll-padding-top: 108px;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.home-page,
body.site-page,
body.admin-theme {
  color: var(--pro-ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(156, 219, 22, .08), transparent 25rem),
    radial-gradient(circle at 94% 48%, rgba(216, 102, 62, .055), transparent 24rem),
    var(--pro-canvas);
  overflow-x: clip;
}

::selection {
  color: #fff;
  background: var(--pro-green);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(156, 219, 22, .48);
  outline-offset: 3px;
}

/* Navegación */
.site-header {
  border: 1px solid rgba(11, 73, 53, .1);
  box-shadow: 0 10px 32px rgba(5, 46, 34, .07);
  transition:
    min-height .3s var(--pro-ease),
    padding .3s var(--pro-ease),
    background .3s ease,
    box-shadow .3s ease;
}

body.site-page .site-header,
body.admin-theme .site-header {
  top: 12px;
  left: 18px;
  right: 18px;
  width: auto;
  min-height: 72px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 14px 45px rgba(5, 46, 34, .09);
  backdrop-filter: blur(18px) saturate(1.25);
}

body.home-page .site-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px) saturate(1.2);
}

.site-header.is-scrolled,
body.site-page .site-header.is-scrolled,
body.admin-theme .site-header.is-scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 16px 46px rgba(5, 46, 34, .14);
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.brand img {
  height: auto;
  transition: transform .35s var(--pro-ease), filter .35s ease;
}

.brand:hover img {
  transform: translateY(-1px) scale(1.018);
  filter: saturate(1.08);
}

.site-nav a {
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}

body.site-page .site-nav a::after,
body.admin-theme .site-nav a::after,
body.home-page .site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--pro-lime);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .28s var(--pro-ease);
}

body.site-page .site-nav a:hover::after,
body.site-page .site-nav a.is-active::after,
body.admin-theme .site-nav a:hover::after,
body.home-page .site-nav a:hover::after,
body.home-page .site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--pro-green), #116c4d) !important;
  box-shadow: 0 10px 26px rgba(11, 73, 53, .2) !important;
  transition: transform .25s var(--pro-ease), box-shadow .25s ease !important;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(11, 73, 53, .28) !important;
}

.admin-access {
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}

/* Botones y enlaces de acción */
.button,
.listing-tools button,
.carousel-btn,
.story-controls button,
.bank-modal-trigger {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  cursor: pointer;
  transition:
    transform .25s var(--pro-ease),
    box-shadow .25s ease,
    color .25s ease,
    background .25s ease,
    border-color .25s ease !important;
}

.button {
  min-height: 48px;
  border-radius: 12px !important;
  letter-spacing: .01em;
}

.button.primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--pro-coral), #bd4f2a) !important;
  box-shadow: 0 12px 28px rgba(190, 79, 41, .2) !important;
}

.button.secondary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--pro-green), #0f6548) !important;
  box-shadow: 0 12px 28px rgba(11, 73, 53, .18) !important;
}

.button.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .52) !important;
  background: rgba(255, 255, 255, .1) !important;
  backdrop-filter: blur(8px);
}

.button.ghost-dark {
  color: var(--pro-green) !important;
  border: 1px solid var(--pro-line) !important;
  background: #fff !important;
}

.button:hover,
.carousel-btn:hover,
.story-controls button:hover,
.bank-modal-trigger:hover {
  transform: translateY(-3px);
}

.button.primary:hover {
  box-shadow: 0 17px 36px rgba(190, 79, 41, .28) !important;
}

.button.secondary:hover {
  box-shadow: 0 17px 36px rgba(11, 73, 53, .26) !important;
}

.button:active,
.header-cta:active,
.listing-tools button:active {
  transform: translateY(0) scale(.98);
}

/* Jerarquía editorial */
.section-heading {
  position: relative;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-heading .eyebrow,
section > .eyebrow,
.category-hero .eyebrow,
.contact .eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: var(--pro-green);
  background: var(--pro-lime-soft);
  border: 1px solid rgba(123, 183, 29, .18);
  border-radius: 999px;
  line-height: 1;
}

.hero .eyebrow,
.category-hero .eyebrow,
.contact .eyebrow {
  color: #e1f9ad;
  background: rgba(156, 219, 22, .13);
  border-color: rgba(210, 245, 137, .25);
  backdrop-filter: blur(8px);
}

.section-heading h2,
.section > h2 {
  text-wrap: balance;
}

.section-heading p,
.section > p {
  line-height: 1.75;
}

/* Hero principal */
.home-page .hero {
  isolation: isolate;
}

.home-page .hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 31, 22, .93) 0%, rgba(4, 38, 27, .72) 47%, rgba(4, 38, 27, .18) 78%),
    linear-gradient(0deg, rgba(3, 28, 20, .55), transparent 55%);
}

.home-page .hero-content {
  text-shadow: 0 2px 20px rgba(0, 0, 0, .13);
}

.home-page .hero h1 {
  max-width: 900px;
  text-wrap: balance;
}

.home-page .hero-copy {
  max-width: 700px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.72;
}

.home-page .hero-stats {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(3, 35, 25, .34);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
  backdrop-filter: blur(14px);
}

.home-page .hero-stats > div {
  padding: 18px 20px;
}

.home-page .hero-stats > div + div {
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.home-page .hero-dots button {
  transition: width .3s var(--pro-ease), background .3s ease, transform .3s ease;
}

.home-page .hero-dots button.is-active {
  width: 34px;
  border-radius: 999px;
}

/* Buscador, indicadores y paneles */
.home-page .quick-search {
  border: 1px solid rgba(11, 73, 53, .1);
  border-radius: 20px;
  box-shadow: var(--pro-shadow-lg);
}

.home-page .quick-search :where(select, input),
.contact-form :where(input, select, textarea),
.credit-form :where(input:not([type="range"]):not([type="radio"]), select),
.admin-form :where(input, select, textarea) {
  border: 1px solid rgba(11, 73, 53, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.home-page .quick-search :where(select, input):focus,
.contact-form :where(input, select, textarea):focus,
.credit-form :where(input:not([type="range"]):not([type="radio"]), select):focus,
.admin-form :where(input, select, textarea):focus {
  outline: 0;
  border-color: var(--pro-lime);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(156, 219, 22, .14);
}

.trust-strip,
.market-panel,
.category-intel,
.learning-route,
.example-case,
.official-sources {
  border: 1px solid var(--pro-line);
  box-shadow: var(--pro-shadow-sm);
}

.trust-strip > div,
.market-metrics > div {
  position: relative;
}

.trust-strip strong,
.market-metrics strong {
  color: var(--pro-green);
}

/* Tarjetas */
.property-card,
.category-grid > *,
.service-suite > *,
.services article,
.process-stepper > *,
.story-stage,
.lesson-block article,
.faq-section details,
.return-calculator form,
.admin-form-section,
.admin-list article,
.empty-state {
  border-color: var(--pro-line) !important;
  border-radius: var(--pro-radius) !important;
  box-shadow: var(--pro-shadow-sm);
  transition:
    transform .32s var(--pro-ease),
    box-shadow .32s ease,
    border-color .32s ease;
}

.property-card:hover,
.category-grid > *:hover,
.service-suite > *:hover,
.services article:hover,
.process-stepper > *:hover,
.admin-list article:hover {
  z-index: 1;
  border-color: rgba(11, 73, 53, .22) !important;
  box-shadow: var(--pro-shadow-md);
  transform: translateY(-6px);
}

.property-card {
  overflow: hidden;
  background: var(--pro-surface);
}

.property-card > a:first-child,
.property-card figure {
  overflow: hidden;
}

.property-card img {
  transition: transform .65s var(--pro-ease), filter .4s ease;
}

.property-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.05) contrast(1.02);
}

.property-card-operation {
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(5, 46, 34, .14);
  backdrop-filter: blur(10px);
}

.property-card-description {
  line-height: 1.65;
}

/* Páginas de categorías */
.site-page .category-hero {
  min-height: 570px;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 22px 60px rgba(5, 46, 34, .16);
}

.site-page .category-hero::before {
  background:
    linear-gradient(90deg, rgba(3, 31, 22, .91), rgba(4, 39, 28, .63) 52%, rgba(4, 39, 28, .18)),
    linear-gradient(0deg, rgba(3, 31, 22, .55), transparent 62%);
}

.category-hero-content h1 {
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .22);
}

.category-hero-metrics {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(4, 39, 28, .35);
  backdrop-filter: blur(12px);
}

.listing-tools {
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--pro-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--pro-shadow-sm);
  backdrop-filter: blur(12px);
}

.listing-tools button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--pro-muted);
  background: transparent;
  font-weight: 800;
}

.listing-tools button:hover {
  color: var(--pro-green);
  background: var(--pro-lime-soft);
}

.listing-tools button.is-active {
  color: #fff;
  background: var(--pro-green);
  box-shadow: 0 8px 18px rgba(11, 73, 53, .2);
}

.category-intel {
  border-radius: var(--pro-radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(243,248,239,.96));
}

.category-intel strong {
  text-wrap: balance;
}

/* Simulador y formularios */
.credit-simulator {
  border: 1px solid var(--pro-line) !important;
  border-radius: var(--pro-radius-lg) !important;
  box-shadow: var(--pro-shadow-md) !important;
}

.credit-copy {
  background:
    radial-gradient(circle at 90% 8%, rgba(156, 219, 22, .2), transparent 17rem),
    linear-gradient(150deg, var(--pro-green), var(--pro-green-deep)) !important;
}

.credit-admin-card,
.credit-form,
.credit-bank-launcher,
.bank-comparison-wrap {
  border-color: var(--pro-line) !important;
}

.credit-admin-card {
  box-shadow: 0 7px 22px rgba(8, 46, 34, .055);
}

.credit-step-badge {
  background: linear-gradient(135deg, var(--pro-green), #137252) !important;
  box-shadow: 0 7px 16px rgba(11, 73, 53, .16);
}

.credit-results > div,
.selected-rate,
.bank-option {
  transition: transform .25s var(--pro-ease), box-shadow .25s ease, border-color .25s ease;
}

.credit-results > div:hover,
.bank-option:hover {
  transform: translateY(-3px);
  box-shadow: var(--pro-shadow-sm);
}

.bank-option.is-selected {
  border-color: var(--pro-green) !important;
  box-shadow: 0 0 0 3px rgba(156, 219, 22, .17) !important;
}

.credit-bank-modal {
  backdrop-filter: blur(10px);
}

.credit-modal-panel {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(3, 28, 20, .35);
}

/* Contacto */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px;
  right: -110px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(156, 219, 22, .16);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(156, 219, 22, .035),
    0 0 0 86px rgba(156, 219, 22, .025);
}

.mini-contact {
  border-radius: var(--pro-radius-lg);
  box-shadow: var(--pro-shadow-lg);
}

.contact-card {
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

/* Blog */
.blog-page .blog-hero {
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 22px 60px rgba(5, 46, 34, .16);
}

.blog-page .faq-section details {
  overflow: hidden;
  background: rgba(255, 255, 255, .82);
}

.blog-page .faq-section summary {
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.blog-page .faq-section summary:hover {
  color: var(--pro-green);
  background: rgba(156, 219, 22, .08);
}

/* Administración */
.admin-theme .admin-shell {
  border-radius: var(--pro-radius-lg);
}

.admin-theme .admin-form-section,
.admin-theme .admin-list article {
  background: rgba(255, 255, 255, .92);
}

.admin-theme .admin-form-section:hover {
  box-shadow: var(--pro-shadow-md);
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at 12% 18%, rgba(156, 219, 22, .11), transparent 23rem),
    linear-gradient(145deg, #073426, #041f17) !important;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 219, 22, .65), transparent);
  transform: translateX(-50%);
}

.footer-brand img {
  width: min(210px, 100%) !important;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

.footer-nav a,
.footer-contact a {
  transition: color .2s ease, transform .2s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--pro-lime);
  transform: translateX(3px);
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, .1) !important;
}

/* Utilidades flotantes */
.floating-whatsapp,
.floating-uf-card {
  border: 1px solid rgba(11, 73, 53, .13);
  box-shadow: 0 16px 42px rgba(4, 35, 25, .2);
}

.floating-whatsapp {
  transition: transform .28s var(--pro-ease), box-shadow .28s ease, background .28s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.02);
}

/* Paridad visual entre inicio y páginas públicas interiores */
body.site-page {
  --theme-green: var(--pro-green);
  --theme-green-dark: var(--pro-green-deep);
  --theme-lime: var(--pro-lime);
  --theme-orange: var(--pro-coral);
  --theme-cream: var(--pro-canvas);
  --theme-ink: var(--pro-ink);
  --theme-muted: var(--pro-muted);
  --theme-line: rgba(11, 73, 53, .13);
  --theme-radius: 18px;
  --theme-shadow: var(--pro-shadow-md);
}

body.site-page main {
  background:
    radial-gradient(circle at 7% 36%, rgba(156, 219, 22, .065), transparent 22rem),
    linear-gradient(180deg, #fff 0, #f7f8f4 58%, #fff 100%);
}

body.site-page .site-header {
  grid-template-columns: 190px minmax(0, 1fr) auto auto;
  gap: 22px;
  padding: 13px max(24px, calc((100vw - 1280px) / 2));
}

body.site-page .brand img {
  width: 166px;
}

body.site-page .site-nav {
  gap: clamp(13px, 1.45vw, 24px);
  font-size: 12px;
}

body.site-page .category-hero {
  min-height: 650px;
  padding-top: 160px;
  padding-bottom: 86px;
}

body.site-page .featured-category-hero > .category-hero-content,
body.site-page .category-hero > div {
  width: min(1180px, calc(100% - 40px));
}

body.site-page .featured-category-hero h1,
body.site-page .category-hero h1 {
  max-width: 820px;
  color: #fff;
  font-size: clamp(50px, 6vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
}

body.site-page .featured-category-hero .category-hero-content > p:not(.eyebrow),
body.site-page .category-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
  line-height: 1.72;
}

body.site-page .back-link {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

body.site-page .back-link:hover {
  color: var(--pro-green-deep);
  background: #fff;
  transform: translateX(-3px);
}

body.site-page .category-hero-actions {
  margin-top: 30px;
}

body.site-page .category-hero-metrics {
  max-width: 720px;
  margin-top: 38px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .11);
}

body.site-page .category-hero-metrics div {
  min-height: 78px;
  padding: 18px 20px;
}

body.site-page .listing-tools,
body.site-page .category-intel,
body.site-page .category-listing,
body.site-page .mini-contact {
  width: min(1180px, calc(100% - 40px));
}

body.site-page .listing-tools {
  position: relative;
  z-index: 3;
  margin-top: -28px;
  padding: 12px;
  box-shadow: 0 18px 46px rgba(8, 46, 34, .12);
}

body.site-page .listing-tools button {
  min-height: 42px;
  border-radius: 10px;
  font-size: 11px;
}

body.site-page .category-intel {
  position: relative;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 70px);
  margin-top: 22px;
  padding: 30px 34px;
  overflow: hidden;
}

body.site-page .category-intel::after {
  content: "";
  position: absolute;
  top: -42px;
  right: -42px;
  width: 120px;
  height: 120px;
  border: 20px solid rgba(156, 219, 22, .08);
  border-radius: 50%;
}

body.site-page .category-intel span {
  display: block;
  margin-bottom: 7px;
  color: var(--pro-coral);
  font-weight: 900;
}

body.site-page .category-intel strong {
  display: block;
  color: var(--pro-green-deep);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.2;
}

body.site-page .category-intel p {
  position: relative;
  z-index: 1;
  align-self: center;
  font-size: 14px;
  line-height: 1.75;
}

body.site-page .section.category-listing {
  min-height: 360px;
  padding: 80px 0 96px;
}

body.site-page .category-listing .property-card {
  border-radius: 20px !important;
  box-shadow: 0 13px 36px rgba(8, 46, 34, .09);
}

body.site-page .category-listing .empty-state {
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 42px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(156, 219, 22, .1), transparent 18rem),
    rgba(255, 255, 255, .9);
  border: 1px dashed rgba(11, 73, 53, .23) !important;
}

body.site-page .category-listing .empty-state::before {
  content: "EA";
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--pro-green), #147552);
  border-radius: 13px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  place-items: center;
  box-shadow: 0 10px 24px rgba(11, 73, 53, .18);
}

body.site-page .category-listing .empty-state strong {
  color: var(--pro-green-deep);
  font-size: clamp(20px, 2.2vw, 28px);
}

body.site-page .category-listing .empty-state p {
  max-width: 520px;
  margin: 9px auto 0;
  line-height: 1.7;
}

body.site-page .mini-contact {
  grid-template-columns: minmax(0, 1.3fr) auto minmax(230px, .7fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: 0;
  margin-bottom: 90px;
  padding: clamp(32px, 5vw, 58px);
  background:
    radial-gradient(circle at 90% 0, rgba(156, 219, 22, .19), transparent 20rem),
    linear-gradient(145deg, var(--pro-green), var(--pro-green-deep));
}

body.site-page .mini-contact h2 {
  max-width: 680px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.03;
  text-wrap: balance;
}

body.site-page .mini-contact .contact-card {
  padding: 18px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .1);
}

body.site-page .mini-contact .contact-card a {
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

body.site-page .mini-contact .contact-card a:hover {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .13);
  transform: translateX(3px);
}

body.site-page .simulator-page-scope {
  padding-top: 10px;
  padding-bottom: 92px;
  background:
    linear-gradient(180deg, #fff, #f2f6ef);
}

body.site-page .site-footer {
  padding-top: 60px;
}

/* Educación financiera con el mismo sistema de tarjetas del inicio */
body.blog-page .blog-hero {
  min-height: 690px;
}

body.blog-page .blog-hero h1 {
  max-width: 840px;
  font-size: clamp(52px, 6vw, 84px);
  letter-spacing: -.055em;
  text-wrap: balance;
}

body.blog-page .blog-hero-content > p:not(.eyebrow) {
  line-height: 1.75;
}

body.blog-page .blog-hero dl {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  background: rgba(3, 35, 25, .32);
  backdrop-filter: blur(12px);
}

body.blog-page .blog-hero dl div {
  min-height: 82px;
  padding: 16px 18px;
}

body.blog-page .blog-hero dl div + div {
  border-left: 1px solid rgba(255, 255, 255, .12);
}

body.blog-page .blog-topic-nav {
  margin-top: -30px;
  padding: 9px;
  border: 1px solid var(--pro-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--pro-shadow-md);
  backdrop-filter: blur(14px);
}

body.blog-page .blog-topic-nav a {
  min-height: 48px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

body.blog-page .blog-topic-nav a:hover {
  transform: translateY(-2px);
}

body.blog-page .section {
  padding-top: 100px;
  padding-bottom: 100px;
}

body.blog-page .learning-steps article,
body.blog-page .example-flow article,
body.blog-page .return-results article,
body.blog-page .sources-grid a {
  border-color: var(--pro-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(8, 46, 34, .065);
  transition: transform .3s var(--pro-ease), box-shadow .3s ease, border-color .3s ease;
}

body.blog-page .learning-steps article:hover,
body.blog-page .example-flow article:hover,
body.blog-page .return-results article:hover,
body.blog-page .sources-grid a:hover {
  border-color: rgba(11, 73, 53, .23);
  box-shadow: var(--pro-shadow-md);
  transform: translateY(-5px);
}

body.blog-page .learning-steps article {
  overflow: hidden;
}

body.blog-page .learning-steps article::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 90px;
  height: 90px;
  border: 16px solid rgba(156, 219, 22, .09);
  border-radius: 50%;
}

body.blog-page .lesson-callout {
  border-radius: 0 12px 12px 0;
  box-shadow: 0 8px 24px rgba(8, 46, 34, .06);
}

body.blog-page .example-case,
body.blog-page .return-calculator,
body.blog-page .official-sources {
  border-radius: 24px !important;
  box-shadow: var(--pro-shadow-md);
}

body.blog-page .faq-toolbar {
  padding: 12px 16px;
  border-color: var(--pro-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--pro-shadow-sm);
}

@media (prefers-reduced-motion: no-preference) {
  .property-card,
  .category-grid > *,
  .service-suite > *,
  .process-stepper > * {
    will-change: transform;
  }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 92px; }

  body.site-page .site-header,
  body.admin-theme .site-header {
    top: 8px;
    left: 10px;
    right: 10px;
    border-radius: 14px;
  }

  .site-nav.is-open {
    top: calc(100% + 8px);
    overflow: hidden;
    border: 1px solid var(--pro-line) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: var(--pro-shadow-md) !important;
    backdrop-filter: blur(18px);
  }

  .site-nav.is-open a {
    padding: 13px 15px !important;
    border-radius: 9px !important;
  }

  .menu-toggle {
    border-color: var(--pro-line);
    border-radius: 10px;
    background: #fff;
  }

  .site-page .category-hero,
  .blog-page .blog-hero {
    border-radius: 0 0 24px 24px;
  }

  .home-page .hero-stats > div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }

  body.site-page .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding-inline: 20px;
  }

  body.site-page .category-hero {
    min-height: 600px;
  }

  body.site-page .category-intel,
  body.site-page .mini-contact {
    grid-template-columns: 1fr;
  }

  body.site-page .mini-contact .button {
    justify-self: start;
  }

  body.blog-page .blog-hero dl div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
}

@media (max-width: 640px) {
  :root {
    --pro-radius: 15px;
    --pro-radius-lg: 20px;
  }

  html { scroll-padding-top: 82px; }

  body.site-page .site-header,
  body.admin-theme .site-header {
    top: 6px;
    left: 7px;
    right: 7px;
  }

  body.home-page .site-header,
  body.site-page .site-header,
  body.admin-theme .site-header {
    grid-template-columns: minmax(0, 1fr) 42px !important;
    gap: 10px !important;
  }

  body.home-page .menu-toggle,
  body.site-page .menu-toggle,
  body.admin-theme .menu-toggle {
    grid-column: 2 !important;
    justify-self: end;
  }

  .brand img {
    max-width: 136px;
  }

  .button {
    min-height: 46px;
    width: 100%;
    justify-content: center;
  }

  .hero-actions,
  .category-hero-actions {
    align-items: stretch;
  }

  .home-page .hero-stats {
    border-radius: 14px;
  }

  .home-page .hero h1 {
    max-width: 100%;
    font-size: clamp(40px, 12vw, 52px) !important;
    overflow-wrap: break-word;
  }

  .home-page .quick-search {
    border-radius: 16px;
  }

  .site-page .category-hero,
  .blog-page .blog-hero {
    min-height: 520px;
    border-radius: 0 0 18px 18px;
  }

  body.site-page .category-hero {
    min-height: 610px;
    padding-top: 130px;
    padding-bottom: 72px;
  }

  body.site-page .featured-category-hero h1,
  body.site-page .category-hero h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  body.site-page .listing-tools,
  body.site-page .category-intel,
  body.site-page .category-listing,
  body.site-page .mini-contact {
    width: min(100% - 28px, 1180px);
  }

  body.site-page .category-intel {
    padding: 24px 20px;
  }

  body.site-page .section.category-listing {
    padding: 58px 0 72px;
  }

  body.site-page .mini-contact {
    margin-bottom: 64px;
    padding: 28px 22px;
  }

  body.site-page .mini-contact .button {
    justify-self: stretch;
  }

  body.blog-page .blog-hero {
    min-height: 650px;
  }

  body.blog-page .blog-hero h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  body.blog-page .blog-topic-nav {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  body.blog-page .blog-topic-nav::-webkit-scrollbar {
    display: none;
  }

  body.blog-page .blog-topic-nav a {
    flex: 0 0 auto;
    padding-inline: 14px;
  }

  .listing-tools {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 8px;
    scrollbar-width: none;
  }

  .listing-tools::-webkit-scrollbar {
    display: none;
  }

  .listing-tools button {
    flex: 0 0 auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .property-card:hover,
  .category-grid > *:hover,
  .service-suite > *:hover,
  .services article:hover,
  .process-stepper > *:hover {
    transform: translateY(-3px);
  }

  .footer-brand img {
    width: 180px !important;
  }

  .floating-uf-card {
    box-shadow: 0 10px 28px rgba(4, 35, 25, .16);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
