/* =========================
   RESET SOLO PARA MAIN
========================= */
body {
  margin: 0;
}

main {
  display: block;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #121212;
  color: white;
  font-family: Arial;
  overflow-x: hidden;
}

/* evitar que estilos globales afecten fuera */
main * {
  box-sizing: border-box;
}

/* =========================
   TIPOGRAFÍA BASE
========================= */
main {
  font-family: Arial, sans-serif;
  color: white;
  line-height: 1.5;
}

/* headings */
main h1 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 20px;
}

main h2 {
  font-size: 36px;
  margin-bottom: 18px;
}

main h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

main h4 {
  font-size: 22px;
  margin-bottom: 14px;
}

main h5 {
  font-size: 18px;
  margin-bottom: 12px;
}

main h6 {
  font-size: 16px;
  margin-bottom: 10px;
}

/* párrafos */
main p {
  font-size: 16px;
  margin-bottom: 16px;
  opacity: 0.9;
}

/* =========================
   LINKS (SIN ROMPER NAV)
========================= */
main a {
  color: white;
  text-decoration: none;
  position: relative;
  transition: opacity 0.2s ease;
}

main a:hover {
  opacity: 0.7;
}

/* =========================
   SPACING GENERAL
========================= */
main section {
  padding: 80px 20px;
}

main .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   BOTONES
========================= */
main .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;

  border-radius: 6px;
  border: none;

  background: white;
  color: black;

  cursor: pointer;
  transition: all 0.25s ease;
}

main .btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* variante outline */
main .btn-outline {
  background: transparent;
  border: 1px solid white;
  color: white;
}

main .btn-outline:hover {
  background: white;
  color: black;
}

/* =========================
   HERO
========================= */

main .hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #050505;
}

main .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/hero/hero-home-desktop.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9;
  z-index: 0;
}

main .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45)), radial-gradient(circle at top right, rgba(214, 162, 74, 0.12), transparent 35%), radial-gradient(circle at bottom left, rgba(214, 162, 74, 0.08), transparent 35%);
  z-index: 1;
  pointer-events: none;
}

main .hero-content {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 5;
}

/* CTA */

main .hero-cta {
  position: absolute;
  top: 180px;
  left: 30px;
  width: 280px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 162, 74, 0.4);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  font-size: 22px;
  font-weight: 600;
  color: #d6a24a;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease;
  cursor: pointer;
  z-index: 20;
}

main .hero-cta:hover {
  transform: translateY(-3px);
  color: #050505;
  background: #d6a24a;
  border-color: #d6a24a;
  box-shadow:
    0 0 18px rgba(214, 162, 74, 0.35),
    0 0 40px rgba(214, 162, 74, 0.18);
}

main .hero-cta:active {
  transform: translateY(0);
}

/* DESIGN */

main .hero-title {
  position: absolute;
  top: 250px;
  left: 40px;
  margin: 0;
  font-size: 190px !important;
  line-height: 0.8;
  letter-spacing: -0.003em;
  font-weight: 800;
  color: #f5f5f5;
  z-index: 10;
}

/* SEO */

main .hero-subtitle {
  position: absolute;
  left: 450px;
  top: 450px;
  margin: 0;
  font-size: 7vw;
  line-height: 0.82;
  letter-spacing: -0.08em;
  font-weight: 800;
  white-space: nowrap;
  color: #d6a24a;
  z-index: 8;
}

/* TEXTO */

main .hero-description {
  position: absolute;
  left: 30px;
  bottom: 230px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 22px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
  z-index: 20;
}

main .hero-description span:nth-child(1) {
  margin-left: 40px;
}

/* SERVICIOS */

main .hero-services {
  position: absolute;
  top: 250px;
  right: 310px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 25;
}

main .hero-services span {
  font-size: 26px;
  line-height: 1.1;
  font-weight: 400;
  color: #fff;
}

main .hero-line {
  width: 80px;
  height: 2px;
  margin-top: 12px;
  background: #d6a24a;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {
  main .hero {
    height: 900px;
  }

  main .hero-cta {
    top: 150px;
    left: 40px;
    width: 240px;
    height: 50px;
    font-size: 20px;
  }

  main .hero-title {
    top: 200px;
    left: 30px;
    font-size: 150px !important;
  }

  main .hero-subtitle {
    top: 350px;
    left: 100px;
    font-size: 75px;
  }

  main .hero-services {
    top: 500px;
    right: 60px;
  }

  main .hero-services span {
    font-size: 22px;
  }

  main .hero-description {
    left: 35px;
    bottom: 240px;
    font-size: 20px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  main .hero {
    height: 100svh;
    min-height: 920px;
  }

  main .hero::before {
    background-position: center right;
  }

  /* CTA */
  main .hero-cta {
    top: 530px;
    left: 10px;
    width: 290px;
    height: 62px;
    font-size: 20px;
  }

  /* DESIGN */
  main .hero-title {
    top: 25px;
    left: 10px;
    font-size: 110px !important;
    line-height: 0.82;
  }

  /* SEO */
  main .hero-subtitle {
    top: 120px;
    left: 10px;
    font-size: 55px;
    line-height: 0.9;
    white-space: normal;
  }

  /* SERVICIOS */
  main .hero-services {
    top: 360px;
    left: 10px;
    right: auto;
    gap: 6px;
  }

  main .hero-services span {
    font-size: 20px;
  }

  main .hero-line {
    width: 60px;
  }

  /* DESCRIPCIÓN */
  main .hero-description {
    left: 10px;
    bottom: 450px;
    max-width: 340px;
    font-size: 18px;
    line-height: 1.4;
  }

  main .hero-description span:nth-child(1) {
    margin-left: 0;
  }
}

/* =========================
   GRID UTILIDADES
========================= */
main .grid {
  display: grid;
  gap: 20px;
}

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

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

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  main h1 {
    font-size: 34px;
  }

  main h2 {
    font-size: 28px;
  }

  main section {
    padding: 60px 16px;
  }

  main .grid-2,
  main .grid-3 {
    grid-template-columns: 1fr;
  }
}
