.faq-section {
  padding: 120px 0 160px;


  @media (width <= 768px) {
    padding: 60px 0px;
  }

  & .faq-container {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    flex-direction:space-between;
    
    @media (width <= 1024px) {
      gap: 40px;
    }

    @media (width <= 768px) {
      gap: 20px;
      flex-direction: column-reverse;
    }

    & .faq-image-wrapper {
      position: sticky;
      top: 20px;
      width:30%;
      overflow: hidden;

      @media (width <= 768px) {
        position: relative;
        width: 100%;
      }

      & img {
        width: 430px;
        height: 660px;
        object-fit: cover;
        display: block;
        border-radius: 300px;
        text-align: start;
        @media (width <= 768px) {
          height: 500px;
        }
      }
    }

    & .faq-content-wrapper {
      display: flex;
      flex-direction: column;
      gap: 40px;
      width:70%;
      @media (width <= 768px) {
        position: relative;
        width: 100%;
      }

      & .faq-title {
        margin: 0;
        color: #321D1D;
        line-height: 1.2;
      }

      & .faq-accordion {
        display: flex;
        flex-direction: column;
        gap: 20px;

        & .faq-item {
          border: 1px solid #A46C3266;
          transition: all 0.3s ease;

          &:first-child {
            border: 1px solid #A46C3266;
          }

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

          & .faq-question {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            background: #1b171814;
            border: none;
            cursor: pointer;
            text-align: left;
            transition: background-color 0.3s ease;

            & .faq-question-text {
              font-size: 20px;
              font-weight: 500;
              color: #321D1D;
              padding-right: 20px;
              line-height: 1.4;
              margin: 0;

              @media (width <= 768px) {
                font-size: 16px;
              }
            }

            & .faq-icon {
              font-size: 24px;
              font-weight: 300;
              color: #1a1a1a;
              flex-shrink: 0;
              width: 24px;
              height: 24px;
              display: flex;
              align-items: center;
              justify-content: center;
              transition: transform 0.3s ease;
            }
          }

          /* Técnica Grid para animación suave */
          & .faq-answer {
            display: grid;
            grid-template-rows: 0fr;
            overflow: hidden;
            transition: grid-template-rows 0.4s ease;

            &:not([hidden]) {
              grid-template-rows: 1fr;
            }

            &[hidden] {
              display: none;
            }

            & .faq-answer-content {
              overflow: hidden;
              padding: 0 20px;
              
              &:last-child {
                margin-bottom: 0;
              }
            }
          }

          /* Estado activo */
          &.active .faq-answer {
            grid-template-rows: 1fr;
            padding: 20px 0;
          }
        }
        .faq-item.active .faq-question {
        background: #A46C32 !important;
        }

        .faq-item.active .faq-question h3 {
        color: #fff;
        }

        .faq-item.active .faq-question  img {
          filter: brightness(0) invert(1);
        }
      }
    }
  }
}
