:root {
  --navy: #06172b;
  --navy-2: #08213b;
  --petrol: #004f54;
  --petrol-2: #006f73;
  --gold: #bd8622;
  --gold-2: #d7a43a;
  --white: #ffffff;
  --paper: #f7f7f4;
  --ink: #0e1a2b;
  --muted: #5f6673;
  --line: rgba(6, 23, 43, 0.14);
  --shadow: 0 22px 70px rgba(6, 23, 43, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(6,23,43,0.08);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 220px;
  height: 78px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.logo img {
  width: 220px;
  height: auto;
  transform: scale(1.8);
  transform-origin: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-menu > a:not(.btn) {
  position: relative;
  padding: 8px 0;
}

.nav-menu > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: 0.25s ease;
}

.nav-menu > a.active::after,
.nav-menu > a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 6px auto;
  background: var(--navy);
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-nav,
.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--petrol), #052535);
  box-shadow: 0 14px 34px rgba(0,79,84,0.26);
}

.btn-outline {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.72);
  background: rgba(0,0,0,0.18);
}

.btn-gold {
  color: var(--white);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 14px 34px rgba(189,134,34,0.26);
}

.btn-outline-gold {
  color: var(--white);
  border: 1px solid var(--gold-2);
  background: transparent;
}

/* HERO */
.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(4,17,31,0.94) 0%, rgba(4,17,31,0.82) 38%, rgba(4,17,31,0.32) 64%, rgba(4,17,31,0.12) 100%),
    url("../assets/img/hero-despacho.png") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(215,164,58,0.12), transparent 24%),
    linear-gradient(to bottom, rgba(0,0,0,0) 74%, rgba(0,79,84,0.72) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
  padding-top: 25px;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(42px, 5.3vw, 72px);
}

h1 span {
  color: var(--gold-2);
}

.gold-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0 22px;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
}

.gold-line i,
.section-title i {
  display: block;
  width: 78px;
  height: 3px;
  background: var(--gold-2);
}

.hero-copy p {
  max-width: 510px;
  color: rgba(255,255,255,0.88);
  font-size: 18px;
  line-height: 1.7;
}

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

.hero-portrait {
  align-self: end;
  display: flex;
  justify-content: center;
}

.hero-portrait img {
  width: min(520px, 100%);
  max-height: 585px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 28px 42px rgba(0,0,0,0.38));
}

.trust-bar {
  position: relative;
  z-index: 3;
  margin-top: -42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,79,84,0.98), rgba(3,25,43,0.98));
  box-shadow: 0 22px 48px rgba(6,23,43,0.28);
}

.trust-bar div {
  min-height: 96px;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 18px 24px;
  border-right: 1px solid rgba(255,255,255,0.24);
}

.trust-bar div:last-child {
  border-right: 0;
}

.trust-bar img,
.line-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  color: var(--gold-2);
  font-size: 38px;
}

.trust-bar strong {
  display: block;
  color: var(--white);
  text-transform: uppercase;
  font-size: 14px;
}

.trust-bar span:not(.line-icon) {
  display: block;
  color: rgba(255,255,255,0.84);
  font-size: 13px;
}

/* SECTIONS */
.section {
  padding: 86px 0;
}

.section-title {
  margin-bottom: 54px;
  text-align: center;
}

.section-title h2 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 46px);
  text-transform: uppercase;
}

.section-title i {
  width: 46px;
  height: 2px;
  margin: 14px auto 0;
}

/* SERVICES */
.services {
  background: var(--white);
}

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

