:root {
    --verde: #126110;
    --verde-oscuro: #126110;
    --gris: #e9ecef;
    --texto: #11301f;
    --blanco: #ffffff;
    --maxw: 1200px;
    --radius: 12px;
    --inter: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 115px;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: var(--inter);
    color: var(--texto);
    background: #fafafa;
}

.container {
    width: 92%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: 8px;
    padding-right: 8px;
}

.sidebar-topbar-mobile {
    display: none;
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    padding: 0 10px;
    line-height: 2;
}

.sidebar-topbar-mobile div {
    margin-bottom: 8px;
}

.sidebar-topbar-mobile i {
    color: #ffd25a;
    margin-right: 6px;
}

.sidebar-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-social i {
    font-size: 18px;
    color: #ffd25a;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #e7ebef;
    color: #11301f;
    padding: 12px 0;
    font-size: 14px;
    z-index: 9999;
    font-weight: 550;
}

.topbar-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left .correo {
    max-width: 250px;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.topbar-left i,
.topbar-right i {
    color: #f4b000;
    margin-right: 6px;
}

.topbar-right span {
    margin-right: 8px;
    color: #11301f;
    font-weight: 550;
}

.topbar-right a {
    text-decoration: none;
    border: none;
    outline: none;
}

.topbar-right a i {
    text-decoration: none;
    border: none;
    outline: none;
    display: inline-block;
}

.topbar-right a:hover i {
    opacity: 0.7;
}

.topbar-right a i {
    font-size: 17px;
    transition: 0.2s ease-in-out;
}

.topbar-right a:nth-child(2) i {
    color: #0077ff;
}

.topbar-right a:nth-child(3) i {
    color: #0A66C2;
}

.topbar-right a:nth-child(4) i {
    color: #E4405F;
}

.topbar-right a:hover i {
    opacity: 0.7;
}

header {
    margin-top: 44px !important;
}

.main-header {
    background: var(--verde);
    color: var(--blanco);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}


.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    justify-content: space-between
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px
}

.logo img {
    height: 56px;
    width: auto;
    display: block
}

.nombre-notaria {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.6px
}

.lema {
    flex: 1;
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.95
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center
}

.nav-links .nav-item {
    color: var(--blanco);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: background .18s, color .18s
}

.nav-links .nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff
}

.menu-icon {
    display: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--blanco)
}

.section {
    padding: 56px 0;
}


.section.servicios {
    position: relative;
    background: url('../images/fondo.png') center/cover no-repeat;
    padding: 80px 0;
    z-index: 1;
}

.section.servicios::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 122, 52, 0.70);
    z-index: -1;
}

.section.servicios .container {
    position: relative;
    z-index: 2;
}

.badge {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.badge span {
    background: var(--verde);
    color: var(--blanco);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06)
}

.section-title {
    font-size: 24px;
    color: var(--verde);
    text-align: center;
    margin: 6px 0 22px 0;
    font-weight: 700
}

.sub-tittle {
    font-size: 16px;
    color: #272727;
    text-align: center;
    font-weight: 700
}

.separator {
    border: none;
    border-top: 2px solid var(--verde);
    width: 90%;
    max-width: var(--maxw);
    margin: 12px auto
}

.btn-top {
    position: absolute;
    margin-top: -35px;
    right: 49%;
    width: 40px;
    height: 40px;
    background-color: #ffa94d;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s;
    z-index: 10;
}

.btn-top:hover {
    transform: translateY(-4px);
}

.inicio {
    background: #008f39;
    padding: 80px 0;
    color: #ffffff;
}

.inicio-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.inicio-info {
    flex: 1;
    max-width: 600px;
}

.inicio-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
}

