:root {
  --radius: 0.625rem;
  --background: oklch(0.99 0.005 250);
  --foreground: oklch(0.18 0.05 260);
  --card: oklch(1 0 0);
  --primary: oklch(0.22 0.08 265);
  --secondary: oklch(0.96 0.01 250);
  --gold: oklch(0.78 0.13 80);
  --gold-foreground: oklch(0.2 0.05 265);
  --navy: oklch(0.22 0.08 265);
  --navy-deep: oklch(0.16 0.07 265);
  --whatsapp: oklch(0.65 0.18 145);
  --muted: oklch(0.968 0.007 247.896);
  --muted-foreground: oklch(0.554 0.046 257.417);
  --border: oklch(0.929 0.013 255.508);
  --shadow: 0 20px 60px -30px rgb(0 0 0 / 0.35);
  --display: "Oswald", Impact, "Arial Narrow", system-ui, sans-serif;
  --sans: "Barlow", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  line-height: 1.5;
  letter-spacing: 0.005em;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
}

h1,
h2,
h3,
.font-display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  background: var(--navy-deep);
  color: white;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img,
.footer-brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 2px oklch(0.78 0.13 80 / 0.6);
}

.brand strong {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  margin-top: 0.1rem;
  color: rgb(255 255 255 / 0.6);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

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

.wa-pill,
.button,
.quote-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.wa-pill {
  background: var(--whatsapp);
  color: white;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.wa-pill:hover,
.button-whatsapp:hover,
.quote-link:hover {
  filter: brightness(1.1);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.menu-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

.menu-close {
  display: none;
}

.mobile-nav {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  background: var(--navy-deep);
}

.mobile-nav .container {
  display: grid;
  gap: 0.25rem;
  padding-block: 0.75rem;
  font-size: 0.875rem;
}

.mobile-nav a:not(.wa-pill) {
  padding-block: 0.5rem;
}

.float-whatsapp {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--whatsapp);
  color: white;
  box-shadow: 0 16px 35px rgb(0 0 0 / 0.2);
  transition: transform 0.2s ease;
}

.float-whatsapp:hover {
  transform: scale(1.1);
}

.float-whatsapp svg {
  width: 1.75rem;
  height: 1.75rem;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
}

.hero-bg,
.hero-blur,
.hero-gradient {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: url("assets/hero_tecnico.jpg") center / cover;
}

.hero-blur {
  background: oklch(0.16 0.07 265 / 0.7);
  backdrop-filter: blur(2px);
}

.hero-gradient {
  background: linear-gradient(90deg, oklch(0.16 0.07 265 / 0.9), oklch(0.16 0.07 265 / 0.6), transparent);
}

.hero-inner {
  position: relative;
  display: grid;
  min-height: 36rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 3rem;
  padding-block: clamp(5rem, 9vw, 7rem);
}

.hero-copy {
  max-width: 40rem;
}

.eyebrow,
.section-heading span,
.contact-label {
  display: inline-flex;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.eyebrow {
  border: 1px solid oklch(0.78 0.13 80 / 0.4);
  border-radius: 999px;
  background: oklch(0.78 0.13 80 / 0.1);
  padding: 0.3rem 0.75rem;
}

.hero h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

.hero h1 span {
  display: block;
  color: var(--gold);
}

.hero p {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  color: rgb(255 255 255 / 0.75);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  min-height: 3rem;
  padding: 0.85rem 1.5rem;
}

.button-whatsapp {
  background: var(--whatsapp);
  color: white;
  box-shadow: 0 16px 30px rgb(0 0 0 / 0.3);
}

.button-ghost {
  border: 1px solid rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.05);
  color: white;
  backdrop-filter: blur(8px);
}

.button-ghost:hover {
  background: rgb(255 255 255 / 0.1);
}

.button-navy {
  background: var(--navy);
  color: white;
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
}

.button-navy:hover {
  background: var(--navy-deep);
}

.button-outline {
  border: 1px solid rgb(255 255 255 / 0.2);
  color: white;
}

.button-outline:hover {
  background: rgb(255 255 255 / 0.05);
}

.button.full {
  width: 100%;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  color: rgb(255 255 255 / 0.6);
  font-size: 0.875rem;
}

.hero-stats strong {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 0.25rem;
}

.section {
  padding-block: clamp(5rem, 8vw, 7rem);
}

.section-heading {
  max-width: 42rem;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.reviews-heading h2,
.contact-section h2 {
  margin: 0.75rem 0 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.section-heading p,
.reviews-heading p {
  margin: 1rem 0 0;
  color: var(--muted-foreground);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.service-card {
  overflow: hidden;
  border: 1px solid oklch(0.929 0.013 255.508 / 0.6);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-0.25rem);
  border-color: oklch(0.78 0.13 80 / 0.5);
  box-shadow: var(--shadow);
}

.service-media {
  position: relative;
  height: 11rem;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.05);
}

.service-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.22 0.08 265 / 0.7), oklch(0.22 0.08 265 / 0.1), transparent);
}

