:root {
    --sand: #ad9f90;
    --lightsand: #e0d5b4;
    --beige: #f8f5ef;
    --beige2: #dddad4;
    --tree: #69b65a;
    --darktree: #4e9440;
    --brown: #876e4f;
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--bs-body-font-family) !important;
    -webkit-font-smoothing: antialiased;
    font-size: 1rem !important;
    background-color: #ffffff !important;
}

/* Estilos del navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--sand) !important;
    margin-left: .5rem;
}

.navbar-brand span {
    color: var(--tree);
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
    color: #333 !important;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(163, 154, 136, 0.1);
    color: var(--darktree) !important;
}

/* Estilos para submenús anidados */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.5rem;
    margin-left: 0.1rem;
    display: none;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu>.dropdown-item::after {
    content: "›";
    float: right;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    border: none;
}

.dropdown-menu {
    background-color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: #333;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--tree);
}

.submenu {
    width: max-content;
}

.face-icon {
    vertical-align: -webkit-baseline-middle;
}

/* Para móviles */
@media (max-width: 991px) {
    .dropdown-submenu .dropdown-menu {
        position: static;
        margin-left: 1rem;
        margin-top: 0;
        box-shadow: none;
        display: none;
    }

    .dropdown-submenu.show>.dropdown-menu {
        display: block !important;
    }

    .dropdown-submenu>.dropdown-item::after {
        content: "▾";
    }
}

@media (max-width: 1366px) {
    .nav-link {
        font-weight: 400;
        margin: 0;
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-weight: 500;
        font-size: 1rem;
        margin-left: .5rem;
    }
}

