* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--main-color-white);
  color: var(--main-color-black);
  font-family: var(--font-family);
}

@font-face {
  font-family: "Monserrat";
  src: url(../tipografia/Montserrat-Italic-VariableFont_wght.ttf);
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Monserrat";
  src: url(../tipografia/Montserrat-Italic-VariableFont_wght.ttf);
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Monserrat";
  src: url(../tipografia/Montserrat-Italic-VariableFont_wght.ttf);
  font-weight: 800;
  font-style: normal;
}

:root {
  --main-color-grey: #737a82;
  --main-color-aqua-green: #2ed9ad;
  --main-color-yellow: #cbb32b;
  --main-color-black: #1f1f1f;
  --main-color-white: #ffffff;
  --font-family: "Monserrat";
}

::selection {
  background: var(--main-color-black);
  color: var(--main-color-aqua-green);
}

#headerContainer {
  position: sticky;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 10vh;
  flex-flow: row;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  overflow: hidden;
  z-index: 10000;
  background-color: var(--main-color-white);
}


#logoImg {
  width: 200px;
  height: 200px;
  padding: 1rem;
}

#navMenu {
  display: flex;
}

#navMenu::before {
  display: none;
}

#navMenu ul {
  list-style: none;
  display: flex;
  gap: 3rem;
  margin-right: 1rem;
}

#navMenu ul li {
  position: relative;
}

#navMenu ul li a {
  text-decoration: none;
  color: var(--main-color-black);
  font-size: 1.2rem;
  position: relative;
}

#navMenu ul li a::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--main-color-aqua-green);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.6s ease;
}

#navMenu ul li a:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

#navIcon {
  display: none;
  font-size: 2em;
  cursor: pointer;
}

#closeNavIcon {
  display: none;
}

#heroContainer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8% 0;
  min-height: 90vh;
  position: relative;
  overflow: hidden;
}

.hero-content {
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  margin: 0 auto;
}

.hero-title span {
  display: block;
  font-weight: 900;
}

.hero-title .bold {
  font-size: 4.5rem;
  letter-spacing: 0.5rem;
  /* grande */
}

.hero-title .middle-text {
  font-size: 1.5rem;
  /* más pequeño que arriba y abajo */
  max-width: 70%;
  background-color: transparent;
}

.hero-title .colorYellow {
  font-size: 6rem;
  letter-spacing: 1.2rem;
  /* grande */
}

.hero-content h1 {
  font-size: 5rem;
  font-weight: 700;
  color: var(--main-color-black);
  background-color: transparent;
  margin-bottom: 0;
}

.hero-content .bold {
  font-weight: 900;
  background-color: transparent;
}

.colorYellow {
  background-color: transparent;
  color: var(--main-color-yellow);
  text-shadow: rgb(0, 0, 0) 5px 5px 0px, rgba(255, 255, 255, 0.8) -2px -2px 1px;
  letter-spacing: 1px;
  text-transform: uppercase;

}

.colorGreen {
  background-color: transparent;
  color: var(--main-color-aqua-green);
  text-shadow: rgb(0, 0, 0) 5px 5px 0px, rgba(255, 255, 255, 0.8) -2px -2px 1px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-buttons {
  display: flex;
  flex-flow: column;
  width: 100%;
  margin-top: 4rem;
  background-color: transparent;
}

.btn-secondary {
  order: 1;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--main-color-grey);
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
}

.btn-primary {
  order: 2;
  background: var(--main-color-white);
  color: var(--main-color-black);
  box-shadow:
    1px 1px 0 #000,
    3px 3px 0 #000,
    4px 4px 0 #000;
  border: 2px solid var(--main-color-black);
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin: 0 auto;
  padding: 1rem 10%;
  text-align: center;
  transition: all .2s ease;
}

.btn-primary:hover {
  background: var(--main-color-aqua-green);
  box-shadow: 5px 2px 10px var(--main-color-yellow);
  transform: translate(2px, 2px);
}

.img-left {
  position: absolute;
  left: 0;
  top: -30%;
  width: 500px;
  z-index: -100;
  animation-play-state: paused;
  transition: transform 1.2s ease, opacity 0.8s ease;
}

.img-right {
  position: absolute;
  right: 0;
  top: 0%;
  width: 500px;
  z-index: -100;
  animation-play-state: paused;
  transition: transform 1.2s ease, opacity 0.8s ease;
}

/* Estado inicial fuera de pantalla */
.img-left {
  transform: translateX(-150%) rotate(180deg);
  opacity: 0.2;
}

.img-right {
  opacity: 0.2;
  transform: translateX(150%);
}

/* Estado inicial: fuera de pantalla */
.enter-from-left {
  transform: translateX(-50%) rotate(180deg);
  opacity: 0;
}

.enter-from-right {
  transform: translateX(150%);
  opacity: 0;
}

/* Entrada animada */
.visible-left {
  transform: translateX(0) rotate(180deg);
  opacity: 0.3;
  transition: transform 1.5s ease, opacity 1.5s ease;
}

.visible-right {
  transform: translateX(0);
  opacity: 0.3;
  transition: transform 1.5s ease, opacity 1.5s ease;
}

/* Salida */
.slide-out-left {
  transform: translateX(-150%) rotate(180deg);
  /* Vuelve hacia la izquierda */
  opacity: 0;
}

.slide-out-right {
  transform: translateX(150%);
  /* Vuelve hacia la derecha */
  opacity: 0;
}