.service-card {
  min-height: 310px;
  padding: 0 22px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.service-card:last-child {
  border-right: 0;
}

.service-img {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(189,134,34,0.38);
  background: var(--paper);
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card h3 {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
  text-transform: uppercase;
}

.service-card p {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
}

.service-card a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 0.95fr 1.45fr;
  background: linear-gradient(135deg, #06172b, #052e43);
}

.about-photo {
  min-height: 380px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy {
  position: relative;
  overflow: hidden;
  padding: 58px clamp(30px, 6vw, 72px);
  color: var(--white);
}

.about-copy .watermark {
  position: absolute;
  right: 60px;
  top: 50%;
  width: 280px;
  opacity: 0.10;
  transform: translateY(-50%);
}

.about-copy span {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 14px;
  color: var(--gold-2);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-copy h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(30px, 4vw, 45px);
}

.about-copy p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
}

.about-copy .btn {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

/* PROCESS */
.process {
  background: var(--paper);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.process-step {
  position: relative;
  text-align: center;
}

.process-step::after {
  content: "";
  position: absolute;
  top: 54px;
  right: -34px;
  width: 52px;
  border-top: 2px dotted rgba(6,23,43,0.34);
}

.process-step:last-child::after {
  display: none;
}

.process-step span {
  display: grid;
  width: 28px;
  height: 28px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--gold);
  font-weight: 900;
}

.process-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  place-items: center;
  color: var(--navy);
  font-size: 44px;
}

.process-step h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 14px;
  text-transform: uppercase;
}

.process-step p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
}

/* BLOG */
.blog {
  background: var(--white);
}

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

.blog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(6,23,43,0.08);
}

.blog-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.blog-card div {
  padding: 24px;
}

.blog-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* CTA */
.cta {
  color: var(--white);
  background: linear-gradient(135deg, var(--petrol), #06172b);
}

.cta-grid {
  min-height: 132px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}

.cta-title {
  display: flex;
  align-items: center;
  gap: 24px;
}

.calendar-icon {
  flex: 0 0 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--petrol);
  background: var(--white);
  font-size: 34px;
}

.cta h2 {
  color: var(--white);
  font-size: clamp(26px, 4vw, 38px);
}

.cta-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

/* CONTACT */
.contact-section {
  padding: 86px 0;
  background:
    linear-gradient(90deg, rgba(6,23,43,0.92), rgba(6,23,43,0.72)),
    url("../assets/img/balanza-dorada.png") right center/contain no-repeat,
    var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  align-items: start;
}

.contact-info {
  color: var(--white);
}

.contact-info span {
  color: var(--gold-2);
  font-weight: 900;
  text-transform: uppercase;
}

.contact-info h2 {
  margin: 12px 0 16px;
  color: var(--white);
  font-size: clamp(30px, 4vw, 46px);
}

.contact-info p {
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
}

.contact-mini {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 900;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: #fbfbf8;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(189,134,34,0.14);
}

/* FOOTER */
.footer {
  color: var(--white);
  background: #06172b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1fr 1fr 0.8fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-logo {
  width: 220px;
  max-height: 80px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  margin-bottom: 16px;
}

.footer p,
.footer a {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.7;
}

.footer h3 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
}

.footer a {
  display: block;
  margin-bottom: 8px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.socials a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-2);
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-bottom div {
  display: flex;
  gap: 30px;
}

.floating-whatsapp {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 120;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #25d366;
  box-shadow: 0 18px 40px rgba(37,211,102,0.34);
  font-size: 34px;
  font-weight: 900;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .72s ease, transform .72s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: .12s;
}

.delay-2 {
  transition-delay: .22s;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .nav-menu {
    gap: 18px;
    font-size: 12px;
  }

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

  .service-card {
    border-right: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav-menu {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 108px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .hero-portrait {
    display: none;
  }

  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .about,
  .contact-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .process-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .process-step::after {
    display: none;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container,
  .nav {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    height: 86px;
  }

  .logo {
    width: 170px;
  }

  .logo img {
    width: 170px;
  }

  .nav-menu {
    top: 94px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-grid {
    min-height: 620px;
  }

  h1 {
    font-size: 42px;
  }

  .gold-line {
    align-items: flex-start;
    flex-direction: column;
    font-size: 13px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .trust-bar {
    grid-template-columns: 1fr;
    margin-top: 0;
    border-radius: 0;
  }

  .trust-bar div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.18);
  }

  .section {
    padding: 70px 0;
  }

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

  .about-copy {
    padding: 46px 24px;
  }

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

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

  .footer-bottom div {
    flex-direction: column;
    gap: 8px;
  }

  .floating-whatsapp {
    width: 58px;
    height: 58px;
    right: 18px;
    bottom: 18px;
  }
}
