:root {
  --blue-950: #021e3d;
  --blue-900: #032c58;
  --blue-700: #07549a;
  --blue-500: #0b75c9;
  --green: #39bd35;
  --green-dark: #238c29;
  --red: #c5161d;
  --ink: #10243a;
  --muted: #657487;
  --paper: #f6f8f9;
  --white: #ffffff;
  --line: #dbe3e8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue-950);
  transform: translateY(-160%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 86px;
  display: grid;
  grid-template-columns: 236px 1fr 82px;
  align-items: center;
  gap: 32px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(3, 44, 88, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  width: 202px;
  height: 74px;
}

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

.site-header nav {
  display: flex;
  justify-content: flex-end;
  gap: 36px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-network {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 52px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.header-network img {
  width: 62px;
  height: auto;
}

.hero {
  position: relative;
  min-height: calc(100svh - 86px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 8%, rgba(11, 117, 201, 0.38), transparent 30%),
    linear-gradient(122deg, var(--blue-950) 0%, var(--blue-900) 58%, #064d89 100%);
}

.hero::before {
  position: absolute;
  top: 0;
  right: 9%;
  width: 310px;
  height: 100%;
  background: linear-gradient(135deg, transparent 20%, rgba(57, 189, 53, 0.1) 20%, rgba(57, 189, 53, 0.1) 52%, transparent 52%);
  content: "";
  transform: skewX(-14deg);
}

.hero::after {
  position: absolute;
  top: 0;
  right: -210px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(255, 255, 255, 0.025), 0 0 0 150px rgba(255, 255, 255, 0.018);
  content: "";
}

.hero-lines {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  align-items: center;
  gap: 94px;
  min-height: calc(100svh - 142px);
  padding: 78px 0 110px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 30px;
  height: 3px;
  margin: 0 12px 3px 0;
  background: var(--green);
  content: "";
}

.eyebrow.light {
  color: #bcd6ec;
}

.hero h1,
.section h2,
.contact h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.3rem, 6.3vw, 6.1rem);
  line-height: 0.96;
}

.hero h1 span {
  color: var(--green);
}

.hero-lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: #d4e2ed;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-instagram {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 78px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 5px;
  color: #c9d9e6;
  background: rgba(2, 30, 61, 0.3);
  font-size: 0.76rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.hero-instagram:hover {
  color: var(--white);
  background: rgba(2, 30, 61, 0.58);
}

.hero-instagram svg,
.instagram-card svg {
  width: 20px;
  height: 20px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hero-instagram .instagram-dot,
.instagram-card .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border 180ms ease;
}

.button span {
  margin-left: 12px;
  font-size: 1.15rem;
}

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

.button-primary {
  background: var(--green);
  box-shadow: 0 14px 35px rgba(27, 125, 38, 0.25);
}

.button-primary:hover {
  background: #49cc44;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
}

.hero-card {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(3, 28, 57, 0.52);
  box-shadow: 0 35px 80px rgba(1, 15, 31, 0.32);
  backdrop-filter: blur(12px);
}

.hero-card::before {
  position: absolute;
  top: -1px;
  right: 28px;
  left: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue-500));
  content: "";
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9fb9cf;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(57, 189, 53, 0.12);
}

.regional-map {
  display: block;
  width: 100%;
  height: 168px;
  margin: 5px auto 0;
  object-fit: contain;
}

.map-cities {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 5px 15px;
  margin: -3px 0 18px;
  color: #cbdce8;
  font-size: 0.69rem;
  font-weight: 650;
  line-height: 1.35;
}

.map-cities span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-cities span:last-child {
  grid-column: 1 / -1;
}

.map-cities span::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(57, 189, 53, 0.12);
  content: "";
}

.map-cities span:nth-child(2)::before {
  background: #54b8ff;
  box-shadow: 0 0 0 3px rgba(84, 184, 255, 0.14);
}

.map-cities span:nth-child(3)::before {
  background: #ef3d45;
  box-shadow: 0 0 0 3px rgba(239, 61, 69, 0.14);
}

