:root {
  --bg: #070807;
  --panel: #141414;
  --text: #f5f5f3;
  --muted: #b7b7b7;
  --yellow: #ffd235;
  --yellow-dark: #d1aa17;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.site-header {
  position: absolute;
  top: 35px;
  left: 66px;
  right: 66px;
  z-index: 1000;
  display: grid;
  grid-template-columns: 210px 1fr 205px;
  align-items: center;
}

.brand {
  display: block;
  width: 169px;
  height: 48px;
  overflow: hidden;
}

.brand img,
.footer-logo {
  display: block;
  width: 252px;
  height: auto;
  transform-origin: left top;
}

.brand img {
  transform: scale(0.61);
}

.menu-toggle {
  display: none;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 57px;
  color: #c3c3c3;
  font-size: 18px;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding-bottom: 15px;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 57px;
  height: 2px;
  background: var(--yellow);
}

.quote,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.quote:hover,
.button-primary:hover {
  transform: scale(1.05);
}

.quote:active,
.button-primary:active {
  transform: scale(0.95);
}

.quote-top {
  justify-self: end;
  width: 203px;
  height: 49px;
  background: var(--yellow);
  color: #171717;
  font-size: 16px;
  position: relative;
  z-index: 1100; /* Aseguramos que esté por encima de todo en el header */
}

.hero {
  position: relative;
  min-height: 770px;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  top: -72px;
  right: 0;
  width: 100%;
  height: auto;
  min-height: 911px;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(7, 8, 7, 0.72) 0%, rgba(7, 8, 7, 0.34) 31%, rgba(7, 8, 7, 0.02) 57%, rgba(7, 8, 7, 0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 8, 7, 0.86) 6%, rgba(7, 8, 7, 0) 20%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: 690px;
  padding: 272px 0 0 66px;
}

.hero h1 {
  margin: 0;
  color: #f4f4f4;
  font-size: 46px;
  line-height: 1.13;
  font-weight: 700;
}

.hero p {
  width: 492px;
  margin: 34px 0 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
}

.button-primary {
  width: 171px;
  height: 48px;
  background: var(--yellow);
  color: #151515;
  font-size: 16px;
  position: relative;
  z-index: 4;
}

.whatsapp-widget {
  position: fixed;
  right: 78px;
  bottom: 40px;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 12px;
}

.whatsapp {
  min-width: 75px;
  height: 75px;
  padding: 0 19px 0 23px;
  border: 0;
  width: 75px;
  border-radius: 50%;
  background: #19d366;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.whatsapp span {
  display: none;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.whatsapp:hover,
.whatsapp-widget.is-open .whatsapp {
  width: 360px;
  border-radius: 999px;
}

.whatsapp:hover span,
.whatsapp-widget.is-open .whatsapp span {
  display: inline;
}

.whatsapp svg {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: block;
  fill: #fff;
}

.whatsapp-options {
  display: none;
  width: 438px;
  overflow: hidden;
  padding: 0 0 28px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.whatsapp-widget.is-open .whatsapp-options {
  display: grid;
  gap: 18px;
}

.whatsapp-panel-header {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 102px;
  padding: 22px 30px;
  background: #29b946;
  color: #fff;
}

.whatsapp-panel-header svg {
  width: 48px;
  min-width: 48px;
  height: 48px;
  fill: currentColor;
}

.whatsapp-panel-header strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 700;
}

.whatsapp-panel-header span {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
}

.whatsapp-options p {
  margin: 6px 28px 8px;
  color: #6b7c8f;
  font-size: 14px;
  line-height: 1.35;
}

.whatsapp-option-card {
  display: grid;
  grid-template-columns: 64px 1fr 32px;
  align-items: center;
  gap: 14px;
  min-height: 90px;
  margin: 0 24px;
  padding: 16px 18px;
  border-left: 2px solid #29b946;
  border-radius: 5px;
  background: #f1f3f5;
  color: #3b4652;
}

.whatsapp-option-card:hover {
  background: #e9edf0;
}

.whatsapp-option-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #50d16d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px #e0f5e5;
}

.whatsapp-option-icon svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

.whatsapp-option-card strong {
  display: block;
  color: #3b4652;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 500;
}

.whatsapp-option-card small {
  display: block;
  margin-top: 3px;
  color: #8c949d;
  font-size: 14px;
  line-height: 1.15;
}

.whatsapp-option-end {
  width: 26px;
  height: 26px;
  fill: #29b946;
}

.about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0;
  align-items: start;
  padding: 84px 66px 0;
  min-height: 865px;
}

.about-photo {
  width: calc(100% - 17px);
  height: 655px;
  object-fit: cover;
  object-position: 42% center;
  filter: grayscale(100%);
}

