:root {
  --navy: #0d1b2e;
  --navy-deep: #08111d;
  --navy-soft: #16304a;
  --ink: #1c2633;
  --gold: #c4a265;
  --gold-bright: #d4b072;
  --gold-deep: #8a6428;
  --cream: #f3efe7;
  --paper: #faf8f4;
  --white: #fffcf8;
  --line: #e4dcd0;
  --muted: #5c6570;
  --danger: #8d2e2e;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --header: 76px;
  --shadow: 0 20px 50px rgba(13, 27, 46, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}

body.nav-open { overflow: hidden; }

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

a { color: var(--gold-deep); }

h1, h2, h3, p { margin: 0; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--navy);
}

h1 { font-size: clamp(40px, 5.5vw, 68px); }

h2 { font-size: clamp(32px, 4vw, 48px); }

h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

p { color: var(--muted); }

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: white;
  color: var(--navy);
  padding: 8px 12px;
  z-index: 80;
}

.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: #fffcf8;
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  min-height: 44px;
}

.logo-mark { width: 34px; height: 34px; flex: none; }

.logo-type {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
}

.nav a:hover { color: var(--gold-deep); }

.nav a[aria-current="page"]:not(.btn) {
  color: var(--gold-deep);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--navy);
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.section-white .card { background: var(--paper); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-gold { background: var(--gold-bright); color: var(--navy); }
.btn-gold:hover { background: #e6c790; color: var(--navy); }
.btn-ghost { background: transparent; color: white; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: white; }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-soft); color: white; }

.nav .btn {
  box-shadow: none;
  color: var(--navy);
}

.hero,
.page-hero {
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  background-color: var(--navy);
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero { min-height: 680px; padding: 72px 0; }

.hero-defensa {
  background-image: linear-gradient(90deg, #08111d 0%, #08111d 42%, rgba(8, 17, 29, 0.2) 70%, rgba(8, 17, 29, 0.55) 100%);
}

.hero-defensa::after {
  content: "";
  position: absolute;
  inset: 0 0 0 34%;
  background: url("../img/hero-busto.jpg") 28% center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
  pointer-events: none;
}

.hero-puerto {
  background-image:
    linear-gradient(100deg, rgba(8, 17, 29, 0.92) 0%, rgba(8, 17, 29, 0.78) 42%, rgba(8, 17, 29, 0.5) 100%),
    url("../img/hero-puerto.jpg");
  background-position: center 40%;
}

.page-hero {
  min-height: 380px;
  padding: 72px 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(212, 176, 114, 0.22), transparent 36%), linear-gradient(160deg, #10243c, #0b1728);
}

.hero-copy, .page-hero .container { position: relative; z-index: 1; }

.hero h1, .page-hero h1, .band h2, .contact-copy h2 { color: white; }

.hero h1 { max-width: 11em; }

.kicker {
  margin-bottom: 14px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker-light { color: var(--gold-bright); }

.lead {
  max-width: 46ch;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  font-weight: 300;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  background: var(--white);
  padding: 28px 16px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section { padding: 92px 0; }

.section-white { background: var(--white); }

.section-head { max-width: 760px; margin-bottom: 36px; }

.section-head p:last-child { margin-top: 16px; }

.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: none;
}

.text-link {
  flex: none;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.grid-3, .grid-4, .grid-2, .steps { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.steps { grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}

a.card { transition: border-color 0.2s ease, transform 0.2s ease; }
a.card:hover { border-color: var(--gold); transform: translateY(-3px); color: inherit; }

.card p { font-size: 15.5px; }
.card h3 { font-size: 26px; }

.card-icon {
  width: 36px;
  height: 36px;
  color: var(--gold-deep);
}

.card-icon svg { width: 100%; height: 100%; }

.more {
  margin-top: auto;
  color: var(--gold-deep);
  font-size: 14px;
  font-weight: 500;
}

.band {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(196, 162, 101, 0.2), transparent 42%),
    var(--navy);
  color: white;
  padding: 92px 0;
}

.band p, .contact-copy p, .page-hero p { color: rgba(255, 255, 255, 0.78); }

.band h2 { max-width: 16em; margin-bottom: 28px; }

.band-grid, .moments { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.band-card {
  border: 1px solid rgba(212, 176, 114, 0.35);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 28px;
}

.band-card h3 { color: white; margin-bottom: 8px; }

.check-list { list-style: none; margin: 16px 0 0; padding: 0; }

.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.86);
}

.section .check-list li { color: var(--ink); }

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--gold-bright);
  border-bottom: 2px solid var(--gold-bright);
  transform: rotate(-45deg);
}

.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.step h3 { font-size: 26px; margin-bottom: 8px; }

.lawyer {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
}

.seal { width: 180px; height: 180px; margin-inline: auto; }

.spaced { margin-top: 14px; }
.lawyer ul { margin: 18px 0 0; padding: 0; list-style: none; }
.lawyer li { padding: 7px 0 7px 18px; position: relative; }
.lawyer li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 14px;
}

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.25;
  color: var(--navy);
  text-transform: none;
  letter-spacing: 0;
}

