.experiencia-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    max-width: 1200px;
    margin: 90px auto 70px; 
    padding: 20px;
    opacity: 0; 
    transform: translateY(30px);
    animation: fadeIn 1s ease-out forwards; 
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.experiencia-content {
    text-align: center;
    max-width: 800px;
}

.experiencia-title {
    font-size: 2rem;
    font-weight: 800;
    color: #BCA500;
    margin-bottom: 10px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #BCA500;
    display: inline-block;
    animation: typingCursor 0.8s infinite;
}

@keyframes typingCursor {
    50% { border-right-color: transparent; }
}

.experiencia-title.cursor-hidden {
    border-right: none;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.experiencia-text {
    font-size: 1.2rem;
    color: #002246;
    line-height: 1.6;
}

.experiencia-image {
    margin-top: 30px;
    text-align: center;
}

.experiencia-image img {
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.experiencia-image img:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1); 
}

.scroll-down {
    position: relative;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.scroll-down img {
    width: 40px; 
    height: auto;
    cursor: pointer;
    animation: bounce 1.5s infinite; 
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.troqueles-container {
    margin: 0 auto;
    padding: 100px 10%;
    text-align: left;
    position: relative;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.troqueles-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/Imagenes/rb_17580.png'); 
    background-color: #0d3c66;
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(1px); 
    z-index: -1;
}

.troqueles-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px;
    width: 100%;
}

.troqueles-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.troqueles-card {
    background-color: #E5E5E5;
    border: 2px solid #002246;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    width: 100%;
    padding-bottom: 10px;
}

.troqueles-card:hover {
    background-color: #BCA500;
}

.troqueles-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.troqueles-card span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #002246;
    padding: 15px;
    display: block;
}

.troqueles-card::after {
    content: " ▼";
    font-size: 1.5rem;
    font-weight: bold;
    color: #002246;
    transition: transform 0.3s ease;
}

.troqueles-card.active::after {
    transform: rotate(180deg);
}

.troqueles-list {
    width: 100%;  
    background-color: white;
    border: 2px solid #002246;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
    padding: 10px;
    margin-top: 5px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    list-style: none;
}

.troqueles-item.active .troqueles-list {
    display: block;
    opacity: 1;
    transform: translateY(5px);
}

.troqueles-list li {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #002246;  
    font-weight: bold;
}

.troqueles-list li:hover {
    background-color: #BCA500;
    color: #002246;
}

.video-container,
.image-container {
    width: 100%;
    background: #E5E5E5;
    text-align: center;
    padding: 20px;
    margin-top: 10px;
    border-radius: 10px;
    display: none;
}

.troqueles-list li.active + .video-container,
.troqueles-list li.active + .image-container {
    display: block;
}

.video-container iframe {
    width: 100%;
    height: 250px;
    border-radius: 10px;
}

.image-container img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
  .experiencia-container {
    padding: 20px 15px;
    margin-top: 60px;
  }

  .experiencia-content {
    padding: 0 20px;
    text-align: center;
  }

  .experiencia-title {
    font-size: 1.1rem;
    white-space: normal; 
    overflow-wrap: break-word; 
    border-right: none;
  }

  .experiencia-text {
    font-size: 1rem;
    text-align: justify;
  }

  .experiencia-image img {
    max-width: 90%;
  }

  .scroll-down img {
    width: 30px;
  }

  .troqueles-container {
    padding: 60px 5%;
    flex-direction: column;
  }

  .troqueles-content {
    grid-template-columns: 1fr; 
  }

  .troqueles-card span {
    font-size: 1.2rem;
  }

  .troqueles-list li {
    font-size: 0.95rem;
    padding: 10px;
  }

  .video-container iframe {
    height: 200px;
  }

  .image-container img {
    width: 100%;
    max-width: 100%;
  }
}


