/* ==========================================================================
   ESTUDIO XIE BINBIN - ARQUITECTURA & DISEÑO SOSTENIBLE S.R.L.
   Estética: Minimalismo arquitectónico, materiales nobles, hormigón y madera
   ========================================================================== */

:root {
  --bg-body: #fbfbfa;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-muted: #f4f4f0;
  --bg-dark: #191c1f;
  --bg-dark-surface: #23272b;
  --border-subtle: #e2e4dc;
  --border-dark: #343a40;
  --text-main: #1d2125;
  --text-secondary: #586069;
  --text-muted: #7f8a96;
  --arch-terracotta: #c25e38;
  --arch-terracotta-hover: #a84c2a;
  --arch-green: #3d6a45;
  --arch-blue: #0284c7;
  --alert-red: #dc2626;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
  --transition: all 0.22s ease-in-out;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Notice Bar */
.top-notice-bar {
  background-color: var(--bg-dark);
  color: #caced3;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dark);
}

.top-notice-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Site Header */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--bg-dark);
  color: var(--arch-terracotta);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--bg-dark);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Nav */
.desktop-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 2px;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--arch-terracotta);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--arch-terracotta);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-main);
}

/* Mobile Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100%;
  background: var(--bg-dark);
  z-index: 2000;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-dark);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

.drawer-links {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.drawer-links a {
  color: #caced3;
  font-size: 0.92rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-links a:hover, .drawer-links a.active {
  color: var(--arch-terracotta);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--arch-terracotta);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--arch-terracotta-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--bg-dark);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: #cbd0d6;
}

/* Hero Section */
.hero-section {
  padding: 64px 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdf2ee;
  color: var(--arch-terracotta);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 18px;
  border: 1px solid #fae2d9;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.18;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stats */
.stats-banner {
  background: var(--bg-dark);
  color: #fff;
  padding: 42px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-box {
  text-align: center;
  padding: 12px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--arch-terracotta);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: #a8b0b8;
  font-weight: 500;
}

/* Content Sections */
.content-section {
  padding: 68px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Feature Cards */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd0d6;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-block;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--arch-terracotta);
  box-shadow: 0 0 0 3px rgba(194, 94, 56, 0.15);
}

/* Accordion */
.accordion-item {
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  margin-bottom: 12px;
  background: #ffffff;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: #ffffff;
  border: none;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--bg-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--bg-muted);
}

.accordion-body {
  padding: 0 22px 20px;
  display: none;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
}

.accordion-item.active .accordion-body {
  display: block;
}

.alert {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #a8b0b8;
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-dark);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-col-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 0.88rem;
  color: #a8b0b8;
}

.footer-links a:hover {
  color: var(--arch-terracotta);
  padding-left: 3px;
}

.afip-badge-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 14px;
}

.afip-svg-box {
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #7f8a96;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-nav, .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .top-notice-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.card-img-top { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); }
.footer-brand { display: block; }

/* === BESPOKE DESIGN IDENTITY === */

:root {
  --bg-body: #f0eee6;
  --bg-card: #ffffff;
  --border-subtle: #141413;
  --arch-terracotta: #d94e28;
  --font-display: 'Archivo', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-main: 'DM Sans', sans-serif;
  --radius: 0px;
}
body {
  background-color: #f0eee6 !important;
  color: #141413 !important;
  font-family: var(--font-main) !important;
}
.brutalist-arch-header {
  background: #f0eee6 !important;
  border-top: 2px solid #141413 !important;
  border-bottom: 2px solid #141413 !important;
  box-shadow: none !important;
}
.brutalist-grid-bar {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: stretch;
}
.brutalist-cell {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-right: 1.5px solid #141413;
}
.brutalist-brand-cell {
  gap: 12px;
  background: #ffffff;
}
.arch-square-mark {
  background: #141413;
  color: #f0eee6;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 8px;
}
.brutalist-nav-cell {
  gap: 14px;
  justify-content: center;
}
.brutalist-nav-cell .nav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #141413 !important;
  padding: 6px 8px;
}
.brutalist-nav-cell .nav-link:hover, .brutalist-nav-cell .nav-link.active {
  background: #141413 !important;
  color: #f0eee6 !important;
}
.brutalist-meta-cell {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: #e5e2d7;
}
.brutalist-action-cell {
  border-right: none;
  background: #d94e28;
  padding: 0;
}
.arch-cta-block {
  color: #ffffff !important;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-section {
  background: #f0eee6 !important;
  border-bottom: 2px solid #141413 !important;
}
.badge-tag {
  border-radius: 0 !important;
  background: #141413 !important;
  color: #f0eee6 !important;
  font-family: var(--font-mono);
  border: none !important;
}
.card-img-top, .hero-section img {
  border-radius: 0 !important;
  border: 2px solid #141413 !important;
  box-shadow: 8px 8px 0 #141413 !important;
}
.feature-card, .accordion-item {
  border: 1.5px solid #141413 !important;
  border-radius: 0 !important;
  box-shadow: 6px 6px 0 #141413 !important;
  background: #ffffff !important;
}
.btn {
  border-radius: 0 !important;
  font-family: var(--font-mono);
  text-transform: uppercase;
  border: 1.5px solid #141413 !important;
  box-shadow: 4px 4px 0 #141413;
}
.stats-banner {
  background: #141413 !important;
  border-bottom: 2px solid #141413;
}
@media (max-width: 1024px) {
  .brutalist-grid-bar { grid-template-columns: 1fr auto; }
  .brutalist-nav-cell, .brutalist-meta-cell { display: none; }
  .brutalist-action-cell { padding: 10px 16px; }
}

