:root {
  --bg: #f4f1ee;
  --panel: #ffffff;
  --panel-soft: #f8f6f4;
  --primary: #2d3d9d;
  --primary-dark: #1f2f83;
  --accent: #a9998a;
  --accent-soft: #d9cfc6;
  --text: #17181b;
  --muted: #5c5d63;
  --line: rgba(30, 31, 35, 0.12);
  --shadow: 0 22px 60px rgba(27, 32, 53, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(244, 241, 238, 0.9);
  border-bottom: 1px solid rgba(23, 24, 27, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand img {
  width: clamp(62px, 7vw, 82px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(25, 31, 54, 0.08));
}

.brand span {
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  line-height: 1;
  white-space: nowrap;
}

.nav-toggle {
  position: relative;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(45, 61, 157, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(45, 61, 157, 0.08);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(45, 61, 157, 0.12);
  box-shadow: 0 12px 24px rgba(45, 61, 157, 0.14);
  outline: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
  opacity: 0;
  visibility: hidden;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(23, 24, 27, 0.05);
}

.main-nav.open {
  max-height: 220px;
  opacity: 1;
  visibility: visible;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  padding: 1rem 0;
}

.nav-inner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-inner a:hover,
.nav-inner a:focus-visible {
  background: rgba(45, 61, 157, 0.08);
  color: var(--primary-dark);
  outline: none;
}

.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.hero-visual {
  position: relative;
  height: min(46vw, 500px);
  min-height: 280px;
  display: grid;
  place-items: center;
  animation: fadeUp 0.8s ease both;
}

.gear-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 560px);
  height: 100%;
}

.gear {
  position: relative;
  width: min(90vw, 540px);
  height: min(90vw, 540px);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(65, 76, 164, 0.08) 0deg 15deg,
    transparent 15deg 30deg,
    rgba(169, 153, 138, 0.22) 30deg 45deg,
    transparent 45deg 60deg,
    rgba(65, 76, 164, 0.08) 60deg 75deg,
    transparent 75deg 90deg,
    rgba(169, 153, 138, 0.22) 90deg 105deg,
    transparent 105deg 120deg,
    rgba(65, 76, 164, 0.08) 120deg 135deg,
    transparent 135deg 150deg,
    rgba(169, 153, 138, 0.22) 150deg 165deg,
    transparent 165deg 180deg,
    rgba(65, 76, 164, 0.08) 180deg 195deg,
    transparent 195deg 210deg,
    rgba(169, 153, 138, 0.22) 210deg 225deg,
    transparent 225deg 240deg,
    rgba(65, 76, 164, 0.08) 240deg 255deg,
    transparent 255deg 270deg,
    rgba(169, 153, 138, 0.22) 270deg 285deg,
    transparent 285deg 300deg,
    rgba(65, 76, 164, 0.08) 300deg 315deg,
    transparent 315deg 330deg,
    rgba(169, 153, 138, 0.22) 330deg 345deg,
    transparent 345deg 360deg
  );
  animation: spin 18s linear infinite;
  box-shadow: inset 0 0 0 6px rgba(45, 61, 157, 0.08), inset 0 0 0 22px rgba(169, 153, 138, 0.12), 0 20px 40px rgba(17, 19, 25, 0.08);
}

.gear-large {
  width: min(100%, 460px);
  height: min(100%, 460px);
}

.gear-tooth {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 88px;
  margin-left: -19px;
  margin-top: -44px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(169, 153, 138, 0.8), rgba(95, 100, 120, 0.85));
  transform-origin: center center;
}

.gear-tooth:nth-child(1) { transform: rotate(0deg) translateY(-138px); }
.gear-tooth:nth-child(2) { transform: rotate(30deg) translateY(-138px); }
.gear-tooth:nth-child(3) { transform: rotate(60deg) translateY(-138px); }
.gear-tooth:nth-child(4) { transform: rotate(90deg) translateY(-138px); }
.gear-tooth:nth-child(5) { transform: rotate(120deg) translateY(-138px); }
.gear-tooth:nth-child(6) { transform: rotate(150deg) translateY(-138px); }
.gear-tooth:nth-child(7) { transform: rotate(180deg) translateY(-138px); }
.gear-tooth:nth-child(8) { transform: rotate(210deg) translateY(-138px); }
.gear-tooth:nth-child(9) { transform: rotate(240deg) translateY(-138px); }
.gear-tooth:nth-child(10) { transform: rotate(270deg) translateY(-138px); }
.gear-tooth:nth-child(11) { transform: rotate(300deg) translateY(-138px); }
.gear-tooth:nth-child(12) { transform: rotate(330deg) translateY(-138px); }

