.productos {
  position: relative;
  background-color: white;
  z-index: 100;
  width: 100%;
  padding-top: 70px;
  padding-bottom: 20px;
}
.productos .wrapper {
    width: 100%;
}
.productos__cabecera {
    text-align: center;
    max-width: 1240px;
    margin: 0 auto;
}
.productos__seleccion {
    padding-top: 40px;
    text-align: center;
}
.productos__cabecera,
.productos__seleccion > div {
    padding-left: 4%;
    padding-right: 4%;
    box-sizing: border-box;
}
.titulillo.red {
    color: var(--e2);
}
.selector-mob {
    display: none;
}
.selector-desk {
    position: relative;
    padding:5px 1px;
    border: 1px solid rgb(150, 150, 150);
    width: 96%;
    border-radius: 55px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
}
.productos__seleccion > div.selector-desk {
    padding: 5px 15px;
}
.risk-button {
    font-family: var(--texto);
    color: var(--e2);
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 0.5;
    position: relative;
    top: -5px;
}
.risk-button span {
    font-size: 35px;
    line-height:1;
}

.selector-button {
    max-width: 400px;
    align-self: center;
    border-radius: 40px;
    padding: 10px 10px;
    cursor: pointer;
    transition: background-color 0.4s ease-out;
    p {
        transition: color 0.4s ease;
    }
}
.selector-button.active {
    background-color: var(--s4);
    transition: background-color 0.4s ease-in;
    p {
        color: #fff;
        transition: color 0.4s ease;
    }
}
.selector-button:hover {
    background-color: rgba(51, 0, 114, 1);
    transition: background-color 0.4s ease-in;
    p {
        color: #fff;
        transition: color 0.4s ease;
    }
}
.selector-button p {
    margin: 0;
}

.product-text {
    margin: 40px 0 60px;
    display: none;
}
.product-text.active {
    display: block;
}
.product-text p {
    font-weight: normal;
}
/* Slider productos */
.swiper-container {
    padding: 0;
    overflow: hidden;
    
}
#slider-productos {
    margin-top: 40px;
    width: 100%;
    max-width: 1440px;
    padding-left: 0;
    padding-right: 0;
}

.card-2 {
    position: relative;
    width: 340px !important;
    height: 528px !important;
    border-radius: 20px;
    overflow:hidden;
    text-align: left;
    background-color: rgb(92, 41, 157);
}

.card-2 img {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    top: 70px;
    width: 200px;
}
.card-2__footer {
    position: absolute;
    bottom: 0;
    padding: 40px 20px 20px 30px;
    text-align: left;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    justify-content: space-between;
    width: 100%; 
    z-index: 2;
    background-color: var(--s4);
    height: 264px;
    border-radius: 25px 25px 0 0;
}
.card-2__header {
    position: relative;
    top: 20px;
    text-align: left;
    display: flex;
    align-items: start;
    box-sizing: border-box;
    justify-content: space-between;
    width: 100%; 
}
.card-2__footer .card-2__name {
    position: relative;
    bottom: 40px;
}
.card-2__name {
    font-family: var(--titular);
    font-size: 28px;
    color: #fff;
    max-width: 216px;
    margin-bottom: 0;
    line-height: 1.2;
    
}
.card-2__open,
.card-2__close {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #000000;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    /* font-size: 2.4rem; */
    font-weight: normal;
    /* line-height: 1; */
    position: relative;
    bottom: 10px;
}
.card-2__open {
    position: absolute;
    bottom: 30px;
    right: 20px;
}
.card-2__close {
    bottom: auto;
    top: 0;
}
.card-2__open-icon,
.card-2__close-icon {
    display: block;
    position: relative;
    top: -1px;
    color: var(--s4);
    font-size: 36px;
    line-height: 1;
}
.card-2__info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgb(154, 127,185);
    z-index: 3;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    height: 528px;
    display: flex;
    flex-direction: column;
}
.card-2__content {
    margin-top: 35px;
    flex-grow: 1;
    overflow-y: auto
}
.card-2__content p {
    color: #fff;
    font-size: 23px;
    font-weight: 300;
    line-height: 1.2;
}
.card-2__more {
    text-align: center;
    margin-top: auto;
    margin-bottom: 30px;
}

/* LIGHTBOX */
.custom-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 0, 114, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

  
  .lightbox-card {
    background: #fff;
    width: 100%;
    height: auto;
    min-height: 528px;
    max-width: 1340px;
    border-radius: 20px;
    padding: 4%;
    box-sizing: border-box;
    color: #fff;
    position: relative;
}
.lightbox-card .card-2__close {
    position: absolute;
    top: 25px;
    right: 25px;
    background-color: var(--s4);
}
.lightbox-card .card-2__close-icon {
    color: #fff;
    font-weight: 300;
}


