﻿.contenido {
    padding: 10px 9px 8px 7px;
}

.tarjetas {
    background: linear-gradient(gray);
}

.tarjetas2 {
    background: white;
    color: black;
}

.service-img {
    max-height: 90px;
    object-fit: contain;
}

.tituloservicios {
    color: white;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 5%;
    margin-left: 5%;
    border-bottom-style: ridge;
}

.tituloservicios2 {
    color: black;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 5%;
    margin-left: 5%;
    border-bottom-style: ridge;
}

.titulo2 {
    font-size: 36px;
}

.titulo3 {
    font-size: 20px;
}

.notario1 {
    /*width:20%;*/
}

.notario2 {
    width: 50%;
    margin-left: 10%;
    text-align: justify;
    border-left-style: groove;
    padding: 13% 0% 0% 4%;
    font-size: 23px;
}

.imagenotario {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 5%;
    margin-left: 5%;
    font-weight: 300;
    font-size: 22px;
    line-height: 1.6;
    margin-right: 0px;
}

.cardbajo {
    margin-bottom: 30px;
    display: flex;
}

    .cardbajo a {
        display: flex;
        width: 100%;
        text-decoration: none;
    }

.card-service {
    border: none;
    border-radius: 18px;
    background: #f5f5f5;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    cursor: pointer;
    width: 100%;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

    .card-service:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.15);
    }

    .card-service h4 {
        color: #0d6efd;
        font-weight: 600;
        min-height: 58px;
        margin-bottom: 10px;
    }

    .card-service p {
        color: #0d6efd;
        min-height: 72px;
        margin-bottom: 12px;
    }

.service-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: transform 0.35s ease;
    display: block;
    margin-top: auto;
}


.card-service:hover .service-img {
    transform: scale(1.08);
}

.finalprincipal {
    width: 100%;
}

.hero-video {
    position: relative;
    height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 54, 93, 0.35);
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: #fff;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 22px;
    color: #fff;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2b2b2b;
    text-align: center;
}

    .intro-text p {
        margin-bottom: 1.2rem;
    }


/* =======================
   AJUSTES RESPONSIVE DEFAULT
======================= */
@media (max-width: 991px) {

    .contenido {
        padding: 10px 12px;
    }

    .hero-video {
        height: 360px;
    }

    .hero-content {
        padding: 16px 14px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .hero-text {
        font-size: 1rem;
        line-height: 1.45;
        margin-bottom: 16px;
    }

    .titulo2 {
        font-size: 30px;
        line-height: 1.15;
    }

    .titulo3 {
        font-size: 18px;
    }

    .imagenotario {
        margin-left: 0;
        margin-right: 0;
        font-size: 18px;
        line-height: 1.5;
    }

    .notario2 {
        width: 100%;
        margin-left: 0;
        border-left: none;
        padding: 20px 0 0 0;
        font-size: 20px;
        text-align: left;
    }

    .notario1 img,
    .imagenotario img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 576px) {

    .hero-video {
        height: 300px;
    }

    .hero-content {
        padding: 12px;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.15;
        word-break: break-word;
    }

    .hero-text {
        font-size: 0.95rem;
        line-height: 1.35;
    }
    .tituloservicios2,
    .tituloservicios {
        margin-left: 0;
        margin-bottom: 20px;
    }

    .titulo2 {
        font-size: 22px;
        line-height: 1.2;
    }

    .titulo3 {
        font-size: 16px;
    }

    .imagenotario {
        font-size: 16px;
        line-height: 1.45;
    }

    .notario2 {
        font-size: 18px;
        padding-top: 16px;
    }

    .service-img {
        width: 72px;
        height: 72px;
    }

}

@media (max-width: 991px) {
    .imagenotario {
        margin-left: 0;
        margin-right: 0;
        font-size: 18px;
        line-height: 1.5;
    }

        .imagenotario img,
        .notario1 img {
            width: 100%;
            max-width: 320px;
            height: auto;
            display: block;
            margin: 0 auto;
        }
}

@media (max-width: 576px) {
    .imagenotario img,
    .notario1 img {
        max-width: 260px;
    }
}
