/* Estilos Premium para Postealo en Divi / Web */

.postealo-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    font-family: inherit;
}

.postealo-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.35;
}

.postealo-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 25px;
}

.postealo-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 25px;
}

.postealo-content {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #1e293b;
}

.postealo-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 30px 0;
}

.postealo-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
    font-size: 1rem !important;
}

.postealo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

/* Formulario Front-End de Publicación para Mentores (Super Compatible con Divi) */
.postealo-publish-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 40px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #e2e8f0 !important;
    max-width: 800px !important;
    width: 100% !important;
    margin: 30px auto !important;
    box-sizing: border-box !important;
    clear: both !important;
    display: block !important;
    float: none !important;
}

.postealo-publish-card label {
    display: block !important;
    width: 100% !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: #1e293b !important;
    margin-bottom: 8px !important;
    text-align: left !important;
    float: none !important;
}

.postealo-publish-card input[type="text"], 
.postealo-publish-card textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 20px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    outline: none !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    float: none !important;
}

.postealo-msg {
    margin-top: 15px;
    font-size: 0.95rem;
    text-align: center;
}
.postealo-msg.success { color: #059669; font-weight: bold; }
.postealo-msg.error { color: #dc2626; font-weight: bold; }

.postealo-box-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #475569;
    font-size: 1rem;
    margin: 20px 0;
}

/* Shortcode [postealo_resumen] - Tarjetas en Grid (Diseño de la imagen adjunta) */
.postealo-resumen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.postealo-resumen-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.postealo-resumen-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.postealo-resumen-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.postealo-resumen-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.postealo-resumen-title a:hover {
    color: #4f46e5 !important;
}

.postealo-resumen-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 14px;
}

.postealo-resumen-meta strong {
    color: #334155;
}

.postealo-resumen-excerpt {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #475569;
    flex: 1;
    margin-bottom: 20px;
}

.postealo-resumen-excerpt p {
    margin: 0;
}

.postealo-resumen-btn-read {
    color: #e11d48 !important;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    display: inline-block;
    transition: color 0.2s ease;
}

.postealo-resumen-btn-read:hover {
    color: #be123c !important;
    text-decoration: underline !important;
}

/* Chat Interactivo estilo WhatsApp */
.postealo-chat-wrap {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 650px;
    margin: 0 auto;
}

.postealo-chat-header {
    background: #4f46e5;
    color: #ffffff;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.postealo-chat-box {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-bubble.mine {
    background: #6366f1;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-bubble.theirs {
    background: #ffffff;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid #e2e8f0;
}

.postealo-chat-input-row {
    display: flex;
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    gap: 10px;
}

.postealo-chat-input-row input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
}