.contact-band {
  background:
    linear-gradient(160deg, rgba(8, 17, 29, 0.78), rgba(8, 17, 29, 0.88)),
    url("../img/hero-puerto.jpg") center / cover;
  padding: 88px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-points { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-points li { margin: 8px 0; color: white; }
.contact-points a { color: var(--gold-bright); text-decoration: none; }

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-card h2 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 34px;
  margin-bottom: 6px;
}

.form-card > p { margin-bottom: 18px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field-full { grid-column: 1 / -1; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}

textarea { min-height: 120px; resize: vertical; }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold-bright);
  border-color: var(--gold);
}

.is-invalid { border-color: var(--danger); }

.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}

.check input { width: 18px; height: 18px; min-height: 18px; margin-top: 2px; }

.form-card .btn { width: 100%; margin-top: 4px; }

.form-note { margin-top: 10px; font-size: 13px; }

.turnstile { min-height: 0; }
.turnstile:not([hidden]) { min-height: 68px; }

.form-alert {
  background: #f8ecec;
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.form-success {
  padding: 12px 0 8px;
}

.form-success h3 { margin-bottom: 8px; }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

[id] { scroll-margin-top: calc(var(--header) + 12px); }

.service-block h2 { font-size: clamp(28px, 3vw, 40px); }

.section .check-list li::before { border-color: var(--gold-deep); }

.block-gap { margin-top: 36px; }

.service-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.service-block:last-child { border-bottom: 1px solid var(--line); }

.service-block .kicker { margin-bottom: 8px; }

.timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 4px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline strong { display: block; color: var(--navy); }
.timeline li::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold-bright);
  border: 2px solid var(--white);
  position: absolute;
  left: -7px;
  top: 6px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--navy);
  background: var(--white);
}

.result-tag {
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.76);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer .logo-type, .site-footer a { color: white; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer ul { list-style: none; margin: 12px 0 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer h2 {
  color: white;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
}

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 32px;
  padding-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.narrow { max-width: 720px; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .grid-4, .grid-3, .band-grid, .moments, .contact-grid, .service-block, .lawyer, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid-2, .lawyer, .contact-grid, .service-block, .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header) 0 0 0;
    background: var(--paper);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 22px 32px;
    gap: 0;
    overflow: auto;
  }
  .nav.is-open { display: flex; z-index: 50; }
  .nav a:not(.btn) {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }
  .nav .btn { margin-top: 18px; width: 100%; }
  .hero, .page-hero { min-height: 0; }
  .hero-puerto {
    background-image:
      linear-gradient(180deg, rgba(8, 17, 29, 0.9), rgba(8, 17, 29, 0.86)),
      url("../img/hero-puerto.jpg");
  }
  .hero-defensa::after { display: none; }
  .hero-defensa {
    background-image:
      linear-gradient(180deg, rgba(8, 17, 29, 0.9), rgba(8, 17, 29, 0.84)),
      url("../img/hero-busto.jpg");
    background-position: center, center 18%;
    background-size: cover;
  }
}

@media (max-width: 700px) {
  .stats, .grid-4, .grid-3, .band-grid, .moments, .steps, .fields { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section, .band, .contact-band { padding: 64px 0; }
  .lawyer, .form-card { padding: 22px; }
  .legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
