/* Site layout fixes — header, hero carousel, quick links, documents */

/* ---- Header / top bar ---- */
.d-none-on-mobile {
    display: block;
}

@media (max-width: 991.98px) {
    .d-none-on-mobile {
        display: none !important;
    }
}

.top-bar {
    background: #07111f;
    padding: 0.5rem 0;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    align-items: center;
}

.top-item {
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

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

.btn-top {
    background-color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(3, 15, 39, 0.15);
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #030f27 !important;
    white-space: nowrap;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: inherit;
    text-decoration: none;
}

.btn-top:hover {
    background-color: #fff;
    color: #030f27 !important;
    transform: translateY(-1px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-label {
    font-weight: 600;
    color: #5a4a00;
    font-size: 0.8em;
    line-height: 1.2;
    margin-bottom: 0.1rem;
}

.contact-value {
    font-weight: 500;
    color: #2a2200;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-value a {
    color: inherit;
}

.contact-value a:hover {
    color: #000;
    text-decoration: underline;
}

.top-item i {
    margin-right: 0.4rem;
    color: #5a4a00;
    font-size: 0.9em;
    min-width: 1em;
}

.nav-bar {
    background: #030f27 !important;
}

.navbar-dark.bg-dark {
    background-color: #030f27 !important;
}

.nav-bar .dropdown-menu {
    background: #00d4ff !important;
    border: none;
}

.nav-bar .dropdown-item {
    color: #030f27;
    transition: all 0.2s ease;
}

.nav-bar .dropdown-item:hover {
    background-color: rgba(3, 15, 39, 0.1);
    color: #030f27;
}

.nav-bar .nav-link {
    color: #fff !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-bar .nav-link:hover,
.nav-bar .nav-link.active2 {
    color: #00d4ff !important;
}

.nav-bar .navbar-toggler {
    border: 1px solid rgba(253, 190, 51, 0.5);
}

.nav-bar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.disabled2 {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 1200px) {
    .top-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .top-item:nth-child(3) {
        border-right: none;
    }

    .top-item:nth-child(n + 4) {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        border-right: none;
    }
}

@media (max-width: 992px) {
    .nav-bar .navbar-collapse {
        background-color: #030f27;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 5px;
    }

    .nav-bar .dropdown-menu {
        margin-left: 1rem;
        width: calc(100% - 2rem);
    }
}

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

    .top-item:nth-child(2) {
        border-right: none;
    }

    .top-item:nth-child(n + 3) {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .contact-label {
        display: none;
    }
}

@media (max-width: 576px) {
    .nav-bar .navbar-brand {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .nav-bar .navbar-brand img {
        margin-bottom: 0.5rem;
    }

    .top-grid {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .top-item {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0.5rem;
        justify-content: flex-start;
    }

    .top-item:last-child {
        border-bottom: none;
    }

    .btn-top {
        justify-content: flex-start;
    }

    .contact-info {
        flex-direction: row;
        align-items: center;
    }

    .contact-label {
        display: inline;
        margin-right: 0.5rem;
        margin-bottom: 0;
    }
}

/* ---- Hero carousel (desktop) ---- */
#carousel.hero-carousel {
    width: 100%;
    height: 430px;
    min-height: 430px;
    max-height: 430px;
    overflow: hidden;
}

#carousel.hero-carousel .carousel-inner,
#carousel.hero-carousel .carousel-item {
    height: 100%;
}

#carousel.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#carousel.hero-carousel .carousel-item::after {
    display: none;
}

#carousel.hero-carousel .video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#carousel.hero-carousel .video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#carousel.hero-carousel .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 1rem;
    height: auto;
    min-height: unset;
    z-index: 2;
}

#carousel.hero-carousel .carousel-caption h1,
#carousel.hero-carousel .carousel-caption h2,
#carousel.hero-carousel .carousel-caption p {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin: 0.5rem 0;
    font-weight: bold;
}

#carousel.hero-carousel .animate-on-slide {
    opacity: 0;
}

#carousel.hero-carousel .slide-active .animate__animated {
    opacity: 1;
}

#carousel.hero-carousel .hero-eyebrow {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

#carousel.hero-carousel .hero-headline {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

#carousel.hero-carousel .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.5rem;
}

#carousel.hero-carousel .hero-cta {
    font-weight: 700;
    color: #030f27;
    border: none;
    min-width: 160px;
}

#carousel.hero-carousel .hero-cta:hover {
    background-color: #e5a800;
    color: #030f27;
}

#carousel.hero-carousel .hero-cta-secondary {
    font-weight: 600;
    min-width: 160px;
}

/* ---- Audience paths ---- */
.audience-paths {
    background: #f4f6f9;
    border-top: 1px solid #e5e9ef;
    border-bottom: 1px solid #e5e9ef;
}

.audience-eyebrow {
    color: #0096b8;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.audience-title {
    color: #030f27;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.audience-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e9ef;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(3, 15, 39, 0.1);
    border-color: #00d4ff;
    color: inherit;
    text-decoration: none;
}

.audience-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #00d4ff;
    color: #030f27;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.audience-card--student .audience-card__icon {
    background: #030f27;
    color: #00d4ff;
}