/* Entrada desde la izquierda con scale */
@keyframes slide-in-left {
  0% {
    transform: translateX(-100%) scale(0.8);
    opacity: 0;
  }

  60% {
    transform: translateX(20px) scale(1.05);
    opacity: 0.8;
  }

  80% {
    transform: translateX(-10px) scale(0.98);
    opacity: 0.95;
  }

  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* Entrada desde la derecha con scale */
@keyframes slide-in-right {
  0% {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
  }

  60% {
    transform: translateX(-20px) scale(1.05);
    opacity: 0.8;
  }

  80% {
    transform: translateX(10px) scale(0.98);
    opacity: 0.95;
  }

  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* Pulso ajustado para coincidir con la opacidad final de entrada */
@keyframes smooth-pulse-rotated {
  0% {
    transform: translateY(-50%) scale(1) rotate(180deg);
    opacity: 0.4;
  }

  50% {
    transform: translateY(-50%) rotate(180deg) scale(1.05);
    opacity: 0.6;
  }

  100% {
    transform: translateY(-50%) rotate(180deg) scale(1);
    opacity: 0.4;
  }
}

@keyframes smooth-pulse {
  0% {
    transform: translateY(-50%) scale(1);
    opacity: 0.2;
  }

  50% {
    transform: translateY(-50%) scale(1.05);
    opacity: 0.7;
  }

  100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.2;
  }
}

/* Fondo del modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: var(--main-color-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 1px 1px 0 #000, 3px 3px 0 #000, 4px 4px 0 #000;
  border: 2px solid var(--main-color-black);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  /* evita que sobresalga */
}

.modal-content::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: 0;
  width: 500px;
  /* tamaño de la imagen */
  height: 520px;
  background: url("../hero/hero-1.svg") no-repeat center / contain;
  opacity: 0.3;
  /* opacidad para no tapar contenido */
  pointer-events: none;
  /* para que no interfiera al hacer clic */
  z-index: 10;
  animation: girar 30s linear infinite;
  /* rotación continua */
}

/* Animación de rotación */
@keyframes girar {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


.modal-overlay.show .modal-content {
  opacity: 1;
  transform: translateY(0);
}

#modalFormContainer {
  text-align: center;
}

#modalTitle {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

#modalContactoMedios {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem;
}

.contactoMediosItem {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.contactoMediosItem a {
  color: var(--main-color-aqua-green);
  text-decoration: none;
  font-weight: 500;
}

.contactoMediosImg {
  width: 35px;
  height: 35px;
  background-color: var(--main-color-aqua-green);
  border-radius: 50%;
  padding: 0.4rem;
}

#modalForm {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

#modalForm label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  text-align: left;
}

#modalForm input,
#modalForm textarea {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.6rem;
  font-size: 0.9rem;
  width: 100%;
  z-index: 1000;
}

#modalForm textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-button {
  background: var(--main-color-white);
  color: var(--main-color-black);
  box-shadow:
    1px 1px 0 #000,
    3px 3px 0 #000,
    4px 4px 0 #000;
  border: 2px solid var(--main-color-black);
  font-weight: 600;
  border: none;
  padding: 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s ease;
  z-index: 1000;
}

.submit-button:hover {
  box-shadow:
    1px 1px 0 #000,
    1px 1px 0 #000,
    2px 2px 0 #000;
  transform: translate(2px, 2px);
}

.modalContacto {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.modalRedesImg {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  padding: 0.4rem;
  background-color: var(--main-color-aqua-green);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.modalRedesImg:hover {
  transform: scale(1.1);
}

#mobileHero {
  display: none;
}

#servicios {
  position: relative;
  display: flex;
  width: 100%;
  height: auto;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

#servicios::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -15%;
  width: 700px;
  height: 700px;
  background-image: url('../ilustraciones/red-blockchain.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
  animation: pulseBackgroundBlockchain 12s ease-in-out infinite;

}

/* Estado inicial pequeño para #servicios::after */
#servicios.small-after::after {
  transform: scale(0.8);
  transition: transform 0.8s ease;
}

/* Estado normal para #servicios::after */
#servicios.normal-after::after {
  transform: scale(1);
  transition: transform 0.8s ease;
}

/* Estado inicial pequeño para blockchainInfoContainer */
#blockchainInfoContainer.small-scale {
  transform: scale(0.8);
  transition: transform 0.8s ease;
}

/* Estado normal para blockchainInfoContainer */
#blockchainInfoContainer.normal-scale {
  transform: scale(1);
  transition: transform 0.8s ease;
}

@keyframes pulseBackgroundBlockchain {
  0% {
    transform: scale(1);
    opacity: 0.1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.2;
  }

  100% {
    transform: scale(1);
    opacity: 0.1;
  }
}

#serviciosTitleContainer {
  display: flex;
  width: 90%;
  flex-flow: column;
  align-items: baseline;
  justify-content: center;
  overflow: hidden;
}

#serviciosTitle {
  color: var(--main-color-black);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 10vh;
  padding: 0 10%;
}

#serviciosTextContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  width: 70%;
  gap: 3rem;
  margin-top: 5rem;
}

.serviciosText {
  color: var(--main-color-black);
  opacity: 0.8;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
}

#serviciosGrid {
  display: flex;
  width: 90%;
  justify-content: space-evenly;
  align-items: center;
  gap: 1rem;
  /* separación horizontal */
  position: relative;
  padding: 5% 10% 0;
  margin-bottom: 10vh;
  overflow: hidden;
}

