:root {
  --blue-950: #061729;
  --blue-900: #08223d;
  --blue-800: #0b3765;
  --blue-600: #115ca8;
  --orange-500: #ff8a1d;
  --yellow-400: #ffd447;
  --green-500: #19a974;
  --gray-950: #131820;
  --gray-700: #4c5a67;
  --gray-500: #7a8792;
  --gray-200: #e6ebef;
  --gray-100: #f5f7f9;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(6, 23, 41, 0.14);
  --radius: 8px;
  --container: 1180px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

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

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

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 999;
  padding: 12px 16px;
  color: var(--white);
  background: var(--blue-950);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(230, 235, 239, 0.8);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 35px rgba(6, 23, 41, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--blue-950);
}

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

.brand span,
.footer-brand span {
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--blue-950);
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue-950);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 20px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: var(--blue-950);
  background: var(--yellow-400);
  box-shadow: 0 12px 24px rgba(255, 138, 29, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--orange-500);
  color: var(--white);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline {
  color: var(--blue-950);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--white);
  background: var(--blue-800);
  border-color: var(--blue-800);
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 84px) 0 90px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 23, 41, 0.92), rgba(6, 23, 41, 0.7) 45%, rgba(6, 23, 41, 0.24)),
    url("assets/galeria/evento-vista-de-cima.jpeg") center / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--blue-600), var(--yellow-400), var(--orange-500), var(--green-500));
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(6, 23, 41, 0.78), rgba(6, 23, 41, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--orange-500);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 4px;
  background: var(--yellow-400);
  border-radius: 999px;
}

.hero h1,
.section-heading h2,
.about-content h2,
.cta-box h2 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: 4.2rem;
  font-weight: 900;
}

.hero-text {
  max-width: 710px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
}

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

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.hero-highlights article {
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-highlights strong,
.hero-highlights span {
  display: block;
}

.hero-highlights strong {
  color: var(--white);
  font-size: 0.96rem;
  line-height: 1.25;
}

.hero-highlights span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

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

.section-heading h2,
.about-content h2,
.cta-box h2 {
  color: var(--blue-950);
  font-size: 2.65rem;
  font-weight: 900;
}

.section-heading p:not(.eyebrow),
.about-content p,
.cta-box p {
  margin: 18px 0 0;
  color: var(--gray-700);
  font-size: 1.04rem;
}

.services {
  background:
    linear-gradient(180deg, var(--white), var(--gray-100));
}

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

.service-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 25px rgba(6, 23, 41, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-600), var(--green-500), var(--yellow-400));
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(17, 92, 168, 0.32);
  box-shadow: var(--shadow);
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  color: var(--white);
  background: var(--blue-800);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 900;
}

.service-card h3,
.application-card h3,
.why-item h3 {
  margin: 0;
  color: var(--blue-950);
  line-height: 1.25;
}

.service-card h3 {
  font-size: 1.25rem;
}

.service-card p {
  margin: 12px 0 0;
  color: var(--gray-700);
}

.applications {
  background: var(--blue-950);
}

.applications .section-heading h2,
.applications .section-heading p:not(.eyebrow) {
  color: var(--white);
}

.applications .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.applications-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-auto-rows: 265px;
  gap: 18px;
}

.application-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 265px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-900);
}

.application-card.large {
  grid-row: span 2;
}

.application-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.application-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 23, 41, 0.86), rgba(6, 23, 41, 0.08));
}

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

.application-card div {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.application-card span,
.gallery-item span {
  display: inline-flex;
  color: var(--yellow-400);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.application-card h3 {
  max-width: 480px;
  margin-top: 8px;
  color: var(--white);
  font-size: 1.18rem;
}

.application-card.large h3 {
  font-size: 1.7rem;
}

.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue-900);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(10) {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 23, 41, 0.8), rgba(6, 23, 41, 0) 56%);
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.gallery-item span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  color: var(--white);
  text-transform: none;
  font-size: 0.94rem;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.why {
  background:
    linear-gradient(135deg, rgba(255, 212, 71, 0.18), rgba(25, 169, 116, 0.12)),
    var(--gray-100);
}

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

.why-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 22px;
  border: 1px solid rgba(17, 92, 168, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(6, 23, 41, 0.05);
}