.gear-center {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 104px;
  height: 104px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45, 61, 157, 0.9), rgba(30, 32, 49, 0.8));
  box-shadow: inset 0 0 0 10px rgba(255,255,255,0.25);
}

.signal {
  position: absolute;
  border-radius: 999px;
  border: 2px solid rgba(45, 61, 157, 0.3);
  animation: pulse 3s ease-in-out infinite;
}

.signal-one {
  width: 90%;
  height: 90%;
  transform: scale(1);
}

.signal-two {
  width: 68%;
  height: 68%;
  animation-delay: 0.5s;
}

.signal-three {
  width: 45%;
  height: 45%;
  animation-delay: 1s;
}

.hero-text {
  animation: fadeUp 0.85s ease 0.2s both;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.lead {
  max-width: 540px;
  margin-top: 1.2rem;
  font-size: clamp(1rem, 2vw, 1.17rem);
  color: var(--muted);
}

.contact {
  padding: 1rem 0 5rem;
}

.contact-wrap {
  display: flex;
  justify-content: center;
}

.contact-card {
  width: min(100%, 880px);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,246,244,0.96));
  border: 1px solid rgba(23, 24, 27, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 3rem);
  animation: fadeUp 0.9s ease 0.15s both;
}

.contact-card h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.contact-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 680px;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: fit-content;
  min-width: min(100%, 330px);
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(23, 24, 27, 0.08);
  background: var(--bg);
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-item:hover,
.contact-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(40, 48, 85, 0.1);
  border-color: rgba(45, 61, 157, 0.26);
  outline: none;
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45, 61, 157, 0.12), rgba(169, 153, 138, 0.16));
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.contact-item.whatsapp {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(39, 171, 101, 0.16));
  border-color: rgba(37, 211, 102, 0.18);
}

.contact-item.whatsapp .contact-icon {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.18), rgba(20, 170, 90, 0.22));
  color: #0f8d47;
}

.site-footer {
  background: #1b1d23;
  color: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 92px;
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .hero-visual {
    order: 1;
    height: min(72vw, 360px);
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-item {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 78px;
  }

  .brand {
    gap: 0.65rem;
  }

  .brand span {
    font-size: clamp(1.2rem, 7vw, 1.9rem);
  }

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 0 1rem;
  }

  .nav-inner a {
    justify-content: center;
    width: 100%;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-visual {
    min-height: 220px;
  }

  .gear-large {
    width: min(100%, 320px);
    height: min(100%, 320px);
  }

  .gear-tooth {
    width: 24px;
    height: 64px;
    margin-left: -12px;
    margin-top: -32px;
  }

  .gear-tooth:nth-child(1) { transform: rotate(0deg) translateY(-104px); }
  .gear-tooth:nth-child(2) { transform: rotate(30deg) translateY(-104px); }
  .gear-tooth:nth-child(3) { transform: rotate(60deg) translateY(-104px); }
  .gear-tooth:nth-child(4) { transform: rotate(90deg) translateY(-104px); }
  .gear-tooth:nth-child(5) { transform: rotate(120deg) translateY(-104px); }
  .gear-tooth:nth-child(6) { transform: rotate(150deg) translateY(-104px); }
  .gear-tooth:nth-child(7) { transform: rotate(180deg) translateY(-104px); }
  .gear-tooth:nth-child(8) { transform: rotate(210deg) translateY(-104px); }
  .gear-tooth:nth-child(9) { transform: rotate(240deg) translateY(-104px); }
  .gear-tooth:nth-child(10) { transform: rotate(270deg) translateY(-104px); }
  .gear-tooth:nth-child(11) { transform: rotate(300deg) translateY(-104px); }
  .gear-tooth:nth-child(12) { transform: rotate(330deg) translateY(-104px); }

  .gear-center {
    width: 72px;
    height: 72px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1.25rem 0;
  }
}

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

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