body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 15px;
}

/* BUSCADOR */
.zona-buscador {
    text-align: center;
    margin-bottom: 25px;
}

#buscador {
    width: 90%;
    max-width: 500px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
}

/* CONTENEDOR DE TARJETAS */
#contenedorCards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

/* TARJETAS */
.card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    min-height: 220px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    overflow: hidden;

    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* hover correcto */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* BADGE (nuevo JS) */
.badge {
    display: inline-block;
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* TITULO */
.card h3 {
    margin-top: 0;
    font-size: 18px;
    color: #222;
}

/* CATEGORIA */
.categoria {
    font-size: 13px;
    font-weight: bold;
    color: #555;
}

/* TEXTO */
.card p {
    font-size: 14px;
    line-height: 1.4;
    margin: 5px 0;
    color: #444;
}

/* CONTACTO */
.contacto {
    margin-top: auto;
}

/* BOTON CONTACTO */
.btn-contacto {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
   background: linear-gradient(135deg, #0B5ED7, #0F4C81);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

/* TEXTO CONTACTO SIMPLE */
.contacto-texto {
    font-size: 14px;
    font-weight: bold;
}

/* TABLET */
@media (max-width: 900px) {
    #contenedorCards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CELULAR */
@media (max-width: 600px) {
    #contenedorCards {
        grid-template-columns: 1fr;
    }
}


/* BOTÓN CARGAR MÁS */
#btnCargarMas {
    display: block;
    margin: 20px auto;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #2980b9;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

#btnCargarMas:hover {
    background: #1f5f8a;
}