.lightbox-card p {
    font-size: 20px;
}
.lightbox-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    
}
.lightbox-card .intro__info {
    border: 1px solid #eee;
    position: static;
    flex-shrink: 0;
}
.lightbox-card .intro__info p {
    font-size: 17px;
}

.lightbox-card .small {
    display: flex;
    align-items: center;
    flex-flow: column;
}
.lightbox-card .small p {
    font-size: 16px;
    margin: 0;
    color: #000;
    padding-top: 30px;
}
.lightbox-card .small .more {
    text-align: center;
    min-width: 220px;
}

@media (max-width: 768px) {
    .lightbox-container {
        max-width: 90%;
    }
}
  
  
  

@media only screen and (max-width: 1248px) {
    .selector-button p {
        font-size: 21px;
    }
}

@media only screen and (max-width: 1024px) {
    .productos {
        padding-top: 40px;
        padding-bottom: 40px;
      }
    .productos__seleccion {
        padding-top: 10px;
    }
    .productos__seleccion > p {
        display: none;
    }
    .selector-desk {
        display: none;
    }
    
    .selector-mob {
        display: block;
    }
    
    .dropdown-select {
        position: relative;
        width: 100%;
        border-radius: 30px;
        overflow: hidden;
        max-width: 800px;
        margin: 0 auto 30px auto;
        text-align: center;
    }
    
    .dropdown-select.active {
        overflow: visible;
    }
    
    .dropdown-selected {
        padding: 12px 30px;
        background-color: var(--s4);
        cursor: pointer;
        position: relative;
        border-radius: 30px;
    }
    .dropdown-selected p {
        color: #fff;
        text-align: center;
        margin: 0;
    }
    
    .dropdown-selected p {
        margin: 0;
    }
    
    .dropdown-arrow {
        color: var(--e2);
        position: absolute;
        right:10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 101;
    }
    .dropdown-arrow img {
        width: 22px;
    }
    
    .dropdown-options {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--e2);
        border-radius: 0 0 20px 20px;
        border-top: none;
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        /* transition: max-height 0.6s ease; */
        opacity: 0;
        
        padding-bottom: 40px;
        box-sizing: border-box;
        /* Mejoramos las transiciones */
        transition: 
        max-height 0.4s cubic-bezier(0.215, 0.610, 0.355, 1.000),
        opacity 0.6s ease;
    }
    
    .dropdown-options.active {
        max-height: 400px;
        opacity: 1;
        overflow: visible;
        top: 0;
        border-radius: 25px; 
        /* transition: max-height 0.3s ease; */
        transition: 
        max-height 0.4s cubic-bezier(0.215, 0.610, 0.355, 1.000),
        opacity 0.6s ease;
        z-index: 100;
    }
    .dropdown-options p {
        margin: 0;
    }
    
    .dropdown-header {
        background-color: var(--e2);
        padding: 12px 30px;
        border-radius: 25px 25px 0 0;
    }
    
    .dropdown-header p {
        margin: 0;
        color: white;
    }
    
    .dropdown-option {
        padding: 15px 20px;
        cursor: pointer;
    }
    
    .dropdown-option:nth-child(odd) {
        background-color: #f5f5f5;
    }
    
    .dropdown-option:nth-child(even) {
        background-color: #e9e9e9;
    }
}

@media only screen and (max-width: 960px) {
    .lightbox-card h4 {
        padding-right: 60px;
    }
}
@media only screen and (max-width: 800px) {
    .lightbox-card {
        min-height: auto;
        height: 90vh;
        overflow:hidden;
    }
    .lightbox-card__content {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        padding-right: 5px;
        height: calc(100% - 130px);
        position: relative;
      }
      .lightbox-card__footer {
        display: block;
    }
    .lightbox-card__footer .intro__info {
        box-sizing: border-box;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 20px auto;
    }
}
@media only screen and (max-width: 768px) {
    .lightbox-card__header {
        padding-top: 25px;
    }
    .lightbox-card .card-2__close {
        top: 20px;
        right: 20px;
    }
 }
 @media only screen and (max-width: 700px) {
    .lightbox-card {
        min-height: auto;
        height: 90vh;
        overflow:hidden;
    }
    .lightbox-card__content {
        overflow-y: scroll; 
        -webkit-overflow-scrolling: touch;
        padding-right: 5px;
        height: calc(100% - 130px);
        position: relative;
        
      }
      
    .lightbox-card__footer {
        display: block;
    }
    .lightbox-card__footer .intro__info {
        box-sizing: border-box;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 20px auto;
    }
 }
@media only screen and (max-width: 640px) {
    .lightbox-card p {
        font-size: 18px;
    }
}
