:root {
  --navy-950: #08172f;
  --navy-900: #0d2242;
  --navy-800: #15335d;
  --gold-500: #c6a45c;
  --gold-300: #ead39a;
  --white: #ffffff;
  --text: #10233f;
  --shadow: 0 24px 60px rgba(5, 17, 35, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(198, 164, 92, 0.18), transparent 24%),
    linear-gradient(180deg, #061225 0%, #0a1e3a 30%, #f2f4f8 30%, #f8f8f6 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.urgent-banner {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c5952f, #f1dfb0);
  color: var(--navy-950);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(12, 26, 49, 0.22);
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #24d366, #128c7e);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(18, 140, 126, 0.35);
}

.hero {
  position: relative;
  padding: 72px clamp(20px, 4vw, 64px) 72px;
  color: var(--white);
  overflow: hidden;
}

.hero-home {
  background:
    linear-gradient(180deg, rgba(5, 14, 28, 0.82) 0%, rgba(6, 18, 37, 0.7) 100%),
    url("assets/hero-civil-team.png") center center / cover no-repeat;
}

.hero-penal {
  background:
    linear-gradient(180deg, rgba(5, 14, 28, 0.86) 0%, rgba(6, 18, 37, 0.64) 100%),
    url("assets/hero-civil-team.png") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 26, 0.58) 0%, rgba(6, 18, 37, 0.28) 32%, rgba(6, 18, 37, 0.12) 100%);
  pointer-events: none;
}

.hero-penal::after {
  content: "ESTUDIO JURIDICO";
  position: absolute;
  right: -18px;
  top: 140px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.04);
  transform: rotate(-90deg);
  transform-origin: top right;
  pointer-events: none;
}

.topbar,
.hero-content,
.section,
.footer {
  max-width: 1200px;
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.brand-logo {
  width: auto;
  height: auto;
  max-height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.42));
}

.topbar-actions {
  display: flex;
  gap: 20px;
  font-weight: 600;
  justify-content: center;
  flex-wrap: wrap;
}

.topbar-actions a {
  color: rgba(255, 255, 255, 0.84);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  justify-items: center;
  padding-top: 72px;
}

.hero-copy {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.specialties .eyebrow,
.intro .eyebrow,
.locations .eyebrow,
.contact .eyebrow,
.form-section .eyebrow,
.allied-services .eyebrow,
.conversion .eyebrow {
  color: var(--navy-800);
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  margin: 0;
}

.lead {
  margin: 24px auto 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.85;
}

.hero-subtitle {
  margin: 16px 0 0;
  color: var(--gold-300);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  color: var(--navy-950);
  background: linear-gradient(135deg, #f1dfb0, var(--gold-500));
  box-shadow: 0 12px 30px rgba(198, 164, 92, 0.28);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.admin-header .button-secondary {
  border-color: rgba(198, 164, 92, 0.34);
  background: linear-gradient(135deg, #f1dfb0, var(--gold-500));
  color: var(--navy-950);
  box-shadow: 0 12px 28px rgba(198, 164, 92, 0.18);
}

.section {
  padding: 88px clamp(20px, 4vw, 64px);
}

.specialties,
.allied-services,
.conversion,
.contact,
.locations,
.form-section {
  position: relative;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  justify-items: center;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
  max-width: 18ch;
  color: var(--navy-950);
  text-shadow: 0 10px 24px rgba(255, 255, 255, 0.55);
}

.intro {
  position: relative;
  text-align: center;
}

.intro::before,
.specialties::before {
  content: "";
  position: absolute;
  inset: 18px clamp(20px, 4vw, 64px) 18px;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 230, 0.92));
  box-shadow: 0 18px 42px rgba(17, 34, 63, 0.08);
}

.specialties::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(241, 244, 249, 0.98));
}

.intro-text {
  max-width: 70ch;
  margin: 0 auto;
  font-size: 1.06rem;
  line-height: 1.9;
}

