body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f6f9;
    color: #222;
    margin-left: 5%;
    margin-right: 5%;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 20px 0;
}
.header h1 {
    color: black;
}
.hero {
    background: linear-gradient(135deg, #6c63ff, #333);
    color: white;
    text-align: center;
    padding: 0px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.grid-categorias,
.grid-articulos {
    display: grid;
    gap: 20px;
}

.grid-categorias {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-articulos {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.categoria-card {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    color: #111;
    font-weight: bold;
    transition: 0.2s;
}

.categoria-card:hover {
    background: #6c63ff;
    color: white;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card h3 {
    margin-top: 0;
}

.card a {
    text-decoration: none;
    color: #111;
}

.card a:hover {
    color: #6c63ff;
}

.meta {
    font-size: 0.9rem;
    color: #6c63ff;
}

.leer-mas {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}
.btn-preguntar {
   display: inline-block;
    background: #6c63ff;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: -10px;
    text-align: right;
    margin-bottom: 10px;
    
}

.btn-preguntar:hover {
    background: #6c63ff;
}
/* ===== ARTÍCULO ===== */

.articulo-card {
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin-bottom: 40px;
}

.articulo-header h1 {
    margin-top: 10px;
    font-size: 2.2rem;
    line-height: 1.3;
}

.fecha {
    color: #777;
    font-size: 0.9rem;
    margin-top: 5px;
}

.badge {
    background: #6c63ff;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Contenido */

.contenido {
    margin-top: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contenido h2,
.contenido h3 {
    margin-top: 40px;
}

.contenido p {
    margin-bottom: 20px;
}

/* ===== CONTRIBUCIONES ===== */

.contribuciones h2 {
    margin-bottom: 20px;
}

.contribucion {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #0073e6;
}

.contribucion .tipo {
    font-weight: bold;
    color: #0073e6;
    font-size: 0.9rem;
}
/*============PREGUNTAR ======*/
<style>
.form-container {
    max-width: 600px;
    margin: 50px auto;
    background: #f9f9f9;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    font-family: 'Arial', sans-serif;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
}

.mensaje {
    background: #e0ffe0;
    color: #046d04;
    border: 1px solid #b2ffb2;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 5px rgba(108, 99, 255, 0.3);
    outline: none;
}

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #6c63ff;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #5848d8;
    transform: translateY(-2px);
}
.preguntas-usuarios {
    background: #f4f6f9;
    padding: 60px 0;
}

.preguntas-usuarios h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.grid-preguntas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.pregunta-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform .2s, box-shadow .2s;
}

.pregunta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.pregunta-card .texto {
    font-size: 16px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 12px;
}

.pregunta-card .autor {
    font-size: 14px;
    color: #888;
    text-align: right;
    font-style: italic;
}
</style>