:root {
    --azul-rey: #003A73;
    --rojo: #C62828;
    --gris-fondo: #f5f6fa;
}

body {
    background-color: var(--gris-fondo);
    font-family: 'Roboto', sans-serif;
}

/* ================= NAVBAR ================= */
.navbar {
    background: #fff;
    border-bottom: 3px solid var(--azul-rey);
}

.navbar-brand img {
    height: 65px;
}

.nav-link {
    color: var(--azul-rey) !important;
    font-weight: 500;
}

/* ================= HERO ================= */
.hero {
    position: relative;
    height: 310px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.display-5.hero-title {
    font-size: 2.4rem;
    line-height: 1.2;
}

.hero-content h1 {
    font-size: 1.6rem;
}

.hero-subtitle {
    font-size: 1rem;
    position: relative;
    display: inline-block;
}

.hero-subtitle span {
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: #fff;
}

.campus-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.campus-underline {
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
}


/* ================= VIDEO + SERVICIOS ================= */
.intro-servicios {
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.services-row>div {
    display: flex;
}

/* Altura unificada */
.video-card,
.service-mini {
    height: 405px;
}

/* ================= VIDEO ================= */
.video-card {
    position: relative;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.play-icon {
    width: 60px;
    height: 60px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: relative;
}

.play-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-left: 15px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* ================= MINI CARDS ================= */
.service-mini {
    border-left: 5px solid var(--azul-rey);
}

.service-mini .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.service-mini img {
    height: 90px;
    object-fit: cover;
    flex-shrink: 0;
}

.service-link {
    color: var(--rojo);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    flex-shrink: 0;
}

.service-link a {
    color: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    text-decoration: none;
}

.service-link a:hover {
    color: var(--azul-rey);
    text-decoration: underline;
}

/* ================= LISTA ================= */
.service-mini ul {
    margin-top: 0.5rem;
    padding-right: 4px;
    overflow-y: auto;
    flex: 1;
    font-size: 1.0rem;
}

.service-mini li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.service-mini li a {
    flex: 1;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.service-mini i {
    color: var(--azul-rey);
    font-size: 0.9rem;
    margin-top: 2px;
}

.service-mini:hover {
    border-left-color: var(--rojo);
    transform: translateY(-3px);
}

.icon {
    color: var(--azul-rey);
}

/* Scroll discreto */
.service-mini ul::-webkit-scrollbar {
    width: 4px;
}

.service-mini ul::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

footer {
    background: var(--azul-rey);
}

/* ================= 1600 x 768 ================= */
@media (max-width: 1600px) {

    .campus-title {
        font-size: 0.95rem;
    }

    .campus-underline {
        height: 2.5px;
    }

    .hero {
        height: 220px;
    }

    .display-5.hero-title {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .intro-servicios {
        font-size: 0.95rem;
        line-height: 1.45;
        max-width: 820px;
    }

    .video-card,
    .service-mini {
        height: 350px;
    }

    .service-link {
        font-size: 0.8rem;
    }

    .service-mini ul {
        font-size: 0.82rem;
    }

    .service-mini li {
        line-height: 1.3;
    }
}


/* ================= TABLETS ================= */
@media (max-width: 991px) {

    .campus-title {
        font-size: 0.9rem;
    }

    .campus-underline {
        height: 2px;
        bottom: -3px;
    }

    .hero {
        height: 200px;
    }

    .display-5.hero-title {
        font-size: 1.1rem;
    }

    .hero-content h1 {
        font-size: 1.3rem;
        text-align: center;
    }

    .intro-servicios {
        font-size: 0.9rem;
        line-height: 1.4;
        max-width: 100%;
        padding: 0 1rem;
    }

    .video-card,
    .service-mini {
        height: 300px;
    }

    .service-link {
        font-size: 0.85rem;
    }

    .service-mini ul {
        font-size: 0.85rem;
    }

    .service-mini li {
        line-height: 1.4;
    }
}
