/* IQUIBICEN Shortcodes Styles */

.iqc-notas-carousel {
    width: 100%;
}

.iqc-notas-carousel__inner {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.iqc-notas-viewport {
    overflow: hidden;
    flex: 1;
}

.iqc-notas-track {
    display: flex;
    gap: 24px;
    will-change: transform;
    width: max-content;
}

/* Responsive slides control: when data-slides is present, use percentages to show N slides */
.iqc-notas-carousel[data-slides] .iqc-notas-track {
    width: 100%;
}
.iqc-notas-carousel[data-slides] .iqc-nota-card {
    flex: 0 0 calc(100% / var(--iqc-nota-slides));
    width: calc(100% / var(--iqc-nota-slides));
}
@media (max-width: 700px) {
    .iqc-notas-carousel[data-slides] .iqc-nota-card {
        flex: 0 0 100%;
        width: 100%;
    }
}

.iqc-nota-card {
    flex: 0 0 clamp(220px, 30vw, 320px);
    width: clamp(220px, 30vw, 320px);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.iqc-nota-card__image {
    display: block;
    text-decoration: none;
}

.iqc-nota-card__image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.iqc-nota-card__content {
    padding: 18px 20px 22px;
}

.iqc-nota-card__cat {
    font-size: 14px;
    line-height: 1.2;
    color: #7a7a7a;
    margin-bottom: 8px;
}

.iqc-nota-card__title {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.05;
    font-weight: 400;
}

.iqc-nota-card__title a {
    color: #0f4d86;
    text-decoration: none;
}

.iqc-nota-card__excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: #222;
}

.iqc-notas-nav {
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    margin-top: 90px;
    user-select: none;
}

.iqc-notas-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.iqc-notas-carousel.is-single .iqc-notas-nav {
    display: none;
}

.iqc-eventos-carousel {
    width: 100%;
}

.iqc-eventos-carousel__inner {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.iqc-eventos-viewport {
    overflow: hidden;
    flex: 1;
}

.iqc-eventos-track {
    display: flex;
    gap: 24px;
    will-change: transform;
    width: max-content;
}

.iqc-evento-card {
    flex: 0 0 clamp(220px, 30vw, 320px);
    width: clamp(220px, 30vw, 320px);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.iqc-evento-card__image {
    display: block;
    text-decoration: none;
}

.iqc-evento-card__image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.iqc-evento-content {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iqc-evento-badge {
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    background: #111;
    color: #fff;
    border-radius: 999px;
}

.iqc-evento-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.02;
    font-weight: 400;
}

.iqc-evento-title a {
    color: #0f4d86;
    text-decoration: none;
}

.iqc-evento-meta {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    display: flex;
    gap: 4px;
}

.iqc-evento-excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: #222;
}

.iqc-eventos-nav {
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    margin-top: 90px;
    user-select: none;
}

.iqc-title-bground-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    min-height: 500px;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.iqc-title-bground-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
}

.iqc-title-bground-content {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: left;
    padding: 0 2em;
}

.iqc-title-bground-title {
    display: inline-block;
    margin: 0;
    padding: 0 10px;
    font-size: clamp(2rem, 4vw, 4.25rem);
    font-weight: 600;
    color: #034F7F;
    background: rgb(218 218 218 / 60%);
    border-radius: 5px;
}

.iqc-title-bground-wrapper.no-image {
    background: #f5f5f5;
}

.iqc-title-bground-wrapper.no-image::before {
    background: rgba(255, 255, 255, 0.35);
}

.iqc-laboratorio-info {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
    background: #fff;
    color: #111;
}

.iqc-laboratorio-info__section {
    display: grid;
    gap: 0.75rem;
}

.iqc-laboratorio-info__heading {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f4d86;
}

.iqc-laboratorio-info__list {
    margin: 0;
    padding: 0 0 0 1.35rem;
    list-style: disc;
    color: #333;
}

.iqc-laboratorio-info__item {
    margin-bottom: 0.65rem;
}

.iqc-eventos-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.iqc-eventos-carousel.is-single .iqc-eventos-nav {
    display: none;
}

@media (max-width: 900px) {
    .iqc-nota-card {
        flex-basis: clamp(210px, 42vw, 280px);
        width: clamp(210px, 42vw, 280px);
    }

    .iqc-nota-card__image img {
        height: 170px;
    }

    .iqc-nota-card__title {
        font-size: 28px;
        line-height: 1.08;
    }

    .iqc-evento-card {
        flex-basis: clamp(210px, 42vw, 280px);
        width: clamp(210px, 42vw, 280px);
    }

    .iqc-evento-card__image img {
        height: 170px;
    }
}

@media (max-width: 640px) {
    .iqc-notas-carousel__inner {
        gap: 10px;
    }

    .iqc-notas-nav {
        width: 38px;
        height: 38px;
        margin-top: 78px;
    }

    .iqc-nota-card {
        flex-basis: clamp(190px, 75vw, 230px);
        width: clamp(190px, 75vw, 230px);
    }

    .iqc-nota-card__content {
        padding: 16px 16px 18px;
    }

    .iqc-nota-card__title {
        font-size: 26px;
        line-height: 1.08;
    }

    .iqc-eventos-carousel__inner {
        gap: 10px;
    }

    .iqc-eventos-nav {
        width: 38px;
        height: 38px;
        margin-top: 78px;
    }

    .iqc-evento-card {
        flex-basis: clamp(190px, 75vw, 230px);
        width: clamp(190px, 75vw, 230px);
    }

    .iqc-evento-content {
        padding: 16px 16px 18px;
    }

    .iqc-evento-title {
        font-size: 22px;
    }
}

/* Notas Ultimas - Grid overlay cards */
.iqc-notas-ultimas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.iqc-nota-ultimas-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(15,77,134,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.iqc-nota-ultimas-card:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(15,77,134,0.12); }

.iqc-nota-ultimas-overlay {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-block;
    background: rgba(255,255,255,0.92);
    padding: 8px 14px;
    border-radius: 6px;
    max-width: 72%;
    box-shadow: 0 6px 18px rgba(11,34,56,0.08);
}

.iqc-nota-ultimas-title {
    color: #0f4d86;
    font-family: 'Crimson Text', serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
    margin: 0;
    display: block;
}

@media (max-width:640px) {
    .iqc-notas-ultimas-grid { gap: 12px; grid-template-columns: 1fr !important; }
    .iqc-nota-ultimas-card { aspect-ratio: 4 / 3; }
    .iqc-nota-ultimas-overlay { left: 10px; bottom: 10px; padding: 7px 10px; max-width: 78%; }
    .iqc-nota-ultimas-title { font-size: 0.95rem; }
}

/* End of Notas Ultimas styles */

/* Nota fuente button */
.iqc-nota-fuente-btn {
    display: inline-block;
    background: #0f4d86;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(15,77,134,0.12);
}
.iqc-nota-fuente-btn:hover { background: #0a3a5c; color: #fff; }

/* Go to top button */
.iqc-go-top {
    position: fixed;
    right: 18px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f4d86;
    color: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(15,77,134,0.18);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 9999;
}

.iqc-go-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.iqc-go-top:focus {
    outline: 3px solid rgba(79,159,217,0.25);
}

.iqc-go-top:hover { background: #0a3a5c; }

@media (max-width: 640px) {
    .iqc-go-top { right: 12px; bottom: 16px; width: 40px; height: 40px; }
}


/* Laboratorios Carousel Styles */
.laboratorios-carrousel-wrapper {
    width: 100%;
    margin: 2rem 0;
    position: relative;
    padding: 0 60px;
}

.laboratorios-carrousel-wrapper .swiper {
    overflow: hidden;
    position: relative;
    padding: 0 25px;
}

.laboratorios-carrousel-wrapper .swiper-wrapper {
    display: flex;
    transition-property: transform;
    padding: 10px 0;
}

.laboratorios-carrousel-wrapper .swiper-slide {
    flex-shrink: 0;
    width: auto;
}

.laboratorio-card {
    background: #D9D9D9;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.laboratorio-card:hover {
    transform: scale(1.02);
}

.laboratorio-card__area {
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem;
    font-family: 'DM Sans', sans-serif;
}

.laboratorio-card__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.laboratorio-card__title {
    font-size: 2rem;
    font-weight: 600;
    color: #034F7F;
    margin: 0 0 0.5rem 0;
    font-family: 'Crimson Text', serif;
    letter-spacing: -0.05em;
}

.laboratorio-card__director {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-family: 'DM Sans', sans-serif;
    position: absolute !important;
    bottom: 100px;
}

.laboratorio-card__director strong {
    color: #2c3e50;
}

.laboratorio-card__link {
    color: #4F9FD9;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
    font-family: 'Crimson Text', serif;
}

.laboratorio-card__link:hover {
    color: #3a8bc3;
    text-decoration: underline;
}

/* Swiper Navigation Buttons */
.laboratorios-carrousel-wrapper .swiper-button-next,
.laboratorios-carrousel-wrapper .swiper-button-prev {
    color: #000;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    transition: all 0.3s ease;
    font-weight: 900;
}

.laboratorios-carrousel-wrapper .swiper-button-next {
    right: -15px;
}

.laboratorios-carrousel-wrapper .swiper-button-prev {
    left: -15px;
}

.laboratorios-carrousel-wrapper .swiper-button-next:focus {
    outline:none;
}
.laboratorios-carrousel-wrapper .swiper-button-prev:focus {
    outline:none;
}

.laboratorios-carrousel-wrapper .swiper-button-next::after,
.laboratorios-carrousel-wrapper .swiper-button-prev::after {
    font-size: 24px;
    font-weight: 900;
    color: #000;
}

.laboratorios-carrousel-wrapper .swiper-button-next:hover,
.laboratorios-carrousel-wrapper .swiper-button-prev:hover {
    color: #333;
    transform: scale(1.2);
}

.laboratorios-carrousel-wrapper .swiper-button-next:hover::after,
.laboratorios-carrousel-wrapper .swiper-button-prev:hover::after {
    color: #333;
}

.laboratorios-carrousel-wrapper .swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Empty state */
.laboratorios-carrousel-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .laboratorios-carrousel-wrapper {
        padding: 0;
    }

    .laboratorios-carrousel-wrapper .swiper {
        padding: 0 10px;
    }

    .laboratorio-card {
        min-height: auto;
    }

    .laboratorios-carrousel-wrapper .laboratorio-card {
        padding: 0 10px;
        margin: 0 20px;
    }
    
    .laboratorios-carrousel-wrapper .swiper-button-next,
    .laboratorios-carrousel-wrapper .swiper-button-prev {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .laboratorios-carrousel-wrapper .swiper-button-next {
        right: -10px;
    }

    .laboratorios-carrousel-wrapper .swiper-button-prev {
        left: -10px;
    }
    
    .laboratorios-carrousel-wrapper .swiper-button-next::after,
    .laboratorios-carrousel-wrapper .swiper-button-prev::after {
        font-size: 20px;
    }
    
    .laboratorio-card__area {
        font-size: 0.8rem;
        min-height: 50px;
        padding: 0.75rem;
    }
    
    .laboratorio-card__title {
        font-size: 1.1rem;
    }
    
    .laboratorio-card__content {
        padding: 1rem;
    }

    .laboratorio-card__director {
        position: static !important;
        bottom: auto;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .laboratorios-carrousel-wrapper {
        padding: 0;
    }

    .laboratorios-carrousel-wrapper .swiper {
        padding: 0;
    }
    
    .laboratorios-carrousel-wrapper .swiper-button-next,
    .laboratorios-carrousel-wrapper .swiper-button-prev {
        width: 35px;
        height: 35px;
        margin-top: -17px;
    }
    
    .laboratorios-carrousel-wrapper .swiper-button-next::after,
    .laboratorios-carrousel-wrapper .swiper-button-prev::after {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .iqc-no-flex-on-mobile.is-layout-flex {
        display: block !important;
    }
}

@media (hover: none) {
    .laboratorio-card:hover {
        transform: none;
    }
}