


/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
/*===== VARIABLES CSS =====*/
:root {
  /*===== Colores =====*/
  --first-color: #dc3545;
  --white-color: #E9EAEC;
  --dark-color: #272D40;
  --dark-color-lighten: #F2F5FF;
  /*===== Fuente y tipografia =====*/
  --body-font: 'Poppins', sans-serif;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: .875rem;
}

/*===== BASE =====*/
*, ::before, ::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

h1, p {
  margin: 0;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*===== CARD =====*/
.card {
  width: 320px;
  height: 400px;
  border-radius: 1rem;
  padding: 4rem 2rem 0;
  color: var(--white-color);
  overflow-y: hidden;
}

.card__img {
  position: absolute;
  width: 190px;
  filter: drop-shadow(5px 10px 15px rgba(8,9,13,.4));
}

.card__data {
  transform: translateY(25.2rem);
}

.card__title {
  font-size: 1.5rem;
  color: #dc3545;
  margin-bottom: .5rem;
}

.card__preci {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: #006b1b;
}

.card__description {
  font-size: .875rem;
  text-align: initial;
  margin-bottom: 1.25rem;
  opacity: 0;
  color: black;
}

.card__button {
  display: block;
  width: max-content;
  padding: 1.125rem 1rem;
  background-color: #dc3545;
  color: white;
  border-radius: .5rem;
  font-weight: 600;
  transition: .2s;
  opacity: 0;
  cursor: pointer !important;
}

.card__button:hover {
  box-shadow: 0 18px 40px -12px rgba(354,70,54,.35);
  text-decoration: none;
  color: white;
}

.card__img,
.card__data,
.card__title,
.card__preci,
.card__description {
  transition: .5s;
}

/* Hover card effect */
.card:hover .card__img {
  transform: translate(-1.5rem, -9.5rem) rotate(-20deg);
}

.card:hover .card__data {
  transform: translateY(14.8rem);
}

.card:hover .card__title {
  transform: translateX(0.rem);
  margin-bottom: 0;
  max-width: max-content;
  margin-left: 0px;
  transition-delay: .2s;
}

.card:hover .card__preci {
  transform: translateX(0rem);
  display: inline-flex;
  margin-left: 0px;
  transition-delay: .2s;
}

.card:hover .card__description,
.card:hover .card__button {
  transition-delay: .2s;
  opacity: 1;
}

