* {
    margin: 0px;
    padding: 0px;
}

header {
    width: 100%;
}

/*modal*/
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 100;
    transition: all 500ms ease;
    animation: autopopup 0s;
    
}
.contentbox {
    position: relative;
    width: 100%;
    height: 100%;
    margin:7% auto;
    background-color: #fafafa5b;
    border-radius: 5px;
    padding:20px 30px;
    display: flex;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color:#333;
    transition: all 500ms ease;
}

.close {
    position: absolute;
    top: 45px;
    right: 0px;
    width: 40px;
    height: 40px;
    background : url(/Imagenes/close.png);
    background-repeat: no-repeat;
    background-size: 25px;
    background-position: center;
    cursor: pointer;
    border-radius:  20%;
    z-index: 30;
}

@media (max-width: 767px)
{
    .contentbox{
        width: 300px;
        height: auto;
        flex-direction: column;
    }

    .close {
        top: -50px;
        right: -10px;
        background : url(/Imagenes/close.png);
        background-repeat: no-repeat;
        background-size: 25px;
        background-position: center;
    }
}

/*cabecera*/
#content-top {
    background: #66bc66;
    background-size: all;
}

#contacto a {
    margin-top: 3px;
    margin-right: 20px;
    color: #fcfcfc;
    font-size: 15px !important;
}

#contacto a i:hover {
    color: darkgreen;
}

#fb {
    font-weight: 600;
    font-family: "Font Awesome 5 Brands", cursive;
}

#ot {
    font-weight: 300;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

/*menu */
nav {
    background: #66bc66;
    height: 70px;
    background-size: all;
}

nav:after {
    content: '';
    clear: both;
    display: table;
}

nav .logo {
    float: left;
    color: white;
    line-height: 70px;
    padding-left: 50px;
}

nav ul {
    float: right;
    list-style: none;
    position: relative;
}

nav ul li {
    float: left;
    display: inline-block;
    background: #66bc66;
    margin: 0;
}

nav ul li a {
    color: white;
    line-height: 70px;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 23px;
}


nav ul li a:hover {
    color: white;
    border-radius: 5px;
    box-shadow: 0 0 5px #C5F5B3,
        0 0 10px #C5F5B3;
}

nav ul ul li a:hover {
    box-shadow: none;
}

nav ul ul {
    position: absolute;
    top: 90px;
    border-top: 3px solid white;
    opacity: 0;
    visibility: hidden;
    transition: top .3s;
    z-index: 3;
}

nav ul ul ul {
    border-top: none;
}

nav ul li:hover > ul {
    top: 70px;
    opacity: 1;
    visibility: visible;
}

nav ul ul li {
    position: relative;
    margin: 0px;
    width: 263px;
    float: none;
    display: list-item;
    border-bottom: 1px solid #C5F5B3;
    z-index: 1;
}

nav ul ul li a {
    padding: 0px;
    margin-right: 3px;
    margin-left: 3px;

}

nav ul ul ul li {
    position: relative;
    top: -60px;
    left: 264px;
}

.show,
.icon,
input {
    display: none;
}

.fa-plus {
    font-size: 15px;
    margin-left: 20px;
}

@media screen and (max-width: 978px) {
    
    
}
@media all and (max-width: 968px ) {
    #contacto a {
        color: #fcfcfc;
        font-size: 10px !important;
    }

    #fb {
        font-weight: 900;
    }

    nav ul {
        margin-right: 0px;
        float: left;
    }

    nav .logo {
        padding-left: 30px;
        width: 100%;
    }

    .show + a,
    ul {
        display: none;
    }

    nav ul li,
    nav ul ul li {
        display: block;
        width: 100%;
    }

    nav ul li a:hover {
        box-shadow: none;
    }

    .show {
        display: block;
        color: Black;
        font-size: 20px;
        padding: 0 20px;
        line-height: 50px;
        cursor: pointer;

    }

    .show:hover {
        color: #C5F5B3;
    }

    .icon {
        display: block;
        color: #C5F5B3;
        position: absolute;
        margin-top: 1px;
        right: 40px;
        /*line-height: 70px;*/
        cursor: pointer;
        font-size: 25px;
    }

    nav ul ul {
        top: 70px;
        border-top: 0px;
        float: none;
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
    }

    nav ul ul a {
        padding-left: 40px;
    }

    nav ul ul ul a {
        padding-left: 80px;
    }

    nav ul ul ul li {
        position: static;
    }

    [id^=btn]:checked + ul {
        display: block;
    }

    nav ul ul li {
        border-bottom: 0px;
    }

    span.cancel:before {
        content: '\f00d';
    }

}


