:root {
  --yellow: #f6b900;
  --yellow-dark: #d79b00;
  --ink: #1f242b;
  --muted: #6d7480;
  --soft: #f4f5f7;
  --line: #e7e8ea;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(14, 22, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  .hero__slide,
  .service-card,
  .project-card img,
  .logos span,
  .scroll-top,
  .reveal {
    transition: none;
  }

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

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

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

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

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

.topbar {
  background: #222831;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.topbar__inner,
.topbar__contact,
.topbar__social,
.mainnav__inner,
.hero__actions,
.contact-band__grid {
  display: flex;
  align-items: center;
}

.topbar__inner {
  min-height: 42px;
  justify-content: space-between;
  gap: 24px;
}

.topbar__contact {
  gap: 28px;
  flex-wrap: wrap;
}

.topbar__social {
  gap: 14px;
  font-size: 18px; /* Tamaño adecuado para los iconos sociales */
  display: flex;
  align-items: center;
}

.topbar__social a {
  color: inherit;
  transition: color 0.3s ease;
}

.topbar__social a:hover {
  color: var(--yellow);
}

.mainnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  box-shadow: 0 2px 18px rgba(20, 25, 31, 0.08);
}

.mainnav__inner {
  min-height: 88px;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--yellow);
  color: #17191c;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 28px;
  font-weight: 800;
}

.brand__text {
  display: grid;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand__text strong {
  color: var(--ink);
  font-family: "Rubik", Arial, sans-serif;
  font-size: 22px;
}

.brand__text small {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  color: #252a31;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-menu a {
  position: relative;
  padding: 34px 0;
}

.nav-menu a::after {
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  height: 3px;
  background: var(--yellow);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--yellow);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #16191d;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  background: #11151b;
}

.hero__slider {
  position: relative;
  min-height: 590px;
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 58px 0 94px;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.8s ease,
    transform 1.1s ease;
  pointer-events: none;
}

.hero__slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.hero__slide::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 15, 21, 0.86), rgba(10, 15, 21, 0.5), rgba(10, 15, 21, 0.2));
  content: "";
}

.hero__slide:nth-child(1) {
  background: url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1800&q=82")
    center/cover;
}

.hero__slide:nth-child(2) {
  background: url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1800&q=82")
    center/cover;
}

.hero__slide:nth-child(3) {
  background: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1800&q=82")
    center/cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.hero__eyebrow,
.section-kicker {
  color: var(--yellow);
  font-family: "Rubik", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 12px 0 20px;
  color: var(--white);
  font-family: "Rubik", Arial, sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.hero__actions {
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero__dots {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
  pointer-events: auto;
}

.hero__dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition:
    width 0.25s ease,
    background 0.25s ease;
}

.hero__dot.active {
  width: 34px;
  background: var(--yellow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.btn--primary {
  background: var(--yellow);
  color: #191b1f;
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.credentials {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: 28px;
}

.credentials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: var(--shadow);
}

.credential {
  min-height: 172px;
  padding: 32px 30px;
  background: #2b3038;
  color: var(--white);
}

.credential--accent {
  background: var(--yellow);
  color: #17191d;
}

.credential__icon {
  display: block;
  margin-bottom: 14px;
  color: currentColor;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
}

.credential h3 {
  margin: 0 0 8px;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.2;
}

.credential p {
  margin: 0;
  color: currentColor;
  opacity: 0.82;
}

.section {
  padding: 96px 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: "Rubik", Arial, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.about p,
.section-heading p,
.contact-band p,
.contact__info p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

.link-arrow,
.service-card a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--yellow-dark);
  font-family: "Rubik", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.link-arrow::after,
.service-card a::after {
  margin-left: 8px;
  content: ">";
}

.services {
  background: var(--soft);
}

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

.section-heading--center {
  text-align: center;
}

.section-heading--center p {
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  box-shadow: 0 12px 32px rgba(21, 28, 37, 0.08);
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 42px rgba(21, 28, 37, 0.14);
}

.service-card img {
  aspect-ratio: 1.45;
  object-fit: cover;
}

.service-card__body {
  min-height: 210px;
  padding: 26px 24px 28px;
}

.service-card h3 {
  min-height: 58px;
  margin: 0 0 10px;
  color: var(--ink);
  font-family: "Rubik", Arial, sans-serif;
  font-size: 21px;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.stats {
  background:
    linear-gradient(rgba(25, 29, 35, 0.88), rgba(25, 29, 35, 0.88)),
    url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=1600&q=78")
      center/cover;
  color: var(--white);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  min-height: 210px;
  align-items: center;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--yellow);
  font-family: "Rubik", Arial, sans-serif;
  font-size: 58px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 255px;
  gap: 18px;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: #20252c;
}

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

.project-card img {
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 0.35s ease;
}

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

.project-card:hover::after {
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.06), rgba(10, 13, 18, 0.92));
}

.project-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.1), rgba(10, 13, 18, 0.86));
  content: "";
}

.project-card div {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  z-index: 1;
  color: var(--white);
}

.project-card h3 {
  margin: 0 0 4px;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.clients {
  background: var(--soft);
}

.clients__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}

