﻿
/*fontfamili Patria*/
@font-face {
    font-family: 'Patria';
    src: url('../../fonts/PATRIA_REGULAR.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.titles {
    font-family: 'Patria', sans-serif;
    font-size: 3.5em;
    font-weight: 700;
    color: #b8964a;
    padding: 15px 0 0 0;
}
/*Sniiv_Logo*/

.sniiv_logo {
    margin-top: 50px;
    height: auto;
    width: 90%
}
/* =========================
   HERO FULLSCREEN
   ========================= */
.container-home {
    margin: -10px 0px 0px 0px;
    padding: 0px;
    width: 100%;
  
}

.sniiv-hero {
    position: relative;
    min-height: 50vh; /* cubre toda la pantalla */
    width: 100%;
    overflow: hidden;
   /* border-radius: 0px 0px 20px 20px !important;*/
}

/* Fondo */
.sniiv-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url("../../img/Home/Puebla.png");
    background-size: cover;
    background-position: center;
    transform: scale(1.02); /* evita bordes por zoom */
    will-change: transform; 
}

/* Degradado parcial */
.sniiv-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.90) 0%,
        rgba(0, 0, 0, 0.70) 35%,
        rgba(0, 0, 0, 0.50) 55%,
        rgba(0, 0, 0, 0.25) 75%,
        rgba(0, 0, 0, 0.00) 100%
    );
}

/*Degrafado 3er seccion*/
.div_box_overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.70) 35%, rgba(0, 0, 0, 0.50) 55%, rgba(0, 0, 0, 0.25) 75%, rgba(0, 0, 0, 0.00) 100% );
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
}

/* Contenedor centrado vertical (Bootstrap 3 friendly) */
.sniiv-hero__container {
    position: relative;
    min-height: 50vh;
    display: table;
    width: 100%;
}

    .sniiv-hero__container > .row {
        display: table-cell;
        vertical-align: middle;
    }

/* Contenido */
.sniiv-hero__content {
    padding: 22px 0;
    color: #fff;
    margin-left:80px;
    max-height:90%
}

/* Logo a la izquierda */
.sniiv-hero__logo {
    max-width: 220px;
    height: 150px;
    width:auto;
    margin: 0 0 14px 0;
    
}

/* Texto */
.sniiv-hero__subtitle {
    margin: 0 0 12px 0;
    font-size: 16px; /* mobile-first */
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.25;
}

.sniiv-hero__text {
    margin: 0 0 25px 0;
    font-weight:bold;
    font-size: 16px;
    line-height: 1.6;
    max-width: 640px;
    opacity: 0.95;
}

/* =========================
   BOTONES
   - Móvil: vertical
   - Desktop: 1 línea horizontal
   - Sm (768-991): último baja y se centra
   ========================= */
.sniiv-hero__actions {
    display: flex;   
    flex-wrap: wrap; /* para que bajen en pantallas pequeñas */
    gap: 50px; /* espacio entre botones */
   margin-top:65px;

}


/* Botón base */
.sniiv-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 12px 25px;
    border-radius: 26px;
    background: #b8964a;
    border: 1px solid transparent;
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
    transition: transform 160ms ease, box-shadow 200ms ease, background-color 220ms ease;
   
}

    /* Animación wipe izquierda->derecha */
    .sniiv-btn:before {
        content: "";
        position: absolute;
        top: 0;
        left: -150%;
        width: 125%;
        height: 100%;
        background: #611232;       
        opacity: 0.95;
        transition: left 280ms ease;
        z-index: -10;
    }
   
.sniiv-btn-logo {
    width: 90px; /* tamaño fijo del botón */
    height: 70px;
    padding: 0;
    display: flex;
    align-items: center; /* centra en Y */
    justify-content: center; /* centra en X */

    overflow: hidden; /* evita que la imagen lo agrande */
}

    /* imagen grande pero contenida */
    .sniiv-btn-logo .sniiv-btn-icon {
        width: 90px; /* aquí aumentas el logo */
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }


/* Texto por encima del wipe */
.sniiv-btn {
    position: relative;
}

    .sniiv-btn span,
    .sniiv-btn strong,
    .sniiv-btn em,
    .sniiv-btn i,
    .sniiv-btn u,
    .sniiv-btn b,
    .sniiv-btn {
        z-index: 1;
    }

        /* Hover SOLO con mouse */
        .sniiv-btn:hover {
            color: #fff !important;
            transform: translateY(-2px);
            box-shadow: 0 10px 22px rgba(0,0,0,0.28);
        }

            .sniiv-btn:hover:before {
                left: 0;
            }

        /* Focus para teclado (accesible) */
        .sniiv-btn:focus-visible {
            outline: 2px solid rgba(255,255,255,0.75);
            outline-offset: 3px;
        }

        /* Evita que el focus “pinte” el wipe al regresar */
        .sniiv-btn:focus:not(:focus-visible):before {
            left: -150%;
        }


 

/* Centrar botones en móvil */
@media (max-width: 767px) {
    .sniiv-hero__actions {
        text-align: center;
    }

    .sniiv-btn {
        margin-left: auto;
        margin-right: auto;
    }
}

/* >=768px: horizontal */
@media (min-width: 768px) {
    .sniiv-hero__logo {
        max-width: 250px;
        margin-bottom: 18px;
    }

    .sniiv-hero__subtitle {
        font-size: 20px;
    }

    .sniiv-hero__text {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .sniiv-hero__actions {
        text-align: left;
        white-space: nowrap; /* una sola línea por defecto */
    }

    .sniiv-btn {
        display: inline-block;
        width: auto;
        max-width: none;
        margin: 0 12px 0 0;
        padding: 14px 22px;
        font-size: 14px;
        vertical-align: middle;
    }
}

/* 768-991: último baja a segunda línea y se centra */
@media (min-width: 768px) and (max-width: 991px) {
    .sniiv-hero__actions {
        white-space: normal; /* permitimos wrap solo aquí */
    }

    .sniiv-btn--last {
        display: block;
        width: auto;
        margin: 12px auto 0;
        text-align: center;
    }
}

/* >=992: todo en una sola línea */
@media (min-width: 992px) {
    .sniiv-hero__actions {
        white-space: nowrap;
    }

    .sniiv-btn--last {
        display: inline-block;
        margin: 0;
    }
}

/*Segunda sección*/
.sniiv-txt {
    font-size: 1.5rem;
    padding: 5px 0px 5px 13px;
}

.second-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    padding: 15px;
}

.icds {
    max-height: 300px;
    /* border: 1px solid;*/
    box-shadow: 5px 10px 18px #856d77;
    border-radius: 10%;
    padding: 10px;
}

.first {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.section {
    flex: 1;
    /* border: 1px solid black;*/
    overflow: hidden;
    min-height: 0;
}

.section--header {
    flex: 1.2;
}

.section--footer {
    display: flex;
    flex-direction: column;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr .5fr;
    height: 100%;
}

.header-box {
    /* border: 1px solid black;*/
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
}

    .header-box img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.header-box-left {
    justify-content: flex-start;
    padding-left: 10px;
}

.section-bottom-right {
    margin-top: auto;
    align-self: flex-end;
}

/* Botón tipo CTA con ícono */
.btn-indicador {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
    padding: 8px 12px;
    border: 3px solid #ffffff;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    margin-right: 15px;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
    transition: transform 160ms ease, box-shadow 200ms ease, background-color 220ms ease;
    position: relative; /* importante */
    overflow: hidden; /* importante */
    isolation: isolate; /* recomendado */
    margin-bottom: 15px;
    width: 80%;
}

.w50 {
    width: 50% !important;
}

.ml {
    margin-left: 15px
}

.h70 {
    height: 70% !important;
}


.btn-indicador::before {
    content: "";
    position: absolute;
    top: 0;
    inset: 0;
    left: -130%;
    width: 125%;
    height: 100%;
    background: #611232;
    transform: skewX(-18deg);
    transform-origin: left;
    opacity: 0.95;
    transition: left 600ms ease;
    z-index: 0;
}


.btn-indicador > * {
    position: relative;
    z-index: 1;
}

.btn-indicador:hover::before {
    left: 0;
}

.btn-indicador:hover {
    transform: translateY(1px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.28);
    color: white !important;
    border: 3px solid #b8964a;
}

.btn-indicador span {
    font-size: 2rem;
    font-weight: bold;
}

.btn-indicador img {
    width: 30%;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}

.big-number {
    font-family: 'Poppins', sans-serif;
    font-size: 5.2rem;
    font-weight: 700;
    line-height: 1;
    color: #b8964a;
}

.second-section-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    padding: 15px;
}