/* Contenedor de los dos elementos centrales */
#serviciosGrid .central-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  /* separación vertical entre los dos */
}

.central-column .serviciosItem {
  width: 300px;
  height: 300px;
}

/* Imagen de fondo general */
#serviciosGrid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../ilustraciones/cards-container-background.svg');
  background-size: 95%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.6;

  animation: pulseBackground 8s ease-in-out infinite;
  transform-origin: center;
  overflow: hidden;
}

/* ===== Servicios Grid efecto background ===== */
#serviciosGrid.small-bg::before {
  background-size: 50%;
  transition: background-size 1.5s ease;
}

#serviciosGrid.normal-bg::before {
  background-size: 95%;
  transition: background-size 1.5s ease;
}

@keyframes pulseBackground {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

.serviciosItem {
  position: relative;
  display: flex;
  flex-flow: column;
  width: 200px;
  height: 200px;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  margin: 0 1rem;
  box-shadow:
    1px 1px 0 #000,
    4px 4px 0 #000,
    5px 5px 0 #000;
  border: 2px solid var(--main-color-black);
  border-radius: 8px;
  transition: all .2s ease;
}

.serviciosItem:hover {
  box-shadow:
    1px 1px 0 #000,
    1px 1px 0 #000,
    2px 2px 0 #000;
  transform: translate(2px, 2px);
}

.serviciosItem {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  background: transparent;
  /* asegura fondo visible */
}

.serviciosItem:hover {
  transform: translateY(-5px);
}

.serviciosContent {
  text-align: center;
  z-index: 2;
  /* iconos y título encima */
  position: relative;
  background-color: transparent;
}

.serviciosContent img {
  width: 70px;
  height: 70px;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

/* Overlay oculto por defecto */
.serviciosOverlay {
  position: absolute;
  inset: 0;
  background: var(--main-color-aqua-green);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.6s ease;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.4rem;
  z-index: 3;
}

/* Activo (hover o click) */
.serviciosItem:hover .serviciosOverlay,
.serviciosItem.active .serviciosOverlay {
  opacity: 1;
  transform: translateY(0);
}

/* Bajar decoradores detrás */
.serviciosItem::before,
.serviciosItem::after {
  z-index: 0 !important;
}

/* ===== VERSIÓN MOBILE ===== */
@media (max-width: 768px) {
  #serviciosGrid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 5% 5% 0;
  }

  #serviciosGrid .central-column {
    flex-direction: column;
    gap: 2rem;
    width: 400px;
  }

  .serviciosItem {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
    transform: none !important;
  }

  /* Íconos más grandes */
  .serviciosContent img {
    width: 80px;
    height: 80px;
  }

  /* El overlay ocupa menos pantalla en mobile */
  .serviciosOverlay {
    font-size: 1rem;
    line-height: 1.5rem;
    padding: 2rem 1rem;
  }
}


.serviciosItem h3 {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.1;
  margin: 2rem 0 0.5rem 0;
  padding: 0.5rem 1rem;
  color: var(--main-color-black);
  background-color: var(--main-color-aqua-green);
  backdrop-filter: blur(2px);
  border: 3px solid var(--main-color-black);
}

.serviciosItem p {
  height: max-content;
  position: relative;
  text-align: start;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--main-color-black);
  background-color: transparent;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 0;
}

.serviciosItem p::before {
  content: '';
  width: 100%;
  height: 100%;
  background-color: var(--main-color-aqua-green);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -10;
}

.serviciosItem img {
  width: 90px;
  height: 90px;
  z-index: 1000;
  background-color: var(--main-color-aqua-green);
  border-radius: 50%;
  padding: 1rem;
}

.serviciosItem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 0;
}

.serviciosItemsText {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 180px;
  overflow: hidden;
  padding: 0 1rem;
  z-index: 1;
}

.backgroundImgLogistica {
  background-image: url(../blockchain/logistica.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #6ecb2b88;
  background-blend-mode: darken;
}

.backgroundImgRefinacion {
  background-image: url(../blockchain/refinacion.jpg);
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #6ecb2b88;
  background-blend-mode: darken;
}

.backgroundImgEnvases {
  background-image: url(../blockchain/envases.jpg);
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #6ecb2b88;
  background-blend-mode: darken;
}

.backgroundImgReintegracion {
  background-image: url(../blockchain/reintegracion.jpg);
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #6ecb2b88;
  background-blend-mode: darken;
}

.serviciosItemsText {
  display: block;
  max-height: 400px;
  overflow: hidden;
}

#reRefinacion {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: 0 0;
  position: relative;
  /* Añadido para que el contenido hijo con posición absoluta funcione correctamente */
}

#reRefinacion img {
  width: 100%;
  height: auto;
  /* Cambiado para mantener la proporción de la imagen */
  mask-image: linear-gradient(to bottom, transparent 5%, black 30%, rgb(0, 0, 0) 70%, transparent 90%);
  opacity: 0.7;
}

#reRefinacionTextContainer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Centrado absoluto */
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: space-evenly;
  width: 84%;
  height: 70%;
  text-align: center;
  line-height: 1.5;
  background-color: transparent;
  z-index: 1000;
}

#reRefinacionTextContainer h2 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--main-color-white);
  background-color: transparent;
}

#reRefinacionTextContainer h3 {
  font-size: 1.5rem;
  font-weight: 500;
  text-align: start;
  color: var(--main-color-white);
  background-color: transparent;
}