.why-item span {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 8px solid var(--yellow-400);
  border-left-color: var(--blue-600);
  border-bottom-color: var(--green-500);
  border-radius: 50%;
}

.why-item h3 {
  font-size: 1.02rem;
}

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) 1fr;
  align-items: center;
  gap: 58px;
}

.about-image {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image::before {
  content: "";
  position: absolute;
  inset: 22px -22px auto auto;
  z-index: -1;
  width: 55%;
  height: 55%;
  background: var(--yellow-400);
  border-radius: var(--radius);
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about-tags span {
  padding: 10px 14px;
  color: var(--blue-950);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-weight: 800;
}

.cta-section {
  padding: 0 0 96px;
  background: var(--white);
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 42px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 23, 41, 0.96), rgba(11, 55, 101, 0.94)),
    url("assets/galeria/tenda-sanfonada.jpeg") center / cover no-repeat;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cta-box h2,
.cta-box p {
  color: var(--white);
}

.cta-box p {
  color: rgba(255, 255, 255, 0.78);
}

.contact {
  background: var(--gray-100);
}

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

.contact-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-card dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-card div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
}

.contact-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-card dt {
  color: var(--gray-500);
  font-weight: 800;
}

.contact-card dd {
  margin: 0;
  color: var(--blue-950);
  font-weight: 700;
  word-break: break-word;
}

.contact-card a {
  color: var(--blue-600);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 48px;
  padding: 58px 0 34px;
}

.footer-brand {
  color: var(--white);
}

.footer-brand img {
  width: 74px;
  height: auto;
  padding: 4px;
  background: var(--white);
  border-radius: var(--radius);
}

.site-footer p {
  max-width: 430px;
  margin: 18px 0 0;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-top: 10px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--yellow-400);
}

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.whatsapp-float,
.back-to-top {
  position: fixed;
  z-index: 90;
  border: 0;
  box-shadow: 0 14px 30px rgba(6, 23, 41, 0.24);
}

.whatsapp-float {
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 134px;
  min-height: 52px;
  padding: 14px 18px;
  color: var(--white);
  background: var(--green-500);
  border-radius: var(--radius);
  font-weight: 900;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #138b60;
}

.back-to-top {
  right: 22px;
  bottom: 88px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--blue-950);
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top span {
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--white);
  border-left: 3px solid var(--white);
  transform: translateY(4px) rotate(45deg);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(6, 23, 41, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 86vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 22px;
  width: 22px;
  height: 2px;
  background: var(--white);
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (max-width: 1080px) {
  .header-cta {
    display: none;
  }

  .primary-nav {
    gap: 18px;
  }

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

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

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

  .application-card.large {
    grid-column: span 2;
    grid-row: span 1;
  }

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

  .gallery-item:nth-child(10) {
    grid-column: span 1;
  }

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

@media (max-width: 820px) {
  :root {
    --header-height: 74px;
  }

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

  .brand img {
    width: 58px;
  }

  .brand span {
    font-size: 0.98rem;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: calc(var(--header-height) + 10px);
    display: grid;
    gap: 0;
    margin: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 14px;
    border-radius: var(--radius);
  }

  .primary-nav a:hover,
  .primary-nav a:focus-visible {
    color: var(--blue-950);
    background: var(--gray-100);
  }

  .primary-nav a::after {
    display: none;
  }

  .hero {
    min-height: 720px;
    padding: calc(var(--header-height) + 62px) 0 62px;
    background-position: center;
  }

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

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

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading h2,
  .about-content h2,
  .cta-box h2 {
    font-size: 2.1rem;
  }

  .services-grid,
  .why-grid,
  .applications-grid,
  .about-grid,
  .footer-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .applications-grid {
    grid-auto-rows: 250px;
  }

  .application-card.large {
    grid-column: auto;
  }

  .application-card.large h3 {
    font-size: 1.28rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }

  .about-image,
  .about-image img {
    min-height: 420px;
  }

  .cta-section {
    padding-bottom: 72px;
  }

  .contact-card div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 2.22rem;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 245px;
  }

  .gallery-item:nth-child(1) {
    grid-column: auto;
  }

  .service-card {
    min-height: auto;
  }

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

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-width: 118px;
  }

  .back-to-top {
    right: 14px;
    bottom: 78px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