.schedule-card {
  display: grid;
  gap: 7px;
  padding: 20px;
  border-radius: 5px;
  color: var(--ink);
  background: var(--white);
}

.schedule-label {
  color: var(--blue-700);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.schedule-card strong {
  font-size: 1.06rem;
}

.schedule-card span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-ribbon {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  height: 56px;
  color: var(--blue-900);
  background: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-ribbon i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-900);
}

.section {
  padding: 118px 0;
}

.section h2,
.contact h2 {
  font-size: clamp(2.4rem, 4.6vw, 4.5rem);
  line-height: 1.06;
}

.history {
  overflow: hidden;
  background: var(--white);
}

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

.history-copy > p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 1.17rem;
  line-height: 1.86;
}

.history-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 52px;
}

.history-stats div {
  display: grid;
  gap: 8px;
  padding-top: 22px;
  border-top: 3px solid var(--green);
}

.history-stats strong {
  color: var(--blue-900);
  font-size: 1.75rem;
}

.history-stats span {
  color: var(--muted);
  font-size: 0.86rem;
}

.brand-connection {
  display: grid;
  grid-template-columns: 1fr auto auto auto 1fr;
  align-items: center;
  gap: 30px;
  margin-top: 95px;
  padding: 28px 0;
}

.connection-line {
  height: 1px;
  background: var(--line);
}

.connection-sinuelo {
  width: 180px;
  height: auto;
}

.connection-ancora {
  width: 86px;
  height: auto;
}

.connection-plus {
  color: #9aa8b6;
  font-size: 1.25rem;
  font-weight: 300;
}

.units {
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: end;
  gap: 70px;
}

.section-heading > p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 62px;
}

.unit-card {
  position: relative;
  display: flex;
  min-height: 400px;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  border: 1px solid #d7e0e6;
  border-radius: 8px;
  background: var(--white);
  transition: transform 200ms ease, box-shadow 200ms ease, border 200ms ease;
}

.unit-card::after {
  position: absolute;
  right: -45px;
  bottom: -72px;
  width: 170px;
  height: 170px;
  border: 28px solid rgba(7, 84, 154, 0.055);
  border-radius: 50%;
  content: "";
}

.unit-card:hover {
  z-index: 2;
  border-color: rgba(7, 84, 154, 0.3);
  box-shadow: 0 24px 55px rgba(7, 35, 64, 0.11);
  transform: translateY(-7px);
}

.unit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.unit-card-head > span {
  display: grid;
  width: 40px;
  height: 28px;
  place-items: center;
  border-radius: 3px;
  color: var(--white);
  background: var(--blue-700);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.unit-card-head small {
  color: #aab5bf;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.unit-card h3 {
  min-height: 64px;
  margin: 36px 0 23px;
  color: var(--blue-900);
  font-size: 1.62rem;
  line-height: 1.2;
}

.unit-card address {
  display: grid;
  gap: 7px;
  min-height: 65px;
  color: var(--muted);
  font-size: 0.89rem;
  font-style: normal;
  line-height: 1.55;
}

.phone {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 24px;
  color: var(--blue-700);
  font-size: 1.2rem;
  font-weight: 800;
}

.whatsapp {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 9px;
  color: #188b48;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
  transition: color 180ms ease, transform 180ms ease;
}

.whatsapp::before {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 2px solid #dff8e9;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.15);
  content: "";
}

.whatsapp:hover {
  color: #0d6d36;
  transform: translateX(2px);
}

.map-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.map-link span {
  color: var(--green-dark);
  font-size: 1.05rem;
}

.contact {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(125deg, var(--blue-900), var(--blue-700));
}

.contact-shape {
  position: absolute;
  top: -235px;
  right: 2%;
  width: 430px;
  height: 430px;
  border: 76px solid rgba(57, 189, 53, 0.12);
  border-radius: 50%;
}

.contact-shape::after {
  position: absolute;
  right: -125px;
  bottom: -100px;
  width: 260px;
  height: 18px;
  background: var(--red);
  content: "";
  transform: rotate(-38deg);
}

.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 290px;
  align-items: center;
  gap: 70px;
  min-height: 270px;
  padding-top: 54px;
  padding-bottom: 54px;
}