/* === HERO GEOMETRY PATCH === */

.hero-grid {
  gap: 0 !important;
  border: 2px solid #141413;
  background: #ffffff;
  box-shadow: 10px 10px 0 #141413;
}
.hero-grid > div:first-child {
  padding: 44px;
  border-right: 2px solid #141413;
}
.hero-grid > div:last-child {
  padding: 24px;
  background: #e5e2d7;
}
.hero-grid img {
  box-shadow: none !important;
}

/* === UNIQUE MAIN STRUCTURE: xiebinbin.com === */
.xie-blueprint-section {
  padding: 36px 0 48px;
}
.xie-sheet-frame {
  border: 2px solid #18181b;
  background: #ffffff;
}
.xie-sheet-top {
  display: grid;
  grid-template-columns: 1fr 330px;
  border-bottom: 2px solid #18181b;
}
.xie-sheet-main {
  padding: 48px 44px;
  border-right: 2px solid #18181b;
}
.xie-plan-stamp {
  display: inline-flex;
  gap: 16px;
  border: 1px solid #18181b;
  padding: 6px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #f4f3ef;
  margin-bottom: 24px;
}
.xie-sheet-title {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #18181b;
  margin-bottom: 20px;
}
.xie-sheet-lead {
  font-size: 1.06rem;
  line-height: 1.65;
  color: #3f3f46;
  margin-bottom: 32px;
  max-width: 680px;
}
.xie-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.xie-sheet-specs {
  display: flex;
  flex-direction: column;
  background: #f4f3ef;
}
.xie-spec-header {
  padding: 14px 20px;
  background: #18181b;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.xie-spec-cell {
  padding: 18px 20px;
  border-bottom: 1px solid #18181b;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.xie-spec-cell:last-child {
  border-bottom: none;
}
.xie-spec-k {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #71717a;
}
.xie-spec-v {
  font-family: 'Syne', sans-serif;
  font-size: 1.55rem;
  color: #18181b;
  margin: 2px 0;
}
.xie-spec-cell small {
  font-size: 0.8rem;
  color: #52525b;
}
.xie-sheet-panorama img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.xie-panorama-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  background: #18181b;
  color: #f4f3ef;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  font-family: monospace;
}
.xie-index-section {
  padding: 40px 0 64px;
}
.xie-index-head {
  margin-bottom: 28px;
}
.xie-index-head span {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #b45309;
  margin-bottom: 6px;
}
.xie-index-head h2 {
  font-size: 2rem;
  color: #18181b;
  margin: 0;
}
.xie-ledger-table {
  border: 2px solid #18181b;
  background: #ffffff;
}
.xie-ledger-row {
  display: grid;
  grid-template-columns: 90px 1.2fr 1.8fr 170px 130px;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid #18181b;
}
.xie-ledger-row:last-child {
  border-bottom: none;
}
.xie-ledger-th {
  background: #18181b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 12px 24px;
}
.xie-code {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.9rem;
  color: #b45309;
}
.xie-disc h3 {
  font-size: 1.15rem;
  margin: 0;
  color: #18181b;
}
.xie-desc {
  margin: 0;
  font-size: 0.92rem;
  color: #3f3f46;
  line-height: 1.55;
}
.xie-norm {
  font-size: 0.78rem;
  font-weight: 700;
  background: #f4f3ef;
  border: 1px solid #d4d4d8;
  padding: 6px 10px;
  text-align: center;
}
.xie-link {
  font-weight: 700;
  font-size: 0.86rem;
  color: #18181b;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: right;
}
.xie-link:hover {
  color: #b45309;
}
.xie-monograph-section {
  padding: 0 0 72px;
}
.xie-mono-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.xie-mono-item {
  margin: 0;
  border: 2px solid #18181b;
  background: #ffffff;
}
.xie-mono-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #18181b;
}
.xie-mono-item figcaption {
  padding: 14px 16px;
}
.xie-mono-item strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #18181b;
}
.xie-mono-item span {
  font-size: 0.82rem;
  color: #52525b;
}
@media (max-width: 960px) {
  .xie-sheet-top,
  .xie-ledger-row,
  .xie-mono-grid {
    grid-template-columns: 1fr;
  }
  .xie-sheet-main {
    border-right: none;
    border-bottom: 2px solid #18181b;
  }
  .xie-ledger-th {
    display: none;
  }
}