@media (max-width: 1199px) {
    .img-logo {
        max-width: 6vh;
        max-height: 6vh;
    }
    .nav-link {
        font-size: 0.7rem;
    }

    .navbar-brand {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) and (max-width: 990px) {
    .nav-link {
        font-weight: 300;
        font-size: 0.8rem;
    }

    .navbar-brand {
        font-size: 1.8rem !important;
    }
}

.main-content {
    padding-top: 10vh;
}

.btn-explore {
    background-color: var(--tree);
    color: white;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    transition: all 0.3s;
}

.btn-explore:hover {
    background-color: #1aa179;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.img-logo {
    max-width: 7vh;
    max-height: 7vh;
}

.spot-tramites {
    display: flex;
    justify-content: center;
    background-color: var(--beige);
    border: 1px solid var(--beige2);
    box-shadow: 0 2px 4px rgba(75, 58, 21, 0.4);
    padding: 1.5rem;
}

.tramites {
    font-size: 2rem;
    color: var(--sand);
    text-decoration: none;
}

.tramites-icon {
    font-size: 5rem;
    color: var(--sand);
    text-decoration: none;
}

.circle-tramite {
    width: 12vh;
    height: 12vh;
    position: absolute;
    align-self: center;
    margin-right: 27%;
    border-radius: 6rem;
    text-align: center;
    align-content: center;
    background: var(--beige2);
    box-shadow: 0 2px 4px rgba(75, 58, 21, 0.4);
}

@media screen and (min-width: 2560px) {
    .circle-tramite {
        width: 8vh !important;
        height: 8vh !important;
        margin-right: 19% !important;
    }
}

@media screen and (min-width: 2048px) {
    .spot-tramites {
        padding: 2rem;
    }

    .tramites {
        font-size: 2.2rem;
    }

    .tramites-icon {
        font-size: 4rem;
    }

    .circle-tramite {
        width: 9vh;
        height: 9vh;
        margin-right: 26%;
    }
}

@media screen and (min-width: 1367px) and (max-width: 1545px) {
    .spot-tramites {
        padding: 1.6rem;
    }

    .tramites {
        font-size: 2.2rem;
    }

    .tramites-icon {
        font-size: 4rem;
    }

    .circle-tramite {
        width: 12vh;
        height: 12vh;
        margin-right: 35%;
    }
}

@media screen and (min-width: 1280px) and (max-width: 1366px) {
    .spot-tramites {
        padding: 1.8rem;
    }

    .tramites {
        font-size: 2rem;
    }

    .tramites-icon {
        font-size: 3rem;
    }

    .circle-tramite {
        width: 14vh;
        height: 14vh;
        margin-right: 38%;
    }
}

@media screen and (max-width: 1280px) {
    .circle-tramite {
        width: 12vh;
        height: 12vh;
        margin-right: 40%;
    }
}

@media screen and (max-width: 1024px) {
    .spot-tramites {
        padding: 1.2rem;
    }

    .tramites-icon {
        font-size: 3.2rem;
    }

    .circle-tramite {
        margin-right: 45%;
    }
}

@media screen and (max-width: 992px) {
    .spot-tramites {
        padding: 1.8rem;
    }

    .tramites {
        font-size: 2.2rem;
    }

    .circle-tramite {
        width: 10vh;
        height: 10vh;
        margin-right: 63%;
    }
}

@media screen and (max-width: 576px) {
    .spot-tramites {
        padding: 0.8rem;
    }

    .tramites {
        font-size: 2rem;
    }

    .tramites-icon {
        font-size: 2rem;
    }

    .circle-tramite {
        width: 7vh;
        height: 7vh;
        margin-right: 75%;
    }
}

@media screen and (max-width: 430px) {
    .tramites {
        font-size: 1.6rem;
    }

    .tramites-icon {
        font-size: 2rem;
    }

    .circle-tramite {
        width: 7vh;
        height: 7vh;
        margin-right: 74%;
    }
}

@media screen and (max-width: 344px) {
    .tramites {
        font-size: 1.8rem;
        text-align: center;
    }

    .tramites-icon {
        font-size: 2rem;
    }

    .circle-tramite {
        width: 9vh;
        height: 9vh;
        margin-right: 60%;
    }
}

.accesos {
    background-color: var(--beige);
}

.accesos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.acceso-card {
    width: 26vh;
    border-radius: 1rem;
    overflow: hidden;
    background: white;
    text-decoration: none;
    box-shadow: 0px 5px 15px rgba(70, 66, 0, 0.15);
    transition: all .25s ease;
}

.acceso-card:hover {
    transform: translateY(-7px);
}

.acceso-icon {
    background: linear-gradient(160deg, #e9e9e9 0%, #b3aea5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 7rem;
}

.acceso-icon:hover {
    background: linear-gradient(160deg, #ffffff 0%, #d4d0c9 100%);
}

.acceso-icon i {
    font-size: 4.5rem;
    color: #333;
}

.acceso-body {
    overflow: visible !important;
    display: block;
    padding: 1rem;
    text-align: center;
}

/* Footer */
.footer {
    background: linear-gradient(160deg, #fffcf7 0%, #e1cca6 100%);
    color: var(--brown) !important;
    padding: 3rem 0 1rem !important;
    margin-top: 5rem !important;
}

.footer h5 {
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    position: relative !important;
    padding-bottom: 0.8rem !important;
    font-size: 1.25rem !important;
    color: var(--brown) !important;
}

.footer h5::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 50px !important;
    height: 3px !important;
    background-color: var(--tree) !important;
}

.footer h6 {
    font-size: 1rem !important;
    color: var(--brown) !important;
}

.footer-links a, .marco a {
    color: var(--brown) !important;
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 0.8rem !important;
    transition: all 0.3s !important;
}

.footer-links a:hover {
    color: white !important;
    padding-left: 8px !important;
}

.contact-info i {
    margin-right: 10px !important;
    color: var(--tree) !important;
}

.social-icons a {
    display: inline-block !important;
    width: 40px !important;
    height: 40px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    text-align: center !important;
    line-height: 40px !important;
    margin-right: 10px !important;
    color: white !important;
    transition: all 0.3s !important;
}

.social-icons a:hover {
    transform: translateY(-5px) !important;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 1.5rem !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.logo-footer {
    max-width: 17vh !important;
    max-height: 17vh !important;
}

.title {
    margin: 3rem 0;
    font-size: 2.8rem;
    font-weight: lighter;
}

.content {
    display: flex;
    justify-content: space-evenly;
    box-shadow: 0 2px 4px rgba(75, 58, 21, 0.4);
    border-radius: 0.4rem;
}

.content p {
    font-weight: 100;
}

.titular {
    align-items: center;
    padding: 4rem 1rem;
}

.titular i, .funciones i {
    margin-right: 10px;
    color: var(--lightsand);
}

.antecedentes {
    max-width: 30vh;
}

.mision {
    gap: 1.2rem;
}

.mision h5 {
    position: relative;
    padding-bottom: 0.5rem;
}

.mision h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 12rem;
    height: 2px;
    background-color: var(--lightsand);
}

.mision p {
    font-weight: 100;
}

.pdf-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    overflow: hidden;
}

.pdf-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.marco {
    display: flex;
}

.marco a i {
    color: var(--darktree);
}

.marco-link-res, .marco-link-res::before {
    display: none !important;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .title {
        margin: 4rem 0 2rem;
        font-size: 1.8rem;
        font-weight: normal;
    }

    .organigrama {
        padding: 1rem !important;
    }
    
}

@media (max-width: 992px) {
    .marco .marco-link {
        display: none;
    }

    .marco .marco-link-res {
        display: block !important;
    }
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.icon-box i {
    color: var(--lightsand);
}

.contacto {
    display: flex;
    padding: 3rem;
}

.contacto i {
    font-size: 1.5rem;
    color: var(--darktree);
    margin-right: 1.3rem;
}

.contacto p {
    font-weight: 100;
}

.btn-contacto {
    background-color: var(--tree);
    color: white;
}


/* Noticias */
.title-beige {
    background-color: var(--beige);
}

.card {
    min-height: 200px;
    height: 500px !important;
}

.card-custom {
    overflow: hidden;
    min-height: 450px;
    box-shadow: 0 0 15px rgba(10, 10, 10, 0.3);
    border-radius: 2.53em !important;
}

@media (max-width: 375px)  {
    .card-custom {
        width: 21rem !important;
    }
}

@media (max-width: 360px)  {
    .card-custom {
        width: 21rem !important;
        left: 0px !important;
    }
}

@media (max-width: 320px){
    .card-custom {
        width: 18rem !important;
        left: 0px !important;
  }
}

@media (max-width: 768px){
    .card-custom {
        width: 21rem !important;
        left: 0px !important;
    }
}
  
.card-custom-img {
    height: 200px;
    min-height: 200px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-color: inherit;
}
  
.card-custom-img::after {
    position: absolute;
    content: '';
    top: 161px;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-top-width: 40px;
    border-right-width: 0;
    border-bottom-width: 0;
    border-left-width: 545px;
    border-left-width: calc(575px - 5vw);
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: inherit;
}
  
.card-custom-avatar img {
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(10, 10, 10, 0.3);
    position: absolute;
    top: 100px;
    left: 32%;
    width: 120px;
    height: 120px;
}

.card-custom-img-transparencia {
    height: 230px;
    min-height: 230px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-color: inherit;
}

.card-custom-avatar-transparencia img {  
    position: absolute;
    top: 100px;
    left: 32%;
    width: 120px;
    height: 120px;
}

.card-custom-img-transparencia::after {
    position: absolute;
    content: '';
    top: 161px;
    left: 0;
    width: 0;
    height: 0;
}

.card-custom:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.news-image{
    width: 100% !important;
    height: 22em !important;
    object-fit: cover !important;
    border-top-right-radius: 2em!important;
    border-top-left-radius: 2em!important;
}