.inicio-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.inicio-list {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.inicio-list li {
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inicio-list i {
    color: #f9a825;
}

.btn-primary.inicio-btn {
    background: #f9a825;
    padding: 10px 25px;
    color: #272727;
    font-weight: 600;
    border-radius: 15px;
    display: inline-block;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn-primary.inicio-btn:hover {
    background: #ffb840;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

.inicio-imagen img {
    width: 600px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.grid-nosotros {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start
}

.card-nosotros {
    background: #fff;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--gris);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    text-align: center;
    line-height: 1.6;
    height: 280px;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    font-size: 22px;
    color: var(--verde)
}

.servicios-listas {
    display: flex;
    gap: 40px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 35px;
}

.servicios-col {
    flex: 1;
    min-width: 290px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

.grupo-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffb840;
    margin-bottom: 25px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e7eee9;
}

.serv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    padding-right: 6px;
}

.serv-list::-webkit-scrollbar {
    width: 6px;
}

.serv-list::-webkit-scrollbar-thumb {
    background: #c7d5cc;
    border-radius: 6px;
}

.serv-list::-webkit-scrollbar-thumb:hover {
    background: #9eb5a7;
}

.serv-item {
    font-size: 1rem;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    border: 1px solid #e7eee9;
    transition: 0.25s;
}

.serv-item i {
    color: #f4b000;
    font-size: 1.15rem;
}

.serv-item:hover {
    background: #f7faf8;
    transform: translateX(6px);
    border-color: #0c513f;
}

.icon-ser {
    margin-right: 8px;
    color: #62d610;
}

.map-full {
    margin-top: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06)
}

.map-full iframe {
    width: 100%;
    height: 460px;
    border: 0;
    border-radius: 8px;
    display: block
}

.inst-row {
    display: flex;
    justify-content: center;
    gap: 22px;
    padding: 15px 0;
    flex-wrap: wrap;
}

.inst-box {
    flex: 0 0 160px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    transition: .3s;
    cursor: pointer;

    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.inst-box:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.inst-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
    transition: .3s;
}

.inst-box:hover img {
    opacity: 1;
}

.instituciones {
    padding-top: 45px !important;
}

.footer {
    background: var(--verde);
    color: #fff;
    padding: 48px 0 18px
}

.footer-contenedor {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 12px
}

.footer-columna h3 {
    display: flex;
    align-items: center;
    font-size: 18px;
    margin-bottom: 12px
}

.linea-naranja {
    display: inline-block;
    width: 6px;
    height: 28px;
    background: #ffa94d;
    margin-right: 10px;
    border-radius: 4px
}

.footer-columna p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6
}

.footer-columna ul {
    list-style: none;
    padding: 0;
    margin: 0
}


.footer-columna li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95)
}

.footer-columna li i {
    min-width: 20px;
    color: #fff
}

.link-whatsapp {
    color: #fff;
    font-weight: 700;
    text-decoration: none
}



.link-whatsapp:hover {
    color: #ffd88a
}

.footer-iconos {
    display: flex;
    gap: 12px;
    margin-bottom: 14px
}

.icono {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--verde);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none
}

.footer-logo img {
    width: 110px;
    border-radius: 8px;
    margin-left: 30px;
}

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 28px;
    padding-top: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px
}

.modal-servicio {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    padding: 20px;
    z-index: 9999;
    backdrop-filter: blur(4px);
    height: 100vh;
}

.modal-servicio.activo {
    display: flex;
}

.modal-contenido {
    background: #ffffff;
    width: 100%;
    max-width: 780px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
    animation: modalIn .25s ease;
}

@keyframes modalIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: var(--verde);
    color: #fff;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-cerrar {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    padding: 6px;
    transition: .25s;
}

.modal-cerrar:hover {
    transform: scale(1.2);
}

.modal-body {
    display: flex;
    padding: 22px;
    gap: 20px;
    flex-wrap: wrap;
}

.modal-imagen-box {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-imagen-box img {
    width: 100%;
    border-radius: 12px;
    max-height: 260px;
    object-fit: cover;
    box-shadow: 0 6px 26px rgba(0, 0, 0, .12);
    display: none;
}

.modal-texto {
    flex: 1 1 300px;
}

.modal-texto h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--verde);
}

