.hero-medical {
    background: linear-gradient(to bottom right, #d6e6f4, #f0ffff);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1 1 55%;
    color: #1d3553;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -.5px;
}

.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -.5px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.hero-text strong {
    color: #608097;
}

.hero-image {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        flex: 1 1 100%;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .hero-image {
        flex: 1 1 100%;
        margin-top: 20px;
    }

    .hero-image img {
        max-width: 80%;
    }
}

/* Contenedor principal del video */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Detrás del contenido */
    overflow: hidden;
    pointer-events: none;
    /* Evita que el video interfiera con clicks en botones */
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* Asegura que cubra todo sin deformarse */
}

/* Capa de protección para legibilidad */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 54, 85, 0.4);
    /* Un tinte de tu color offblack */
    z-index: 1;
}

/* Ajuste necesario a tu contenedor de contenido actual */
.wrapper {
    position: relative;
    /* Importante para que el video absoluto se alinee aquí */
    overflow: hidden;
}

.content-container {
    position: relative;
    z-index: 2;
    /* Por encima del video y la capa overlay */
}