/* PRODUCTS - GENERAL **************************************************************/


/* Hero *********************************************************/

.HERO {
    padding: 120px 0 60px;
    display: flex;
    align-items: center;
}

.HERO .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.HERO .container .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.HERO .container .content .logo {
    height: 28px;
    width: auto;
}

.HERO .container .content h1 {
    max-width: 1000px;
}

.HERO .container .mockup {
    border: none;
}

.HERO .container .mockup img {
    width: 100%;
    max-width: 920px;
    height: auto;
}

/* Hero 📱 **************************/

@media (max-width: 768px) {
    .HERO .container {
        gap: 3rem;
    }
}


/* Video modal *********************************************************/

.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 0;
    padding-bottom: 40%;
    overflow: visible;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-modal-overlay.active .video-modal-container {
    transform: scale(1);
}

.video-modal-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-close-btn:hover {
    opacity: 1;
}

/* Quote *********************************************************/

.QUOTE {
    background: #ffffff;
    padding: 3rem 0;
}

.QUOTE .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.QUOTE .container p {
    color: var(--color-base-text);
    text-align: center;
    font-size: 30px;
    font-weight: 500;
    line-height: 37px;
    margin: 0;
}

/* Capabilities *********************************************************/

.CAPABILITIES {
    background: #ffffff;
    padding: 3rem 0;
}

.CAPABILITIES .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.CAPABILITIES .container .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 0;
    row-gap: 30px;
}

.CAPABILITIES .container .grid .card {
    width: 100%;
    height: 270px;
    background: #ffffff;
    border-left: 1px solid #E4E6EA;
    border-right: 1px solid #E4E6EA;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 0px 20px;
    box-sizing: border-box;
    text-align: center;
}

.CAPABILITIES .container .grid .card .imagen .icon {
    color: var(--color-brand);
    width: 50px;
    height: 50px;
}

.CAPABILITIES .container .grid .card .title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #8D93A4;
    margin-top: 1rem;
}

/* Capabilities 📱 **************************/

@media (max-width: 900px) {
    .CAPABILITIES .container .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .CAPABILITIES .container .grid {
        grid-template-columns: 1fr;
    }

    .CAPABILITIES .container .grid .card {
        height: 200px;
        padding: 30px 15px 0px 15px;
    }

}


/* Clients *********************************************************/
.CLIENTS {
  padding: 4rem 0;
}

.CLIENTS .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.CLIENTS .container p {
  text-align: center;
  font-size: 18px;
  color: #A5A5A7;
  margin: 0;
}

.carousel-products-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 40px 0 20px 0;
  position: relative;
}

.carousel-products-wrapper .track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 4rem;
  animation: scroll-infinite 40s linear infinite;
}

.carousel-products-wrapper .track .pharma-logo {
  height: 50px;
  width: auto;
  display: block;
  transition: filter 0.3s ease;
  flex-shrink: 0;
}

.carousel-products-wrapper::before,
.carousel-products-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel-products-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.carousel-products-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}


@keyframes scroll-infinite {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Clients 📱 **************************/

@media (max-width: 768px) {
  .carousel-products-wrapper .track {
    gap: 2rem;
    animation-duration: 25s;
  }

  .carousel-products-wrapper .track .pharma-logo {
    height: 40px;
  }
}

.carousel-products-wrapper .track:hover {
  animation-play-state: paused;
}

/* Top-line *********************************************************/

.TOP-LINE {
    padding: 4rem 1rem;
    text-align: center;
    background-color: #ffffff;
}

.TOP-LINE .container {
    max-width: 900px;
    margin: 0 auto;
}

.TOP-LINE .container .title {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--color-base-text);
    margin-bottom: 0.5rem;
}

.TOP-LINE .container .subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--color-base-text);
    line-height: 1.5;
}

/* Feature-block-left *********************************************************/

.FEATURE-BLOCK-LEFT {
    padding: 4rem 1rem;
    background-color: #ffffff;
}

.FEATURE-BLOCK-LEFT .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.FEATURE-BLOCK-LEFT .container .content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: nowrap;
}

.FEATURE-BLOCK-LEFT .container .content .text {
    flex: 1 1 50%;
    min-width: 320px;
}