#reRefinacionTextContainer h3,
#reRefinacionTextContainer h2 {
  padding: 1rem 2rem;
}

.reRefinacionKeywords {
  font-weight: 800;
  background-color: transparent;
  color: var(--main-color-aqua-green);
  text-shadow: rgb(0, 0, 0) 2px 2px 0px;
  letter-spacing: 1px;
  text-transform: uppercase
}

#repContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 10%;
  margin-top: 6rem;
  padding-bottom: 5rem;
}

#repTextContainer {
  display: flex;
  width: 100%;
  flex-direction: column;
}

#repTitle {
  margin-bottom: 1rem;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
  color: var(--main-color-black);
}

#repText {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 500;
  color: #0a0a0a6e;
  margin: 0 auto;
  margin-bottom: 3rem;
}

/* Slider */
#slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 400px;
  border: 7px dashed var(--main-color-grey);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.repImg {
  min-width: 100%;
  height: auto;
}

/* Dots */
#dotsContainer {
  display: flex;
  flex-flow: row;
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.dot {
  width: 16px;
  height: 16px;
  margin: 0 10px;
  background-color: var(--main-color-grey);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--main-color-black);
}

#blockchainInfoContainer {
  display: flex;
  width: 90%;
  height: auto;
  flex-flow: column;
  align-items: start;
  justify-self: center;
  padding: 5% 10% 0;
}

#blockchainInfoTitleContainer p {
  color: var(--main-color-black);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
}

#blockchainInfoTextContainer {
  display: flex;
  flex-flow: row;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin-top: 3rem;
}

.blockchainInfoText {
  width: 90%;
}

.blockchainInfoText p {
  color: var(--main-color-grey);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
}

#blockchainTimelineContainer {
  display: flex;
  width: 80%;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Barra de íconos */
.timeline-icons {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 2rem;
  z-index: 100;
  background-color: transparent;
}

.timeline-step {
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  padding: 1rem;
  background-color: var(--main-color-white);
  box-shadow:
    1px 1px 0 #000,
    4px 4px 0 #000,
    5px 5px 0 #000;
  border: 2px solid var(--main-color-black);
  border-radius: 8px;
  position: relative;
}

.timeline-step img {
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
}

.timeline-step p {
  margin: 0;
  font-size: 1rem;
  color: var(--main-color-grey);
}

.step-number {
  position: absolute;
  top: -10px;
  left: -10px;
  background-color: var(--main-color-black);
  color: var(--main-color-yellow);
  font-size: 1rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 12px;
}

/* Estado activo */
.timeline-step.active {
  background-color: var(--main-color-white);
  box-shadow: 5px 2px 10px var(--main-color-yellow);
}


/* Hover */
.timeline-step:hover {
  box-shadow: 1px 1px 0 #000, 1px 1px 0 #000, 2px 2px 0 #000;
  transform: translate(2px, 2px);
}

/* Contenido central */
.timeline-content {
  width: 40%;
  /* ancho fijo */
  min-width: 300px;
  text-align: center;
  padding: 2rem;
  margin-bottom: 2rem;
}

.timeline-content {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: opacity, transform;
}


.timeline-content.fade-out {
  animation: slideOutLeft 0.4s forwards;
}

.timeline-content.fade-in {
  animation: slideInRight 0.4s forwards;
}

@keyframes slideOutLeft {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateX(-50px) scale(0.8);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px) scale(0.8);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.timeline-content h2 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.timeline-content p {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {

  #blockchainTimelineContainer {
    padding: 1rem;
  }

  .timeline-icons {
    gap: 1rem;
  }

  .timeline-content {
    width: 90%;
    padding: 0;
  }

  .timeline-step {
    width: 100px;
    height: 100px;
  }

  .timeline-step img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }

  .timeline-step p {
    font-size: 0.8rem;
  }
}

.reciclaje-section {
  padding: 3rem 1rem;
  background: transparent;
}

.reciclaje-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
}

.reciclaje-texto {
  flex: 1 1 400px;
}

.reciclaje-texto h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--main-color-black);
}

.colorGreenReciclaje {
  color: var(--main-color-aqua-green);
  font-size: 4rem;
  font-weight: 900;
  margin: 2rem 0 1rem 0;
  text-align: center;
  text-transform: uppercase;
  margin-top: 10vh;
  text-shadow: 5px 5px 0px rgba(0, 0, 0, 1), -2px -2px 1px rgba(255, 255, 255, 0.8);
}

.reciclaje-texto p {
  width: 85%;
  font-size: 1rem;
  line-height: 1.6;
  margin: 1rem 0 2rem;
  color: var(--main-color-grey);
}

.reciclaje-cta {
  display: inline-block;
  background: #00a86b;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  order: 2;
  background: var(--main-color-white);
  color: var(--main-color-black);
  box-shadow:
    1px 1px 0 #000,
    3px 3px 0 #000,
    4px 4px 0 #000;
  border: 2px solid var(--main-color-black);
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin: 0 auto;
  padding: 1rem 10%;
  text-align: center;
  transition: all .2s ease;
}

.reciclaje-cta:hover {
  transform: translate(2px, 2px);
  background: var(--main-color-aqua-green);
  box-shadow: 5px 2px 10px var(--main-color-yellow);
}

.reciclaje-video {
  flex: 1 1 100px;
  border: 7px dashed #01010124;
}

