.tec-hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  overflow: hidden;
}

.tec-hero-bg-layer-1 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.tec-hero-bg-layer-2 {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
}

.tec-hero-title {
  position: absolute;
  top: 15%;
  left: 0;
  right: 0;
  margin: 0 auto;
  display: block;
  z-index: 3;
  max-width: 45%;
  height: auto;
  opacity: 0;
}
.tec-hero-wave {
  position: relative;
  display: block;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 10;
  margin-top: -26.2%;
  pointer-events: none;
  transform: translateY(26.2%);
  clip-path: inset(0 100% 0 0);
  animation: waveReveal 3s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}
@keyframes waveReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.tec-hero-section .hero-wave {
  z-index: 3;
  clip-path: inset(0 100% 0 0);
  animation: waveReveal 3s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

.about-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #fff;
}

.about-scroll-wrapper {
  display: flex;
  flex-wrap: nowrap;
  width: 300vw;
  height: 100%;
}

.about-slide {
  width: 100vw;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-1 {
  background-color: #ffffff;
}

.slide-2 {
  background-image: url("../images/tecnologia/slide-bg-2.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.slide-3 {
  background-image: url("../images/tecnologia/slide-bg-3.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 80%;
  text-align: center;
  margin-top: 8vh;
  padding: 0 20px;
  box-sizing: border-box;
}

.about-title-red {
  color: #e3000f;
  font-size: 6rem;
  font-weight: bold;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.about-subtitle {
  color: #333333;
  font-size: 3rem;
  line-height: 1.4;
  font-weight: 500;
  margin-top: 5rem;
}

.about-tecnologia-photo {
  position: absolute;
  left: -10%;
  top: 10%;
  width: 30%;
}

.about-tecnologia-photo-2 {
  position: absolute;
  left: -2%;
  top: 55%;
  width: 28%;
}

.about-tecnologia-photo-3 {
  position: absolute;
  left: -5%;
  top: 20%;
  width: 30%;
}

.about-slide-2-content {
  color: #ffffff;
  width: 45%;
  font-size: 1.8rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.about-slide-3-content {
  color: #ffffff;
  width: 45%;
  font-size: 3rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.about-slide-2-content p {
  margin: 0;
  text-align: center;
}

.about-slide-3-content p {
  color: #ffffff;
  font-weight: bold;
  text-align: center;
}

.about-slide-2-content p:nth-child(1) span {
  background-color: #e3000f;

  color: #ffffff;
  padding: 0.2rem 0.5rem;
  font-weight: bold;
}

.about-slide-2-content p:nth-child(2) span {
  background-color: #ffffff;
  color: #e3000f;

  padding: 0.2rem 0.5rem;
  font-weight: bold;
}

.tecnologia-cards-section {
  width: 100%;
  height: 160vh;
  min-height: 1384px;
  background-color: white;
}

.tecnologia-cards-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.cards-header-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-left: auto;
  text-align: right;
  color: #ffffff;
  background-color: black;
  height: 80vh;
  min-height: 740px;
  padding: 5%;
  position: relative;
}

.cards-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.cards-description {
  font-size: 1.2rem;
  line-height: 1.6;
}

@media (min-width: 1920px) {
  .cards-description {
    font-size: 2rem;
  }
}

.carousel-and-controls-wrapper {
  position: absolute;
  bottom: -20%;
  right: 0;
  width: 90%;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.cards-controls-wrapper {
  position: relative;
  left: 0;
  margin-bottom: 2%;
  display: flex;
  gap: 15px;
}

.cards-prev,
.cards-next {
  width: 50px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.cards-prev:hover,
.cards-next:hover {
  opacity: 0.7;
}

.tecnologia-swiper {
  position: relative;
  width: 100%;
  height: auto;
}

.card-item {
  display: flex;
  flex-direction: column;
  height: auto;
  max-width: 850px;
  transition: opacity 0.4s ease;
}

.swiper-slide-active.card-item {
  opacity: 1;
}

.card-img {
  width: 100%;
  aspect-ratio: 812 / 531;
  object-fit: cover;
  display: block;
  border-radius: 50px 50px 0 0;
}

.card-text {
  background-color: #e3000f;
  color: #ffffff;
  padding: 1.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  margin-top: -15%;
  border-radius: 0 0 50px 50px;
}

.cards-status-bar {
  display: flex;
  position: absolute;
  bottom: -35%;
  left: 20%;
  width: 60%;
  align-items: center;
  gap: 20px;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 10;
}

.cards-fraction {
  color: #e3000f;
}

.cards-progress-bg {
  flex-grow: 1;
  height: 4px;
  background-color: #666666;
  position: relative;
}

.cards-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #e3000f;
  width: 33.33%;
  transition: width 0.3s ease;
}

.cards-footer-cta {
  position: absolute;
  bottom: -80%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
}

.cards-footer-text {
  color: #000000;
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* --------------------------
   Cotiza Drawer Styles
--------------------------- */
.quote-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.quote-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.quote-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90vh;
  background-color: #ffffff;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
}

.quote-drawer.open {
  transform: translateY(0);
}

.quote-drawer-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 5%;
  border-bottom: 1px solid #eeeeee;
}

.quote-drawer-header h3 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
  color: #000000;
}

.quote-drawer-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: #666666;
  line-height: 1;
}

.quote-drawer-close:hover {
  color: #e3000f;
}

.quote-drawer-body {
  flex-grow: 1;
  padding: 30px 5%;
  overflow-y: auto;
}

.quote-form {
  max-width: 900px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #000000;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e3000f;
}

.form-row-full .form-group {
  flex: 100%;
}

.form-note {
  font-size: 0.85rem;
  color: #666666;
  margin-top: 10px;
  margin-bottom: 30px;
  text-align: center;
}

.form-submit-container {
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group {
    margin-bottom: 20px;
  }
}

/* --------------------------
   Descanso Section
--------------------------- */
.descanso-section {
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.descanso-video-desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

.descanso-video-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: none;
}

.descanso-truck-img {
  position: absolute;
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  height: auto;
  z-index: 2;
  object-fit: contain;
  object-position: center;
}

/* --------------------------
   Emisiones Section
--------------------------- */
.emisiones-section {
  width: 100%;
  height: 80vh;
  background: #e50113;
  position: relative;
  box-shadow: #0000004f 0px 7px 11px;
}

.emisiones-text-container {
  position: absolute;
  top: 10%;
  right: 5%;
  max-width: 450px;
  color: #ffffff;
  text-align: right;
  z-index: 2;
  display: grid;
  align-items: start;
  justify-items: end;
}

.emisiones-text-container p {
  grid-area: 1 / 1;
  font-size: 1.6rem;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
}

.emisiones-text-2 {
  opacity: 0;
}

.emisiones-epa-img {
  position: absolute;
  bottom: 8%;
  right: 5%;
  max-width: 250px;
  height: auto;
  z-index: 2;
}

.emisiones-hero-wrapper {
  position: absolute;
  width: 50%;
  left: 0;
  bottom: -10%;
  display: flex;
  align-items: flex-end;
  z-index: 1;
}

.emisiones-img {
  max-width: 600px;
  width: 80%;
  height: 100%;
  display: block;
  object-fit: contain;
  box-shadow: #0000004f 0px 12px 13px 0px;
}

/* --------------------------
   Z-Index Wrappers
--------------------------- */
.wrapper-1 {
  z-index: 2;
}

.wrapper-2 {
  z-index: 2;
}

/* --------------------------
   Parallax Section
--------------------------- */

.parallax-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* --------------------------
   FAQ Section
--------------------------- */
.faq-section {
  background-color: #c50010;
  min-height: 100vh;
  height: auto;
  padding: 100px 5%;
  color: #ffffff;
  box-shadow: #0000004f 0px -11px 13px 0px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
}

.faq-left {
  width: 100%;
  margin-bottom: 40px;
}

.faq-line {
  width: 20%;
  height: 1px;
  background-color: #ffffff;
  margin-bottom: 20px;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.faq-right {
  width: 70%;
  align-self: flex-end;
}

.faq-item {
  border-bottom: 1px solid #ffffff;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #ffffff;
  padding: 25px 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  text-align: right;
  outline: none;
}

.faq-question span {
  text-align: right;
}

.faq-icon {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  text-align: right;
}

.faq-answer p {
  padding-bottom: 25px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

@media (max-width: 991px) {
  .faq-right {
    width: 100%;
  }
}

.parallax-spacer {
  height: 40vh;
  width: 100%;
  background: transparent;
}

/* --------------------------
   Mobile Optimizations for About Section
--------------------------- */
@media (max-width: 768px) {
  .tec-hero-title {
    max-width: 65%;
  }

  .about-section {
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow: hidden;
  }

  .about-scroll-wrapper {
    width: 100%;
    height: 100%;
    display: block;
  }

  .about-slide {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .slide-1 {
    top: 0;
  }
 .slide-2 {
    padding-bottom: 0;
  }

  .about-content {
    height: auto;
    margin-top: 2rem;
  }

  .slide-1 .about-content {
    margin-bottom: 70%;
  }

  .about-title-red {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }

  .about-subtitle {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .about-tecnologia-photo-3 {
    position: relative;
    top: auto;
    left: auto;
    width: 80%;
    max-width: 350px;
    margin: 0;
  }

  .about-tecnologia-photo {
    position: relative;
    top: 5%;
    left: -15%;
    width: 55%;
    max-width: 250px;
    margin: 0;
    z-index: 1;
  }

  .about-tecnologia-photo-2 {
    position: relative;
    top: 15%;
    left: 20%;
    width: 55%;
    max-width: 250px;
    margin-top: -40%;
    z-index: 2;
  }

  .about-slide-3-content {
    width: 90%;
    font-size: 1.2rem;
    gap: 2rem;
    padding: 20px 0;
    text-align: center;
  }

  .about-slide-2-content {
    width: 100%;
    font-size: 1.2rem;
    gap: 2rem;
    padding: 1.5rem 1.5rem 10% 1.5rem;
    margin-top: auto;
    text-align: center;
  }

  .slide-1,
  .slide-3 {
    justify-content: center;
  }

  .slide-1 img[src*="next.png"] {
    display: none;
  }

  .tecnologia-cards-section {
    min-height: 1500px;
  }

  .cards-header-info {
    height: 100vh;
    height: 100dvh;
    min-height: 900px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .cards-title {
    text-align: center;
    font-size: 2rem;
    margin-top: 20%;
  }

  .cards-description {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 20%;
  }

  .card-item {
    height: auto;
    max-height: none;
  }

  .card-img {
    height: auto;
    aspect-ratio: 812 / 531;
  }

  .card-text {
    height: 40%;
    font-size: 1rem;
    padding: 10px;
    min-height: auto;
  }

  .carousel-and-controls-wrapper {
    width: 100%;
    right: auto;
    left: 0;
  }

  .tecnologia-swiper {
    padding-left: 20px;
  }

  .cards-controls-wrapper {
    justify-content: center;
    margin-bottom: 15%;
  }

  .descanso-section {
    height: 100vh;
    height: 100dvh;
  }

  .descanso-video-desktop {
    display: none;
  }

  .descanso-video-mobile {
    display: block;
  }

  .descanso-truck-img {
    width: 90%;
    top: auto;
    bottom: 10%;
    transform: translateX(-50%);
  }

  .parallax-spacer {
    height: 50vh;
  }

  .cards-footer-text {
    font-size: 1.1rem;
  }

  .cards-footer-text br {
    display: none;
  }

  /* Emisiones Mobile */
  .emisiones-section {
    height: auto;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .emisiones-hero-wrapper {
    position: relative;
    width: 100%;
    bottom: auto;
    left: auto;
    order: -1;
  }

  .emisiones-img {
    max-width: none;
    width: 100%;
  }

  .emisiones-text-container {
    position: relative;
    top: auto;
    right: auto;
    text-align: center;
    margin-top: 20px;
    padding: 5%;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .emisiones-text-container p {
    font-size: 1rem;
    opacity: 0;
    transform: translateY(20px);
  }

  .emisiones-epa-img {
    position: absolute;
    bottom: 2%;
    right: 5%;
    max-width: 100px;
  }
}

/* Mobile Small */
@media (max-width: 375px) {
  .about-slide-2-content {
    font-size: 1rem;
  }

  .about-tecnologia-photo-2 {
    top: 5%;
  }

  .descanso-truck-img {
    bottom: -10%;
  }

  .cards-status-bar {
    bottom: -25%;
  }
}