.line {
    border: none;
    height: 4px;
    background: #b8964a;
    width: 47%;
    margin-left: 0;
}
.line2 {
    border: none;
    height: 4px;
    background: #b8964a;
    width: 61%;
    margin-left: 0;
}
.line3 {
    border: none;
    height: 4px;
    background: #b8964a;
    width: 28%;
    margin-left: 0;
}
.line4 {
    border: none;
    height: 4px;
    background: #b8964a;
    width: 16%;
    margin-left: 0;
}
.line5 {
    border: none;
    height: 4px;
    background: #b8964a;
    width: 37%;
    margin-left: 0;
}
.second-icds {
    height: 250px;
    box-shadow: 5px 10px 18px #856d77;
    border-radius: 4%;
}

.second-1box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
}

.second-1box-section {
    height: 100%;
    padding: 15px;
}


/*Segunda Sección */

/* =========================
   TABLET (<= 992px)
   - 2 columnas
   - menos gap
   - tipografías más compactas
   ========================= */
@media (max-width: 992px) {
    .second-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 12px;
    }

    .icds {
        max-height: none; 
        border-radius: 18px; 
        padding: 12px;
    }

    .first {
        gap: 12px;
    }

    .big-number {
        font-size: 4.2rem;
    }

    .sniiv-txt {
        font-size: 1.25rem;
        padding-left: 10px;
    }

    .btn-indicador {
        width: 90%;
        margin-right: 10px;
    }

        .btn-indicador span {
            font-size: 1.6rem;
        }

        .btn-indicador img {
            width: 28%;
            height: 26px;
        }

    .second-section-two {
        grid-template-columns: 1fr; 
        gap: 24px;
        padding: 12px;
    }

    .line {
        width: 70%;
    }
}


/* =========================
   MOBILE (<= 576px)
   - 1 columna
   - cards compactos
   - botón al 100%
   ========================= */
@media (max-width: 576px) {
    .second-section {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 10px;
    }

    .icds {
        max-height: none;
        border-radius: 16px;
        padding: 12px;
    }

    .header-grid {
        grid-template-columns: 1fr .6fr;
    }

    .big-number {
        font-size: 3.4rem;
    }

    .sniiv-txt {
        font-size: 1.15rem;
        padding: 4px 0 4px 10px;
    }

    .btn-indicador {
        width: 70%;
        margin-right: 0;
        justify-content: space-between; 
        margin:10px;
    }

        .btn-indicador span {
            font-size: 1.35rem;
        }

        .btn-indicador img {
            width: auto;
            height: 24px;
        }

    .second-section-two {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 10px;
    }

    .line {
        width: 85%;
    }

    .second-icds {
        height: auto; 
        border-radius: 16px;
    }

    .second-1box-section {
        padding: 12px;
    }
}

/***********************************/
/*QUE INFORMACION DESEAS CONSULTAR*/
/***********************************/
/***********************************/

.grid_boxs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    width: 100%;
}

.div-box {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    border: 6px solid #ffffff;
}

    .div-box:hover {
        border: 6px solid #b8964a;
    }

.div-box_section {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    will-change: transform;
    border-radius: inherit;
    z-index: 1;
}

.bx1 {
    background-image: url("../../img/Home/1oferta.jpg");
}

.bx2 {
    background-image: url("../../img/Home/2financiamientos.jpg");
}