.FEATURE-BLOCK-LEFT .container .content .text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-base-text);
    margin-bottom: 8px;
}

.FEATURE-BLOCK-LEFT .container .content .text h3 {
    font-size: 16px;
    margin: 0;
    color: var(--color-brand);
    font-weight: 500;
    margin-bottom: 10px;
}

.FEATURE-BLOCK-LEFT .container .content .image {
    flex: 1 1 50%;
    text-align: center;
}

.FEATURE-BLOCK-LEFT .container .content .image img {
    max-width: 100%;
    height: auto;
}

/* Feature-block-left 📱 **************************/

@media (max-width: 1024px) {
    .FEATURE-BLOCK-LEFT .container .content .text {
        flex: 1 1 55%;
    }

    .FEATURE-BLOCK-LEFT .container .content .image {
        flex: 1 1 45%;
    }
}

@media (max-width: 767px) {
    .FEATURE-BLOCK-LEFT .container .content {
        flex-wrap: wrap;
    }

    .FEATURE-BLOCK-LEFT .container .content .text {
        flex: 1 1 100%;
    }

    .FEATURE-BLOCK-LEFT .container .content .image {
        flex: 1 1 100%;
        margin-top: 2rem;
    }
}


/* Feature-block-right *********************************************************/

.FEATURE-BLOCK-RIGHT {
    padding: 4rem 1rem;
    background-color: #ffffff;
}

.FEATURE-BLOCK-RIGHT .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.FEATURE-BLOCK-RIGHT .container .content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: nowrap;
}

.FEATURE-BLOCK-RIGHT .container .content .image {
    flex: 1 1 50%;
    text-align: center;
}

.FEATURE-BLOCK-RIGHT .container .content .image img {
    max-width: 100%;
    height: auto;
}

.FEATURE-BLOCK-RIGHT .container .content .text {
    flex: 1 1 50%;
    min-width: 320px;
}

.FEATURE-BLOCK-RIGHT .container .content .text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-base-text);
    margin-bottom: 8px;
}


.FEATURE-BLOCK-RIGHT .container .content .text h3 {
    font-size: 16px;
    margin: 0;
    color: var(--color-brand);
    font-weight: 500;
    margin-bottom: 10px;
}

/* Feature-block-right 📱 **************************/

@media (max-width: 1024px) {
    .FEATURE-BLOCK-RIGHT .container .content .text {
        flex: 1 1 55%;
    }

    .FEATURE-BLOCK-RIGHT .container .content .image {
        flex: 1 1 45%;
    }
}

@media (max-width: 767px) {
    .FEATURE-BLOCK-RIGHT .container .content {
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }

    .FEATURE-BLOCK-RIGHT .container .content .text {
        flex: 1 1 100%;
    }

    .FEATURE-BLOCK-RIGHT .container .content .image {
        flex: 1 1 100%;
        margin-top: 2rem;
    }
}

/* Feature-text-line *********************************************************/

.feature-text-line {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    width: 100%;
    margin-bottom: 12px;
}

.feature-text-line .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-brand);
    margin-top: 1px;
}

.feature-text-line p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-base-text);
    margin: 0;
}

/* Keypoints *********************************************************/

.KEYPOINTS {
    background: #ffffff;
    padding: 3rem 0;
}

.KEYPOINTS .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.keypoints-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: stretch;
    flex-wrap: wrap;
}

.keypoint-card {
    background: #F4F4F5;
    border: 1px solid #F4F4F5;
    border-radius: 30px;
    flex: 1 1 calc((100% - 80px) / 3);
    max-width: 373px;
    box-sizing: border-box;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.keypoint-card:hover {
    background: linear-gradient(139.46deg, #F4F4F5 51.71%, #DBF0F8 97.58%);
}


.keypoint-card .text-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.keypoint-title {
    font-weight: 500;
    font-size: 16px;
    color: var(--color-brand);
    margin: 0;
}

.keypoint-description {
    font-weight: 600;
    font-size: 22px;
    color: var(--color-base-text);
    line-height: 1.4;
    margin: 0;
}

.image-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    background-color: rgb(194, 194, 194);
    display: none;
    /*Descomentar para mostrar imágenes*/
}

.image-wrapper img {
    width: 90%;
    height: 150px;
    object-fit: cover;
    border-radius: 0 0 30px 0;
}

/* Keypoints 📱 **************************/

@media (max-width: 900px) {
    .keypoints-grid {
        flex-direction: column;
        align-items: center;
    }

    .keypoint-card {
        max-width: 400px;
        width: 100%;
    }
}


/* Numbers *********************************************************/

.NUMBERS {
    background: #ffffff;
    padding: 3rem 0;
}

.NUMBERS .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.numbers-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #F5FCFE;
    border: 1px solid #B4EAFF;
    border-radius: 30px;
    padding: 50px 60px;
    text-align: center;
}