.about-copy {
  padding-top: 116px;
  padding-left: 112px;
  width: 100%;
  max-width: 500px;
}

.about h2,
.services-intro h2,
.why h2 {
  margin: 0;
  font-size: 60px;
  line-height: 1.13;
  font-weight: 700;
}

.about p {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
}

.about ul {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: #bdbdbd;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}

.about-highlights {
  display: block;
}

.about-highlights li {
  color: var(--yellow);
  font-weight: 800;
  line-height: 1.45;
}

.services {
  padding: 0 66px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: stretch;
}

.service-card {
  min-height: 238px;
  padding: 47px 18px 28px;
  border-radius: 8px;
  background: var(--panel);
}

.service-card img {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 25px;
  image-rendering: auto;
  mix-blend-mode: screen;
}

.service-card h3 {
  margin: 0;
  color: #d6d6d6;
  font-size: 23px;
  line-height: 1.1;
  font-weight: 700;
}

.service-card p {
  margin: 8px 0 0;
  color: #d1d1d1;
  font-size: 16px;
  line-height: 1.22;
  font-weight: 600;
}

.services-intro {
  grid-column: span 2;
  min-height: 238px;
  padding: 5px 18px 0 20px;
}

.services-intro p {
  margin: 28px 0 0;
  color: #c2c2c2;
  font-size: 18px;
  line-height: 1.52;
  font-weight: 500;
}

.why {
  padding: 112px 66px 125px;
}

.why-panel {
  min-height: 604px;
  border-radius: 42px;
  background: var(--panel);
  padding: 80px 100px 70px;
}

.why h2 {
  text-align: center;
  font-size: 60px;
}

.why p {
  max-width: 1048px;
  margin: 37px auto 0;
  color: #bdbdbd;
  text-align: center;
  font-size: 18px;
  line-height: 1.52;
  font-weight: 600;
}

.outline-tags,
.solid-tags {
  display: flex;
  flex-wrap: wrap;
}

.outline-tags {
  justify-content: space-between;
  gap: 26px;
  margin-top: 55px;
}

.outline-tags span {
  min-width: 162px;
  height: 55px;
  padding: 0 28px;
  border: 2px solid var(--yellow-dark);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dedede;
  font-size: 23px;
  font-weight: 700;
}

.solid-tags {
  display: grid;
  grid-template-columns: 414px 438px;
  gap: 32px 33px;
  margin-top: 41px;
}

.solid-tags span {
  width: 100%;
  min-width: 0;
  height: 55px;
  padding: 0 34px;
  border-radius: 8px;
  background: var(--yellow);
  color: #101010;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.solid-tags span:last-child {
  grid-column: 1;
}

.contact-form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: 70px;
  align-items: start;
  padding: 0 66px 118px;
}

.contact-form-copy h2 {
  margin: 0;
  font-size: 52px;
  line-height: 1.1;
}

.contact-form-copy p {
  margin: 26px 0 0;
  max-width: 430px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
}

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

.contact-form label {
  display: grid;
  gap: 9px;
  color: #f0f0ee;
  font-size: 15px;
  font-weight: 800;
}

.contact-form label:nth-child(4) {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #343434;
  border-radius: 8px;
  background: #111;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--yellow);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button-primary {
  width: 178px;
  border: 0;
  cursor: pointer;
}

.footer {
  background: var(--panel);
  min-height: 430px;
  padding: 84px 90px 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 365px 300px 1fr;
  column-gap: 115px;
  align-items: start;
}

.footer-logo {
  width: 252px;
  margin-top: 3px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  color: var(--yellow);
  font-size: 23px;
  font-weight: 700;
}

.quote-footer {
  width: 199px;
  height: 45px;
  margin-top: 14px;
  background: #f7f7f7;
  color: #343434;
  font-size: 16px;
}

.contact h2 {
  margin: 0 0 32px;
  color: var(--yellow);
  font-size: 23px;
  line-height: 1;
  font-weight: 700;
}

.contact a,
.contact p,
.address-line {
  display: block;
  margin: 0 0 20px;
  color: #e6e6e6;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
}

.address-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact .map-link {
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f3;
  color: #101010;
}

.map-link svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.socials {
  display: flex;
  gap: 22px;
  margin-top: 34px;
}

.socials a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid #f5f5f3;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f3;
}

.socials svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}

