* {
    margin: 0;
    padding: 0;
}

.funcionalidades {
  position: relative;
  height: 70px;
  border-radius: 0.5rem;
  -webkit-appearance: none;
  outline: none !important;
  /* background-color: #583b37; */
  background: linear-gradient(45deg, #00791f, #04451b);
  transition: all 0.5s linear;
  overflow: hidden;
  z-index: 1;
}

.funcionalidades:focus {
    box-shadow: 0 2px 2px -2px rgba(34,47,62,.1),0 8px 8px -4px rgba(34,47,62,.07);
}

.funcionalidades::before {
  position: absolute;
  content: '';
  /* background-color: #583b37; */
  width: 100%;
  height: 0%;
  left: 50%;
  top: 50%;
  border-radius: 0px;
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: -1;
  transition: all 500ms ease;
}

.funcionalidades:hover {
  color: white;
}

.funcionalidades:hover:before {
  /* height: 380%; */
  height: 200vh;
}

.funcionalidades.emdina {
  background: linear-gradient(45deg, #291402, #b34a00);
}

.funcionalidades.codiagro {
  background: linear-gradient(45deg, #00791f, #04451b);
}

.funcionalidades.proximamente {
  background: linear-gradient(45deg, #ffb100, #fccb00);
}

.funcionalidades .img-marca_agua {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.1;
  width: 50%;
}

.funcionalidades.fisionutrientes::before {
    background-color: #cfe7c1;    
}

.funcionalidades.fisionutrientes:hover {
  border-color: #709c57;
}

.funcionalidades.fisionutrientes:hover .title_funcionalidad {
  color: #709c57;
}

.funcionalidades.correctores::before {
    background-color: #f4cbb3;
}

.funcionalidades.bioestimulantes::before {
    background-color: #b7dde9;
}

.funcionalidades.accion::before {
    background-color: #f7f4ef;
}

.funcionalidades.gama::before {
    background-color: #d5cde2;
}

.title_funcionalidad {
    position: relative;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    color: white;
    text-shadow: 2px 2px 0px #000;
    cursor: pointer;
    z-index: 2;
}

.funcionalidades.fisionutrientes .title_funcionalidad {
    text-shadow: 0 0 8px #8ab173;    
}

.funcionalidades.correctores .title_funcionalidad {
    text-shadow: 0 0 8px #8f6751;
}

.funcionalidades.bioestimulantes .title_funcionalidad {
  text-shadow: 0 0 8px #59828f;
}

.funcionalidades.accion .title_funcionalidad {
  text-shadow: 0 0 8px #a78f66;
}

.funcionalidades.gama .title_funcionalidad {
  text-shadow: 0 0 8px #75658f;
}

.productos {
  max-height: 0;
  border-top: none !important;
  margin-top: -10px;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0 15px;
  opacity: 0;
}

.productos.activo {
    max-height: 5000px; /* suficientemente grande para mostrar todo */
    opacity: 1;
    padding: 15px;
}

.precarga_productos {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0 1rem;
  opacity: 0;
}

.precarga_productos.activo {
  max-height: 150px;
  padding: calc(1rem + 10px) 1rem 1rem 1rem;
  opacity: 1;
}

.productos_respuesta {
  padding-top: calc(1rem + 10px);
}

.producto {
  position: relative;
  cursor: pointer;
  width: 150px;
  height: 200px;
  border-radius: 0.5rem;
  margin: 10px;
  display: inline-block;
  box-shadow: 0 0 15px #0000002b;
  transition: all 0.5s ease-in-out;
}

.producto:hover {
  box-shadow: 0 0 15px #00000060;
  transform: scale(1.05);
}

.producto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 33%;
  border-radius: 0.5rem;
  width: 50px;
  height: 4px;
  background-color: #ffcd1e;
}

.producto::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 33%;
  border-radius: 0.5rem;
  width: 50px;
  height: 4px;
  background-color: #ffcd1e;
}

.producto .img-producto {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  margin-top: 20px;
  width: 100%;
}

.marca {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 7%;
  left: 50%;
  width: 100%;
  height: 20px;
  transform: translateX(-50%);
  z-index: 3;
}

/* .marca.emdina {
  background-color: #583b37;
}

.marca.codiagro {
  background-color: #f38f55;
} */

.logo {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 120px;
  height: 22px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  border-radius: 0.5rem 0.5rem 0 0;
  box-shadow: 0 -5px 12px -9px #000;
  z-index: 4;
}

.loader {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  box-sizing: border-box;
  border-radius: 50%;
  border-top: 5px solid #0d8113;
  position: relative;
  animation: load 2s linear infinite;
}

.loader::before,.loader::after {
  content: '';
  width: 100px;
  height: 100px;
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  border-radius: 50%;
}

.loader::before {
  border-top: 5px solid #e6b222;
  transform: rotate(120deg);
}

.loader::after {
  border-top: 5px solid #6d330c;
  transform: rotate(240deg);
}

.loader span {
  position: absolute;
  font-size: small;
  width: 100px;
  height: 100px;
  color: #583b37;
  text-align: center;
  line-height: 100px;
  animation: a2 2s linear infinite;
}

@keyframes load {
  to {
    transform: rotate(360deg);
  }
}

@keyframes a2 {
  to {
    transform: rotate(-360deg);
  }
}


/* Productos */

.card_datos {
  position: relative;
  box-shadow: 0 -2px 2px -2px rgba(34, 47, 62, .1), 0 -8px 8px -4px rgba(34, 47, 62, .07);
}

.card_datos .linea_img {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: -40px;
  left: 50%;
  width: 100px;
  height: 40px;
  border: 1px solid rgba(0,0,0,.125);
  border-radius: 16px 16px 0 0;
  background-color: white;
  transform: translateX(-50%);
}

.btn-producto {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  background-color: #1f4d34;
  color: #fff;
  border-style: none;
  padding: 5px 10px;
  border-radius: 0.5em;
  overflow: hidden;
  z-index: 1;
  box-shadow: 4px 8px 10px -3px rgba(0, 0, 0, 0.356);
  transition: all 250ms;
}

.btn-producto:hover {
  color: white;
}

.btn-producto > svg {
  margin-right: 1em;
}

.btn-producto::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 0;
  border-radius: 0.5em;
  background-color: #469b61;
  z-index: -1;
  transition: all 350ms;
}

.btn-producto:hover::before {
  width: 100%;
}
