
@media (max-width: 600px){
    .about-cards-stack {
        position: relative;
        width: 100vw;
        max-width: 100vw;
        min-height: 45vh;
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        padding: 0;
      }

      body {
        overflow-x: hidden;
      }
      .about-section {
        overflow-x: hidden;
      }

    /* ABOUT TITLE MOBILE STYLES */
    .about-title-container {
      margin: 0rem auto 2rem auto;
      padding: 0 0.7rem;
      max-width: 100vw;
      box-sizing: border-box;
    }

    .about-main-title {
      font-size: 2.1rem !important;
      margin: 0 0 0.7rem 0;
      word-break: break-word;
      max-width: 100%;
      line-height: 1.1;
      text-shadow: 0 3px 15px rgba(0,0,0,0.9), 0 2px 6px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.7);
    }

    .about-main-subtitle {
      font-size: 1rem !important;
      word-break: break-word;
      max-width: 100%;
      line-height: 1.2;
      text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.7);
    }

    .about-card {
        /* Cambios: mejor ancho y centrado */
        position: static;
        margin: 0 auto 1.5rem auto !important;
        left: unset;
        top: unset;
        transform: none;
        width: 96vw !important;
        max-width: 500px !important;
        min-width: 0;
        box-sizing: border-box;
        border-radius: 1.1rem;
        box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
        background: var(--white);
        z-index: 1;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s cubic-bezier(.77,0,.18,1), transform 0.4s cubic-bezier(.77,0,.18,1);
        height: auto;
        min-height: 45vh;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
      }

  .about-card.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    display: flex;
  }
  .about-card.fade-in {
    opacity: 1 !important;
    pointer-events: auto;
    z-index: 2;
    display: flex;
    animation: aboutFadeIn 0.45s cubic-bezier(.77,0,.18,1);
  }
  @keyframes aboutFadeIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .about-card-content {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.1rem 1.5rem 1.1rem;
    min-height: unset;
    height: auto;
    position: relative;
  }
  .team-gallery {
    width: 100%;
    box-sizing: border-box;
  }
  .about-toggle-btn {
    display: none;
    margin: 0 auto 1rem auto;
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    border-radius: 1.5rem;
    padding: 0.4rem 1.1rem;
    font-size: 0.98rem;
    font-weight: 600;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
    cursor: pointer;
    transition: background 0.2s;
    position: static;
  }
  .about-card.active .about-toggle-btn {
    display: block;
  }
  /* Oculta la segunda tarjeta por defecto */
  .about-card.about-team {
    z-index: 1;
  }
  .about-card.about-brand {
    z-index: 2;
  }

  
  .about-brand-carousel {
    width: 250px !important;
    max-width: 90vw !important;
    height: 145px !important;
    overflow: hidden !important;
    box-shadow: none !important;
  }
  .carousel-track {
    width: 250px !important;
    height: 145px !important;
  }
  .about-brand-carousel img {
    width: 230px !important;
    height: 134px !important;
    margin-right: 1.5rem !important;
    border: 2px solid var(--accent-color);
    box-sizing: border-box;
  }
  .about-brand-carousel img:last-child {
    margin-right: 0 !important;
  }
}