.testimonial {
  padding: 42px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(15, 22, 32, 0.08);
}

.stars {
  margin: 22px 0 10px;
  color: var(--yellow-dark);
  font-size: 18px;
  letter-spacing: 0;
}

blockquote {
  margin: 0;
  color: #3d434b;
  font-size: 20px;
  font-style: italic;
}

.testimonial__author {
  margin: 22px 0 0;
  color: var(--muted);
  font-weight: 700;
}

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

.logos span {
  display: grid;
  place-items: center;
  min-height: 88px;
  border: 1px solid var(--line);
  background: var(--white);
  color: #6f7781;
  font-family: "Rubik", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.logos span:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 22, 32, 0.08);
}

.contact-band {
  background: var(--yellow);
}

.contact-band__grid {
  justify-content: space-between;
  gap: 26px;
  min-height: 164px;
  color: #17191d;
}

.contact-band h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 40px);
}

.contact-band .btn {
  flex: 0 0 auto;
  background: #1e232a;
  color: var(--white);
}

.contact {
  padding-top: 70px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: stretch;
}

.contact-form {
  padding: 32px;
  background: var(--soft);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(21, 28, 37, 0.06);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.contact-form__field {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-family: "Rubik", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(246, 185, 0, 0.35);
  border-color: var(--yellow);
}

.map-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.72) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.72) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.72) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.72) 75%),
    #d9dde2;
  background-position:
    0 0,
    0 18px,
    18px -18px,
    -18px 0;
  background-size: 36px 36px;
}

.map-card::before,
.map-card::after {
  position: absolute;
  background: rgba(35, 43, 52, 0.28);
  content: "";
}

.map-card::before {
  top: 46%;
  right: -10%;
  left: -10%;
  height: 24px;
  transform: rotate(-12deg);
}

.map-card::after {
  top: -10%;
  bottom: -10%;
  left: 58%;
  width: 22px;
  transform: rotate(18deg);
}

.map-card__pin {
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: 1;
  width: 30px;
  height: 30px;
  border: 7px solid #252a31;
  border-radius: 50% 50% 50% 0;
  background: var(--yellow);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.contact__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__info p {
  margin-top: 14px;
  font-size: 18px;
}

.footer {
  background: #1f242b;
  color: rgba(255, 255, 255, 0.74);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr 1fr;
  gap: 34px;
  padding: 70px 0 54px;
}

.footer h3 {
  margin: 0 0 18px;
  color: var(--white);
  font-family: "Rubik", Arial, sans-serif;
  font-size: 20px;
}

.footer p {
  margin: 0 0 10px;
}

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

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  text-align: center;
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366; /* Color oficial WhatsApp */
  color: var(--white);
  box-shadow: 0 12px 28px rgba(10, 16, 24, 0.24);
  font-size: 32px; /* Tamaño del icono */
  transition: transform 0.3s ease;
}

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

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 29;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #1f242b;
  color: var(--white);
  box-shadow: 0 12px 28px rgba(10, 16, 24, 0.22);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

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

.reveal--fade {
  transform: none;
}

.reveal--fade.is-visible {
  transform: none;
}

@media (max-width: 1020px) {
  .topbar__inner {
    justify-content: center;
  }

  .topbar__social {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 88px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: 0 18px 30px rgba(20, 25, 31, 0.12);
  }

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

  .nav-menu a {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
  }

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

  .credentials__grid,
  .services__grid,
  .clients__grid,
  .contact__grid,
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credentials__grid {
    box-shadow: none;
  }

  .credential:nth-child(3) {
    grid-column: span 2;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

@media (max-width: 700px) {
  .container {
    width: min(100% - 24px, 1170px);
  }

  .topbar__contact {
    justify-content: center;
    gap: 6px 18px;
    padding: 8px 0;
    text-align: center;
  }

  .mainnav__inner {
    min-height: 76px;
  }

  .brand {
    min-width: 0;
  }

  .brand__mark {
    width: 46px;
    height: 46px;
  }

  .brand__text strong {
    font-size: 18px;
  }

  .nav-menu {
    top: 76px;
  }

  .hero__slide {
    padding: 42px 0 52px;
  }

  .hero__slider {
    min-height: 520px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 42px);
  }

  .hero__copy {
    font-size: 16px;
  }

  .hero__dots {
    bottom: 16px;
  }

  .hero__actions {
    gap: 10px;
    margin-top: 26px;
  }

  .btn {
    min-height: 48px;
    width: 100%;
  }

  .credentials {
    margin-top: 0;
    padding-top: 20px;
  }

  .credentials__grid,
  .services__grid,
  .stats__grid,
  .projects__grid,
  .clients__grid,
  .contact__grid,
  .footer__grid,
  .logos {
    grid-template-columns: 1fr;
  }

  .credential:nth-child(3),
  .project-card--large {
    grid-column: auto;
    grid-row: auto;
  }

  .section {
    padding: 70px 0;
  }

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

  .contact-band__grid {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 0;
  }

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

  .scroll-top {
    right: 16px;
    bottom: 84px;
  }

  .testimonial {
    padding: 28px;
  }

  blockquote {
    font-size: 18px;
  }
}