.numbers-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-brand);
    margin-top: 0;
    margin-bottom: 40px;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10px;
    border-right: 1px solid var(--color-brand);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-brand);
    line-height: 1.2;
    margin-bottom: 10px;
    display: block;
}

.stat-desc {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-brand);
    margin: 0;
    line-height: 1.4;
}

/* Numbers 📱 **************************/

@media (max-width: 900px) {
    .numbers-card {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .numbers-card {
        padding: 40px 20px;
    }

    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }

    .stat-item {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 173, 238, 0.3);
        padding-bottom: 30px;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .numbers-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

/* Prod-Contact *********************************************************/

.PROD-CONTACT {
    background: #ffffff;
    padding: 3rem 0;
}

.PROD-CONTACT .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.prod-contact-card {
    background-image:
        linear-gradient(rgba(0, 173, 238, 0.1), rgba(0, 173, 238, 0.1)),
        url('../img/contact-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    padding: 50px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.prod-contact-card .left {
    flex: 1;
    max-width: 700px;
}

.prod-contact-card .left h2 {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.prod-contact-card .left p {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    line-height: 1.5;
    opacity: 0.95;
    max-width: 600px;
}

.prod-contact-card .right {
    flex-shrink: 0;
}

/* Prod-Contact 📱 **************************/

@media (max-width: 900px) {
    .prod-contact-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        gap: 30px;
    }

    .prod-contact-card .left {
        max-width: 100%;
    }

    .prod-contact-card .right {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .prod-contact-card .left h2 {
        font-size: 28px;
    }

    .prod-contact-card .left p {
        font-size: 16px;
    }

}

/* Related *********************************************************/

.RELATED {
    background: #ffffff;
    padding: 6rem 0;
    overflow: hidden;
}

.RELATED .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.related-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 50px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.related-card {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.07);
    transition: all 0.2s ease-out;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    height: 100%;
}

.related-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.rc-image-area {
    height: 250px;
    margin: 10px 10px 0 10px;
    background-color: #F6F9FC;
    border: 1px solid #F6F9FC;
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.2s ease-out;
}

.related-card:hover .rc-image-area {
    height: 230px;
}

.rc-circle {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    z-index: 1;
    transition: all 0.2s ease-out;
}

.circle-blue {
    background-color: #00ADEE;
    top: 40%;
    left: 40%;
}

.circle-green {
    background-color: #00EEE0;
    bottom: 40%;
    right: 40%;
}

.related-card:hover .circle-blue {
    opacity: 0.5;
    top: 40%;
    left: 60%;
}

.related-card:hover .circle-green {
    opacity: 0.5;
    bottom: 40%;
    right: 60%;
}

.rc-product-img {
    position: relative;
    z-index: 2;
    height: 190px;
    width: auto;
    max-width: calc(100% - 60px);
    object-fit: contain;
    transition: transform 0.2s ease-out;
}

.rc-content {
    padding: 20px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    transition: transform 0.2s ease-out;
}

.rc-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #8D93A4;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: transform 0.2s ease-out;
}

.rc-link {
    margin-top: auto;
    padding-top: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-brand);
    text-decoration: none;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.2s ease-out;
}

.related-card:hover .rc-link {
    opacity: 1;
    transform: translateY(0);
}

.related-card:hover .rc-title,
.related-card:hover .rc-desc {
    transform: translateY(-5px);
}

/* Related 📱 **************************/

@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card {
        max-width: 400px;
        margin: 0 auto;
    }
}