.contact h2 {
  max-width: 620px;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
}

.instagram-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 21px 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(2, 30, 61, 0.38);
  box-shadow: 0 25px 55px rgba(2, 21, 41, 0.2);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease;
}

.instagram-card:hover {
  background: rgba(2, 30, 61, 0.6);
  transform: translateY(-4px);
}

.instagram-card svg {
  width: 25px;
  height: 25px;
  color: #d8e7f1;
}

.instagram-card strong {
  font-size: 1.22rem;
}

.instagram-card i {
  position: absolute;
  top: 29px;
  right: 30px;
  color: var(--green);
  font-size: 1.45rem;
  font-style: normal;
}

footer {
  color: #b6c6d4;
  background: #01162c;
}

.footer-inner {
  display: grid;
  grid-template-columns: 185px 1fr 70px;
  align-items: center;
  gap: 38px;
  min-height: 172px;
}

.footer-logo {
  width: 180px;
  height: auto;
  padding: 8px;
  border-radius: 4px;
  background: var(--white);
}

.footer-copy {
  display: grid;
  gap: 8px;
  padding-left: 36px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  line-height: 1.45;
}

.footer-copy span:first-child {
  color: var(--white);
  font-weight: 700;
}

.footer-network {
  width: 68px;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 200px 1fr 70px;
  }

  .site-header nav {
    gap: 22px;
  }

  .hero-content {
    grid-template-columns: 1fr 340px;
    gap: 46px;
  }

  .hero h1 {
    font-size: clamp(3rem, 7vw, 5rem);
  }

  .history-grid,
  .section-heading,
  .contact-inner {
    gap: 55px;
  }

  .unit-card {
    padding: 24px;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 34px, 640px);
  }

  .site-header {
    height: 74px;
    grid-template-columns: 180px 1fr 58px;
    gap: 12px;
    padding: 0 17px;
  }

  .brand {
    width: 170px;
    height: 64px;
  }

  .brand img {
    width: 150px;
  }

  .site-header nav {
    display: none;
  }

  .header-network {
    grid-column: 3;
    padding-left: 12px;
  }

  .header-network img {
    width: 48px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 52px;
    min-height: auto;
    padding: 82px 0 124px;
  }

  .hero h1 {
    font-size: clamp(3rem, 13.7vw, 4.65rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-card {
    max-width: 440px;
  }

  .hero-instagram {
    right: 17px;
    bottom: 70px;
  }

  .hero-ribbon {
    justify-content: flex-start;
    gap: 18px;
    padding: 0 18px;
    overflow: hidden;
    white-space: nowrap;
  }

  .hero-ribbon span:last-child,
  .hero-ribbon i:last-of-type {
    display: none;
  }

  .section {
    padding: 82px 0;
  }

  .history-grid,
  .section-heading,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .history-grid {
    gap: 42px;
  }

  .history-copy > p {
    font-size: 1.03rem;
  }

  .brand-connection {
    grid-template-columns: 1fr auto auto auto 1fr;
    gap: 16px;
    margin-top: 65px;
  }

  .connection-sinuelo {
    width: 130px;
  }

  .connection-ancora {
    width: 65px;
  }

  .section-heading {
    gap: 26px;
  }

  .unit-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 42px;
  }

  .unit-card {
    min-height: 365px;
  }

  .contact-inner {
    gap: 30px;
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .instagram-card {
    max-width: 440px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    gap: 28px;
    padding: 46px 0;
  }

  .footer-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .regional-map {
    height: 155px;
  }

  .history-stats {
    grid-template-columns: 1fr;
  }

  .connection-line {
    display: none;
  }

  .brand-connection {
    grid-template-columns: 1fr auto 1fr;
  }

  .connection-sinuelo,
  .connection-ancora {
    justify-self: center;
  }

  .section h2,
  .contact h2 {
    font-size: 2.45rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