/* === MOBILE OPTIMIZATION PATCH === */
/* === GLOBAL MOBILE & TABLET RESPONSIVENESS === */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
img, svg, video, canvas {
  max-width: 100%;
}
@media (max-width: 992px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-toggle,
  #mobileMenuToggle,
  #mobileMenuBtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
    line-height: 1;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
  }
}
@media (max-width: 768px) {
  .container,
  .section-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .cards-grid-2,
  .cards-grid-3,
  .cards-grid-4,
  .stats-grid,
  .footer-grid,
  .footer-top,
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .hero-section,
  .content-section,
  .section-py {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }
  .hero-title,
  .section-title,
  .legal-title {
    font-size: clamp(1.65rem, 6vw, 2.15rem) !important;
    line-height: 1.18 !important;
    word-break: break-word;
  }
  .card,
  .feature-card,
  .form-card,
  .legal-container,
  .legal-page-content {
    padding: 20px 16px !important;
  }
  .afip-badge-wrap,
  .fiscal-badge-box {
    flex-direction: column;
    align-items: flex-start !important;
  }
}
@media (max-width: 992px) {
  .brutalist-nav-cell,
  .brutalist-meta-cell,
  .arch-cta-block {
    display: none !important;
  }
  .brutalist-grid-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #ffffff !important;
  }
  .brutalist-brand-cell {
    border-right: none !important;
    padding: 10px 14px !important;
  }
  .brutalist-action-cell {
    background: transparent !important;
    padding: 8px 14px !important;
  }
  #mobileMenuToggle {
    color: #141413 !important;
    border: 2px solid #141413 !important;
    background: #f0eee6 !important;
    border-radius: 0 !important;
  }
  .xie-sheet-main {
    padding: 24px 16px !important;
  }
  .xie-plan-stamp {
    flex-direction: column !important;
    gap: 4px !important;
    font-size: 0.66rem !important;
  }
  .xie-sheet-title {
    font-size: 1.8rem !important;
  }
  .xie-sheet-actions .btn {
    width: 100%;
    text-align: center;
  }
  .xie-sheet-panorama img {
    height: 220px !important;
  }
  .xie-panorama-bar {
    flex-direction: column !important;
    gap: 4px !important;
    font-size: 0.64rem !important;
    padding: 10px 14px !important;
  }
  .xie-index-head h2 {
    font-size: 1.55rem !important;
  }
  .xie-ledger-row {
    padding: 18px 16px !important;
    gap: 8px !important;
  }
  .xie-link {
    text-align: left !important;
  }
}

/* === INLINE GRID & MOBILE OVERRIDES === */
@media (max-width: 960px) {
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  [style*="grid-column: span"] {
    grid-column: 1 / -1 !important;
  }
  [style*="border-right: 1px solid"],
  [style*="border-left: 1px solid"] {
    border-right: none !important;
    border-left: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
}
@media (max-width: 768px) {
  [style*="padding: 52px"],
  [style*="padding: 48px"],
  [style*="padding: 44px"],
  [style*="padding: 36px"],
  [style*="padding: 32px"] {
    padding: 22px 18px !important;
  }
  [style*="font-size: 3."],
  [style*="font-size: 2.9rem"],
  [style*="font-size: 2.8rem"],
  [style*="font-size: 2.7rem"],
  [style*="font-size: 2.65rem"] {
    font-size: 1.85rem !important;
    line-height: 1.15 !important;
  }
  [style*="font-size: 2.4rem"],
  [style*="font-size: 2.3rem"],
  [style*="font-size: 2.2rem"] {
    font-size: 1.55rem !important;
    line-height: 1.2 !important;
  }
  [style*="border-bottom: 2px dotted"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
}

/* === MOBILE DRAWER & 360PX PHONE POLISH === */
.mobile-nav-drawer,
.mobile-drawer {
  max-width: 86vw !important;
}
.mobile-nav-drawer .mobile-nav-links a,
.mobile-drawer .drawer-links a {
  color: #e2e8f0 !important;
}
.mobile-nav-drawer .mobile-nav-links a:hover,
.mobile-nav-drawer .mobile-nav-links a.active,
.mobile-drawer .drawer-links a:hover,
.mobile-drawer .drawer-links a.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
@media (max-width: 480px) {
  .brand-subtitle,
  .brand-sub {
    display: none !important;
  }
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
}
