:root {
  --primario: #3457af;
  --secundario: #942f4a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

select{
  width: 100%;
  height: 40px;
  max-width: 300px;
  padding: 5px;
} 

body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.chbox_codigo_descuento {
  cursor: pointer;
  background-color: #12b400;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    width: 45px;
    height: 45px;
    appearance: none;
    margin-top:20px;
    vertical-align: bottom;
    border: 3px solid green;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.1);
}

.chbox_codigo_descuento:hover {
  background-color: #1aff00;
}

.chbox_codigo_descuento:checked {
  background-color: #1aff00;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

header img {
  max-height: 60px;
  max-width: 200px;
}

h1 {
  color: var(--primario);
} 
h2{
  color: var(--primario);
} 
h3{
  color: var(--primario);
} 

.hero {
  height: 60vh;
  background: linear-gradient(
    to bottom right,
    var(--primario),
    var(--secundario));
  background-image: url(../img/backgroundhero.jpg);
  opacity: lineal 1 0.4;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 2rem;
  clip-path: ellipse(150% 100% at 50% 0%);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  text-shadow: 5px 5px 4px rgba(0, 0, 0, 0.406);
  color: white;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primario)!important;
}

.section {
  max-width: 1400px;
  margin: auto;
  padding: 5rem 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
  border-radius:20px 20px 0 0;
}

.info-columns {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.info-columns div {
  flex: 1 1 30%;
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carousel-section {
  background: #fff;
  text-align: center;
  box-shadow: 0 -2px -5px rgba(0, 0, 0, 0.1);
}

.carousel-container {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  animation: scrollCarousel 30s linear infinite;
  width: max-content;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-container:hover {
  animation-play-state: paused;
}

.carousel-container img {
  height: 80px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.carousel-container img:hover {
  filter: none;
}

@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.form-section {
  background-color: #f4f4f4;
  clip-path: ellipse(150% 100% at 50% 100%);
}

.div_form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

hr {
  color: white!important;
  margin: 30px 0 30px 0;
  height: 0px;
  border: 1px dotted rgb(199, 199, 199);
}

b {

  color: var(--primario);
}

input,
textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 1rem;
  font-size: 1rem;
  resize: vertical;
  width: 100%;
}

select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 1rem;
  font-size: 1rem;
  resize: vertical;
  width: 100%;
}

button {
  background-color: var(--primario);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--secundario);
}

.ornamentos {
  width: 100%;
  height: auto;
  position: absolute;
  z-index: -1;
  bottom: -1200px;
}

footer {
  width: 100%;
  height: 200px;
  text-align: center;
  background: rgb(238, 238, 238);
  padding-top:50px;
}

#div_codigo_descuento {
  background-color: #3457af;
  border: 2px solid white;
  margin-top:-75px;
}

.codigodescuento {
  vertical-align: middle;
  width: 25px;
}


.manodescuento {
  vertical-align: middle;
  width: 65px;
}

.delocontrario {
  background: #942f4a;
  color: white;
  padding: 10px;
  border-radius:10px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .carousel-container {
    gap: 1rem;
  }

  .carousel-container img {
    height: 60px;
    width: 30%;
    object-fit: contain;
  }

  .info-columns div {
    flex: 1 1 100%;
  }
}