.audience-card--staff .audience-card__icon {
    background: #004080;
    color: #fff;
}

.audience-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #030f27;
    margin-bottom: 0.5rem;
}

.audience-card__text {
    color: #5a6472;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.audience-card__action {
    font-weight: 600;
    color: #004080;
    font-size: 0.9rem;
}

.audience-card:hover .audience-card__action {
    color: #030f27;
}

/* ---- Quick link cards (unified) ---- */
.feature-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #030f27;
    background: #fff;
}

.feature-link:hover {
    color: #030f27;
    text-decoration: none;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #030f27;
    color: #00d4ff;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.feature-link:hover .feature-icon {
    transform: scale(1.08);
    background: #004080;
    color: #fff;
}

.feature-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ---- Activities ---- */
.actividades-section {
    background-image: url("../media/brand/fondo.png");
    background-size: cover;
    background-position: center;
}

.actividad-card__img {
    height: 220px;
    object-fit: cover;
}

.actividad-card__date {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #030f27;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---- Mobile hero ---- */
.hero-carousel-mobile {
    height: 280px;
    overflow: hidden;
}

.hero-carousel-mobile .carousel-inner,
.hero-carousel-mobile .carousel-item,
.hero-carousel-mobile .carousel-item img {
    height: 100%;
}

.hero-carousel-mobile .carousel-item img {
    object-fit: cover;
}

.hero-carousel-mobile .carousel-caption {
    bottom: 1.5rem;
    left: 0;
    right: 0;
    padding: 0 1rem;
}

.hero-carousel-mobile .hero-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-carousel-mobile .hero-headline {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

@media (min-width: 576px) {
    .hero-carousel-mobile {
        height: 340px;
    }
}

/* ---- Inner page banner ---- */
.inner-page-header {
    min-height: 180px;
    display: flex;
    align-items: center;
}

.inner-page-title {
    color: #030f27;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin: 0;
    padding: 0.25rem 0;
}

.inner-breadcrumb {
    font-weight: 600;
}

.inner-breadcrumb a {
    color: #030f27;
    text-decoration: none;
}

.inner-breadcrumb a:hover {
    text-decoration: underline;
}

.inner-breadcrumb span {
    color: #030f27;
}

.program-cta {
    background: #030f27;
    padding: 1.5rem 0;
    margin: 2rem 0 0;
}

.program-cta__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.program-cta__eyebrow {
    color: #00d4ff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.program-cta__title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
}

.program-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ---- Contact form ---- */
.contact-page .contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-page .contact-item a:hover {
    color: #00d4ff;
}

.contact-form .form-label {
    font-weight: 600;
    color: #030f27;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.contact-form .btn-submit {
    background: #00d4ff;
    color: #030f27;
    font-weight: 700;
    border: none;
    padding: 0.6rem 1.25rem;
}

.contact-form .btn-submit:hover {
    background: #e5a800;
    color: #030f27;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    padding: 0.65rem 1rem 0.65rem 0.75rem;
    border-radius: 999px;
}

.whatsapp-float i {
    font-size: 1.6rem;
}

.whatsapp-float:hover {
    color: #fff !important;
    background: #1ebe5d;
}

.hero-play {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}

.hero-play img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-play__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: rgba(253, 190, 51, 0.95);
}

.hero-play__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #030f27;
}

.document-preview-btn {
    display: block;
    width: 100%;
    min-height: 180px;
    border: 0;
    background: #f1f4f8;
    color: #004080;
    font-weight: 600;
}

.document-preview-btn:hover {
    background: #e4ebf3;
}


/* ---- Quick link cards ---- */
.feature-item {
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

/* ---- Documents section ---- */
.document-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.document-title {
    background: #004080;
    color: #fff;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    margin: 0;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.document-card .iframe-container {
    border-top: 3px solid #004080;
    flex-grow: 1;
    background: #f8f9fa;
}

.document-card .iframe-container iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: none;
}

.document-footer {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #444;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
}

.document-actions a {
    color: #fff;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.document-actions a:hover {
    text-decoration: none;
    transform: scale(1.05);
}

.download-btn {
    background-color: #0dcaf0;
}

.download-btn:hover {
    background-color: #0bb6d9;
    color: #fff;
}

.view-btn {
    background-color: #198754;
}

.view-btn:hover {
    background-color: #157347;
    color: #fff;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #004080;
}

.section-title {
    position: relative;
    padding-bottom: 0.5rem;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-container .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 0.5rem;
    margin: 0;
}

.pagination-container .pagination li {
    display: inline-block;
}

.pagination-container .pagination a {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: #004080;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-container .pagination a:hover:not(.disabled):not(.active) {
    background-color: #e9ecef;
}

.pagination-container .pagination a.active {
    background-color: #004080;
    color: #fff;
    border-color: #004080;
}

.pagination-container .pagination a.disabled,
.pagination-container .pagination span.disabled {
    color: #6c757d;
    pointer-events: none;
    opacity: 0.5;
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.no-documents {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-documents i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

@media (max-width: 767.98px) {
    .document-card .iframe-container iframe {
        min-height: 350px;
    }

    .document-title {
        font-size: 0.95rem;
        min-height: 60px;
    }
}