/*-------------BANNER----------------*/

.titulo {
    background-color: #B82F25;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    font-family: 'Gandhi Sans', sans-serif;
    /* Sombra para que el "rectángulo" parezca flotar un poco */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    /* ---------------------------------------------------- */
}

.titulo h1 {
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
    /* Un poco menos negrita para que la sombra del texto destaque */
    font-family: 'Gandhi Sans', sans-serif;
    /* ---------------------------------------------------- */
    /* Sombra para el texto */
    text-shadow: 2px 7px 4px rgba(0, 0, 0, 0.4);
    /* ---------------------------------------------------- */
}

.banner-section {
    position: relative;
    /* para poder posicionar el texto encima */
    width: 100%;
    height: auto;
    /* altura fija para el banner */
    overflow: hidden;
}

.banner-section img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;       /* que la imagen cubra todo el ancho/alto */
    /*display: block;*/
}

.texto1 {
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    transform: translate(-50%, -50%);
    /* centra horizontal y vertical */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Gandhi Sans', sans-serif;
    text-align: center;
    color: #fff;
    padding: 20px 20px;
    /*max-width: 40%;*/
}

.texto1 h2 {
    font-family: 'Gandhi Sans', sans-serif;
    font-size: 1.7rem;
    /* tamaño grande de título */
    font-weight: bold;
    line-height: 1.2;
}

.texto1 h6 {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
}

.contenedor-texto {
    flex: 1;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.btn-contacto {
    font-family: 'Gandhi Sans', sans-serif;
    background-color: #CB4F24;
    color: #000;
    margin-top: 10px;
    padding: 14px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 250px;
}

.btn-contacto:hover {
    background-color: #D19733;
}

/*-------------SECCIÓN ARTÍCULOS INFORMATE-------------*/

.articulos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 400px 400px;
    gap: 0;
    /*Espacio entre celdas*/
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
}

.articulos-card {
    position: relative;
    background-size: cover;
    /*Para que la imagen de fondo cubra el espacio completo*/
    background-position: center;
    background-repeat: no-repeat;
    /*transition: transform 0.3s ease-in-out;
    cursor: pointer;*/
}


.articulos .articulos-card:nth-child(1) {
    background-image: url('../img/deuda.jpg');
}

.articulos .articulos-card:nth-child(2) {
    background-image: url('../img/pasaporte.jpg');
}

.articulos .articulos-card:nth-child(3) {
    background-image: url('../img/golden-visa.jpg');
}

.articulos .articulos-card:nth-child(4) {
    background-image: url('../img/solicitud-visado.jpg');
}

.btn-informate {
    position: absolute;
    top: 80%;
    transform: translate(-50%, 0);
    background-color: #CB4F24;
    color: #fff;
    font-family: 'Gandhi Sans', sans-serif;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    /*text-transform: uppercase; /* Mayúsculas*/
    font-family: 'Gandhi Sans', sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);

    /* Transición suave para el efecto hover */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-informate:hover {
    background-color: #D19733;
    transform: translate(10, 10) scale(1.05);
}

.articulos-card:nth-child(1) .btn-informate,
.articulos-card:nth-child(3) .btn-informate {
    right: -30px;
}

.articulos-card:nth-child(2) .btn-informate,
.articulos-card:nth-child(4) .btn-informate {
    left: 120px;
}

/*-------------SECCIÓN TARJETAS LO ÚLTIMO-------------*/
.lo-ultimo {
    background-color: #c2c2c2;
    /* Fondo beige claro */
    max-width: 1100px;
    border-radius: 35px;
    margin: 0 auto;
    padding: 60px 50px;
}

.lo-ultimo h2 {
    font-family: 'Gandhi Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 2px 7px 4px rgba(0, 0, 0, 0.3);
}

.contenedor-tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    justify-items: center;
}

/*TARJETAS */
.tarjeta {
    background-color: #000;
    /* Dorado similar al ejemplo */
    border-radius: 35px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* IMAGEN */
.imagen {
    padding: 0;
    background-color: #b5312e;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
    height: 220px;
    /* 🔸 altura uniforme para todas */
    width: 100%;
    margin: 0;


    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.imagen img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 40px;
    padding: 30px;
    object-fit: cover;
    /* 🔸 mantiene proporción sin deformar */
}

.contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px 20px;
    width: 100%;
}

/* TEXTO */
.contenido p {
    font-family: 'Gandhi Serif', serif;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* BOTÓN */
.btn {
    background-color: #CB4F24;
    color: white;
    border: none;
    font-family: 'Gandhi Sans', sans-serif;
    border-radius: 25px;
    padding: 10px 25px;
    margin-top: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: transform 0.2s ease, background 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    background-color: #D19733;
}

@media (max-width: 700px) {
   /*-------------BANNER-------------*/
    .texto1 {
        position: absolute;
        padding: 15px 15px;
    }

    .texto1 h2 {
        margin-top: 0;
        font-size: 1rem;
        line-height: 1.8;
    }

    .texto1 h6 {
        font-size: 0.6rem;
        /* Subtítulo más pequeño */
    }

    .contenedor-texto {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    .btn-contacto {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 180px;
        padding: 8px 15px;
        font-size: 0.5rem;
        margin-top: 10px;
    }

    /*-------------SECCIÓN ARTÍCULOS INFORMATE-------------*/

    .articulos {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 250px);
        gap: 1px;
        /* Espacio mínimo entre las tarjetas apiladas */
    }

    .btn-informate {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -0);
    }

    .articulos-card:nth-child(1) .btn-informate,
    .articulos-card:nth-child(3) .btn-informate {

        left: auto;
        right: 10%;
        top: 75%;
        transform: translate(0, 0);
    }

    .articulos-card:nth-child(2) .btn-informate,
    .articulos-card:nth-child(4) .btn-informate {
        left: 10%;
        right: auto;
        top: 75%;
        transform: translate(0, 0);
    }

    /*-------------SECCIÓN TARJETAS LO ÚLTIMO-------------*/
    .lo-ultimo {
        padding: 30px 15px;
        margin: 20px 10px;
        border-radius: 20px;
        max-width: none;
        /* Permitir que ocupe todo el ancho disponible */
    }

    .lo-ultimo h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        text-align: center;
        /* Centrar el título de la sección */
    }

    .contenedor-tarjetas {
        grid-template-columns: 1fr;
        /* Una sola columna para apilar las tarjetas */
        gap: 20px;
    }

    .tarjeta {
        max-width: none;
        /* Ocupa el 100% del contenedor-tarjetas */
        width: 95%;
        margin: 0 auto;
        padding: 0;
        border-radius: 20px;
    }

    .imagen {
        border-radius: 20px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .imagen img {
        padding: 15px;
    }

    .contenido p {
        font-size: 0.9rem;
    }

    section.asesoria {
        flex-direction: column;
        width: 100%;
        min-height: auto;
        padding: 40px 20px;
        overflow-x: hidden;
    }

    .contenedor-imagen {
        display: none;
    }

    .contenedor-texto {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 0.7rem;
        width: 100%;
        margin-right: 0;
        margin-top: 0;
    }

    .contenedor-texto p {
        font-family: 'Gandhi Serif', serif;
        font-size: 1.1rem;
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0 10px;
        max-width: 90%;
        text-align: center;
    }

    .btn-contacto {
        width: 250px;
        height: 45px;
        margin: 10px auto 30px auto;
        font-size: 0.9rem;
    }
}