/* ================= BODY ================= */
body {
  background-color: #0f1115;
  color: white;
  font-family: 'Inter', sans-serif;
  margin: 0;
  overflow-x: hidden;
  letter-spacing: 0.3px;
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  background-color: #0f1115;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid #1f232b;
}

.cont-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}


.logo-barber {
  color: white;
}

.button-nav {
  padding: 10px 20px;
  background: #ff8c00;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.button-nav:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3);
}

.container-first button {
  padding: 15px 25px;
  font-size: 1.25rem;
  background: #ff8c00;
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.container-first button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.25);
}

/* ================= HERO ================= */
.cont-first {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 40px;
  gap: 40px;
  min-height: 75vh;
  /* CAMBIO #2 */
}

.container-first {
  flex: 1;
  max-width: 600px;
}

.container-first h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.destacado {
  color: #ff8c00;
}

/* CAMBIO #3 */
.container-first p {
  color: #a0a0a0;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  /* antes: 300px */
}

/* IMAGEN */
.cont-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* CAMBIO #4 */
.img-barber {
  width: 100%;
  max-width: 500px;
  border-radius: 25px;
  object-fit: cover;
}

/* ================= SERVICIOS ================= */
.cont-second {
  padding: 60px 40px;
}

/* CAMBIO #5 */
.container-second {
  max-width: 1200px;
  margin: 0 auto;
}

.container-second h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2rem;
}

.container-second p {
  text-align: center;
  color: #a0a0a0;
  margin-bottom: 40px;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  justify-content: center;
  gap: 25px;
}

.service-card::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #ff8c00;
  margin-top: 10px;
  border-radius: 10px;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.9) 10%,
      rgba(0, 0, 0, 0.5) 40%,
      transparent 80%);
  z-index: 1;
}

.service-card {
  position: relative;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: white;
  font-weight: bold;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border: 1px solid rgba(255, 255, 255, 1);
  transition: all 0.3s ease;
}

.service-card h3 {
  position: relative;
  z-index: 2;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  font-weight: 700;
}

.service-card p {
  font-size: 0.95rem;
  color: #ff8c00;
  margin-top: 4px;
}

.service-card:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.service-card:hover img {
  transform: scale(1.08);
}


.card1 {
  background-image: url("../assets/images/CorteClasico.jpg");
}

.card2 {
  background-image: url("../assets/images/corte-cejas.jpg");
}

.card3 {
  background-image: url("../assets/images/Corte+Barba.jpg");
}

.card4 {
  background-image: url("../assets/images/barba.jpg");
}

.card5 {
  background-image: url("../assets/images/combo-completo.jpg");
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

  .cont-first {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 600px) {

  .navbar {
    padding: 18px 20px;
  }

  .button-nav {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .cont-first {
    flex-direction: column;
    padding: 30px 20px 10px;
    gap: 30px;
    min-height: auto;
    text-align: center;
  }

  .container-first h1 {
    font-size: 3rem;
    line-height: 1.1;
  }

  .container-first p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .container-first button {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
  }

  .img-barber {
    max-width: 100%;
    height: 420px;
    border-radius: 24px;
  }

  .cont-second {
    padding: 40px 20px;
  }

  .container-second h2 {
    font-size: 2.1rem;
    text-align: center;
  }

  .container-second p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
  }

  .services {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
  }

  .service-card {
    width: 85%;
    height: 220px;
    border-radius: 20px;
    padding: 18px;
  }

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

}