.intro-text-emphasis {
  font-size: 1.18rem;
  line-height: 2;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(14, 34, 66, 0.08);
  box-shadow: 0 18px 40px rgba(17, 34, 63, 0.08);
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-900);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(13, 34, 66, 0.14);
  border-radius: 16px;
  background: rgba(248, 243, 232, 0.55);
  color: var(--text);
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.file-input {
  display: none;
}

.attachment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attachment-icons label {
  cursor: pointer;
}

.attachment-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(13, 34, 66, 0.08);
  color: var(--navy-900);
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.attachment-trigger:hover span {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(13, 34, 66, 0.12);
  background: rgba(198, 164, 92, 0.22);
}

.attachment-trigger.is-pressed span {
  transform: scale(0.96);
  background: linear-gradient(135deg, #f1dfb0, var(--gold-500));
  color: var(--navy-950);
}

.field-note {
  font-size: 0.92rem;
  font-weight: 500;
  color: #5d6c84;
}

.form-span {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-actions p {
  margin: 0;
  max-width: 44ch;
  color: #4f617b;
  font-weight: 500;
}

.location-grid,
.specialty-grid,
.conversion-grid,
.allied-grid {
  display: grid;
  gap: 22px;
  align-items: stretch;
}

.specialty-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
}

.penal-page .specialty-grid {
  grid-template-columns: repeat(3, minmax(260px, 320px));
  justify-content: center;
  max-width: 1040px;
}

.ads-preview-page .allied-grid {
  grid-template-columns: repeat(2, minmax(320px, 400px));
  justify-content: center;
  max-width: 1200px;
}

.ads-preview-page .specialty-grid {
  grid-template-columns: repeat(3, minmax(320px, 372px));
  justify-content: center;
  max-width: 1220px;
}

.allied-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  max-width: 1080px;
  margin: 0 auto;
}

.location-grid {
  grid-template-columns: repeat(2, minmax(280px, 360px));
  justify-content: center;
}

.conversion-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  max-width: 1120px;
  margin: 0 auto;
}

.location-card,
.contact-panel,
.specialty-card,
.conversion-card,
.allied-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(14, 34, 66, 0.08);
  box-shadow: 0 18px 40px rgba(17, 34, 63, 0.08);
}

.location-card,
.specialty-card,
.conversion-card,
.allied-card {
  padding: 26px;
  text-align: center;
}

.location-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  line-height: 1.05;
  color: var(--navy-950);
}

.specialty-card,
.allied-card,
.conversion-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.payment-status {
  margin: 22px auto 0;
  max-width: 46ch;
  text-align: center;
  font-weight: 700;
  color: var(--navy-900);
}

.payment-status-warning {
  color: #a53030;
}

.payment-result-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.payment-result {
  width: min(720px, 100%);
  padding: 42px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(5, 17, 35, 0.18);
  text-align: center;
}

.payment-result h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--navy-900);
}

.payment-result p {
  line-height: 1.8;
}

.payment-result-success {
  border: 1px solid rgba(36, 124, 74, 0.16);
}

.payment-result-failure {
  border: 1px solid rgba(165, 48, 48, 0.16);
}