@media (min-width: 601px) and (max-width: 900px){
    .about-cards-stack {
        position: relative;
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
      }

    /* ABOUT TITLE TABLET STYLES */
    .about-title-container {
      margin: 2rem auto 2.5rem auto;
      padding: 0 1.5rem;
    }

    .about-main-title {
      font-size: 2.8rem;
      margin: 0 0 1rem 0;
      text-shadow: 0 4px 18px rgba(0,0,0,0.9), 0 2px 7px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.7);
    }

    .about-main-subtitle {
      font-size: 1.1rem;
      text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.7);
    }

      .about-card {
        /* Cambios: mejor ancho y centrado */
        position: static;
        margin: 0 auto 2rem auto !important;
        padding:1.6rem;
        left: unset;
        top: unset;
        transform: none;
        width: 85vw !important;
        max-width: 700px !important;
        min-width: 0;
        box-sizing: border-box;
        border-radius: 1.1rem;
        box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
        background: var(--white);
        z-index: 1;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s cubic-bezier(.77,0,.18,1), transform 0.4s cubic-bezier(.77,0,.18,1);
        height: auto;
        min-height: 45vh;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
      }
      .about-card.active {
        opacity: 1;
        pointer-events: auto;
        z-index: 2;
        display: flex;
      }
      .about-card.fade-in {
        opacity: 1 !important;
        pointer-events: auto;
        z-index: 2;
        display: flex;
        animation: aboutFadeIn 0.45s cubic-bezier(.77,0,.18,1);
      }
      @keyframes aboutFadeIn {
        from {
          opacity: 0;
          transform: translateY(30px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      .about-card-content,
      .team-gallery {
        width: 100%;
        box-sizing: border-box;
      }
      
      .about-card-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
      }
      .about-toggle-btn {
        display: none;
        margin: 0 auto 1rem auto;
        background: var(--primary-dark);
        color: var(--white);
        border: none;
        border-radius: 1.5rem;
        padding: 0.4rem 1.1rem;
        font-size: 0.98rem;
        font-weight: 600;
        box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
        cursor: pointer;
        transition: background 0.2s;
        position: static;
      }
      .about-card.active .about-toggle-btn {
        display: block;
      }
      .about-card.fade-in {
        opacity: 1 !important;
        pointer-events: auto;
        z-index: 2;
        display: flex;
        animation: aboutFadeIn 0.45s cubic-bezier(.77,0,.18,1);
      }
      @keyframes aboutFadeIn {
        from {
          opacity: 0;
          transform: translateY(30px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
}







.about-section {
    width: 100%;

    padding: 2.5rem 0 2.5rem 0;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .about-title {
    font-family: 'Cinzel', serif;
    font-size: 2.3rem;
    color: rgb(255, 251, 197);
    font-weight: 800;
    margin-bottom: 0.3rem;
    text-align: center;
    width: 100%;
  }
  .about-tagline {
    font-family: 'Raleway', serif;
    font-size: 1.1rem;
    color: var(--grey);
    margin-bottom: 1.2rem;
    text-align: center;
    width: 100%;
  }
  .about-history {
    font-size: 1.18rem;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin-bottom: 0.7rem;
    text-align: center;
  }
  .about-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
    margin-top: 0.7rem;
    justify-content: center;
  }
  .about-values li {
    list-style: none;
    background: rgba(224,144,39,0.13);
    color: rgb(255, 169, 71);
    font-weight: 700;
    border-radius: 1.2rem;
    padding: 0.35rem 1.1rem;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.07);
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
  }
  .about-values li:hover {
    background: rgb(240, 171, 114);
    color: var(--black);
  }


  .team-title {
    font-size: 2.2rem;
    font-family: 'Cinzel', serif;
    margin-bottom: 0.5em;
    text-align: center;
  }
  .team-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2vw;
  }

  .team-gallery {
    display: flex;
    justify-content: center;
    gap: 2vw;
    flex-wrap: wrap;
  }
  .team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    margin: 0 1vw;
    transition: transform 0.2s;
  }
  .team-member:hover {
    transform: translateY(-0.5vw) scale(1.04);
  }
  .team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    filter: grayscale(0%) contrast(1.1) brightness(1.05);
    box-shadow: 0 0.3vw 1vw rgba(0,0,0,0.10);
    transition: filter 0.3s, box-shadow 0.3s;
  }
  .team-member:hover .team-photo {
    filter: grayscale(0%) contrast(1.1) brightness(1.05);
    box-shadow: 0 0.6vw 2vw rgba(0,0,0,0.13);
  }
  .team-info {
    margin-top: 1vw;
    text-align: center;
  }
  .team-name {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
  }
  .team-role {
    font-size: 0.98rem;
    color: grey;
    display: block;
  }
  .team-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: grey;
    margin-top: 0.3em;
    display: block;
  }
  

  .about-cards-stack {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 3vw;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }



  .about-card.about-brand {
    background-image: url('../../assets/fondotarjeta1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
  }
  .about-card.about-team {
    background-image: url('../../assets/fondotarjeta2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
  }

  /* Carrusel horizontal para sección about */
.about-brand-carousel {
    width: 352px;
    max-width: 100vw;
    height: 180px;
    overflow: hidden;
    border-radius: 1vw;
    margin: 3rem auto 0 auto;
    box-shadow: none;
    position: relative;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .carousel-track {
    display: flex;
    width: max-content;
    height: 100%;
    transition: transform 1s cubic-bezier(.77,0,.18,1);
    will-change: transform;
  }
  .about-brand-carousel img {
    width: 288px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 1vw;
    margin-right: 32px;
    border: 2px solid var(--accent-color);
    box-sizing: border-box;
  }
  
  .about-brand-carousel img:last-child {
    margin-right: 0;
  }
  
  /* Eliminar residuos de sliders anteriores */
  .about-brand-slider, .about-brand-slider img, .about-brand-slider img.active { display: none !important; } 
  
  
  .section-divider {
    width: 80vw;
    max-width: 900px;
    height: 4px;
    margin: 1.5rem auto;
    background: var(--primary-dark);
    border-radius: 0;
    box-shadow: none;
    display: block;
  }

  @keyframes divider-fade-in-up {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .about-fade-top {
    width: 100%;
    height: 14px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0) 100%);
    position: relative;
    z-index: 2;
    pointer-events: none;
    margin: 0;
    padding: 0;
  } 
  
/* Fondo con overlay negro para la sección about */
.about-section {
  position: relative;
  background: url('../../assets/fondoabout.jpg') center center/cover no-repeat;
}
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 0;
  pointer-events: none;
}
.about-section > * {
  position: relative;
  z-index: 1;
}

/* Ocultar los botones de las tarjetas en desktop */
@media (min-width: 901px) {
  .about-toggle-btn {
    display: none !important;
  }

  .about-card {
    background: var(--white);
    border-radius: 1.5vw;
    box-shadow: 0 1.2vw 3vw rgba(0,0,0,0.13), 0 0.2vw 0.8vw rgba(0,0,0,0.08);
    width: 37vw;
    max-width: 1200px;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2vw 2vw 2vw 2vw;
    margin: 0;
    overflow: visible;
    box-sizing: border-box;
  }
  
  .about-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
  }

} 
 
  
/* ESTILOS DESKTOP */
.scroll-telling {
    width: 100vw;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    gap: 4.2rem;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    background-image: url('../../assets/fondoscroll3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
  .scroll-telling::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
  }

  .st-content-bg {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 1.1rem 1.2rem;
    display: inline-block;
    max-width: 95%;
    margin: 0.2rem auto 1.2rem auto;
  }
  .st-content-bg h2,
  .st-content-bg .st-caption {
    color: var(--white) !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.85), 0 1px 2px rgba(0,0,0,0.5);
  }

  .st-figcaption {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    color: var(--accent-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 300;
    margin-top: 0.5rem;
    background: none !important;
    border-radius: 0 !important;
    padding: 0.18rem 0.8rem;
    text-align: center;
    box-shadow: none !important;
    width: 90%;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    font-style: normal;
    text-shadow: none !important;
  }
  .st-caption {
    background: none !important;
    border-radius: 0 !important;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0;
    display: inline-block;
    color: var(--accent-color) !important;
    text-shadow: none !important;
  }

  .scroll-telling > .section-divider {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    margin-bottom: 0.5rem;
    width: 90vw;
    max-width: 100vw;
    margin:2rem auto;
  }
  
  .scroll-telling > .section-divider.animate {
    animation: divider-fade-in-up 0.9s cubic-bezier(0.4,0,0.2,1) 0.1s forwards;
  }

  /* TÍTULO DE MAQUETA */
  .st-title-container {
    text-align: center;
    margin: 0rem auto 3rem auto;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 3;
    position: relative;
  }

  .st-main-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 1rem 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 2px 4px rgba(0,0,0,0.6);
    letter-spacing: 0.05em;
    line-height: 1.2;
  }

  .st-main-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--accent-color);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    letter-spacing: 0.02em;
    line-height: 1.4;
  }

  /* ABOUT SECTION TITLE */
  .about-title-container {
    text-align: center;
    margin: 0rem auto 3rem auto;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 3;
    position: relative;
  }

  .about-main-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 1rem 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.9), 0 2px 8px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.7);
    letter-spacing: 0.05em;
    line-height: 1.2;
  }

  .about-main-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--accent-color);
    margin: 0;
    text-shadow: 0 3px 12px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.7);
    letter-spacing: 0.02em;
    line-height: 1.4;
  } 
  
  .team-roles {
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
    margin-bottom: 1.2em;
    margin-top: 0.2em;
    text-align: center;
  }

  .team-roles {
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
    margin-bottom: 0rem;
    margin-top: 0.2em;
    text-align: center;
  }

/* Divider */
.divider {
  width: 70%;
  height: 2px; /* Adjust thickness as needed */
  background-color: #838181; /* Adjust color as needed */
  margin: 20px auto;
  margin-top: 0; /* Center the divider and add some vertical spacing */
  border-radius: 10px; /* Adjust to control the curve */
}