:root {
  --navy: #001f3f;
  --navy-2: #062b52;
  --navy-3: #051a33;
  --gold: #c9962f;
  --gold-light: #efbd52;
  --gold-dark: #9f6b16;
  --green: #115b3d;
  --teal: #087c8c;
  --orange: #d95f0d;
  --purple: #5d286f;
  --ink: #071b33;
  --muted: #5d6878;
  --line: #e5ded2;
  --paper: #ffffff;
  --tint: #f1f4f2;
  --soft-gold: #fbf4e4;
  --shadow: 0 18px 42px rgba(0, 31, 63, 0.14);
  --radius: 8px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
}

.skip-link:focus {
  top: 12px;
}

.top-bar {
  color: #fff;
  background: var(--navy);
  border-bottom: 1px solid rgba(239, 189, 82, 0.28);
  font-size: 0.94rem;
}

.top-bar__inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.top-bar a {
  white-space: nowrap;
}

.top-bar__link,
.top-bar__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.top-bar__link svg {
  color: var(--gold-light);
}

.top-bar__whatsapp {
  margin-left: auto;
  color: #fff;
}

.top-bar__whatsapp img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 7;
  background: #fff;
  border-bottom: 0;
  backdrop-filter: blur(12px);
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand img {
  width: 250px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #111a28;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.menu-button {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
}

.menu-button span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--navy);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  border: 1px solid transparent;
  padding: 13px 22px;
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  color: var(--navy-3);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: 0 10px 24px rgba(201, 150, 47, 0.25);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: linear-gradient(180deg, #f5c969, #b97e1b);
}

.button--secondary,
.button--tertiary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  font-family: var(--sans);
  text-transform: none;
}

.button--tertiary {
  width: fit-content;
  margin-top: auto;
  color: var(--navy);
  border-color: rgba(0, 31, 63, 0.28);
  background: #fff;
  font-weight: 800;
}

.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 0;
  color: #fff;
  background: var(--navy);
  border-bottom: 12px solid #f2f2f2;
  margin-top: -1px;
}

.hero__grid {
  width: min(1480px, 100%);
  min-height: 385px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(420px, 46%);
  align-items: stretch;
  gap: 0;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 38px 56px 36px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.1;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 800;
}

h1 {
  max-width: 580px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  text-transform: uppercase;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.2vw, 2.95rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

p {
  margin: 0 0 18px;
}

.hero-ornament {
  width: min(520px, 100%);
  height: 1px;
  position: relative;
  margin: 18px auto 20px;
  background: var(--gold-light);
}

.hero-ornament::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold-light);
  background: var(--navy);
  transform: translate(-50%, -50%) rotate(45deg);
}

.hero__lead {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.trust-strip {
  display: none;
}

.hero__visual {
  position: relative;
  min-height: 385px;
  overflow: hidden;
  border-left: 8px solid var(--gold-light);
  border-radius: 46% 0 0 46%;
  background: #fff;
  box-shadow: -18px 0 0 rgba(201, 150, 47, 0.22);
}

.hero__visual img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.12) translateX(-5%);
  transform-origin: center center;
}

.credential-card {
  position: absolute;
  z-index: 3;
  right: 44px;
  bottom: 16px;
  width: min(370px, calc(100% - 88px));
  border: 1px solid rgba(239, 189, 82, 0.55);
  border-radius: 4px;
  padding: 12px 18px;
  color: #fff;
  background: rgba(0, 31, 63, 0.97);
  text-align: center;
  box-shadow: 0 18px 36px rgba(0, 31, 63, 0.25);
}

.credential-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.credential-card span {
  display: block;
  margin-top: 6px;
  color: var(--gold-light);
  font-weight: 800;
}

.credential-card small {
  display: block;
  margin-top: 2px;
}

.section {
  padding: 78px 0;
  scroll-margin-top: 104px;
}

#top,
#inicio,
#sobre-mi,
#areas,
#servicios,
#contacto {
  scroll-margin-top: 104px;
}

