* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
:root {
  /* --ferrari-red: #d10000; */
  --ferrari-red: #cc0000;
  --ferrari-black: #181818;
  --ferrari-white: #ffffff;
  --ferrari-yellow: #f1c832;
  --ferrari-dark-gray: #4a4a48;
  --ferrari-light-gray: #d1d1d1;
}
.red-text {
  color: var(--ferrari-red);
}
.yellow-text {
  color: var(--ferrari-yellow);
}
.black-text {
  color: var(--ferrari-black);
}
.bold {
  font-weight: bold;
}
p {
  color: var(--ferrari-white);
  max-width: 70ch;
  line-height: 1.6;
}
body {
  font-family: "Ferrari-Regular", sans-serif;
  background-color: var(--ferrari-black);
  color: var(--ferrari-white);
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: "Ferrari-Medium", sans-serif;
  color: var(--ferrari-red);
}
h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
a {
  color: var(--ferrari-yellow);
}
button {
  background-color: var(--ferrari-red);
  color: var(--ferrari-white);
}
.logo-svg:hover {
  fill: var(--ferrari-red);
}
/* Fonts */
@font-face {
  font-family: "Ferrari-Medium";
  src: url("../fonts/Ferrari-SansMedium.woff2") format("woff2"),
    url("../fonts/Ferrari-SansMedium.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Ferrari-Regular";
  src: url("../fonts/Ferrari-SansRegular.woff2") format("woff2"),
    url("../fonts/Ferrari-SansRegular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "NotoSans-Bold";
  src: url("../fonts/NotoSans-Bold.woff2") format("woff2"),
    url("../fonts/NotoSans-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "NotoSans-Regular";
  src: url("../fonts/NotoSans-Regular.woff2") format("woff2"),
    url("../fonts/NotoSans-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* Barra inferior Nav Cta Activo*/
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  position: relative;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

/* FLECHITA SCROLL */
.scroll-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: background-color 0.3s ease;
}
.scroll-button:hover {
  background-color: rgba(0, 0, 0, 0.9);
}
.scroll-button i {
  font-size: 1.5rem;
}

/* --------------- FOOTER ---------------- */
.footer-section {
  width: 100%;
  height: auto;
}
.footer-container {
  width: 100%;
  height: auto;
  padding: 4rem 9rem;

  display: flex;
  flex-direction: column;
}
.footer-suscribete {
  width: 100%;
  height: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  background-color: var(--ferrari-dark-gray);
  padding: 2rem 0;
}
.footer-suscribete button {
  background-color: var(--ferrari-red);
  color: var(--ferrari-white);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: "Ferrari-Regular", sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.footer-suscribete button:hover {
  background-color: var(--ferrari-yellow);
  transform: scale(1.05);
}
.footer-suscribete p,
.footer-suscribete h2 {
  text-align: center;
}
.footer-content {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.footer-pages,
.footer-rrss,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-pages ul li,
.footer-rrss ul li,
.footer-contact ul li {
  padding-left: 0.5rem;
  padding-bottom: 0.5rem;
}
.footer-pages ul li a,
.footer-rrss ul li a,
.footer-contact ul li a {
  text-decoration: none;
  color: var(--ferrari-white);
}
.footer-rrss {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-rrss ul li a i {
  padding-right: 0.5rem;
}
.footer-bottom {
  width: 100%;
  padding: 1rem 0;
  color: var(--ferrari-white);
}
.footer-divider {
  width: 100%;
  border: none;
  border-top: 1px solid var(--ferrari-light-gray);
  margin-bottom: 1rem;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom a {
  color: var(--ferrari-light-gray);
  text-decoration: none;
}
.footer-bottom a:hover {
  text-decoration: underline;
}
.copyright {
  padding-left: 1rem;
  margin: 0;
}
.privacy-links {
  padding-right: 1rem;
  margin: 0;
}
/* ------------ MEDIA QUERY FOOTER --------------------  */
@media screen and (max-width: 1400px) {
}
@media screen and (max-width: 1200px) {
}
@media screen and (max-width: 960px) {
  .footer-container {
    padding: 4rem 4rem;
  }
}
@media screen and (max-width: 700px) {
  .footer-container {
    padding: 4rem 2rem;
  }
  .footer-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  .footer-pages,
  .footer-rrss,
  .footer-contact {
    align-items: center;
  }
  .footer-pages ul,
  .footer-rrss ul,
  .footer-contact ul {
    text-align: center;
  }
}
@media screen and (max-width: 500px) {
  .footer-container {
    padding: 2rem 2rem;
  }
}

/* Asegúrate de que los contenedores no causen desbordamiento */
.hero-section,
.intro-section,
.essence-section,
.performance-section,
.masonry-section,
.news-section,
.f1-intro-section,
.f1-history-section,
.f1-iconic-cars-section,
.f1-pilots-section,
.f1-titles-section,
.f1-gallery,
.map-section,
.testimonials-section,
.contact-section,
.footer-section,
.enzo-section,
.timeline-section,
.collaboration-card-slider,
.legendary-drivers-section,
.store-section,
.faq-section {
  overflow: hidden;
}