.service-icon {
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: oklch(0.22 0.08 265 / 0.9);
  color: var(--gold);
  font-size: 1.25rem;
  box-shadow: 0 10px 25px rgb(0 0 0 / 0.25);
}

.service-body {
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  padding: 1.5rem;
}

.service-body h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.45rem;
}

.service-body p {
  flex: 1;
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.quote-link {
  width: 100%;
  margin-top: 1.25rem;
  background: var(--whatsapp);
  color: white;
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
}

.portfolio-section {
  background: oklch(0.96 0.01 250 / 0.5);
}

.portfolio-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.gallery-grid figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0;
  border-radius: 1rem;
  background: var(--muted);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.16 0.07 265 / 0.7), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.gallery-grid figure:hover::after {
  opacity: 1;
}

.reviews-heading {
  display: grid;
  justify-items: center;
  text-align: center;
}

.google-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.06);
}

.google-g {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #4285f4;
  font-weight: 900;
}

.stars {
  color: #fbbc04;
  letter-spacing: 0.05em;
}

.review-carousel-wrap {
  margin-top: 3rem;
}

.review-track {
  display: grid;
  grid-auto-columns: calc((100% - 2rem) / 3);
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.review-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  min-height: 17rem;
  border: 1px solid oklch(0.929 0.013 255.508 / 0.7);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 1.5rem;
  scroll-snap-align: start;
}

.review-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
}

.review-top strong,
.review-top small {
  display: block;
}

.review-top small {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.review-card .stars {
  margin-top: 1rem;
}

.review-card p {
  margin: 0.75rem 0 0;
  color: oklch(0.18 0.05 260 / 0.8);
  font-size: 0.9rem;
  line-height: 1.65;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.carousel-button {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.carousel-button:hover {
  border-color: var(--gold);
  color: var(--gold-foreground);
}

.contact-section {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: white;
}

.contact-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, oklch(0.78 0.13 80 / 0.3), transparent 50%);
  opacity: 0.4;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 3rem;
}

.contact-section h2 {
  color: white;
}

.contact-section p {
  max-width: 28rem;
  color: rgb(255 255 255 / 0.7);
}

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

.contact-list span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-list svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gold);
}

.contact-card {
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 0.05);
  padding: 2rem;
  backdrop-filter: blur(16px);
}

.contact-card h3 {
  margin: 0;
  color: var(--gold);
  font-size: 1.75rem;
}

.contact-card .button {
  margin-top: 1rem;
}

.mobile-final {
  display: none;
}

.footer {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  background: var(--navy-deep);
  color: rgb(255 255 255 / 0.7);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 2.5rem;
  height: 2.5rem;
}

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-track {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 768px) {
  .desktop-nav,
  .desktop-wa {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .menu-button.is-open .menu-open {
    display: none;
  }

  .menu-button.is-open .menu-close {
    display: block;
  }

  .hero-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-block: 5rem;
  }

  .hero-gradient {
    background: linear-gradient(180deg, oklch(0.16 0.07 265 / 0.9), oklch(0.16 0.07 265 / 0.7));
  }

  .hero-stats {
    gap: 1rem;
  }

  .portfolio-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .review-track {
    grid-auto-columns: 85%;
  }

  .mobile-final {
    display: block;
    padding-block: 3rem;
  }

  .mobile-project {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin-top: 1.5rem;
  }

  .mobile-project img {
    width: 100%;
  }

  .mobile-project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, oklch(0.16 0.07 265 / 0.8), transparent);
  }

  .mobile-project-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 1.5rem;
    color: white;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .brand img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.55rem;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-stats {
    justify-content: space-between;
    font-size: 0.8rem;
  }

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

  .service-body {
    min-height: 0;
  }

  .google-pill {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 1rem;
  }

  .contact-card {
    padding: 1.25rem;
  }

  .float-whatsapp {
    right: 1rem;
    bottom: 1rem;
    width: 3.1rem;
    height: 3.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