.software-body {
  background:
    radial-gradient(circle at 12% 12%, rgba(198, 164, 92, 0.18), transparent 18%),
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(135deg, #06111f 0%, #0c1d36 52%, #132743 100%);
}

.software-page {
  min-height: 100vh;
  padding: 22px;
}

.software-gate {
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
}

.software-gate-card {
  width: min(720px, 100%);
  padding: 42px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(5, 17, 35, 0.2);
  text-align: center;
}

.software-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.software-sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 22px;
  padding: 26px 22px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(234, 211, 154, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(7, 18, 34, 0.98), rgba(12, 29, 54, 0.96));
  box-shadow: 0 28px 56px rgba(2, 8, 18, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.software-brand {
  padding: 4px 8px 8px;
}

.software-brand .eyebrow {
  color: rgba(234, 211, 154, 0.92);
}

.software-brand h1 {
  color: #fff8ea;
  font-size: clamp(2.1rem, 3vw, 2.95rem);
  line-height: 0.95;
}

.software-brand p:last-child {
  margin: 12px 0 0;
  line-height: 1.7;
  color: rgba(222, 229, 240, 0.78);
}

.software-nav-label {
  margin: 10px 8px 4px;
  color: rgba(234, 211, 154, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.software-nav {
  display: grid;
  gap: 10px;
}

.software-nav .admin-menu-button {
  width: 100%;
  min-height: 62px;
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  backdrop-filter: blur(16px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #eef3fb;
  padding: 14px 16px;
}

.software-nav .admin-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(234, 211, 154, 0.22), rgba(255, 255, 255, 0.08));
  color: #f3ddab;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.software-sidebar-footer {
  display: grid;
  gap: 14px;
  padding: 12px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.software-sidebar-footer .button-secondary {
  border-color: rgba(234, 211, 154, 0.28);
  background: linear-gradient(135deg, #f1dfb0, var(--gold-500));
  color: var(--navy-950);
}

.software-main {
  display: grid;
  gap: 22px;
  align-content: start;
}

.software-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 28px 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(234, 211, 154, 0.16), transparent 22%),
    linear-gradient(135deg, rgba(8, 22, 45, 0.96), rgba(16, 42, 77, 0.94));
  box-shadow: 0 28px 56px rgba(4, 12, 26, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.software-header h2 {
  color: #fff8ea;
}

.software-header-meta {
  margin: 10px 0 0;
  color: rgba(225, 233, 244, 0.82);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 68ch;
}

.software-header-actions {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto auto;
  gap: 12px;
  align-items: center;
}

.admin-page {
  min-height: 100vh;
  padding: 32px 20px;
}

.admin-gate,
.admin-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.admin-gate {
  padding: 42px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(5, 17, 35, 0.18);
  text-align: center;
}

.admin-gate h1,
.admin-header h1,
.admin-card h2 {
  color: var(--navy-900);
}

.admin-header h1 {
  color: var(--gold-500);
}

.admin-gate-form,
.admin-form {
  display: grid;
  gap: 14px;
}

.admin-gate-form {
  max-width: 420px;
  margin: 24px auto 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.admin-focus {
  margin-bottom: 22px;
}

.admin-focus-card {
  padding: 24px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(17, 34, 63, 0.08);
  display: grid;
  gap: 12px;
}

.admin-focus-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-inline-button {
  min-width: 116px;
}

.admin-focus-card h2 {
  color: var(--navy-900);
}

.admin-stat {
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(17, 34, 63, 0.08);
  display: grid;
  gap: 8px;
  text-align: center;
}

.admin-stat span {
  color: #5e708d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.admin-stat strong {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--navy-900);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.admin-grid-main {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-card {
  padding: 28px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(249, 245, 236, 0.94));
  box-shadow: 0 24px 46px rgba(8, 21, 40, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.admin-card-wide {
  grid-column: 1 / -1;
}

.admin-card-tall {
  min-height: 100%;
}

.admin-payments-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.admin-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.admin-ai-grid,
.admin-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.admin-dashboard-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.admin-stat-card {
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(234, 211, 154, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(10, 28, 52, 0.96), rgba(18, 44, 78, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
  box-shadow: 0 16px 30px rgba(9, 24, 47, 0.18);
}

.admin-stat-card span {
  color: rgba(233, 240, 250, 0.72);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.admin-stat-card strong {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #fff6e2;
}

.admin-doc-card {
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.94));
  border: 1px solid rgba(13, 34, 66, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.admin-doc-card h3 {
  margin-bottom: 14px;
  color: var(--navy-900);
}

.admin-list-compact {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.admin-clients-top {
  margin-bottom: 22px;
}

.admin-toolbar {
  margin-bottom: 22px;
}

.admin-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-toolbar-group .admin-input {
  flex: 1 1 220px;
}

.admin-toolbar-group + .admin-toolbar-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(13, 34, 66, 0.1);
}

.admin-toolbar-group-secondary {
  justify-content: flex-start;
}

.admin-menu-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 112px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid rgba(13, 34, 66, 0.1);
  border-radius: 22px;
  background: rgba(13, 34, 66, 0.04);
  color: var(--navy-900);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-menu-button-secondary {
  background: rgba(198, 164, 92, 0.1);
}

.admin-menu-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-menu-button.is-active {
  background: linear-gradient(135deg, #f1dfb0, var(--gold-500));
  color: var(--navy-950);
  border-color: rgba(198, 164, 92, 0.4);
  box-shadow: 0 12px 22px rgba(198, 164, 92, 0.2);
}

.admin-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  font-size: 1.1rem;
  font-weight: 800;
}

.admin-toolbar-note {
  margin-top: 16px;
  margin-bottom: 0;
}

.admin-total-strip {
  margin: 18px 0 22px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(13, 34, 66, 0.06);
  color: var(--navy-900);
  font-weight: 700;
}

.admin-total-strip strong {
  display: block;
  margin-bottom: 8px;
}

.admin-total-strip p {
  margin: 4px 0 0;
  font-weight: 600;
}

.admin-clients-top-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.admin-client-picker {
  margin-top: 18px;
}

.admin-client-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.admin-client-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(13, 34, 66, 0.12);
  border-radius: 999px;
  background: rgba(13, 34, 66, 0.05);
  color: var(--navy-900);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-client-chip.is-active {
  background: linear-gradient(135deg, #f1dfb0, var(--gold-500));
  color: var(--navy-950);
  border-color: rgba(198, 164, 92, 0.5);
}

.admin-client-workspace {
  margin-top: 22px;
}

.admin-panel-sheet {
  margin-bottom: 22px;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-case-picker {
  display: grid;
  gap: 8px;
}

.admin-case-note {
  margin: 0;
  color: #5d6c84;
  font-size: 0.92rem;
  line-height: 1.5;
}

.admin-client-header {
  margin-bottom: 22px;
}

.admin-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.admin-divider {
  height: 1px;
  margin: 22px 0;
  background: rgba(13, 34, 66, 0.12);
}

.admin-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(13, 34, 66, 0.14);
  border-radius: 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.admin-input:disabled,
.admin-form button:disabled,
.admin-form textarea:disabled,
.admin-form select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.admin-textarea {
  min-height: 104px;
  padding: 14px 16px;
  resize: vertical;
}

.admin-note {
  margin: 0 0 18px;
  line-height: 1.8;
}

.admin-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.admin-item {
  display: grid;
  gap: 8px;
  padding: 20px 20px 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(245, 248, 252, 0.94));
  border: 1px solid rgba(13, 34, 66, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.admin-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(198, 164, 92, 0.92), rgba(13, 34, 66, 0.88));
}

.admin-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(11, 27, 51, 0.1);
  border-color: rgba(198, 164, 92, 0.28);
}

.admin-item p + p {
  margin-top: -2px;
}

.admin-item-active {
  border-color: rgba(198, 164, 92, 0.52);
  box-shadow: inset 0 0 0 1px rgba(198, 164, 92, 0.22);
}

.admin-item strong {
  font-size: 1.08rem;
  color: var(--navy-900);
}

.admin-item span,
.admin-item p,
.admin-item a {
  margin: 0;
  line-height: 1.7;
}

.admin-item a {
  font-weight: 700;
  color: var(--navy-800);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.admin-mini-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(13, 34, 66, 0.12);
  background: rgba(13, 34, 66, 0.06);
  color: var(--navy-900);
}

.admin-timeline-item {
  text-align: left;
}

.admin-timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(13, 34, 66, 0.08);
  color: var(--navy-800);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-status-approved {
  background: rgba(31, 122, 72, 0.14);
  color: #1f7a48;
}

.admin-status-pending {
  background: rgba(168, 84, 18, 0.14);
  color: #9a530c;
}

.admin-status-unconfirmed {
  background: rgba(165, 48, 48, 0.14);
  color: #a53030;
}

.admin-empty {
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.admin-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(13, 34, 66, 0.06);
  color: var(--navy-900);
}

.admin-total strong {
  font-size: 1.6rem;
}

.specialty-detail {
  text-align: left;
  cursor: pointer;
  align-items: stretch;
}

.specialty-detail summary {
  list-style: none;
  display: grid;
  gap: 6px;
  align-content: start;
  justify-items: center;
}

.specialty-detail summary::-webkit-details-marker {
  display: none;
}

.specialty-detail summary span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--navy-900);
  text-align: center;
}

.allied-card h3 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.1;
  color: var(--navy-950);
}

.specialty-detail summary small,
.specialty-detail p,
.location-card p,
.conversion-card p,
.allied-card p,
.contact-panel p,
.contact-panel a {
  margin: 0;
  line-height: 1.75;
}

.specialty-detail summary small,
.allied-card p,
.conversion-card p {
  max-width: 30ch;
  margin-inline: auto;
}

.specialty-detail summary small {
  max-width: 26ch;
  line-height: 1.45;
}

.specialty-detail p {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(13, 34, 66, 0.1);
  text-align: center;
}

.specialty-static h3 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  line-height: 1.08;
  color: var(--navy-950);
}

.specialty-static .specialty-static-note {
  max-width: 28ch;
  margin: 0 auto 12px;
  color: var(--navy-800);
  font-weight: 700;
  line-height: 1.45;
}

.specialty-static > p:last-child {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(13, 34, 66, 0.1);
  text-align: center;
}

.ads-preview-page .eyebrow,
.ads-preview-page .hero-subtitle,
.ads-preview-page .button-primary,
.ads-preview-page .brand-logo {
  color: #d6b464;
}

.ads-preview-page .hero-subtitle,
.ads-preview-page .eyebrow {
  color: #d6b464;
}

.ads-preview-page .button-primary,
.ads-preview-page .admin-header .button-secondary,
.ads-preview-page .conversion-highlight .button,
.ads-preview-page .conversion-highlight .button-secondary {
  background: linear-gradient(135deg, #f3dfab, #d6b464);
}

.ads-preview-page .hero-content .consultation-actions {
  gap: 14px;
}

.ads-preview-page .hero-content .button-primary {
  color: #08172f;
  border: none;
  box-shadow: 0 14px 30px rgba(214, 180, 100, 0.34);
}

.ads-preview-page .hero-content .button-secondary {
  border: 1px solid rgba(214, 180, 100, 0.52);
  background: rgba(8, 23, 47, 0.52);
  color: #f4e3b7;
  box-shadow: 0 12px 24px rgba(8, 23, 47, 0.16);
}

.ads-preview-page .hero-content .button-secondary:hover {
  background: rgba(8, 23, 47, 0.7);
}

.ads-preview-page .form-section .attachment-trigger span {
  background: rgba(8, 23, 47, 0.08);
  color: var(--navy-900);
  border: 1px solid rgba(13, 34, 66, 0.14);
}

.ads-preview-page .form-section .attachment-trigger:hover span {
  background: rgba(198, 164, 92, 0.22);
  color: var(--navy-900);
}

.ads-preview-page .form-section .attachment-trigger.is-pressed span {
  background: linear-gradient(135deg, #f1dfb0, var(--gold-500));
  color: var(--navy-950);
}

.ads-preview-page .form-section .field-note,
.ads-preview-page .form-section .form-actions p {
  color: #4f617b;
}

.ads-preview-page .form-section .button-primary {
  color: var(--navy-950);
}

.specialty-detail[open] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 232, 0.95));
}

.conversion-highlight {
  background: linear-gradient(180deg, rgba(13, 34, 66, 0.96), rgba(21, 51, 93, 0.95));
  color: var(--white);
}

.conversion-highlight h3,
.conversion-highlight p {
  color: var(--white);
}

.payment-note-card {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.payment-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f1dfb0, var(--gold-500));
  border: 1px solid rgba(198, 164, 92, 0.48);
  box-shadow: 0 12px 28px rgba(198, 164, 92, 0.22);
  font-size: 0.98rem;
  font-weight: 800;
  text-align: center;
  color: var(--navy-950);
}

.process-list {
  margin: 0 auto;
  max-width: 24ch;
  padding-left: 22px;
  line-height: 1.9;
  text-align: left;
}

.consultation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.conversion-highlight .button,
.conversion-highlight .button-secondary {
  color: var(--navy-950);
  border: none;
  background: linear-gradient(135deg, #f1dfb0, var(--gold-500));
}

.hero-home .consultation-actions .button-secondary {
  color: var(--navy-950);
  border: none;
  background: linear-gradient(135deg, #f1dfb0, var(--gold-500));
  box-shadow: 0 12px 30px rgba(198, 164, 92, 0.28);
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(13, 34, 66, 0.08);
  color: var(--navy-900);
  font-weight: 700;
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 28px;
  text-align: center;
}

.contact-panel > div {
  padding: 22px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.94));
  border: 1px solid rgba(13, 34, 66, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.contact-label {
  margin-bottom: 8px;
  color: var(--navy-800);
  font-weight: 700;
}

.contact-panel a {
  display: block;
  margin-top: 8px;
  font-weight: 700;
}

.contact-coverage {
  margin: 18px auto 0;
  max-width: 980px;
  text-align: center;
  color: var(--navy-800);
  font-weight: 700;
}

.seo-support {
  padding-top: 24px;
}

.seo-support-copy {
  max-width: 74ch;
  margin: 0 auto;
  text-align: center;
  color: var(--navy-800);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(20px, 4vw, 64px) 34px;
  color: var(--navy-900);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

@media (max-width: 920px) {
  .hero-content,
  .location-grid,
  .contact-panel,
  .specialty-grid,
  .conversion-grid,
  .allied-grid,
  .lead-form,
  .admin-summary,
  .admin-payments-grid,
  .admin-doc-grid,
  .admin-dashboard-grid,
  .admin-dashboard-columns,
  .admin-ai-grid,
  .admin-profile-grid,
  .admin-grid,
  .admin-split {
    grid-template-columns: 1fr;
  }

  .software-shell {
    grid-template-columns: 1fr;
  }

  .software-sidebar {
    position: static;
  }

  .software-header,
  .software-header-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: center;
  }

  .hero-home,
  .hero-penal {
    background:
      linear-gradient(180deg, rgba(5, 14, 28, 0.86) 0%, rgba(6, 18, 37, 0.68) 100%),
      url("assets/hero-civil-team.png") center center / cover no-repeat;
  }

  .admin-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-grid-main,
  .admin-menu-grid,
  .admin-clients-top-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar-group,
  .admin-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-menu-button {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 132px;
  }

  .hero-content {
    padding-top: 36px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .brand-logo {
    max-height: 150px;
  }

  .hero,
  .section,
  .footer,
  .software-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .topbar-actions,
  .consultation-actions,
  .form-actions,
  .attachment-icons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .consultation-actions .button,
  .form-actions .button {
    width: 100%;
  }

  .specialty-grid,
  .allied-grid,
  .conversion-grid,
  .contact-panel,
  .location-grid,
  .lead-form {
    min-width: 0;
  }

  .specialty-card,
  .allied-card,
  .conversion-card,
  .location-card,
  .lead-form {
    padding: 16px 14px;
  }

  .ads-preview-page .specialty-grid,
  .ads-preview-page .allied-grid,
  .penal-page .specialty-grid,
  .allied-grid,
  .location-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .topbar-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

  .topbar-actions a {
    width: auto;
    min-width: 0;
    text-align: center;
  }

  .specialty-grid,
  .allied-grid,
  .conversion-grid,
  .contact-panel {
    gap: 16px;
  }

  .contact-panel {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-panel > div {
    padding: 20px 18px;
  }

  .footer {
    padding-bottom: 24px;
    gap: 10px;
    font-size: 0.88rem;
    text-align: center;
  }

  .footer-links {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .payment-note-card {
    margin-top: 8px;
    margin-bottom: -2px;
  }

  .payment-note {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f1dfb0, #d6b464);
    color: var(--navy-950);
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    min-width: 0;
    min-height: 46px;
    padding: 0 18px;
    font-size: 0.95rem;
  }
}
