:root {
  --bg: #1e3a8a;
  --card: #1f2937;
  --card-hover: #253247;
  --gold: #f59e0b;
  --gold-hover: #fbbf24;
  --gold-soft: #fcd34d;
  --whatsapp: #25d366;
  --whatsapp-hover: #20bf5b;
  --white: #ffffff;
  --text: #e5e7eb;
  --muted: #cbd5e1;
  --border: #374151;
  --icon-bg: rgba(255, 255, 255, 0.1);
  --shadow: 0 22px 80px rgba(15, 23, 42, 0.36);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--gold);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(30, 58, 138, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand img {
  width: min(255px, 44vw);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--white);
}

.header-cta,
.btn,
.floating-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 750;
  text-decoration: none;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.header-cta {
  min-width: 142px;
  padding: 10px 16px;
  background: var(--whatsapp);
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: var(--white);
}

.header-cta:hover,
.btn-primary:hover,
.floating-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.icon svg,
.floating-whatsapp svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  padding: 126px 0 72px;
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("assets/hero-domestica-consulta.png");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(30, 58, 138, 0.97) 0%, rgba(30, 58, 138, 0.86) 36%, rgba(30, 58, 138, 0.54) 64%, rgba(30, 58, 138, 0.28) 100%),
    linear-gradient(0deg, rgba(30, 58, 138, 0.98) 0%, rgba(30, 58, 138, 0) 28%);
}

.hero-content {
  max-width: 720px;
  margin-inline: max(18px, calc((100vw - 1120px) / 2)) auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  color: var(--white);
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 710px;
  font-size: clamp(2.18rem, 7vw, 4.65rem);
}

h2 {
  font-size: clamp(1.7rem, 4.8vw, 3.05rem);
}

h3 {
  font-size: 1.12rem;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--text);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  min-width: min(100%, 220px);
  padding: 13px 20px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--whatsapp);
  border-color: rgba(255, 255, 255, 0.88);
  color: var(--white);
}

.btn-secondary {
  background: rgba(31, 41, 55, 0.68);
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(31, 41, 55, 0.96);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-row span {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(31, 41, 55, 0.56);
  color: var(--text);
  font-size: 0.92rem;
}

.notice-band {
  border-block: 1px solid var(--border);
  background: #1f2937;
  padding: 34px 0;
}

.notice-grid,
.split-grid,
.ethics-grid,
.footer-grid,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}

.notice-grid h2 {
  font-size: clamp(1.35rem, 3.5vw, 2.15rem);
}

.notice-grid p:last-child,
.split-grid p,
.ethics-copy p,
.section-head p {
  margin: 0;
  color: var(--text);
}

.section {
  padding: 84px 0;
}

.section-head {
  max-width: 740px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head.left {
  text-align: left;
  margin: 0;
}

.section-head.compact {
  margin-bottom: 28px;
}

.section-head h2 + p {
  margin-top: 16px;
}

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

.right-card,
.steps article,
.support-panel,
.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.right-card {
  min-height: 220px;
  padding: 24px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.right-card:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  border-color: rgba(245, 158, 11, 0.7);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--icon-bg);
  color: var(--gold);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.right-card p,
.steps p,
.support-panel p,
.faq-list p,
.microcopy,
.site-footer p {
  color: var(--muted);
}

.right-card p {
  margin: 12px 0 0;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.split-section {
  background: #172554;
  border-block: 1px solid var(--border);
}

.split-grid p {
  margin-top: 18px;
  font-size: 1.04rem;
}

.support-panel {
  padding: 30px;
  box-shadow: var(--shadow);
}

.support-panel p {
  margin: 14px 0 20px;
}

.text-link {
  display: inline-flex;
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.text-link:hover {
  color: var(--gold-hover);
}

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

.steps article {
  min-height: 190px;
  padding: 24px;
}

.steps span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--gold);
  font-weight: 900;
}

.steps p {
  margin: 10px 0 0;
}

.ethics-section {
  background: #1f2937;
  border-block: 1px solid var(--border);
}

.ethics-copy {
  border-left: 2px solid var(--gold);
  padding-left: 26px;
}

.ethics-copy p + p {
  margin-top: 16px;
}

.faq-layout {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--white);
  font-weight: 750;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--gold);
  font-size: 1.2rem;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
}

