

/* HERO */
.hero{
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider{
    width:100%;
    position:relative;
}

.slide{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    opacity:0;
    transition:opacity .8s ease;
}

.slide.active{
    position:relative;
    opacity:1;
}

.slide img{
    display:block;
    width:100%;
    height:auto;
}

/* Botones */

.prev,
.next{

    position:absolute;
    top:50%;
    transform:translateY(-50%);

    width:45px;
    height:45px;

    border:none;
    border-radius:50%;

    background:rgba(0,0,0,.5);
    color:white;

    font-size:28px;

    cursor:pointer;
    z-index:10;
}

.prev{
    left:20px;
}

.next{
    right:20px;
}

.prev:hover,
.next:hover{
    background:rgba(0,0,0,.8);
}



/* TITULOS */
h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}

/* HERO BANNER */
.hero-banner {
    height: 220px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    background: gray;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: url('../../img/NOTICIAS-04.png') center/cover no-repeat;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    margin: 0;
    height: 450px;
    width: 280px;
}


.card .img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
}

.card .img img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}
.card p {
    display: inline;
}

.card .btn-nav {
    display: inline;
}

.card-link .img {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 12px;
}
.card-link .img img{
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: top center;

    display: block;
}
.card-link .texto p{
    overflow-wrap: break-word;
}


#servicios a{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 350px;
    
}

#servicios .services-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 350px));
    justify-content: center;
}

#servicios .services-grid a{
    width: 100%;
    min-width: 0;
}


/*  FOOTER */

.footer {
    background: var(--primary);
    border-top: 4px solid var(--primary);
    margin-top: 4rem;
}

.footer-container {
    width: min(1200px, 90%);
    margin: auto;
    padding: 4rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-section .info-container{
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: start;
}

.footer-section img{
    margin-left: 55px;
    margin-right: 15px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    color: var(--white);
    line-height: 1.8;
    list-style: none;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: .3s;
}

.footer-section a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.footer-bottom {
    background: var(--primary);
    border-top: 1px solid var(--border);
    padding: 1.2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--white);
    font-size: .9rem;
}


/*MODAL INICIO*/


.modal-heyzine {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, .75);

    backdrop-filter: blur(8px);

    display: flex;

    justify-content: center;
    align-items: center;

    z-index: 9999;

    opacity: 0;
    visibility: hidden;

    transition: .35s ease;
}

/* ACTIVO */

.modal-heyzine.active {
    opacity: 1;
    visibility: visible;
}

.modal-contenido {
    position: relative;

    width: 90%;
    height: 90vh;

    background: white;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);

    transform: scale(.8) translateY(40px);

    opacity: 0;

    transition:
        transform .4s ease,
        opacity .4s ease;
}

.modal-heyzine.active .modal-contenido {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* IFRAME */

.modal-contenido iframe {
    width: 100%;
    height: 100%;

    border: none;
}

/* BOTON CERRAR */

.cerrar {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, .7);
    color: white;

    font-size: 20px;

    cursor: pointer;

    z-index: 10;

    transition: .3s;
}

.cerrar:hover {
    background: black;
    transform: scale(1.1);
}

h2 {
    text-align: center;
}

/* ========================================
   NAVEGACIÓN ACTIVA
   ======================================== */

nav a.active {
  color: var(--primary) !important;
  font-weight: 600 !important;
}


nav a.active {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

/* ========================= */
/* RESPONSIVE TABLET */
/* ========================= */
@media (max-width:992px){

    .card{
        width:45%;
        min-width:280px;
        height:auto;
    }

    #servicios a{
        width:45%;
        min-width:280px;
    }

}


/* ========================= */
/* RESPONSIVE MÓVIL */
/* ========================= */
@media (max-width:768px){

    .slide img{
        object-position:center;
    }

    .prev,
    .next{
        width:38px;
        height:38px;
        font-size:22px;
    }

    .prev{
        left:10px;
    }

    .next{
        right:10px;
    }

    h2{
        font-size:1.7rem;
        margin-bottom:20px;
    }

    .hero-banner{
        height:160px;
    }

    .grid{
        flex-direction:column;
        align-items:center;
    }

    #servicios .services-grid{
        grid-template-columns: minmax(0, 350px);
    }

    .card{
        width:100%;
        max-width:360px;
        height:auto;
    }

    .card .img{
        height:220px;
    }

    #servicios a{
        width:100%;
        max-width:360px;
    }

    .footer-container{
        text-align:center;
    }

    .social-icons{
        align-items:center;
    }

}


/* ========================= */
/* CELULARES PEQUEÑOS */
/* ========================= */
@media (max-width:480px){

    .card .img{
        height:180px;
    }

    .hero-banner{
        height:130px;
    }

    .section{
        padding:50px 0;
    }

}