/* style2.css — variante de style.css para index2.php */

@import url("vendors.css");
@import url("basic.css");
@import url("takei.css");
@import url("single.css");
@import url("gallery.css");
@import url("404.css");
@import url("font.css");
@import url("color.css");

/* ============================================================
   BLOQUE DE 4 CUADROS (sq-hero)
   ============================================================ */

/* Parallax: el fondo queda anclado al viewport dentro de esta sección.
   Al hacer scroll el contenido sube más rápido que el fondo → efecto parallax.
   Fuera de esta sección no hay background, el resto de la página queda normal. */
.sq-hero {
    padding: 60px 0 40px;
    background: url('../img/bg_a.jpg') center center / cover fixed no-repeat;
    position: relative;
}

/* capa oscura sobre el fondo, debajo de las tarjetas */
.sq-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

/* las tarjetas por encima de la capa oscura */
.sq-hero .container {
    position: relative;
    z-index: 1;
}

/* Contenedor flex con 2 columnas en una sola fila */
.sq-hero__grid {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
    max-width: 900px;
    margin: 0 auto;
}

/* Cada celda ocupa exactamente el 50% → 2 por fila */
.sq-card-col {
    width: 50% !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 10px 20px;
    float: none !important;
}

/* Tarjeta interna */
.sq-card {
    display: block;
    text-align: center;
}

/* Contenedor de imagen con ratio 1:1 cuadrado */
.sq-card__img-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    padding-top: 100%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
}

.sq-card__img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transition: -webkit-transform 0.4s ease;
    transition: transform 0.4s ease;
    display: block;
}

.sq-card:hover .sq-card__img-wrap img {
    -webkit-transform: scale(1.04);
    transform: scale(1.04);
}

/* Enlace overlay sobre la imagen */
.sq-card__link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* Título debajo de cada cuadro */
.sq-card__label {
    display: block;
    margin-top: 12px;
    font-family: 'Rubik', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* Mobile: las 2 columnas se mantienen, solo se ajusta el espaciado */
@media (max-width: 480px) {
    .sq-card-col {
        padding: 0 5px 10px;
    }
    .sq-card__label {
        font-size: 0.7rem;
        margin-top: 6px;
    }
}