#sobre-mi {
  scroll-margin-top: 0;
}

.section--white {
  background: #fff;
}

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

.section--navy {
  color: #fff;
  background: var(--navy);
}

.section--navy h2,
.section--navy .eyebrow {
  color: #fff;
}

.section--navy .eyebrow {
  color: var(--gold-light);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: 56px;
  align-items: center;
}

.split p {
  color: var(--muted);
  max-width: 620px;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold-dark);
  font-weight: 850;
  border-bottom: 2px solid rgba(201, 150, 47, 0.4);
}

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

.stats-grid article,
.practice-card,
.services-grid article,
.why-grid article,
.process-grid article,
.contact-card,
.contact-form {
  border: 1px solid rgba(0, 31, 63, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 31, 63, 0.07);
}

.stats-grid article {
  padding: 24px;
}

.stats-grid strong {
  display: block;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.15;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

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

.practice-card {
  position: relative;
  min-height: 292px;
  overflow: hidden;
  padding: 20px 24px 20px 224px;
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: left center;
  box-shadow: none;
}

.practice-card--civil {
  background-color: #f8f9fb;
  background-image: linear-gradient(90deg, rgba(248, 249, 251, 0) 0 122px, #f8f9fb 154px), url("assets/civil-detail-clean-2x.png");
}

.practice-card--admin {
  padding-right: 216px;
  padding-left: 118px;
  background-color: #eef4ef;
  background-image: linear-gradient(270deg, rgba(238, 244, 239, 0) 0 176px, #eef4ef 216px), url("assets/administrative-detail-2x.png");
  background-position: right center;
}

.card-icon {
  position: absolute;
  left: 146px;
  top: 28px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.88);
  font-family: var(--serif);
  font-size: 1.9rem;
}

.card-icon--gold {
  left: 34px;
  border-color: var(--green);
  color: var(--green);
  background: rgba(255, 255, 255, 0.82);
}

.practice-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
}

.practice-card h3::after {
  content: "";
  display: block;
  width: min(190px, 100%);
  height: 2px;
  margin-top: 9px;
  background: currentColor;
  opacity: 0.75;
}

.practice-card--admin h3 {
  color: #174f3b;
}

.practice-card p,
.services-grid p,
.why-grid p,
.process-grid p,
.practice-card ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.practice-card li {
  margin: 4px 0;
  padding-left: 0;
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.28;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.services-grid article {
  position: relative;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 72px 18px 24px;
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 31, 63, 0.14);
}

.services-grid article::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 50%;
  width: 42px;
  height: 3px;
  background: rgba(255, 255, 255, 0.75);
  transform: translateX(-50%);
}

.services-grid article:nth-child(1) {
  background: var(--navy);
}

.services-grid article:nth-child(2) {
  background: var(--gold);
}

.services-grid article:nth-child(3) {
  background: var(--green);
}

.services-grid article:nth-child(4) {
  background: var(--purple);
}

.services-grid article:nth-child(5) {
  background: var(--orange);
}

.services-grid article:nth-child(6) {
  background: var(--teal);
}

.services-grid h3 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
}

.services-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

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

.mission p:last-child {
  margin: 0;
  font-size: 1.2rem;
  opacity: 0.92;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
}

.section--tint:has(.why-grid) {
  color: #fff;
  background: var(--navy);
}

.section--tint:has(.why-grid) h2,
.section--tint:has(.why-grid) h3 {
  color: #fff;
}

.section--tint:has(.why-grid) .eyebrow {
  color: var(--gold-light);
}

.section--tint:has(.why-grid) .section-heading p {
  color: rgba(255, 255, 255, 0.74);
}

.why-grid article {
  min-height: 180px;
  padding: 24px 18px;
  border: 0;
  border-right: 1px solid rgba(239, 189, 82, 0.38);
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.why-grid article:last-child {
  border-right: 0;
}

.why-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--gold-light);
}

.why-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.why-grid h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
}