.reciclaje-video video {
  width: 100%;
  aspect-ratio: 9/16;
  /* Video vertical */
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .reciclaje-container {
    flex-direction: column;
    text-align: center;
  }

  .reciclaje-texto h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .reciclaje-texto {
    order: 2;
  }

  .reciclaje-video {
    order: 1;
    max-width: 70%;
    margin-bottom: 1rem;
  }
}

.separador {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.separador::before {
  content: "";
  width: 90%;
  border-top: 7px dashed #01010124;
}

#valores {
  position: relative;
  background-color: var(--main-color-white);
  width: 90%;
  height: 100%;
  margin: 0 auto;
  margin-top: 3rem;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
}

#valoresTitle {
  color: var(--main-color-aqua-green);
  font-size: 5rem;
  margin: 2rem 0 1rem 0;
  text-align: center;
  margin-top: 10vh;
  text-shadow:
    5px 5px 0px rgba(0, 0, 0, 1),
    -2px -2px 1px rgba(255, 255, 255, 0.8);
}

#valoresText {
  color: var(--main-color-black);
  font-size: 1.2rem;
  padding: 0 20%;
  text-align: center;
  line-height: 1.2;
}

#valoresGrid {
  display: flex;
  flex-flow: row;
  width: 80%;
  justify-content: center;
  margin-top: 5%;
}

.valoresItem {
  display: flex;
  width: 32%;
  height: 100%;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 3rem 0;
}

.valoresItem h3 {
  color: var(--main-color-black);
  padding: 1rem 0 0.5rem 0;
  font-size: 1.2rem;
}

.valoresItem p {
  color: var(--main-color-grey);
  padding: 0 10%;
  font-size: 1rem;
  line-height: 1.2;
}

.valoresIcon {
  width: 120px;
  height: 100px;
}

.valoresIcon {
  /* Initial state */
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
  opacity: 0;
  transform: scale(0.6);
}

.animate-icon {
  /* Example animation: scale up and fade in */
  transform: scale(1);
  opacity: 1;
  animation: valoresIconAnim 1s ease-in-out forwards;
}

#contactoContainer {
  position: relative;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 5% 5%;
}

#contactoTitle {
  color: var(--main-color-aqua-green);
  font-size: 5rem;
  margin: 2rem 0 1rem 0;
  text-align: center;
  text-shadow:
    5px 5px 0px rgba(0, 0, 0, 1),
    -2px -2px 1px rgba(255, 255, 255, 0.8);
}

#contactoText {
  color: var(--main-color-black);
  font-size: 1.2rem;
  text-align: center;
}

#contactoInfo {
  display: flex;
  flex-flow: row;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  width: 60%;
  height: 30%;
  margin-top: 5%;
  z-index: 100;
}

#contactoInfo h4 {
  margin: 1rem 0 0.5rem 0;
  color: var(--main-color-black);
  font-size: 1.2rem;
}

#contactoInfo p {
  font-size: 1rem;
  color: var(--main-color-black);
}

#infoEmail,
#infoPhone,
#infoAddress {
  position: relative;
  width: 200px;

}

#infoPhone a {
  text-decoration: none;
}

#infoEmail a {
  text-decoration: none;
}

#infoEmail::after {
  content: "";
  width: 60px;
  height: 60px;
  position: absolute;
  top: -150%;
  left: 30%;
  background-color: var(--main-color-aqua-green);
  background-image: url(../icons/email.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50%;
  clip-path: polygon(30% 0%,
      70% 0%,
      /* Top side */
      100% 30%,
      100% 70%,
      /* Right side */
      70% 100%,
      30% 100%,
      /* Bottom side */
      0% 70%,
      0% 30%
      /* Left side */
    );
}

#infoPhone::after {
  content: "";
  width: 60px;
  height: 60px;
  position: absolute;
  top: -150%;
  left: 30%;
  background-color: var(--main-color-aqua-green);
  background-image: url(../icons/phone.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50%;
  clip-path: polygon(30% 0%,
      70% 0%,
      /* Top side */
      100% 30%,
      100% 70%,
      /* Right side */
      70% 100%,
      30% 100%,
      /* Bottom side */
      0% 70%,
      0% 30%
      /* Left side */
    );
}

#infoAddress::after {
  content: "";
  width: 60px;
  height: 60px;
  position: absolute;
  top: -150%;
  left: 30%;
  background-color: var(--main-color-aqua-green);
  background-image: url(../icons/location.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50%;
  clip-path: polygon(30% 0%,
      70% 0%,
      /* Top side */
      100% 30%,
      100% 70%,
      /* Right side */
      70% 100%,
      30% 100%,
      /* Bottom side */
      0% 70%,
      0% 30%
      /* Left side */
    );
}

#infoEmail::after,
#infoPhone::after,
#infoAddress::after {
  content: "";
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s, transform 2s;
}

#infoEmail.animate-info::after,
#infoPhone.animate-info::after,
#infoAddress.animate-info::after {
  opacity: 1;
  transform: translateY(0);
}

#contactoForm {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 10%;
}

#formTitle {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--main-color-black);
  margin-top: 5rem;
}

#main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40%;
  background-color: var(--main-color-white);
  font-family: Arial, sans-serif;
}

.container {
  display: block;
  width: 100%;
  margin-top: 5rem;
}

form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--main-color-black);
}

