:root {
  --primary: #bd4a3c;
  --dark: #3f4346;
  --light: #f8f7f5;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans", sans-serif;
  color: var(--dark);
  background: white;
}

/* ==========================
   HERO
========================== */

.hero {
  position: relative;
  min-height: 100vh;

  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2000&q=80");

  background-size: cover;
  background-position: center;

  display: flex;
  flex-direction: column;
}

.overlay {
  position: absolute;
  inset: 0;
}

/* ==========================
   NAVBAR
========================== */

nav {
  padding: 35px 8%;
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 240px;
  height: auto;
}

/* ==========================
   HERO CONTENT
========================== */

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 750px;

  margin: auto 0;
  margin-left: 8%;

  padding: 40px 0;

  text-align: left;
}

.badge {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.hero h1 {
  margin-top: 20px;
  font-size: 4.5rem;
  line-height: 1.1;
  color: var(--dark);
  font-weight: 800;
}

.hero p {
  margin-top: 25px;

  font-size: 1.15rem;
  line-height: 1.9;

  color: #5f6368;

  max-width: 650px;
}

/* ==========================
   BOTONES
========================== */

.buttons {
  margin-top: 40px;

  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;

  padding: 16px 34px;

  border-radius: 10px;

  font-weight: 700;

  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  border: 2px solid var(--dark);
  color: var(--dark);
  background: white;
}

/* ==========================
   SERVICIOS
========================== */

.services {
  padding: 120px 8%;
  background: white;
}

.section-title {
  margin-bottom: 70px;
}

.section-title span {
  display: block;

  color: var(--dark);

  font-size: 1rem;
  letter-spacing: 4px;

  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 5rem;
  line-height: 1;

  color: var(--primary);

  font-weight: 800;

  margin-bottom: 20px;
}

.section-title p {
  max-width: 600px;

  color: #666;

  font-size: 1.05rem;
  line-height: 1.8;
}

.services-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 30px;
}

.card {
  background: white;

  padding: 35px;

  border-radius: 18px;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);

  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
}

.icon {
  font-size: 3rem;

  margin-bottom: 20px;
}

.card h3 {
  color: var(--dark);

  margin-bottom: 15px;

  font-size: 1.4rem;
}

.card p {
  color: #666;

  line-height: 1.8;
}

/* ==========================
   FOOTER
========================== */

footer {
  background: var(--dark);

  color: white;

  padding: 45px 8%;
}

.footer-content {
  display: flex;

  justify-content: center;

  gap: 40px;

  flex-wrap: wrap;

  text-align: center;

  font-size: 0.95rem;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 992px) {
  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-content {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  nav {
    justify-content: center;
  }

  .logo img {
    width: 180px;
  }

  .hero-content {
    margin: auto;
    padding: 40px 25px;

    text-align: center;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .buttons {
    justify-content: center;
  }

  .section-title {
    text-align: center;
  }

  .section-title h2 {
    font-size: 3rem;
  }

  .section-title p {
    margin: auto;
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
  }
}