/*slider*/
#sli {
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    top: 80%;
    text-align: left;
    width: 90%;
    font-size: 30px;
    color: #fcfcfc;
    font-weight: bold;
    margin-left: 37px;
    background-color: rgb(51, 51, 51, 0.8);
}

.bod {
    align-items: center;
    justify-content: center;
    padding: 0px;
}

img {
    max-width: 100%;
}

.container-all {
    top: -17px;
    position: relative;
    max-width: 1352px;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;

}

.slide {
    display: flex;
    transform: translate3d(0, 0, 0);
    transition: all 600ms;
    animation-name: autoplay;
    animation-duration: 6.5s;
    animation-direction: alternate;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
}

.item-slide {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    flex-grow: 0;
    max-width: 100%;
}

.pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pagination-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid white;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
    text-align: center;
    transition: all 300ms;
}

.pagination-item:hover {
    transform: scale(2);
}

.pagination-item img {
    display: inline-block;
    max-width: none;
    height: 100%;
    transform: scale(1);
    opacity: 0;
    transition: all 300ms;
}

.pagination-item:hover img {
    opacity: 1;
    transform: scale(1);
}

/* al add mas imagenes agrege esto */
input[id="1"]:checked ~ .slide {
    animation: none;
    transform: translate3d(0, 0, 0);
}

input[id="1"]:checked ~ .pagination .pagination-item[for="1"] {
    background: #fff;
}

input[id="2"]:checked ~ .slide {
    animation: none;
    transform: translate3d(calc(-100% * 1), 0, 0);
}

input[id="2"]:checked ~ .pagination .pagination-item[for="2"] {
    background: #fff;
}


input[id="3"]:checked ~ .slide {
    animation: none;
    transform: translate3d(calc(-100% * 2), 0, 0);
}

input[id="3"]:checked ~ .pagination .pagination-item[for="3"] {
    background: #fff;
}

/* 1 calculas 100 entre la cant de imagenes 
   2 +resultado */
@keyframes autoplay {
    33% {
        transform: translate3d(calc(-100% * 0), 0, 0);
    }

    66% {
        transform: translate3d(calc(-100% * 1), 0, 0);
    }

    100% {
        transform: translate3d(calc(-100% * 2), 0, 0);
    }
}

@media screen and (max-width: 978px) {
    /*New*/
    nav {
    height: 40px;
    }
    nav .logo {
    float: left;
    color: white;
    line-height: 40px;
    }
    .icon {
        display: block;
        color: #C5F5B3;
        position: absolute;
        margin-top: 1px;
        right: 40px;
        cursor: pointer;
        font-size: 25px;
    }
    /*---------*/
    #sli {
        top: 70%;
        width: 100%;
        font-size: 13px;
        margin-left: 3px;
    }

    .pagination {
        bottom: 10px;
        width: 100%;
    }

    .pagination-item {
        border: 2px solid white;
        width: 20px;
        height: 20px;
        overflow: hidden;
        cursor: pointer;
    }
}

/*contador*/
#contador {
    border: 0px solid;
    display: inline;
    width: 300px;
    margin-left: 39%;
}

@media screen and (max-width: 978px) {
    #contador {
        width: 150px;
        margin-left: 29%;
    }
}

/*sector noticias*/
.dy {
    height: 100%;
    display: grid;
    place-items: center;
    background: white;
    text-align: center;
}

.card-text {
    color: black;
    font-size: 15px;
}