.input-field,
.textarea-field {
  width: 100%;
  padding: 10px;
  border: none;
  background-color: #2ed9ae95;
  border: 1px solid var(--main-color-black);
  color: var(--main-color-black);
  margin-top: 0.5rem;
}

.textarea-field {
  resize: none;
  height: 150px;
}

@keyframes valoresIconAnim {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-20px);
  }
}

#contactoInfo {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 2rem;
}

.infoItem {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  background-color: var(--main-color-white);
  padding: 1rem 1rem;
  border-radius: 12px;
  width: 100%;
  max-width: 350px;
  min-width: 300px;
  height: 180px;
  /* altura fija para igualarlas */
  flex: 1 1 30%;
  box-sizing: border-box;
}

.icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background-color: var(--main-color-aqua-green);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50%;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

#iconEmail {
  background-image: url(../icons/email.svg);
}

#iconPhone {
  background-image: url(../icons/phone.svg);
}

#iconLocation {
  background-image: url(../icons/location.svg);
}

.infoContent {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.infoContent h4 {
  margin: 0;
  color: var(--main-color-black);
  font-size: 1.2rem;
}

.infoContent p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: var(--main-color-black);
}

.contactBtn {
  width: 250px;
  background: var(--main-color-white);
  color: var(--main-color-black);
  box-shadow:
    1px 1px 0 #000,
    3px 3px 0 #000,
    4px 4px 0 #000;
  border: 2px solid var(--main-color-black);
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin: 0 auto;
  margin-top: 2rem;
  padding: 1rem 10%;
  text-align: center;
  transition: all .2s ease;
}

.contactBtn:hover {
  background: var(--main-color-aqua-green);
  box-shadow: 5px 2px 10px var(--main-color-yellow);
  transform: translate(2px, 2px);
}

.correoDeContacto {
  font-size: 0.8rem;
  background-color: transparent;
}

#footerContainer {
  display: flex;
  flex-flow: row;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background-color: var(--main-color-black);
  margin-top: 15%;
  padding: 2% 2%;
  overflow: hidden;
  border-top: 7px dashed #ffffff5f;
}

#footerLinks {
  display: flex;
  flex-flow: column;
  align-items: baseline;
  justify-content: center;
  width: 50%;
  background-color: var(--main-color-black);
}

#footerLinks ul {
  background-color: var(--main-color-black);
}

#footerLinks ul li {
  list-style: none;
  background-color: var(--main-color-black);
  display: flex;
  flex-flow: column;
  align-items: baseline;
  margin: 0.5rem 0;
}

#footerLinks ul li a {
  color: var(--main-color-grey);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  position: relative;
  width: 100%;
  padding: 0.2rem 0.5rem;
}

#footerLinks ul li a::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--main-color-grey);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.6s ease;
}

#footerLinks ul li a:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

#footerLogo {
  display: flex;
  flex-flow: column;
  align-items: flex-end;
  justify-content: center;
  width: 50%;
  background-color: var(--main-color-black);
}

#footerLogo img {
  background-color: var(--main-color-black);
  width: 150px;
}

#footerRedes {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: end;
  background-color: transparent;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  overflow: hidden;
}

#footerRedes img {
  width: 26px;
  margin: 1rem 0.5rem;
  transition: .6s;
}

#footerRedes img:hover {
  transform: translateY(-5px);
  transition: .4s;
}

