.banner {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  position: relative;
}

.banner-hero {
  position: relative;
  width: 100%;
}

.banner-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(70%);
}

.banner-texto-principal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: var(--color-blanco);
  width: 600px;
  padding: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.banner-texto-principal h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.banner-texto-principal p {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.4;
}

.btn-products { 
  width: 300px;
  padding: 10px;
  background-color: var(--color-secundario);
  border-radius: 5px;
  transition: transform 0.2s ease-in-out;
}

.banner a,
.banner a:visited {
  color: var(--color-blanco);
  text-decoration: none;
  font-weight: bold;
}

.banner a:hover {
  transform: scale(1.06);
}

.banner-contenido {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 20px 40px;
  position: relative;
  z-index: 1;
  gap: 140px;
}

.banner-icon {
  color: var(--color-principal);
  font-size: 4rem;
  margin-bottom: 20px;
}

.banner-card {
  background-color: var(--color-blanco);
  max-width: 300px;
  max-height: 400px;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  border-radius: 5px;
  padding: 30px;
  margin-top: -150px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: relative;
  min-height: 400px;
}

.banner-texto {
  display: flex;
  flex-direction: column;
  text-wrap: balance;
  gap: 10px;
  flex: 1;
  max-height: 200px;
  overflow: hidden;
  margin-bottom: 80px;
}

.banner-texto h2 {
  color: var(--color-principal);
  font-size: 1.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.banner-texto p {
  font-size: 0.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.btn-banner {
  width: 200px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: absolute;
  bottom: 30px;
}

.banner .btn-banner.boton {
  background-color: transparent;
  color: var(--color-principal);
  border: 2px solid var(--color-principal);
}

.banner .btn-banner.boton:hover {
  background-color: var(--color-principal);
  color: var(--color-blanco);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------ RESPONSIVE HASTA 1024px ------------------------------------------------------------------ */

@media screen and (max-width: 1024px) {
  .banner-img {
    width: 100%;
    height: 400px;
    object-position: center 30%;
  }

  .banner-texto-principal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 1000px;
    padding: 15px;
    text-align: center;
  }

  .banner-texto-principal h1 {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .banner-texto-principal p {
    font-size: 1rem;
  }

  .banner-contenido {
    padding: 50px 15px 30px;
    gap: 80px;
  }

  .banner-card {
    max-width: 250px;
    min-height: 350px;
    padding: 25px;
    margin-top: -120px;
  }

  .banner-icon {
    font-size: 3rem;
    margin-bottom: 15px;
  }

  .banner-texto {
    max-height: 180px;
    margin-bottom: 70px;
  }

  .banner-texto h2 {
    font-size: 1.2rem;
  }

  .banner-texto p {
    font-size: 0.75rem;
    -webkit-line-clamp: 5;
  }

  .btn-banner {
    width: 180px;
    padding: 10px 20px;
    font-size: 0.9rem;
    bottom: 25px;
  }

  .btn-products {
    width: 250px;
  }
}

/* ------------------------------------------------------------------ RESPONSIVE HASTA 76px ------------------------------------------------------------------ */

@media screen and (max-width: 768px) {
  .banner-img {
    width: 100%;
    height: 300px;
    object-position: center 30%;
  }

  .banner-texto-principal {
    top: 50%;
    left: 50%;
    max-width: 500px;
    transform: translate(-50%, -50%);
    padding: 10px;
    text-align: center;
  }

  .banner-texto-principal h1 {
    font-size: 1.7rem;
    margin-bottom: 10px;
  }

  .banner-texto-principal p {
    font-size: 1.2rem;
  }

  .banner-contenido {
    flex-direction: column;
    padding: 30px 15px 20px;
    gap: 60px;
    align-items: center;
  }

  .banner-card {
    max-width: 200px;
    min-height: 200px;
    padding: 20px;
    margin-top: 0;
    width: 100%;
  }

  .banner-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .banner-texto {
    max-height: 160px;
    margin-bottom: 70px;
  }
  
  .btn-banner {
    width: 160px;
    padding: 8px 16px;
    font-size: 0.85rem;
    bottom: 20px;
  }

  .btn-products {
    width: 200px;
    padding: 8px;
  }
}

/* ------------------------------------------------------------------ RESPONSIVE HASTA 510px ------------------------------------------------------------------ */

@media screen and (max-width: 510px) {
  .banner-img {
    width: 100%;
    height: 200px;
    object-position: center 30%;
  }

  .banner-texto-principal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 300px;
    padding: 8px;
    text-align: center;
  }

  .banner-texto-principal h1 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .banner-texto-principal p {
    font-size: 0.6rem;
  }

  .banner-contenido {
    padding: 20px 10px 15px;
    gap: 15px;
  }

  .banner-card {
    max-width: 200px;
    min-height: 280px;
    padding: 15px;
  }

  .banner-icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .banner-texto {
    max-height: 140px;
    margin-bottom: 60px;
  }

  .banner-texto h2 {
    font-size: 1.1rem;
  }

  .banner-texto p {
    font-size: 0.75rem;
  }

  .btn-banner {
    width: 140px;
    padding: 6px 12px;
    font-size: 0.8rem;
    bottom: 15px;
  }

  .btn-products {
    width: 180px;
    padding: 6px;
    font-size: 0.9rem;
  }
}