.why-grid p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

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

.process-grid article {
  padding: 28px;
}

.process-grid span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold-light);
  font-weight: 900;
}

.centered-action {
  margin-top: 34px;
  text-align: center;
}

.section--contact {
  padding: 82px 0;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.contact-card,
.contact-form {
  padding: 32px;
}

.contact-card {
  border-left: 6px solid var(--gold);
}

.contact-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin: 12px 0;
}

.contact-list a {
  color: var(--navy);
  font-weight: 800;
}

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

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 850;
}

.contact-form input[type="hidden"] {
  display: none;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9deea;
  border-radius: 5px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(201, 150, 47, 0.26);
  border-color: var(--gold);
}

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 12px 16px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(17, 91, 61, 0.28);
}

.site-footer {
  color: rgba(255, 255, 255, 0.88);
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 1fr;
  gap: 42px;
  padding: 44px 0 34px;
}

.footer-grid img {
  width: 230px;
  margin-bottom: 16px;
  background: transparent;
}

.footer-grid p {
  margin: 0;
}

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

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--gold-light);
}

.disclaimer {
  border-left: 1px solid rgba(239, 189, 82, 0.35);
  padding-left: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(239, 189, 82, 0.24);
  padding: 18px 0;
  font-size: 0.88rem;
}

@media (max-width: 1180px) {
  .nav-shell {
    min-height: 72px;
  }

  .brand img {
    width: 235px;
  }

  .site-nav {
    gap: 16px;
    font-size: 0.82rem;
  }

  .services-grid,
  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why-grid article:nth-child(3) {
    border-right: 0;
  }
}

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

  .section,
  #top,
  #inicio,
  #sobre-mi,
  #areas,
  #servicios,
  #contacto {
    scroll-margin-top: 86px;
  }

  #sobre-mi {
    scroll-margin-top: 0;
  }

  .top-bar__inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
  }

  .top-bar__whatsapp {
    margin-left: 0;
  }

  .nav-shell {
    min-height: 70px;
  }

  .brand img {
    width: 215px;
  }

  .menu-button {
    display: inline-grid;
    grid-template-columns: 16px auto;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero__grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    padding: 40px 28px 34px;
  }

  .hero__visual {
    min-height: 350px;
    border-top: 7px solid var(--gold-light);
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    margin-bottom: 0;
  }

  .hero__visual img {
    width: 100%;
    height: 100%;
    object-position: center center;
    transform: none;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .practice-card,
  .practice-card--admin {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

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

  .section,
  #top,
  #inicio,
  #sobre-mi,
  #areas,
  #servicios,
  #contacto {
    scroll-margin-top: 78px;
  }

  #sobre-mi {
    scroll-margin-top: 0;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .top-bar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .top-bar__whatsapp {
    align-self: flex-start;
  }

  .brand img {
    width: 200px;
  }

  .hero,
  .section {
    padding: 0;
  }

  .section {
    padding: 56px 0;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .stats-grid,
  .services-grid,
  .why-grid,
  .process-grid,
  .contact-form,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    max-width: 360px;
  }

  .button {
    width: 100%;
  }

  .hero__visual {
    min-height: 305px;
  }

  .hero__visual img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-position: center center;
    transform: none;
  }

  .credential-card {
    position: static;
    width: 100%;
    border-radius: 0;
  }

  .practice-card,
  .practice-card--admin {
    min-height: 0;
    padding: 26px;
    background-image: none;
  }

  .card-icon,
  .card-icon--gold {
    position: static;
    margin-bottom: 16px;
  }

  .why-grid article,
  .why-grid article:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid rgba(239, 189, 82, 0.26);
  }

  .why-grid article:last-child {
    border-bottom: 0;
  }

  .contact-card,
  .contact-form {
    padding: 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 430px) {
  .brand img {
    width: 176px;
  }

  .hero__copy {
    padding-inline: 20px;
  }

  .hero__visual {
    min-height: 260px;
  }
}