@media screen and (max-width: 700px) {

  .separadorIcon {
    margin-top: 0;
  }

  #headerContainer {
    padding: 1rem 1rem;
  }

  #logoImg {
    width: 120px;
    height: auto;
    padding: 0;
  }

  #heroContainer {
    justify-content: center;
    padding: 0 0;
  }

  .hero-content {
    height: 65vh;
    display: flex;
    flex-flow: column;
    justify-content: space-around;
  }

  .hero-title .bold {
    font-size: 2rem;
    letter-spacing: 0rem;
    /* grande */
  }

  .hero-title .middle-text {
    font-size: 0.7rem;
    /* más pequeño que arriba y abajo */
    max-width: 100%;
  }

  .hero-title .colorYellow {
    font-size: 2rem;
    letter-spacing: 0.5rem;
    /* grande */
  }


  #modalTitle {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .modal-subtitle {
    font-size: 1rem;
  }

  #navMenu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 200px;
    background-color: var(--main-color-white);
    border-left: 7px dashed #01010124;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: right 0.3s ease;
    padding: 5rem 0 80%;
    z-index: 10000;
  }

  #navMenu::before {
    display: block;
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    top: 50%;
    background-image: url("../logo/logo-todo-blanco.svg");
    text-align: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1000;
  }

  #navMenu ul {
    flex-direction: column;
    gap: 20px;
  }

  #navMenu ul li a {
    font-size: 1rem;
    z-index: 1000;
  }

  #navIcon {
    display: block;
    z-index: 1000;
  }

  #closeNavIcon {
    display: block;
    font-size: 1rem;
  }

  #navMenu.active {
    right: 0;
  }

  .hero-content {
    height: 50vh;
  }

  .colorGreen {
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1), -2px -2px 1px rgba(255, 255, 255, 0.8);
  }

  .colorYellow {
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1), -2px -2px 1px rgba(255, 255, 255, 0.8);
  }

  .btn-primary {
    padding: 1rem 30%;
  }

  .img-left {
    display: none;
  }

  .img-right {
    position: absolute;
    right: -40%;
    top: 100%;
    transform: translateY(-50%);
    width: 500px;
    z-index: -100;
    opacity: 0.4;

    /* Animación de pulso suave */
    animation: slide-in-mobile-diagonal 1.2s ease-in-out forwards,
      smooth-pulse 6s ease-in-out infinite;
    animation-delay: 0s, 1.2s;
    /* Primero entrada, luego pulso */
  }

  @keyframes slide-in-mobile-diagonal {
    0% {
      transform: translate(100%, -100%) scale(0.7);
      /* Arriba a la derecha */
      opacity: 0;
    }

    80% {
      transform: translate(0%, -50%) scale(1.05);
      /* Rebote intermedio */
      opacity: 0.45;
    }

    100% {
      transform: translate(0%, -50%) scale(1);
      /* Posición final */
      opacity: 0.4;
    }
  }

  #servicios::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -50%;
    width: 450px;
    height: 450px;
  }

  #serviciosTitle {
    font-size: 1.2rem;
    padding: 0 0;
  }

  .btn-secondary {
    font-size: 1rem;
  }

  .modal-content {
    width: 90%;
    height: 80%;
    display: flex;
    flex-flow: column;
    background-size: 30%;
    padding: 1rem;
  }

  #modalFormContainer {
    padding: 1rem 0;
    overflow-y: scroll;
  }

  #modalFormContainer span {
    margin: 1rem 0;
  }

  #modalContactoMedios {
    margin: 0;
    margin-top: 1rem;
  }

  .contactoMediosItem {
    margin: 1rem 0;
  }

  #modalFormContainer form {
    text-align: start;
    background-color: transparent;
    width: 100%;
    margin: 1rem 0;
  }

  #modalFormContainer input {
    border: none;
    color: var(--main-color-black);
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    width: auto;
  }

  #modalFormContainer input:last-of-type {
    height: 100px;
  }

  .animate-left::before,
  .animate-right::before,
  .animate-mobile::before {
    animation: fadeIn 1.2s ease-out forwards;
  }

  .animate-filosofia::before {
    animation: fadeInFilosofia 1.2s ease-out forwards;
  }

  @keyframes fadeInFilosofia {
    from {
      opacity: 0;
      scale: 0.8;
      transform: translateY(50px);
    }

    to {
      opacity: 1;
      scale: 1;
      transform: translateY(0);
    }
  }

  .problematicaReciclaje {
    display: flex;
    width: 100%;
    padding: 15% 3%;
  }

  .problematicaReciclaje:nth-of-type(2) {
    padding: 10% 3%;
  }

  .problematicaReciclaje p {
    font-size: 1rem;
    line-height: 1.2;
    padding: 0 0;
  }

  #estadisticasContainer::before {
    bottom: -5%;
    right: 0%;
    width: 150px;
    height: 150px;
  }

  #estadisticasContainer::after {
    top: -10%;
    left: -1%;
    width: 150px;
    height: 150px;
  }

  #estadisticasContainer {
    padding: 10% 0;
    height: auto;
  }

  .counters>div {
    grid-template-columns: 1fr;
    width: 90%;
  }

  .counter:not(:last-child)::before {
    width: 90%;
    height: 2px;
    top: initial;
    right: initial;
    left: 50%;
    bottom: -3em;
    transform: translateX(-50%);
  }

  .counterNumber span {
    font-size: 3rem;
  }

  #lubricantesContainer {
    flex-flow: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 5rem;
  }

  #graficoTitle {
    bottom: -50%;
  }

  .lubricantesMain {
    width: 100%;
    order: 2;
    margin-top: 3rem;
  }

  .lubricantesMain::before {
    content: "";
    position: absolute;
    bottom: 0;
    width: 90%;
  }

  .lubricantesMain::after {
    content: "";
    position: absolute;
    top: 0;
    width: 90%;
  }

  #lubricantes24 {
    width: 30%;
    padding-bottom: 1rem;
    font-size: 1.5rem;
  }

  #lubricantes29 {
    width: 30%;
    padding-bottom: 1rem;
    font-size: 1.5rem;
  }

  .lubricantesSides {
    width: 90%;
    order: 1;
    margin-bottom: 3rem;
  }

  .lubricantesSides {
    display: none;
  }

  #econCircularIlustracion {
    overflow: hidden;
    padding: 10% 0;
  }

  #econCircularImgContainer {
    width: 99%;
  }

  #econCircularImg {
    width: 100%;
    height: 100%;
  }

  #filosofia {
    text-align: center;
    justify-content: flex-start;
    padding-bottom: 60%;
  }

  #filosofia p {
    width: 95%;
    padding: 0 5%;
    font-size: 1rem;
    margin-top: 3rem;
  }

  #filosofiaText::before {
    width: 250px;
    height: 250px;
    top: 70%;
  }

  #filosofiaVideo {
    width: 80%;
    margin-top: 3rem;
  }

  #filosofia::before {
    display: none;
  }

  #filosofia::after {
    bottom: -150px;
    left: auto;
    width: 350px;
    height: 350px;
  }

  #filosofiaVideoLogo {
    width: 90%;
  }

  #serviciosTextContainer {
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: 1fr;
    width: 100%;
    gap: 1rem;
    padding: 0 5%;
    margin-top: 5rem;
  }

  #reRefinacion {
    justify-content: center;
    height: 100vh;
    margin-bottom: 10vh;
  }

  #reRefinacion img {
    width: 100%;
    height: 100%;
  }

  #reRefinacionTextContainer {
    width: 90%;
    height: 90%;
  }

  #reRefinacionTextContainer h2 {
    font-size: 1rem;
  }

  #reRefinacionTextContainer h3 {
    font-size: 1rem;
  }

  #reRefinacionTextContainer h3,
  #reRefinacionTextContainer h2 {
    padding: 0.5rem 0.5rem;
  }

  #blockchainInfoContainer {
    height: auto;
    margin-bottom: 3rem;
    flex-flow: column;
    padding: 5% 0;
  }

  #blockchainInfoTitleContainer p {
    font-size: 1.2rem;
  }

  #blockchainInfoTextContainer {
    flex-flow: column;
  }

  .blockchainInfoText {
    width: 100%;
  }

  .blockchainInfoText p {
    margin: 1rem 0;
  }

  #serviciosGrid {
    width: 90%;
    flex-flow: column;
    padding: 10% 0;
  }

  #serviciosGrid::before {
    background-image: url(../ilustraciones/cards-container-background-mobile.svg);
    background-size: 90vh;
  }

  /* ===== Servicios Grid efecto background ===== */
  #serviciosGrid.small-bg::before {
    background-size: 50vh;
  }

  #serviciosGrid.normal-bg::before {
    background-size: 80vh;
  }

  .serviciosItem {
    width: 200px;
    margin: 1rem 0;
    border: none;
    border-top: 3px solid var(--main-color-black);
  }

  .serviciosItem:last-of-type {
    border-bottom: 3px solid var(--main-color-black);
  }

  .serviciosText {
    margin-bottom: 0;
  }

  .serviciosItem p {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  #repTitle {
    font-size: 1.2rem;
  }

  .repImg {
    width: 100%;
    margin: 0.5rem 0;
  }

  #dotsContainer {
    display: flex;
  }

  #blockchainGridContainer {
    flex-flow: column;
    align-items: center;
    padding: 5% 3%;
    margin-top: 15%;
    background-size: 15%;
  }

  #blockchainGridContainer::before {
    position: relative;
    padding: 0 0;
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .blockchainItem {
    width: 100%;
    height: auto;
    margin: 3% 0;
    padding: 0 0;
  }

  .blockchainItem p {
    width: 100%;
  }

  .blockchainItemImgContainer img {
    width: 80%;
    height: 80%;
  }

  .blockchainItemDescription {
    width: 100%;
    height: 70%;
  }

  .blockchainItemDescription p {
    width: 100%;
    font-size: 1rem;
  }

  .timeline-step {
    padding: 0.5rem;
    padding-top: 1rem;
  }

  .colorGreenReciclaje {
    font-size: 2.5rem;
    text-shadow:
      2px 2px 0px rgba(0, 0, 0, 1),
      -2px -2px 1px rgba(255, 255, 255, 0.8);
  }

  .reciclaje-texto p {
    width: 100%;
  }

  #valores {
    position: relative;
    width: 90%;
    height: 100%;
    margin-bottom: 2rem;
  }

  #valoresGrid {
    display: flex;
    flex-flow: column;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
  }

  .valoresItem {
    width: 90%;
    padding: 0 0;
    margin: 5% 0;
    padding: 5% 0;
  }

  .valoresItem h3 {
    font-size: 1rem;
  }

  .valoresItem p {
    padding: 0 10%;
    font-size: 0.8rem;
  }

  .valoresIcon {
    width: 100px;
    height: 90px;
  }

  .valoresIcon {
    /* Initial state */
    transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out;
  }

  #contactoTitle,
  #valoresTitle {
    text-shadow:
      2px 2px 0px rgba(0, 0, 0, 1),
      -2px -2px 1px rgba(255, 255, 255, 0.8);
  }

  #contactoContainer {
    margin-top: 0;
    justify-content: flex-start;
  }

  #contactoInfo {
    flex-direction: column;
    align-items: center;
  }

  .infoItem {
    width: 100%;
    max-width: 90%;
    height: auto;
    /* altura flexible en mobile */
  }

  .infoContent {
    align-items: flex-start;
  }

  #contactoForm {
    margin-top: 0rem;
  }

  #infoEmail,
  #infoPhone,
  #infoAddress {
    margin: 3rem 0;
    z-index: 10000;
  }

  #infoEmail::after,
  #infoPhone::after,
  #infoAddress::after {
    top: -2rem;
    left: -30%;
  }

  #main-container {
    width: 90%;
  }

  #main-container h3 {
    text-align: center;
    font-size: 3rem;
    margin: 2rem 0 1rem 0;
  }

  #main-container p {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .container {
    padding: 0 0;
  }

  #contactoText {
    margin-bottom: 2rem;
  }

  #contactoForm input,
  #contactoForm textarea {
    width: 100%;
  }

  #contactoForm button {
    width: 100%;
  }

  #valoresTitle,
  #contactoTitle {
    font-size: 2rem;
    line-height: 1.2;
    padding: 0 10%;
  }

  #serviciosText,
  #valoresText,
  #contactoText {
    font-size: 1.2rem;
    padding: 0 1rem;
    text-align: start;
  }

  #footerContainer {
    padding: 10% 5%;
  }

  #footerRedes {
    margin-right: 1.2rem;
  }

  #footerRedes img {
    width: 20px;
  }

  .infoContent {
    align-items: center;
  }

  .infoItem {
    padding: 0 0;
    flex-flow: column;
    align-items: center;
  }

  .contactBtn {
    width: 250px;
  }
}