.final-cta {
  padding: 88px 0;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0)),
    #1e3a8a;
  border-block: 1px solid var(--border);
}

.final-inner {
  text-align: center;
  max-width: 820px;
}

.final-inner .btn {
  margin-top: 28px;
}

.microcopy {
  margin: 18px 0 0;
  font-size: 0.95rem;
}

.attorney-section {
  background: #1f2937;
  border-bottom: 1px solid var(--border);
  padding: 66px 0;
}

.attorney-grid {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  max-width: 800px;
}

.attorney-photo {
  margin: 0;
  width: 124px;
  height: 124px;
  padding: 4px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--card);
  overflow: hidden;
  justify-self: end;
}

.attorney-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
}

.attorney-copy h2 {
  max-width: 660px;
  color: var(--gold);
  font-size: clamp(1.35rem, 3vw, 1.82rem);
  line-height: 1.45;
}

.attorney-copy p:last-child {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--white);
}

.deadline-alert {
  max-width: 800px;
  margin-top: 40px;
  padding: 23px 28px;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: #374151;
  text-align: center;
}

.deadline-alert p {
  margin: 0;
  color: var(--white);
  font-weight: 500;
}

.deadline-alert strong {
  color: #ff3333;
  font-weight: 900;
}

.site-footer {
  padding: 38px 0 108px;
  background: #1f2937;
  border-top: 1px solid var(--border);
}

.footer-grid {
  align-items: start;
}

.footer-logo {
  width: min(240px, 70vw);
  margin-bottom: 16px;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer p + p {
  margin-top: 8px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.footer-bottom p {
  color: var(--text);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  min-height: 56px;
  padding: 0 18px;
  background: var(--whatsapp);
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: var(--white);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.38);
}

.floating-whatsapp svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .notice-grid,
  .split-grid,
  .ethics-grid,
  .footer-grid,
  .faq-layout,
  .attorney-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .attorney-grid {
    max-width: 640px;
    gap: 18px;
    text-align: center;
  }

  .attorney-photo {
    justify-self: center;
  }

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

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    position: absolute;
    background: rgba(30, 58, 138, 0.78);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand img {
    width: min(198px, 55vw);
  }

  .header-cta {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }

  .header-cta .icon {
    margin: 0;
  }

  .header-cta {
    font-size: 0;
  }

  .hero {
    min-height: auto;
    padding: 96px 0 44px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(30, 58, 138, 0.98) 0%, rgba(30, 58, 138, 0.72) 45%, rgba(30, 58, 138, 0.38) 100%),
      linear-gradient(90deg, rgba(30, 58, 138, 0.92), rgba(30, 58, 138, 0.36));
  }

  .hero-content {
    margin-inline: auto;
    padding-top: 22svh;
  }

  h1 {
    font-size: clamp(1.86rem, 9.4vw, 2.38rem);
    line-height: 1.12;
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.25rem);
  }

  .hero-copy {
    margin-top: 14px;
    font-size: 0.98rem;
  }

  .hero-actions,
  .trust-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .trust-row {
    margin-top: 18px;
  }

  .btn,
  .trust-row span {
    width: 100%;
  }

  .section,
  .final-cta,
  .attorney-section {
    padding: 58px 0;
  }

  .notice-band {
    padding: 28px 0;
  }

  .rights-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .right-card,
  .steps article {
    min-height: auto;
  }

  .ethics-copy {
    padding-left: 18px;
  }

  .attorney-photo {
    width: 104px;
    height: 104px;
    padding: 3px;
  }

  .attorney-copy p:last-child {
    color: var(--text);
  }

  .deadline-alert {
    margin-top: 34px;
    padding: 22px 18px;
    text-align: left;
  }

  .floating-whatsapp {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(120%);
  }

  body.show-floating .floating-whatsapp {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