.modal-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-req-list li {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    align-items: flex-start;
    font-size: .95rem;
    line-height: 1.45;
}

.modal-req-list li::before {
    content: "✔";
    color: var(--verde);
    font-weight: 700;
    margin-top: 2px;
}

.btn-wsp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 2999;
    transition: transform 0.2s;
}

.btn-wsp:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.modal-otros {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 10000;
    padding: 20px;
}

.modal-otros-content {
    width: 520px;
    max-width: 95%;
    margin: auto;
    background: #ffffff;
    padding: 28px 30px;
    border-radius: 18px;
    animation: fadeUp .25s ease-out;
    color: #222;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    margin-top: 13%;
}

@keyframes fadeUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    transition: .2s;
}

.close-modal:hover {
    color: var(--verde);
    transform: scale(1.2);
}

.modal-otros-content h2 {
    text-align: center;
    font-size: 24px;
    margin: 5px 0 10px;
    color: var(--verde);
}

.modal-otros-content p {
    text-align: center;
    margin-bottom: 18px;
    color: #444;
}

.modal-list-title {
    font-size: 17px;
    margin: 15px 0 5px;
    font-weight: 600;
    color: var(--verde);
}

.modal-otros-content ul {
    padding-left: 20px;
    margin: 0 0 10px;
}

.modal-otros-content li {
    margin-bottom: 6px;
    line-height: 1.4;
}

@media(max-width: 780px) {
    .modal-body {
        flex-direction: column;
    }
}

@media (max-width: 1100px) {

    .inicio-imagen img {
        width: 400px;
    }

    .grid-nosotros {
        grid-template-columns: repeat(2, 1fr)
    }

    .inicio-card {
        flex-direction: column
    }

    .hero-left {
        width: 100%
    }

    .hero-right {
        width: 100%;
        padding-top: 8px
    }

    .local-img {
        height: 260px
    }

    .inst-item {
        width: 180px;
        height: 88px
    }

    .footer-contenedor {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-columna.footer-social {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .inicio-imagen {
        display: none;
    }

    .nav-links {
        position: fixed;
        right: -300px;
        top: 0;
        height: 100vh;
        background: var(--verde);
        width: 260px;
        flex-direction: column;
        padding-top: 84px;
        padding-left: 18px;
        transition: right .28s
    }

    .nav-links.activo {
        right: 0
    }

    .menu-icon {
        display: block
    }

    .lema {
        display: none
    }

    .grid-nosotros {
        grid-template-columns: 1fr
    }

    .map-full iframe {
        height: 300px
    }

    .hero-left {
        padding: 16px
    }

    .local-img {
        height: 200px
    }

    .inst-item {
        width: 140px;
        height: 72px
    }

    .inst-carousel {
        animation-duration: 36s
    }

    .modal-contenido {
        flex-direction: column;
        margin-top: 100px;
    }

    .footer-contenedor {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-columna.footer-social {
        grid-column: 1 / -1;
    }

    .btn-top {
        right: 44%;
    }

    .topbar-container {
        flex-direction: row;
        text-align: center;
        gap: 4px;
    }

    .topbar-left .correo {
        max-width: 50px;
    }

    .modal-req-list {
        overflow-y: auto;
        height: 175px;
    }

    .modal-body {
        display: flex;
        padding: 22px;
        gap: 0px;
    }

    .modal-header {
        padding: 6px 22px;
    }

    .modal-imagen-box {
        flex: 1 1 70%;
    }

    img {
        width: 70%;
        border-radius: 12px;
    }

    .modal-texto {
        flex: 1 1 175px;
    }

    .modal-otros-content {
        margin-top: 35%;
    }

    .topbar {
        display: none !important;
    }

    .sidebar-topbar-mobile {
        display: block;
    }

    header {
        margin-top: 0px !important;
    }

    body {
        padding-top: 70px;
    }

    .nav-links {
        padding-top: 140px !important;
    }
}