/* Fonts */
@font-face {
  font-family: "Helvetica";
  src: url("HelveticaNeueRoman.otf");
}

@font-face {
  font-family: "Bedfort";
  src: url("MrBedfort-Regular.ttf");
}

/* Reset and global */
*, *::before, *::after {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: "Helvetica";
  background: #f3f2f2;
  min-width: 360px;
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 4rem;
}

img {
  display: block;
  width: 1rem;
  margin-right: 1rem;
}

main {
  width: 100%;
}

/* Hero image section */
.hero-section {
  position: relative;
  background-image: url('/images/luis-crop1-upscale.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 620px;
}

.hero-content {
  transition: 0.5s;
  position:absolute;
  top: 0;
  left: 10%;
  bottom: 0;
  max-width: 30%;
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 8rem 2rem 2rem 3.7rem;
}

.hero-title {
  font-family: "Bedfort";
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text {
  padding: 0 3rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-button {
  display: inline-block;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: white;
  color: black;
  padding: 0.75rem 1.5rem;
  border:none;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
  z-index: 1000;
  cursor: pointer;
  backdrop-filter: blur(3px);
  opacity: 0.9;
}

.hero-button:hover {
  background-color: black;
  color: white;
}

.news-button {
  display: block;
  margin-top: -3rem;
  margin-bottom: 1.5rem;
  background-color: #f3f2f2;
  padding: 0.75rem 1.5rem;
  border:none;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1000;
  backdrop-filter: blur(3px);
  opacity: 0.9;
}

.news-button a {
  text-decoration: none;
  color: black;
}

.news-button:visited {
  text-decoration: none;
  color: black;
}

.news-button:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hero-button.active {
  background-color: black;
  color: white;
}

.hero-button ul {
  position: absolute;
  z-index: 1500;
  left: 0;
  bottom: 2rem;
  background: #fff;
  min-width: 100%;
  padding: 1.5rem;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  will-change: opacity, transform;
}

.hero-button ul.open-down {
  top: 2.5rem;
  bottom: auto;
}

.hero-button.active ul {
  opacity: 1;
  visibility: visible;
  transition: 0.3s;
  color: black;
}

.hero-button ul li {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.65rem 0 0.65rem 0.4rem;
}

.hero-button ul li:hover {
  font-weight: bold;
}

.hero-button ul li:not(:last-child) {
  border-bottom: 1px solid rgba (0, 0, 0, 0.1);
}

.hero-button ul li img {
  opacity: 0.2;
  transform: scale (0.8);
}

.hero-button ul li:hover img {
  opacity: 0.9;
}

.hero-button ul li a {
  text-decoration: none;
  color: inherit;
  display: flex;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px);
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* BREAK POINTS HERO SECTION */

@media (max-width: 1440px) {
  .hero-content {
    transition: all 0.5s;
    position:absolute;
    top: 0;
    left: 7%;
    bottom: 0;
    max-width: 37%;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8rem 2rem 2rem 3.7rem;
  }
}

@media (max-width: 1150px) {
  .hero-content {
    transition: 0.5s;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    max-width: 55%;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 7rem 1rem 2rem 3rem;
  }
}

@media (max-width: 760px) {
  .hero-section {
    background-image: url('/images/luis-crop2-upscale.png');
    background-position: top;
    top: 0;
    height: 400px;
  }
  
  .hero-content {
    position: absolute;
    width: 100%;
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0);
  }
  
  .hero-text, .hero-title {
    position: relative;
    width: 100%;
    max-width: 100%;
    opacity: 0;
  }
  
  .hero-button {
    position: absolute;
    top: 78%;
    right: 5%;
    text-decoration: none;
    color: black;
    display: inline-block;
  }
  
  .news-button {
    display: block;
    margin-top: 0.1rem;
    margin-bottom: 1.5rem;
    background-color: #f3f2f2;
    padding: 0.75rem 1.5rem;
    border:none;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    z-index: 1000;
    cursor: pointer;
    backdrop-filter: blur(3px);
    opacity: 0.9;
  }
  
  .cta-button {
    position: absolute;
    top: 78%;
    right: 5%;
    margin: 0;
    left: auto;
    transform: none;
    text-decoration: none;
    color: inherit;
    display: inline-block;
  }
    
  .cta-button ul li img { /* This specific rule is good for icons in the dropdown */
    opacity: 0.2;
    transform: scale(0.8);
  }
}



/* Header base */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 2rem;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 0;
  margin: 0;
  transition: all 0.4s ease;
  z-index: 2000;
}

/* Morphing header on scroll */
.header.morphed {
  margin: 1rem;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(3px);
}

/* Logo/text */
.header-txt {
  font-family: "Bedfort";
  font-size: clamp(1.8rem, 2.5vw, 1rem);
  font-weight: bold;
  margin-left: 1rem;
  margin-top: 0.5rem;
  cursor: pointer;
}

/* Navigation */
.nav {
  display: flex;
  gap: 0.7rem;
  opacity: 0.9;
}

.nav a {
  text-decoration: none;
  font-size: 1rem;
}

/* Buttons */
.header-bt1,
.header-bt2 {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid black;
  font-family: "Helvetica";
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.header-bt1 {
  background-color: white;
  color: black;
}

.header-bt1:visited {
  color: black;
}

.header-bt2 {
  background-color: black;
  color: white;
}

.header-bt2:visited {
  color: white;
}

.header-bt1:hover {
  background-color: black;
  color: white;
} 

/* Toggle button */
.menu-toggle {
  display: none;
  background-color: black;
  color: white;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  outline: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.4s, color 0.4s;
  margin-left: auto;
}

/* Toggle active style */
.menu-toggle.active {
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  color: black;
  padding: 0.3rem 0.6rem;
  opacity: 0.7;
}

/* Responsive nav */
@media (max-width: 760px) {
  .nav {
    flex-direction: column;
    position: absolute;
    top: 99.9%;
    right: 1rem;
    background-color: white;
    border-radius: 0 0 12px 12px;
    width: 9.5rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
  }

  .nav.show {
    transition: 0.5s ease;
    pointer-events: auto;
    opacity: 1;
  }

  .nav.show.morphed {
    transition: 0.5s ease;
    pointer-events: auto;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(3px);
  }
  
  .menu-toggle {
    display: block;
    font-size: 1.4rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
  }

  .nav a {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .header {
    padding: 0.8rem 1rem;
    transition: transform 0.3s ease-in-out, margin 0.4s ease, border-radius 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease; /* Ensure transform is transitioned */
  }
  
  .header.hide-on-scroll {
    transform: translateY(-130%); /* Move header entirely out of view */
  }

  .header-txt {
    font-size: 1.5rem;   /* Reduce from default */
    line-height: 1.2;
    max-width: 60%;      /* Prevents wrapping too early */
    word-break: break-word;
  }
}

/* Content section */
.section-wrapper {
  width: 100%;
}

.space {
  margin: 2rem;
}

.blog-section {
  padding: 3rem 2rem;
  max-width: 80%;
  margin: 0 auto;
  text-align: center;
  background-color: #fcfcfc;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.books-section {
  padding: 3rem 2rem;
  max-width: 80%;
  margin: 0 auto;
  text-align: center;
  background-color: #f3f2f2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wine-section {
  padding: 3rem 2rem;
  max-width: 80%;
  margin: 0 auto;
  text-align: center;
  background-color: #242424;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-section {
  padding: 3rem 2rem;
  max-width: 80%;
  margin: 0 auto;
  text-align: center;
  background-color: #f3f2f2;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-family: "Bedfort";
  font-size: 2rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
  color: black;
}

.section-title-alt {
  font-family: "Bedfort";
  font-size: 2rem;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
  color: white;
}

.section-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: black;
  margin-top: 0.5rem;
}

.section-title-alt::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: white;
  margin-top: 0.5rem;
}

.card-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

.content-card {
  width: 14rem;
  display: block;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.content-card img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.content-card a {
  text-decoration: none;
}

.content-card a:visited {
  text-decoration: none;
  color: black;
}

.wine-section .content-card a {
  text-decoration: none;
}

.wine-section .content-card a:visited {
  text-decoration: none;
  color: white;
}

.card-text {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1rem;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  line-height: 1.5;
  color: black;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card-text:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.content-card img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-meta {
  line-height: 24px;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  text-align: left;
  font-size: 1rem;
  text-decoration: none;
  color: black;
  cursor: pointer;
}

.wine-section .card-meta {
  color: white;
}

.blog-bg {
  background-color: #fcfcfc;
}

.books-bg {
  background-color: #f3f2f2;
}

.wine-bg {
  background-color: #242424;
}

@media (max-width: 760px) {
  .blog-section {  
    padding: 1rem 2rem;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
    background-color: #fcfcfc;
  }

  .books-section {
    padding: 1rem 2rem;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
    background-color: #f3f2f2;
  }

  .wine-section {
    padding: 1rem 2rem;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
    background-color: #242424;
    color: white;
  }
  
  .contact-section {
    position: relative;
    display: block;
    padding: 1rem 2rem;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
    background-color: #f3f2f2;
    color: black;
  }
  
  .section-title {
    font-family: "Bedfort";
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.3rem;
  }

  .section-title-alt {
    font-family: "Bedfort";
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.3rem;
    color: white;
  }

  .section-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: black;
    margin-top: 0.5rem;
  }

  .section-title-alt::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: white;
    margin-top: 0.5rem;
  }

  .card-grid {
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
  }
  
  .card-text {
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 0.8rem;
    text-align: left;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-size: 0.8rem;
    line-height: 1.5;
    color: black;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

  .card-text:hover {
      transform: scale(1.03);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
  
  .card-meta {
    width: auto;
    max-width: 14rem;
    line-height: 24px;
    margin-bottom: 0.3rem;
    text-align: left;
    padding-left: 0.7rem;
    margin-top: 0;
    font-size: 0.9rem;
    cursor: pointer;
  }
    
  .content-card {
    width: 14rem;
    display: block;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }
  
  .content-card img {
    scale: 0.9;
  }
}

/* Contact section */

.contact-container {
  display: flex;
  flex-direction: wrap;
  gap: 4rem;
  max-width: 900px;
  align-items: center;
  justify-content: center;
}

.contact-photo img {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 21rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-details {
  max-width: 18rem;
  text-align: left;
  color: black;
}

.contact-details hr {
  border: none;
  height: 1px;
  background-color: #333;
  margin: 1rem 0 2rem;
}

.contact-info {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
}

.cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: white;
  color: black;
  padding: 0.75rem 1.5rem;
  border:none;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
  z-index: 1000;
  cursor: pointer;
  backdrop-filter: blur(3px);
  opacity: 0.9;
}

.cta-button:hover {
  background-color: black;
  color: white;
}

.cta-button.active {
  background-color: black;
  color: white;
}

.cta-button ul {
  position: absolute;
  z-index: 1500;
  left: 0;
  bottom: 2rem;
  background: #fff;
  min-width: 100%;
  padding: 1.5rem;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  will-change: opacity, transform;
}

.cta-button.active ul {
  opacity: 1;
  visibility: visible;
  transition: 0.3s;
  color: black;
}

.cta-button ul li {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.65rem 0 0.65rem 0.4rem;
}

.cta-button ul li:hover {
  font-weight: bold;
}

.cta-button ul li:not(:last-child) {
  border-bottom: 1px solid rgba (0, 0, 0, 0.1);
}

.cta-button ul li img {
  opacity: 0.2;
  transform: scale (0.8);
}

.cta-button ul li:hover img {
  opacity: 0.9;
}

.cta-button ul li a {
  text-decoration: none;
  color: inherit;
  display: flex;
}

@media (max-width: 760px) {

  .contact-container {
    display: grid;
    flex-direction: column;
    gap: 4rem;
    max-width: 900px;
    align-items: center;
    justify-content: center;
  }

  .contact-photo img {
    display: block;
    position: relative;
    justify-content: center;
    width: 18rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .contact-details {
    max-width: 18rem;
    text-align: center;
  }

  .contact-title {
    font-family: 'Bedfort';
    font-size: 2rem;
  }

  .contact-details hr {
    border: none;
    height: 1px;
    background-color: #333;
    margin: 1rem 0 2rem;
  }

  .contact-info {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
  }

  .contact-info a {
    color: inherit;
    text-decoration: none;
  }

  .cta-button {
    display: block;
    margin-left: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: white;
    color: black;
    border:none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    z-index: 1000;
    cursor: pointer;
    backdrop-filter: blur(3px);
    opacity: 0.9;
  }
}

/* Back-to-top Button */
.back-to-top {
  position: fixed;
  bottom: 1.7rem;
  right: 1.7rem;
  z-index: 1000;
  text-decoration: none;
  background-color: #ffffff;
  color: #000000;
  font-size: 1.3rem;
  padding: 0.8rem 1.2rem;
  outline: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
  margin-left: auto;
  backdrop-filter: blur(3px);
  opacity: 0;
}

@media (max-width: 760px) {
  .back-to-top.visible {
    opacity: 0.3;
    pointer-events: auto;
}
  
  .back-to-top.visible:hover {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
  }
}


/* Books page */
.book-flex, .news-flex {
  padding: 8rem 10rem 6rem 10rem;
  width: 100%;
  color: black;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.book-cover img {
  transition: 0.5s ease;
  width: 24rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wine-cover img {
  transition: 0.5s ease;
  width: 90%;
  height: 28rem;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
}

.book-info {
  flex: 1;
  margin-top: 0;
  margin-left: 2rem;
}

.book-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.book-info img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.book-description {
  font-size: 0.9rem;
  margin: 2rem 0 2.5rem 0;
  line-height: 1.3rem;
  text-align: justify;
}

.news-description {
  font-size: 0.9rem;
  margin: 2rem 2rem 0 0;
  line-height: 1.3rem;
  text-align: justify;
}

.book-year, .news-year {
  margin: 0;
  font-weight: bold;
  color: #5f5f5f;
}

/* Other Books */
.other-books {
  background-color: #111;
  color: #fff;
  padding: 2rem 0;
}

.other-books h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Cursive', serif;
  font-size: 1.8rem;
}

.book-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.book-card {
  text-align: center;
  max-width: 160px;
}

.book-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1640px) {
  .book-cover img {
    scale: 0.92;
    width: 20rem;
  }
  
  .wine-cover img {
    scale: 0.92;
    width: 20rem;
  }
  
  .book-info {
    width: 100%;
  }
  
  .book-description {
    margin-right: 0;
  }
}
  
@media (max-width: 1280px) {
  .book-flex, .news-flex {
    display: flex;
    width: 100%;
    padding: 8rem 3rem 0 3rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .book-cover img {
    width: 20rem;
    display: flex;
    align-content: center;
  }
  
  .wine-cover img {
    width: 20rem;
    align-content: center;
  }
  
  .book-info {
    margin: 0;
  }
  
  .book-description {
    margin: 2rem 0;
  }
  
  .news-description {
    margin: 2rem 2rem 4rem 2rem;
  }
  
  .comprar-button {
    position: absolute;
    top: 30rem;
    left: 50.4%;
    text-decoration: none;
    text-align: left;
    color: black;
    display: flex;
  }
}
  @media (max-width: 760px) {
  .book-flex, .news-flex {
    display: flex;
    width: 100%;
    padding: 6rem 3rem 3rem 3rem;
    align-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }  
    
  .news-description {
    margin: 2rem 0 2rem 0;
  }
    
  .comprar-button {
    position: absolute;
    top: 28rem;
    left: 50.4%;
    text-decoration: none;
    text-align: left;
    color: black;
    display: flex;
  }
    
}

/* COMPRAR BUTTON */
.comprar-button {
  display: flex;
  margin-bottom: 1rem;
  background-color: white;
  color: black;
  padding: 0.75rem 1.5rem;
  border:none;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  position: absolute;
  text-align: left;
  z-index: 1000;
  cursor: pointer;
  backdrop-filter: blur(3px);
  opacity: 0.9;
}

.comprar-button:hover {
  background-color: black;
  color: white;
}

.comprar-button.active {
  background-color: black;
  color: white;
}

.comprar-button ul {
  position: absolute;
  z-index: 1500;
  right: 0;
  bottom: 2rem;
  background: #fff;
  min-width: 100%;
  width: 15.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  will-change: opacity, transform;
}

.comprar-button ul.open-down {
  top: 2.5rem;
  bottom: auto;
}

.comprar-button.active ul {
  opacity: 1;
  visibility: visible;
  transition: 0.3s;
  color: black;
}

.comprar-button ul li {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.65rem 0 0.65rem 0.4rem;
}

.comprar-button ul li:hover {
  font-weight: bold;
}

.comprar-button ul li:not(:last-child) {
  border-bottom: 1px solid rgba (0, 0, 0, 0.1);
}

.comprar-button ul li img {
  opacity: 0.2;
  transform: scale (0.8);
}

.comprar-button ul li:hover img {
  opacity: 0.9;
}

.comprar-button ul li a {
  text-decoration: none;
  color: inherit;
  display: flex;
  
}

.hero-button ul,
.cta-button ul,
.comprar-button ul {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.hero-button.active ul.open-down,
.cta-button.active ul.open-down,
.comprar-button.active ul.open-down {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}