.container {
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.noticias {
    height: 360px;
    max-width: 300px;
    margin: 0 20px;
    background: white;
    transition: 0.4s;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.noticias:hover {
    height: 400px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

.noticias .img {
    height: 150px;
    width: 100%;
}

.noticias .img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.noticias .top-text {
    padding: 5px;
}

.noticias .top-text .name {
    font-size: 20px;
    font-weight: 600;
    color: #202020;
}

.noticias .top-text p {
    font-size: 15px;
    font-weight: 600;
    color: #66bc66;
    line-height: 20px;
}

.noticias .bottom-text {
    padding: 0 20px 10px 20px;
    margin-top: 5px;
    background: #fcfcfc;
    opacity: 0;
    visibility: hidden;
    transition: 0.1s;
}

.card-body .noticias:hover {
    height: auto;
}

.noticias:hover .bottom-text {
    opacity: 1;
    visibility: visible;
}

.noticias .bottom-text .text {
    text-align: justify;
}

.noticias .bottom-text .btn {
    margin: 10px 0;
    text-align: left;
}

.noticias .bottom-text .btn a {
    text-decoration: none;
    background: #66bc66;
    color: #fcfcfc;
    padding: 5px 8px;
    border-radius: 3px;
    display: inline-flex;
    transition: 0.2s;
}

.noticias .bottom-text .btn a:hover {
    transform: scale(0.9);
}

@media screen and (max-width: 978px) {
    .container {
        flex-wrap: wrap;
        flex-direction: column;
    }

    .noticias {
        max-width: 700px;
        margin: 20px 0;
    }
}

/*Videos institucionales*/
.contenido {
    padding: 20px 6px;
    display: flex;
    align-items: end;
}
.vid {
    height: 100%;
    display: grid;
    place-items: center;
    background: white;
    text-align: center;
}

.spa {
    top: 20px;
}

.video {
    position: relative;
    width: 730px;
    height: 395px;
    margin-left: auto;
    margin-right: auto;
    left: 65px;
}

video::after {
    content: "";
    display: block;
    width: 100%;
    padding-bottom: 56.25%;
}

.esdacode_video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 2;
    left: 0;
}

.redsoc{
    height: 100%;
    display: grid;
    place-items: center;
    background: white;
    text-align: center;
    padding-left: 17px;
}
@media screen and (max-width: 978px) {
    .video {
        height: 100px;
        width: 150px;
        position: flex;
    }

    .esdacode_video {
        width: 200px;
        height: 100px;
    }

    .contenido{
        display: block;
    }

    #xd{
        top: 40px;
        padding-left: 0px;
    }

    .redsoc{
        padding-left: 0px; 
    }
}

/*footer*/
* {
    color: #fcfcfc;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
   }

footer {

    bottom: 0px;
    width: 100%;
    background: #66bc66;
    margin-top: 60px;
}

.main-content {
    display: flex;
}

.main-content .box {
    flex-basis: 50%;
    padding: 10px 20px;
}

.box h2 {
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
}

.box .content {
    margin: 20px 0 0 0;
    position: relative;
}

.box .content:before {
    position: absolute;
    content: '';
    top: -10px;
    height: 2px;
    width: 100%;
    background: #fcfcfc;
}

.box .content:after {
    position: absolute;
    content: '';
    height: 2px;
    width: 15%;
    background: green;
    top: -10px;
}

.left .content p {
    text-align: justify;
}

.left .content .social {
    margin: 20px 0 0 0;
}

.left .content .social a {
    padding: 0 2px;
}

/*redes sociales*/
.left .content .social a span {
    height: 40px;
    width: 40px;
    background: #48BC66;
    line-height: 40px;
    text-align: center;
    font-size: 18px;
    border-radius: 5px;
    transition: 0.3s;
}

.left .content .social a span:hover {
    background: green;
}

/*direccion*/
.center .content .fas {
    font-size: 1.4375rem;
    background: #48BC66;
    height: 45px;
    width: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 20%;
    transition: 0.3s;
    cursor: pointer;
}

.center .content .fas:hover {
    background: green;
}

.center .content .text {
    font-size: 1.0625rem;
    font-weight: 500;
    padding-left: 10px;
}

.center .content .phone {
    margin: 15px 0;
}

/*te ofrecemos*/
.content a {
    color: #fcfcfc;
    text-decoration: none;
}

.content a:hover {
    color: green;
}

/*copi*/
.bottom center {
    padding: 5px;
    font-size: 0.9375rem;
    background: #48BC66;
}

.bottom center span {
    color: #fcfcfc;
}

.bottom center a {
    color: white;
    text-decoration: none;
    font-weight: 800;
}

.bottom center a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 900px) {
    footer {
        position: relative;
        bottom: 0px;
    }

    .main-content {
        flex-wrap: wrap;
        flex-direction: column;
    }

    .main-content .box {
        margin: 5px 0;
    }

    /*mapa contactos*/
    #mapa {
        width: 100%;
        height: auto;
    }
}

/*enlaces footer*/
.enlaces {
    background: #48BC66;
}

.client2 {
    padding: 0 0;
}

.client2 .client-box {
    margin: 0px;
}

.client2 .client-box [class*="col-"] {
    padding-top: 10px;
    padding-bottom: 10px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.client2 .client-box img {
    width: 150px;
}