.socials a:hover {
  background: #f5f5f3;
  color: #101010;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 26px 23px 20px;
    background: #080908;
    width: 100%;
    max-width: 100vw;
  }

  .brand {
    width: 165px;
    height: 36px;
  }

  .brand img {
    transform: scale(0.6);
  }

  .menu-toggle {
    position: fixed;
    top: 26px;
    right: 23px;
    z-index: 50;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    color: var(--yellow);
    font-size: 21px;
    line-height: 1;
  }

  .menu-toggle::before {
    content: none;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: center;
    gap: 14px;
    max-width: 100%;
    padding: 10px 0 0;
    font-size: 14px;
    scrollbar-width: none;
  }

  .site-header.is-open .main-nav {
    display: flex;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .quote-top {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 0 20px 55px;
    overflow: hidden;
  }

  .hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: 158vw;
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: right top;
    opacity: 1;
  }

  .hero::after {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(7, 8, 7, 0.42) 22%, rgba(7, 8, 7, 0.04) 68%),
      linear-gradient(90deg, rgba(7, 8, 7, 0.55) 0%, rgba(7, 8, 7, 0.08) 58%, rgba(7, 8, 7, 0) 100%);
  }

  .hero-copy {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 387px 0 0;
    text-align: center;
  }

  .hero h1 {
    max-width: 280px;
    margin: 0 auto;
    font-size: 22px;
    line-height: 1.13;
    overflow-wrap: break-word;
  }

  .hero p {
    width: 100%;
    max-width: 270px;
    margin: 30px auto 24px;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: break-word;
  }

  .button-primary {
    width: 141px;
    min-width: 0;
    height: 37px;
    padding: 0 20px;
    font-size: 12px;
  }

  .whatsapp-widget {
    right: 20px;
    top: auto;
    bottom: 20px;
  }

  .whatsapp {
    width: 58px;
    min-width: 58px;
    height: 58px;
    padding: 0;
  }

  .whatsapp svg {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }

  .whatsapp:hover,
  .whatsapp-widget.is-open .whatsapp {
    width: 58px;
    border-radius: 50%;
  }

  .whatsapp span,
  .whatsapp:hover span,
  .whatsapp-widget.is-open .whatsapp span {
    display: none;
  }

  .whatsapp-options {
    width: min(276px, calc(100vw - 40px));
  }

  .about,
  .service-grid,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .about {
    gap: 42px;
    padding: 34px 20px 0;
    min-height: 0;
  }

  .about-photo,
  .about-copy {
    width: 100%;
  }

  .about-photo {
    height: clamp(420px, 118vw, 620px);
    aspect-ratio: auto;
    object-position: 37% center;
  }

  .about-copy {
    max-width: 100%;
    padding: 0;
  }

  .about h2,
  .services-intro h2,
  .why h2 {
    font-size: 40px;
    line-height: 1.12;
  }

  .about p,
  .services-intro p,
  .why p {
    font-size: 16px;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .services {
    padding: 64px 20px 0;
  }

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

  .services-intro {
    order: -1;
    grid-column: 1 / -1;
    min-height: 0;
    padding: 0 0 16px;
  }

  .service-card {
    min-height: 0;
    margin-bottom: 0;
    padding: 34px 24px 28px;
  }

  .service-card h3 {
    font-size: 22px;
  }

  .service-card p {
    font-size: 15px;
    overflow-wrap: break-word;
  }

  .why {
    padding: 64px 20px 76px;
  }

  .contact-form-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px 76px;
  }

  .contact-form-copy h2 {
    font-size: 36px;
  }

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

  .contact-form .button-primary {
    width: 100%;
  }

  .why-panel {
    min-height: 0;
    border-radius: 22px;
    padding: 42px 20px;
  }

  .outline-tags,
  .solid-tags {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .solid-tags span,
  .outline-tags span {
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 52px;
    padding: 12px 18px;
    margin-top: 0;
    text-align: center;
    white-space: normal;
    line-height: 1.18;
    font-size: 18px;
  }

  .solid-tags span:last-child {
    grid-column: auto;
  }

  .footer {
    min-height: 0;
    padding: 52px 24px;
  }

  .footer-inner {
    gap: 44px;
  }

  .footer-logo {
    width: 220px;
  }

  .footer-nav,
  .contact {
    margin-top: 0;
  }

  .footer-nav {
    gap: 22px;
    font-size: 20px;
  }

  .contact a,
  .contact p {
    overflow-wrap: anywhere;
  }

  main,
  section,
  .hero-copy,
  .about-copy,
  .services-intro,
  .why-panel,
  .footer-inner {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .main-nav {
    font-size: 13px;
  }

  .menu-toggle {
    right: max(23px, calc(100vw - 353px));
  }

  .hero-photo {
    right: 0;
  }

  .hero h1 {
    font-size: 22px;
  }

  .about h2,
  .services-intro h2,
  .why h2 {
    font-size: 36px;
  }

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

  .services-intro {
    grid-column: auto;
  }
}