.bx3 {
    background-image: url("../../img/Home/3rezago.jpg");
}

.bx4 {
    background-image: url("../../img/Home/4autoproduccion.jpg");
}

.bx5 {
    background-image: url("../../img/Home/5regularizacion.jpg");
}

.bx6 {
    background-image: url("../../img/Home/6politica.jpg");
}

.bx7 {
    background-image: url("../../img/Home/7dias.jpg");
}

.bx8 {
    background-image: url("../../img/Home/8subsidios.jpg");
}

.bx9 {
    background-image: url("../../img/Home/9informacion.jpg");
}

.div-box_content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    text-align: center; 
    padding: 16px;
    color: #fff;
    pointer-events: none;
    margin-top: 10px;
}

.div-box_title {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
}

.div-box_text {
    font-size: 1.9rem;
    margin-top: 6px;
    opacity: 0.9;
    font-weight: bold;
}

.mt {
    margin-top: 35px !important;
}

/* ***************************
   RESPONSIVE grid_boxs / div-box
*************************** */

/* Laptop/Tablet grande */
@media (max-width: 1200px) {
    .grid_boxs {
        gap: 32px;
    }

    .div-box_title {
        font-size: 2.4rem;
    }

    .div-box_text {
        font-size: 1.5rem;
    }
}


@media (max-width: 992px) {
    .grid_boxs {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .div-box {
        height: 190px;
        border-width: 5px;
    }

        .div-box:hover {
            border-width: 5px;
        }

    .div-box_content {
        padding: 14px;
    }

    .div-box_title {
        font-size: 2.1rem;
    }

    .div-box_text {
        font-size: 1.35rem;
    }

    .mt {
        margin-top: 24px !important;
    }
}


@media (max-width: 600px) {
    .grid_boxs {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .div-box {
        height: 210px; 
        border-width: 4px;
        border-radius: 14px;
    }

        .div-box:hover {
            border-width: 4px;
        }

    .div-box_content {
        padding: 14px 12px;
        margin-top: 6px;
    }

    .div-box_title {
        font-size: 1.9rem;
    }

    .div-box_text {
        font-size: 1.2rem;
    }

    .mt {
        margin-top: 16px !important;
    }
}

/* Móvil chico */
@media (max-width: 420px) {
    .div-box {
        height: 200px;
    }

    .div-box_title {
        font-size: 1.7rem;
    }

    .div-box_text {
        font-size: 1.1rem;
    }
}


/*****RECURSO********/
/*********************/
.section-recursos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    justify-items: center; 
    align-items: center; 

}

.recursos-box {
    height: 200px;
    width:100%;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.recursos-box-sections {
    display: grid;
    grid-template-columns: .5fr 1fr;
    height: 100%;
}

.btn-img {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    min-height: 120px;
    width: 90%;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 15px;
    text-decoration: none;
    width: min(90%, 420px); 
    margin: 0 auto; 
}
.btn-linkR {
    display: block;
    width: 100%;
    text-decoration: none;
}
    .btn-linkR:hover {
        text-decoration: none;
    }

.bg-r1 {
    background-color: #a02142;
}

.bg-r2 {
    background-color: #1e5b4f;
}

.bg-r3 {
    background-color: #d7b262;
}

.bg-r4 {
    background-color: #1a478c;
}

.btn-img-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}


    .btn-img-icon img {
        max-width: 60px;
        max-height: 60px;
        object-fit: contain;
    }
.btn-img-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-decoration:none;
}

.recursos-description {
    text-align: center;
    font-style: italic;
    /*opacity: 0.85;*/
    color: black;
    font-size: 15px;
}
/* ***************************
   RESPONSIVE: section-recursos
*************************** */


@media (max-width: 992px) {
    .section-recursos {
        gap: 12px;
    }

    .recursos-box {
        height: 180px;
        padding: 8px;
    }

    .btn-img {
        grid-template-columns: 70px 1fr;
        min-height: 110px;
        width: 100%;
        padding: 10px;
        gap: 10px;
    }

    .btn-img-text {
        font-size: 2.2rem;
    }
}


@media (max-width: 700px) {
    .section-recursos {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .recursos-box {
        height: auto; 
        padding: 10px;
    }

    .btn-img {
        width: 100%;
        min-height: 105px;
    }

    .btn-img-text {
        font-size: 2rem;
    }

    .recursos-description {
        font-size: 14px;
    }
}

/* Móvil chico: evitar desbordes */
@media (max-width: 420px) {
    .btn-img {
        grid-template-columns: 56px 1fr;
        padding: 10px 8px;
        gap: 8px;
        border-radius: 14px;
    }

    .btn-img-icon img {
        max-width: 46px;
        max-height: 46px;
    }

    .btn-img-text {
        font-size: 1.55rem;
        line-height: 1.1;
    }

    .recursos-description {
        font-size: 13px;
    }
}


/*NUEVAS PUBLICACIONES*/

.gallery {
    background: #EEE;
}

.gallery-cell {
    width: 70%;
    margin-right: 14px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}


    .gallery-cell img {
        width: 100%;
        height: 320px;
        object-fit: cover;
        display: block;
    }

    .gallery-cell a {
        display: block;
        position: relative;
    }

.gallery-title {
    font-family: 'Patria', sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    pointer-events: none;
    text-align: center;
    width: 70%;
}

/*STIOS de Interes*/

.carousel9 {
    width: 100%;
}

.carousel9-cell {
    width: 33.3333%; 
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

/* tarjeta */
.carousel9-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
    width: 70%; 
    min-height: 340px; 

    transition: transform .25s ease, box-shadow .25s ease;
}


    .carousel9-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 30px rgba(0,0,0,.18);
    }
.carousel9-img {
    width: 100%;
    height: 180px; /* el espacio que ya tienes */
    display: flex;
    align-items: center; /* centra vertical */
    justify-content: center; /* centra horizontal */
    overflow: hidden;
}

    .carousel9-img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; 
        display: block;
    }

.carousel9-card:hover .carousel9-img img {
    transform: scale(1.08);
}


.carousel9-body {
    padding: 12px 14px;
    flex: 1;
    min-height:180px;
}

    .carousel9-body p {
        text-align:justify;
        margin: 0;
        font-size: 1.2rem;
        line-height: 1.3;
        color: #222;
    }

.carousel9-footer {
    padding: 0;
    background-color: #611232;
    display: flex;
}


.carousel9-btn {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 16px 0;
    border-radius: 0 0 14px 14px;
    font-family: 'Patria', sans-serif;
    background: #611232;
    color: #fff;
    font-weight: 600;
    font-size: 2rem;
    transition: background .2s ease, transform .2s ease;
}

    /* hover */
    .carousel9-btn:hover {
        background: #8a1f3d;
        transform: scale(1.02);
    }

.flickity-button {
    background: rgba(0,0,0,.65);
}

    .flickity-button:hover {
        background: rgba(0,0,0,.78);
    }

.flickity-button-icon {
    fill: #fff;
}
/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

    .carousel9-cell {
        width: 50%; 
    }

    .carousel9-card {
        width: 82%; 
        min-height: 320px;
    }

    .carousel9-body p {
        font-size: 0.95rem;
    }

    .carousel9-btn {
        font-size: 1.35rem; 
        padding: 14px 0;
    }
}


@media (max-width: 600px) {

    .carousel9-cell {
        width: 100%; 
    }

    .carousel9-card {
        width: 92%;
        min-height: 320px;
    }

    .carousel9-body {
        padding: 12px 14px 16px;
    }

        .carousel9-body p {
            font-size: 0.95rem;
        }

    .carousel9-btn {
        font-size: 1.15rem;
        padding: 14px 0;
    }
}

@media (max-width: 420px) {

    .carousel9-card {
        width: 95%;
        min-height: 310px;
    }

    .carousel9-body p {
        font-size: 0.9rem;
    }

    .carousel9-btn {
        font-size: 1.05rem;
        padding: 12px 0;
    }
}